/* ===== FOREX PREMIUM STYLES ===== */
.premium-gate {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 16px;
    border: 2px dashed #e8eaf0;
    margin: 20px 0;
}
.premium-gate .crown-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
}
.premium-gate h2 { font-size: 1.4rem; font-weight: 700; color: #1a1a2e; margin-bottom: 8px; }
.premium-gate p  { color: #666; font-size: 0.95rem; margin-bottom: 24px; }
.btn-upgrade {
    display: inline-block;
    background: #4f46e5;
    color: #fff;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s;
}
.btn-upgrade:hover { background: #4338ca; }

.premium-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid #e8eaf0;
    padding-bottom: 0;
    flex-wrap: wrap;
}
.premium-tab-btn {
    padding: 10px 18px;
    border: none;
    background: none;
    font-size: 0.9rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
}
.premium-tab-btn.active { color: #4f46e5; border-bottom-color: #4f46e5; font-weight: 600; }
.premium-tab-btn:hover:not(.active) { color: #1a1a2e; }

.premium-panel { display: none; }
.premium-panel.active { display: block; }

/* Alerts */
.alert-form {
    background: #f8f7ff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr auto;
    gap: 10px;
    align-items: end;
}
@media (max-width: 700px) { .alert-form { grid-template-columns: 1fr 1fr; } }

.alert-form label { font-size: 0.78rem; color: #555; margin-bottom: 4px; display: block; }
.alert-form input, .alert-form select {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    font-size: 0.88rem;
    background: #fff;
}
.btn-add-alert {
    background: #4f46e5;
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 9px 18px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.btn-add-alert:hover { background: #4338ca; }

.alerts-list { margin-top: 8px; }
.alert-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #e8eaf0;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 8px;
    font-size: 0.88rem;
}
.alert-row .pair { font-weight: 600; color: #1a1a2e; }
.alert-row .condition { color: #4f46e5; margin: 0 10px; }
.alert-row .rate-val { color: #065f46; font-weight: 600; }
.btn-del-alert {
    background: none;
    border: none;
    color: #dc2626;
    cursor: pointer;
    font-size: 1rem;
    padding: 4px 8px;
}

/* Trend Chart */
.trend-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.trend-controls select, .trend-controls input {
    padding: 8px 11px;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    font-size: 0.88rem;
}
.btn-load-trend {
    background: #4f46e5;
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 9px 18px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
}
.btn-load-trend:hover { background: #4338ca; }

.trend-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
@media (max-width: 600px) { .trend-stats { grid-template-columns: 1fr 1fr; } }
.stat-card {
    background: #f8f7ff;
    border-radius: 8px;
    padding: 14px;
    text-align: center;
}
.stat-card .stat-label { font-size: 0.75rem; color: #888; margin-bottom: 4px; }
.stat-card .stat-val   { font-size: 1.1rem; font-weight: 700; color: #1a1a2e; }

#trendChart {
    width: 100%;
    height: 280px;
    background: #fff;
    border: 1px solid #e8eaf0;
    border-radius: 10px;
}

/* Bank Rates */
.bank-rates-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.bank-rates-table th {
    background: #f4f6fb;
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    color: #444;
    border-bottom: 2px solid #e8eaf0;
}
.bank-rates-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #f0f0f0;
    color: #1a1a2e;
}
.bank-rates-table tr:last-child td { border-bottom: none; }
.bank-rates-table tr:hover td { background: #f8f7ff; }
.parallel-rate-note {
    margin-top: 14px;
    padding: 10px 14px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    font-size: 0.83rem;
    color: #92400e;
}

/* Portfolio */
.portfolio-form {
    background: #f8f7ff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 10px;
    align-items: end;
}
@media (max-width: 700px) { .portfolio-form { grid-template-columns: 1fr 1fr; } }
.portfolio-form label { font-size: 0.78rem; color: #555; margin-bottom: 4px; display: block; }
.portfolio-form input, .portfolio-form select {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    font-size: 0.88rem;
}
.btn-add-holding {
    background: #4f46e5;
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 9px 18px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
}
.btn-add-holding:hover { background: #4338ca; }

.portfolio-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.portfolio-table th {
    background: #f4f6fb;
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    color: #444;
    border-bottom: 2px solid #e8eaf0;
}
.portfolio-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #f0f0f0;
}
.portfolio-table tr:last-child td { border-bottom: none; }
.portfolio-total {
    margin-top: 12px;
    text-align: right;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a2e;
}

/* AI Briefing */
.briefing-box {
    background: #fff;
    border: 1px solid #e8eaf0;
    border-radius: 12px;
    padding: 28px;
    line-height: 1.75;
    font-size: 0.93rem;
    color: #1a1a2e;
    white-space: pre-wrap;
    min-height: 120px;
}
.briefing-meta {
    font-size: 0.78rem;
    color: #aaa;
    margin-top: 12px;
    text-align: right;
}
.btn-refresh-briefing {
    background: #f4f6fb;
    color: #4f46e5;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    padding: 9px 18px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 16px;
}
.btn-refresh-briefing:hover { background: #ede9fe; }
.btn-refresh-briefing:disabled { opacity: 0.5; cursor: not-allowed; }

/* Shared */
.premium-section-header {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 16px;
}
.empty-state { text-align: center; padding: 32px; color: #aaa; font-size: 0.9rem; }
.prem-msg { padding: 10px 14px; border-radius: 7px; margin-bottom: 14px; font-size: 0.87rem; display: none; }
.prem-msg.success { background: #ecfdf5; color: #065f46; border: 1px solid #6ee7b7; display: block; }
.prem-msg.error   { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; display: block; }
.prem-msg.info    { background: #eff6ff; color: #1e40af; border: 1px solid #93c5fd; display: block; }
