/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    color: #334155;
    line-height: 1.5;
    font-size: 14px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px;
}

/* Header Styles */
.header {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.header h1 {
    color: #1e293b;
    font-size: 1.5rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header .subtitle {
    color: #64748b;
    font-size: 0.9rem;
    opacity: 0.9;
}

.header-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #3b82f6;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.back-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
}

.recommendations-btn {
    background: #10b981;
}

.recommendations-btn:hover {
    background: #059669;
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.3);
}

.home-btn {
    background: #8b5cf6;
}

.home-btn:hover {
    background: #7c3aed;
    box-shadow: 0 4px 6px rgba(139, 92, 246, 0.3);
}

/* Dashboard Layout */
.dashboard {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* Top Coins Section */
.top-coins-section {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.top-coins-section h2 {
    color: #1e293b;
    margin-bottom: 18px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.coins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.coin-card {
    background: #f8fafc;
    border-radius: 8px;
    padding: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.coin-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.coin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.coin-symbol {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1e293b;
}

.coin-price {
    font-weight: 600;
    color: #3b82f6;
    font-size: 0.9rem;
}

.coin-stats {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-label {
    color: #64748b;
    font-size: 0.8rem;
}

.stat-value {
    font-weight: 600;
    font-size: 0.85rem;
}

.stat-value.positive {
    color: #10b981;
}

.stat-value.negative {
    color: #ef4444;
}

/* Analysis Form */
.analysis-form {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.analysis-form h2 {
    color: #1e293b;
    margin-bottom: 18px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-weight: 500;
    color: #475569;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-control {
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-text {
    color: #94a3b8;
    font-size: 0.8rem;
    margin-top: 4px;
}

.radio-group {
    display: flex;
    gap: 15px;
    margin-top: 4px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 8px 12px;
    background: #f1f5f9;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.radio-label:hover {
    background: #e2e8f0;
}

.btn {
    padding: 10px 20px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
}

.btn-primary {
    background: #3b82f6;
}

.btn-primary:hover {
    background: #2563eb;
}

.btn-secondary {
    background: #0ea5e9;
}

.btn-secondary:hover {
    background: #0284c7;
    box-shadow: 0 4px 6px rgba(14, 165, 233, 0.3);
}

/* Info Section */
.info-section {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.info-section h2 {
    color: #1e293b;
    margin-bottom: 18px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-section p {
    color: #64748b;
    margin-bottom: 15px;
    line-height: 1.5;
}

.styles-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
}

.style-info {
    background: #f8fafc;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.style-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.style-info h3 {
    color: #1e293b;
    margin-bottom: 8px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.style-info p {
    color: #64748b;
    line-height: 1.5;
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* Analysis Results */
.analysis-results, .scan-results {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.summary-card {
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.summary-header h2 {
    color: #1e293b;
    font-size: 1.2rem;
}

.timestamp {
    color: #64748b;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Price Section */
.price-section {
    text-align: center;
    margin-bottom: 25px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.price-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.signal-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.signal-strong-buy {
    background: #0f766e;
    color: white;
}

.signal-buy {
    background: #16a34a;
    color: white;
}

.signal-weak-buy {
    background: #86efac;
    color: #065f46;
}

.signal-neutral {
    background: #e5e7eb;
    color: #374151;
}

.signal-weak-sell {
    background: #fecaca;
    color: #7f1d1d;
}

.signal-sell {
    background: #ef4444;
    color: white;
}

.signal-strong-sell {
    background: #dc2626;
    color: white;
}

/* Timeframe Grid */
.timeframe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.timeframe-card {
    background: white;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.timeframe-card:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
}

.timeframe-header {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.timeframe-header h3 {
    color: #1e293b;
    font-size: 0.95rem;
}

.indicator-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #f1f5f9;
}

.indicator-row:last-child {
    border-bottom: none;
}

.indicator-label {
    color: #64748b;
    font-size: 0.85rem;
}

.indicator-value {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9rem;
}

.indicator-value.oversold {
    color: #10b981;
}

.indicator-value.overbought {
    color: #ef4444;
}

.trend-strong-uptrend { color: #10b981; font-weight: 600; }
.trend-uptrend { color: #34d399; }
.trend-sideways { color: #f59e0b; }
.trend-downtrend { color: #f87171; }
.trend-strong-downtrend { color: #ef4444; font-weight: 600; }

/* Recommendations */
.recommendations-section {
    margin-bottom: 25px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.recommendations-section h3 {
    color: #1e293b;
    margin-bottom: 18px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.recommendation-card {
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.recommendation-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.rec-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.rec-type {
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.rec-confidence {
    padding: 3px 10px;
    background: #e2e8f0;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.rec-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rec-action {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 1rem;
    color: #1e293b;
}

.rec-action .success { color: #10b981; }
.rec-action .danger { color: #ef4444; }
.rec-action .warning { color: #f59e0b; }

.rec-reason {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.4;
}

.rec-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
}

.detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.detail-value {
    font-weight: 600;
    color: #1e293b;
}

/* Key Levels */
.key-levels-section {
    margin-bottom: 25px;
}

.key-levels-section h3 {
    color: #1e293b;
    margin-bottom: 18px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.level-card {
    background: white;
    border-radius: 8px;
    padding: 18px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.level-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.level-card:nth-child(1) { border-top: 3px solid #ef4444; }
.level-card:nth-child(2) { border-top: 3px solid #10b981; }
.level-card:nth-child(3) { border-top: 3px solid #3b82f6; }
.level-card:nth-child(4) { border-top: 3px solid #f59e0b; }

.level-label {
    color: #64748b;
    font-size: 0.85rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.level-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
}

/* Detailed Indicators */
.detailed-indicators h3 {
    color: #1e293b;
    margin-bottom: 18px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.indicators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
}

.indicator-card {
    background: white;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.indicator-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.indicator-name {
    color: #64748b;
    font-size: 0.85rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.indicator-value {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.indicator-value.positive { color: #10b981; }
.indicator-value.negative { color: #ef4444; }
.indicator-value.oversold { color: #10b981; }
.indicator-value.overbought { color: #ef4444; }

.indicator-status {
    margin-top: 6px;
}

.status-buy, .status-sell, .status-neutral, .status-warning {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: inline-block;
}

.status-buy { background: #d1fae5; color: #065f46; }
.status-sell { background: #fee2e2; color: #991b1b; }
.status-neutral { background: #fef3c7; color: #92400e; }
.status-warning { background: #fef3c7; color: #92400e; }

/* Scan Results */
.results-summary {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.results-summary h2 {
    color: #1e293b;
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.results-count {
    color: #64748b;
    font-size: 0.9rem;
}

/* Results Table */
.results-table-container {
    overflow-x: auto;
    margin-bottom: 25px;
    background: white;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #e2e8f0;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.results-table th {
    background: #f1f5f9;
    color: #475569;
    font-weight: 600;
    text-align: left;
    padding: 12px 15px;
    border-bottom: 2px solid #e2e8f0;
    font-size: 0.8rem;
    white-space: nowrap;
}

.results-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: middle;
}

.results-table tr:hover {
    background: #f8fafc;
}

.rank-cell {
    font-weight: 600;
    color: #3b82f6;
    font-size: 0.9rem;
    width: 50px;
}

.symbol-cell .symbol {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9rem;
}

.price-cell {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    white-space: nowrap;
}

.change-cell.positive {
    color: #10b981;
    font-weight: 600;
}

.change-cell.negative {
    color: #ef4444;
    font-weight: 600;
}

.score-cell {
    min-width: 100px;
}

.score-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.score-bar {
    flex: 1;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    border-radius: 3px;
}

.score-value {
    font-weight: 600;
    color: #1e293b;
    min-width: 35px;
    text-align: right;
    font-size: 0.85rem;
}

.trend-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    min-width: 90px;
    text-align: center;
    display: inline-block;
}

.trend-strong-uptrend { background: #d1fae5; color: #065f46; border: 1px solid #10b981; }
.trend-uptrend { background: #d1fae5; color: #047857; border: 1px solid #34d399; }
.trend-sideways { background: #fef3c7; color: #92400e; border: 1px solid #f59e0b; }
.trend-downtrend { background: #fee2e2; color: #991b1b; border: 1px solid #f87171; }
.trend-strong-downtrend { background: #fecaca; color: #7f1d1d; border: 1px solid #ef4444; }

.rsi-cell {
    text-align: center;
}

.rsi-value {
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.85rem;
    min-width: 35px;
    display: inline-block;
}

.rsi-value.oversold {
    background: #d1fae5;
    color: #065f46;
}

.rsi-value.overbought {
    background: #fee2e2;
    color: #991b1b;
}

.volume-cell {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    white-space: nowrap;
}

.action-cell {
    text-align: center;
}

.btn-analyze {
    padding: 6px 12px;
    background: #3b82f6;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: none;
    cursor: pointer;
}

.btn-analyze:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

/* Trade button (signals page) */
.btn-trade {
    padding: 7px 14px;
    border: none;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: white;
    background: linear-gradient(135deg, #10b981 0%, #84cc16 100%);
    transition: all 0.2s ease;
}

.btn-trade:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.25);
}

.signal-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    font-size: 0.82rem;
}

/* Signal text color (BUY green, SELL red, NEUTRAL muted) */
.signal-inline.buy { color: #16a34a; }
.signal-inline.sell { color: #dc2626; }
.signal-inline.neutral { color: #6b7280; }

.signal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.35);
}

.signal-dot.buy { background: #10b981; }
.signal-dot.neutral { background: #a855f7; }
.signal-dot.sell { background: #ef4444; }

/* Top Picks */
.top-picks-section {
    margin-bottom: 25px;
}

.top-picks-section h3 {
    color: #1e293b;
    margin-bottom: 18px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-picks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.top-pick-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 2px solid #e2e8f0;
    transition: all 0.2s ease;
}

.top-pick-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.top-pick-card:nth-child(1) { 
    border-color: #f59e0b;
}

.top-pick-card:nth-child(2) { 
    border-color: #94a3b8;
}

.top-pick-card:nth-child(3) { 
    border-color: #92400e;
}

.pick-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.pick-rank {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3b82f6;
}

.pick-symbol {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
}

.pick-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    margin-bottom: 15px;
    padding: 10px;
    background: #f8fafc;
    border-radius: 8px;
}

.pick-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 15px;
}

.pick-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    color: #64748b;
    font-size: 0.8rem;
}

.pick-stat .stat-value {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95rem;
}

.pick-actions {
    text-align: center;
}

/* Statistics Section */
.stats-section {
    margin-bottom: 25px;
}

.stats-section h3 {
    color: #1e293b;
    margin-bottom: 18px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #f1f5f9;
}

.stat-icon .success { color: #10b981; }
.stat-icon .danger { color: #ef4444; }
.stat-icon .warning { color: #f59e0b; }

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.stat-label {
    color: #64748b;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Error and No Results */
.error-message, .no-results {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.error-message i, .no-results i {
    color: #f59e0b;
    margin-bottom: 15px;
}

.error-message h3, .no-results h3 {
    color: #1e293b;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.error-message p, .no-results p {
    color: #64748b;
    margin-bottom: 20px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.9rem;
}

/* Quick Actions */
.quick-actions-section {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.quick-actions-section h2 {
    color: #1e293b;
    margin-bottom: 18px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.action-card {
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.action-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.action-card:nth-child(1) { border-top: 4px solid #10b981; }
.action-card:nth-child(2) { border-top: 4px solid #3b82f6; }
.action-card:nth-child(3) { border-top: 4px solid #f59e0b; }
.action-card:nth-child(4) { border-top: 4px solid #8b5cf6; }

.action-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #475569;
}

.action-card h3 {
    color: #1e293b;
    margin-bottom: 10px;
    font-size: 1rem;
}

.action-card p {
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Refresh Info */
.refresh-info {
    text-align: center;
    padding: 15px;
    background: #f1f5f9;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 0.85rem;
    color: #64748b;
}

.refresh-info i {
    color: #3b82f6;
    margin-right: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 1.3rem;
    }
    
    .header-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .coins-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .styles-info {
        grid-template-columns: 1fr;
    }
    
    .timeframe-grid {
        grid-template-columns: 1fr;
    }
    
    .recommendations-grid {
        grid-template-columns: 1fr;
    }
    
    .levels-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .indicators-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .top-picks-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .price {
        font-size: 1.5rem;
    }
    
    .results-table th,
    .results-table td {
        padding: 10px 12px;
        font-size: 0.8rem;
    }
    
    .signal-badge, .trend-badge {
        font-size: 0.7rem;
        padding: 4px 10px;
    }
    
    .btn-analyze {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
}

/* --------------------------------
   News corner widget
-------------------------------- */
.news-corner {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 340px;
    max-width: calc(100vw - 36px);
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    z-index: 9999;
    overflow: hidden;
}

.news-corner.minimized .news-corner-body {
    display: none;
}

.news-corner-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 700;
    color: #0f172a;
}

.news-corner-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #334155;
    width: 34px;
    height: 34px;
    border-radius: 10px;
}

.news-corner-toggle:hover {
    background: #e2e8f0;
}

.news-corner-body {
    padding: 10px 12px;
    max-height: 320px;
    overflow: auto;
}

.news-item {
    padding: 8px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item a {
    color: #0f172a;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.25;
    display: block;
}

.news-item a:hover {
    text-decoration: underline;
}

.news-meta {
    margin-top: 4px;
    font-size: 0.75rem;
    color: #64748b;
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .coins-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 8px;
    }
    
    .results-table {
        font-size: 0.75rem;
    }
    
    .results-table th,
    .results-table td {
        padding: 8px 10px;
    }
    
    .levels-grid,
    .indicators-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}


/* -----------------------------
   Pro features additions
------------------------------ */
.nav-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.nav-links a {
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 6px;
    background: #0ea5e9;
    color: #fff;
    font-weight: 600;
    font-size: 0.88rem;
}
.nav-links a:hover { background: #0284c7; }

.kpi-row{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    margin-top:10px;
}
.kpi{
    background:#f8fafc;
    border:1px solid #e2e8f0;
    border-radius:10px;
    padding:12px;
    min-width:180px;
}
.kpi .kpi-label{ color:#64748b; font-size:0.82rem; }
.kpi .kpi-value{ color:#0f172a; font-size:1.1rem; font-weight:700; margin-top:4px; }

.chart-card{
    background:white;
    border-radius:10px;
    padding:16px;
    box-shadow:0 2px 10px rgba(0,0,0,0.08);
    border:1px solid #e2e8f0;
    margin-top: 18px;
}
.chart-toolbar{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    align-items:center;
    margin-bottom:10px;
}
.chart-toolbar select, .chart-toolbar input{
    padding:8px 10px;
    border:1px solid #cbd5e1;
    border-radius:8px;
    font-size:0.9rem;
}
.chart-container{
    height: 420px;
    border-radius:10px;
    overflow:hidden;
    border:1px solid #e2e8f0;
}

.split-grid{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap:16px;
}
@media (max-width: 980px){
    .split-grid{ grid-template-columns: 1fr; }
}

.toast-area{
    position: fixed;
    top: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}
.toast{
    background: #0f172a;
    color: #fff;
    padding: 12px 14px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    max-width: 360px;
}
.toast .toast-title{ font-weight: 800; margin-bottom: 4px; }
.toast .toast-body{ opacity: 0.92; }
.toast.success{ background: #065f46; }
.toast.danger{ background: #7f1d1d; }
.toast.info{ background: #0c4a6e; }

.small-muted{
    color:#64748b;
    font-size:0.85rem;
}

.table-actions{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
}

.badge{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:4px 10px;
    border-radius:999px;
    font-size:0.78rem;
    font-weight:700;
    border:1px solid #e2e8f0;
    background:#f8fafc;
}
.badge.good{ color:#065f46; border-color:#bbf7d0; background:#ecfdf5; }
.badge.warn{ color:#7c2d12; border-color:#fed7aa; background:#fff7ed; }
.badge.bad{ color:#7f1d1d; border-color:#fecaca; background:#fef2f2; }
.badge.neutral{ color:#334155; }

.card{
    background:white;
    border-radius:10px;
    padding:18px;
    box-shadow:0 2px 10px rgba(0,0,0,0.08);
    border:1px solid #e2e8f0;
}
.card h2{ margin-bottom: 10px; }
.form-row{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    align-items:flex-end;
}
.form-row .form-group{ flex:1; min-width:200px; }



/* Auth / Billing UI additions */
.nav-user{
    margin-left: 10px;
    display:inline-flex;
    align-items:center;
    gap:8px;
    color:#0f172a;
    font-weight:700;
    font-size:0.9rem;
    white-space:nowrap;
}
.nav-logout{ display:inline; }
.nav-link-btn{
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    color: inherit;
    font: inherit;
}
.badge-admin{
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
}
.banner{
    margin: 12px auto;
    max-width: 1180px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}
.banner-warn{
    border-color:#fed7aa;
    background:#fff7ed;
    color:#7c2d12;
}
.banner-info{
    border-color:#bae6fd;
    background:#f0f9ff;
    color:#0c4a6e;
}
.banner a{
    margin-left: 10px;
    font-weight: 800;
    text-decoration: underline;
}
