/* ===== Diamond Capital — Luxury Black & Gold Theme ===== */
:root {
    --gold: #c9a227;
    --gold-light: #f0d78c;
    --gold-bright: #ffe08a;
    --gold-dark: #8b6914;
    --gold-deep: #5c4510;
    --gold-glow: rgba(201, 162, 39, 0.35);
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-card: #111111;
    --bg-card-hover: #1a1a1a;
    --text-primary: #f5f5f5;
    --text-secondary: #b8b8b8;
    --text-muted: #777777;
    --border: rgba(201, 162, 39, 0.22);
    --border-strong: rgba(201, 162, 39, 0.45);
    --success: #3ecf6e;
    --danger: #e85d5d;
    --warning: #e6b422;
    --info: #5ba3e0;
    --radius: 12px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    --shadow-gold: 0 4px 24px rgba(201, 162, 39, 0.15);
    --font: 'Tajawal', 'Segoe UI', sans-serif;
    --font-brand: 'Cinzel', 'Times New Roman', serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    direction: rtl;
}

/* Background pattern */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 0%, rgba(201, 162, 39, 0.07) 0%, transparent 45%),
        radial-gradient(ellipse at 85% 100%, rgba(201, 162, 39, 0.04) 0%, transparent 45%),
        linear-gradient(180deg, #000 0%, #050505 50%, #000 100%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* ===== Header ===== */
.header {
    padding: 14px 0 12px;
    border-bottom: 1px solid var(--border-strong);
    backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.94);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header-shell {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.header-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 16px;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}

.header-price-row {
    display: flex;
    justify-content: flex-start;
}

.header-price-row .price-badge {
    width: 100%;
    max-width: 420px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

/* Brand lockup */
.brand-lockup {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.brand-lockup:hover .brand-logo-img {
    filter: drop-shadow(0 0 12px var(--gold-glow));
}

.brand-logo-img {
    height: 64px;
    width: auto;
    max-width: 96px;
    object-fit: contain;
    filter: drop-shadow(0 2px 10px rgba(201, 162, 39, 0.3));
    transition: filter 0.25s ease;
    flex-shrink: 0;
}

.brand-meta {
    min-width: 0;
}

.brand-tagline {
    display: block;
    font-family: var(--font);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--gold-light);
    margin-bottom: 4px;
    line-height: 1.3;
}

.brand-page-title {
    font-size: 1.15rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
    margin: 0;
}

.brand-page-sub {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.45;
    font-weight: 500;
}

/* Legacy logo class fallback */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: var(--shadow-gold);
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.price-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(145deg, #111, #0a0a0a);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 12px 20px;
    box-shadow: var(--shadow-gold);
    transition: border-color 0.3s;
}

.price-badge.live-up {
    border-color: rgba(34, 197, 94, 0.5);
}

.price-badge.live-down {
    border-color: rgba(239, 68, 68, 0.5);
}

.price-badge-content {
    flex: 1;
}

.label-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2px;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--success);
    background: rgba(34, 197, 94, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
}

.live-dot {
    width: 7px;
    height: 7px;
    background: var(--success);
    border-radius: 50%;
    animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.value-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.price-change {
    font-size: 0.85rem;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.3s;
}

.price-change.visible {
    opacity: 1;
}

.price-change.up { color: var(--success); }
.price-change.down { color: var(--danger); }

.price-badge .value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold);
    transition: color 0.2s;
}

.price-badge .value.flash-up {
    color: var(--success);
}

.price-badge .value.flash-down {
    color: var(--danger);
}

.price-badge .label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.price-badge .unit {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.price-badge .refresh-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px;
    transition: color 0.2s, transform 0.3s;
}

.price-badge .refresh-btn:hover {
    color: var(--gold);
}

.price-badge .refresh-btn.spinning {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Main Layout ===== */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 24px;
    padding: 32px 0;
}

@media (max-width: 900px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Cards ===== */
.card {
    background: linear-gradient(160deg, #121212 0%, #0c0c0c 100%);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.15), transparent 40%, rgba(201, 162, 39, 0.08));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gold-light);
    font-family: var(--font);
}

.card-title .icon {
    font-size: 1.2rem;
}

/* ===== Quick Chips ===== */
.quick-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.chip {
    padding: 10px 18px;
    border-radius: 24px;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.chip:hover {
    border-color: var(--gold);
    background: var(--bg-card-hover);
    transform: translateY(-1px);
}

.chip-scalp {
    border-color: rgba(212, 168, 83, 0.4);
    background: rgba(212, 168, 83, 0.1);
    color: var(--gold-light);
}

.chip-scalp:hover {
    background: rgba(212, 168, 83, 0.2);
    box-shadow: 0 4px 12px rgba(212, 168, 83, 0.2);
}

.chip-h1 {
    border-color: rgba(59, 130, 246, 0.45);
    background: rgba(59, 130, 246, 0.1);
    color: #93c5fd;
}

.chip-h1:hover {
    background: rgba(59, 130, 246, 0.2);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.chip-h4 {
    border-color: rgba(168, 85, 247, 0.45);
    background: rgba(168, 85, 247, 0.1);
    color: #c4b5fd;
}

.chip-h4:hover {
    background: rgba(168, 85, 247, 0.2);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.2);
}

.chip-primary {
    background: linear-gradient(135deg, rgba(212, 168, 83, 0.2), rgba(184, 134, 11, 0.15));
    border-color: var(--gold-dark);
}

.request-card textarea {
    font-size: 1.05rem;
    min-height: 90px;
}

/* Trade meta bar */
.trade-meta-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

@media (max-width: 600px) {
    .trade-meta-bar {
        grid-template-columns: 1fr;
    }
}

.meta-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}

.meta-item.highlight {
    border-color: var(--gold-dark);
    background: rgba(212, 168, 83, 0.08);
}

.meta-item .meta-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.meta-item .meta-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold-light);
}

.timeframe-reason {
    background: var(--bg-secondary);
    border-right: 3px solid var(--gold);
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.timeframe-reason strong {
    color: var(--gold-light);
}

/* ===== Form ===== */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-group .hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

input, select, textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.15);
}

textarea {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 500px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold), var(--gold-dark));
    color: #000;
    font-weight: 800;
    margin-top: 8px;
    border: 1px solid var(--gold-light);
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(201, 162, 39, 0.45);
    filter: brightness(1.05);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== News Section ===== */
.news-list {
    max-height: 280px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--gold-dark) var(--bg-secondary);
}

.news-item {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

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

.news-item:hover {
    background: var(--bg-card-hover);
}

.news-item h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.5;
}

.news-item p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.news-item .meta {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ===== Results ===== */
.results-placeholder {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.results-placeholder .icon {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.3;
}

.results-placeholder h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

/* Sentiment badge */
.sentiment-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
}

.sentiment-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
}

.sentiment-badge.bullish {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.sentiment-badge.bearish {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.sentiment-badge.neutral {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.confidence-meter {
    flex: 1;
}

.confidence-meter .bar-bg {
    height: 8px;
    background: var(--bg-primary);
    border-radius: 4px;
    overflow: hidden;
}

.confidence-meter .bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.8s ease;
}

.confidence-meter .label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Trade setup cards */
.trade-direction {
    text-align: center;
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.trade-direction.buy {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.05));
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.trade-direction.sell {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.trade-direction.wait {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.trade-direction .dir-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.trade-direction .dir-value {
    font-size: 2rem;
    font-weight: 800;
}

.trade-direction.buy .dir-value { color: var(--success); }
.trade-direction.sell .dir-value { color: var(--danger); }
.trade-direction.wait .dir-value { color: var(--warning); }

.trade-levels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.level-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px;
    text-align: center;
}

.level-card .level-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.level-card .level-value {
    font-size: 1.15rem;
    font-weight: 700;
}

.level-card.entry .level-value { color: var(--info); }
.level-card.stop-loss .level-value { color: var(--danger); }
.level-card.tp .level-value { color: var(--success); }
.level-card.rr .level-value { color: var(--gold); }

/* Analysis sections */
.analysis-section {
    margin-bottom: 20px;
}

.analysis-section h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gold-light);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.analysis-section p, .analysis-section ul {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.analysis-section ul {
    list-style: none;
    padding: 0;
}

.analysis-section ul li {
    padding: 4px 0;
    padding-right: 16px;
    position: relative;
}

.analysis-section ul li::before {
    content: '•';
    position: absolute;
    right: 0;
    color: var(--gold);
}

.key-levels-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.key-level-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--bg-secondary);
    border-radius: 6px;
    font-size: 0.85rem;
}

.key-level-item .kl-label {
    color: var(--text-muted);
}

.key-level-item .kl-value {
    font-weight: 700;
}

/* Market performance & professional analysis */
.market-perf-card {
    margin-bottom: 20px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(17, 24, 39, 0.9));
    border: 1px solid var(--border);
    border-radius: 12px;
}

.market-perf-title,
.pro-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--gold-light);
    margin-bottom: 12px;
}

.market-perf-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

@media (max-width: 900px) {
    .market-perf-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.perf-stat {
    padding: 10px 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid rgba(42, 53, 72, 0.6);
}

.perf-label {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.perf-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.perf-value.up { color: var(--success); }
.perf-value.down { color: var(--danger); }

.perf-value small {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
}

.market-perf-summary {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.market-perf-extra {
    margin-top: 10px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.frames-market-perf .market-perf-grid {
    margin-top: 8px;
}

.pro-analysis-card {
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
}

.pro-analysis-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 8px;
}

.pro-list {
    list-style: none;
    padding: 0;
    margin: 8px 0;
}

.pro-list li {
    padding: 4px 0 4px 16px;
    position: relative;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.pro-list li::before {
    content: '▸';
    position: absolute;
    right: 0;
    color: var(--gold);
}

.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 12px;
}

@media (max-width: 768px) {
    .scenarios-grid {
        grid-template-columns: 1fr;
    }
}

.scenario {
    padding: 12px;
    border-radius: 8px;
    font-size: 0.85rem;
}

.scenario strong {
    display: block;
    margin-bottom: 6px;
    font-size: 0.8rem;
}

.scenario p {
    margin: 0;
    line-height: 1.6;
    color: var(--text-secondary);
}

.scenario.bull {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.scenario.bull strong { color: var(--success); }

.scenario.bear {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.scenario.bear strong { color: var(--danger); }

.scenario.wait {
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.scenario.wait strong { color: var(--text-muted); }

.tf-action {
    border-right: 3px solid var(--gold);
    padding-right: 10px;
}

.disclaimer {
    margin-top: 20px;
    padding: 12px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

/* ===== Loading ===== */
.loading-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(6px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-text {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* ===== Error ===== */
.error-box {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius);
    padding: 16px;
    color: var(--danger);
    text-align: center;
    margin-bottom: 16px;
}

/* ===== Price Alerts ===== */
.alerts-card .btn-notify {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gold-dark);
    border-radius: 8px;
    background: rgba(212, 168, 83, 0.1);
    color: var(--gold-light);
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.alerts-card .btn-notify:hover {
    background: rgba(212, 168, 83, 0.2);
}

.alerts-card .btn-notify.notify-enabled {
    border-color: var(--success);
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
}

.notify-status {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.alert-btns-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.btn-secondary {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-family: var(--font);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold-light);
}

.btn-alert-add {
    padding: 10px 14px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #0a0e17;
    font-family: var(--font);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-alert-add:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 168, 83, 0.3);
}

.alerts-header {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: 600;
}

.alerts-list {
    max-height: 220px;
    overflow-y: auto;
}

.alerts-empty {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 16px;
}

.alert-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    transition: border-color 0.2s;
}

.alert-item.is-triggered {
    border-color: rgba(34, 197, 94, 0.4);
    background: rgba(34, 197, 94, 0.05);
}

.alert-main {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.alert-type {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gold-light);
    background: rgba(212, 168, 83, 0.15);
    padding: 2px 8px;
    border-radius: 6px;
}

.alert-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--gold);
}

.alert-status {
    font-size: 0.75rem;
    margin-right: auto;
}

.alert-status.active { color: var(--warning); }
.alert-status.triggered { color: var(--success); }

.alert-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.alert-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    justify-content: flex-end;
}

.btn-alert-delete,
.btn-alert-reset {
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-alert-delete:hover {
    border-color: var(--danger);
    color: var(--danger);
}

.btn-alert-reset:hover {
    border-color: var(--success);
    color: var(--success);
}

.btn-alert-reset:hover {
    border-color: var(--success);
    color: var(--success);
}

/* ===== Trade Journal ===== */
.trades-section {
    padding: 0 0 32px;
}

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

.trades-journal-header .card-title {
    margin-bottom: 0;
}

.trades-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .trades-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

.stat-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
}

.stat-box .stat-num {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--gold);
}

.stat-box .stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.stat-box.pending .stat-num { color: var(--warning); }
.stat-box.achieved .stat-num { color: var(--success); }
.stat-box.stopped .stat-num { color: var(--danger); }

.trades-list {
    max-height: 500px;
    overflow-y: auto;
}

.trades-empty,
.trades-error {
    text-align: center;
    color: var(--text-muted);
    padding: 24px;
    font-size: 0.9rem;
}

.trades-error { color: var(--danger); }

.trade-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 10px;
    border-right: 4px solid var(--border);
}

.trade-card.pending { border-right-color: var(--warning); }
.trade-card.achieved { border-right-color: var(--success); }
.trade-card.stopped { border-right-color: var(--danger); }

.trade-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.trade-id {
    font-weight: 800;
    color: var(--gold);
}

.trade-status-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
}

.trade-status-badge.pending {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.trade-status-badge.achieved {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.trade-status-badge.stopped {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.trade-dir {
    font-size: 0.85rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
}

.trade-dir.buy { background: rgba(34, 197, 94, 0.15); color: var(--success); }
.trade-dir.sell { background: rgba(239, 68, 68, 0.15); color: var(--danger); }

.trade-tf {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-right: auto;
}

.trade-levels-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

@media (max-width: 700px) {
    .trade-levels-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

.trade-levels-row div {
    background: var(--bg-primary);
    border-radius: 6px;
    padding: 8px;
    text-align: center;
}

.trade-levels-row small {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.trade-levels-row strong { font-size: 0.95rem; }
.trade-levels-row .sl { color: var(--danger); }
.trade-levels-row .tp { color: var(--success); }
.trade-levels-row .tp.tp-hit { color: var(--success); text-decoration: underline; }

.trade-target-hits,
.analysis-target-hits {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 10px 0 14px;
}

.target-achieved-msg {
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: var(--success);
    font-size: 0.9rem;
    font-weight: 600;
}

.analysis-target-hits:empty {
    display: none;
}

.trade-summary {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.6;
}

.trade-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.btn-trade-delete {
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font);
    font-size: 0.75rem;
    cursor: pointer;
}

.btn-trade-delete:hover {
    border-color: var(--danger);
    color: var(--danger);
    background: rgba(239, 68, 68, 0.08);
}

/* Lot P&L table */
.lot-pl-wrap {
    margin: 12px 0;
    padding: 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.lot-pl-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--gold-light);
    margin-bottom: 10px;
}

.lot-pl-title small {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.72rem;
}

.lot-pl-table-scroll {
    overflow-x: auto;
}

.lot-pl-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.lot-pl-table th,
.lot-pl-table td {
    padding: 8px 10px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.lot-pl-table th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.72rem;
    white-space: nowrap;
}

.lot-pl-table td.pl-loss { color: var(--danger); }
.lot-pl-table td.pl-profit { color: var(--success); }
.lot-pl-table td.pl-actual-loss {
    color: #fff;
    background: rgba(239, 68, 68, 0.25);
    font-weight: 800;
    border-radius: 4px;
}
.lot-pl-table td.pl-actual-profit {
    color: #fff;
    background: rgba(34, 197, 94, 0.25);
    font-weight: 800;
    border-radius: 4px;
}

/* Delete confirmation modal */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

body.modal-open {
    overflow: hidden;
}

.modal-box {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.25s ease;
}

.modal-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.modal-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.modal-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-actions .btn {
    flex: 1;
    max-width: 180px;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-family: var(--font);
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-danger:hover {
    opacity: 0.9;
}

/* ===== Footer ===== */
.footer {
    text-align: center;
    padding: 36px 24px;
    border-top: 1px solid var(--border-strong);
    background: linear-gradient(180deg, transparent, rgba(201, 162, 39, 0.03));
    color: var(--text-muted);
    font-size: 0.8rem;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-logo {
    height: 56px;
    width: auto;
    opacity: 0.95;
    filter: drop-shadow(0 2px 12px rgba(201, 162, 39, 0.2));
    margin-bottom: 4px;
}

.footer-brand {
    font-family: var(--font-brand);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.footer-tagline {
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gold-light);
    margin: 0;
}

.footer-copy {
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: 3px;
}

/* ===== Header Nav ===== */
.header-nav {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 4px;
    border-radius: 12px;
    background: rgba(201, 162, 39, 0.04);
    border: 1px solid rgba(201, 162, 39, 0.12);
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid transparent;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-icon {
    font-size: 0.95rem;
    line-height: 1;
}

.nav-link:hover,
.nav-link.active {
    border-color: rgba(201, 162, 39, 0.45);
    color: var(--gold-light);
    background: rgba(201, 162, 39, 0.12);
    box-shadow: 0 0 16px rgba(201, 162, 39, 0.1);
}

/* ===== User Menu ===== */
.user-menu {
    position: relative;
}

.user-menu-trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: linear-gradient(145deg, rgba(201, 162, 39, 0.1), rgba(0, 0, 0, 0.4));
    color: var(--gold-light);
    cursor: pointer;
    font-family: var(--font);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.user-menu-trigger:hover,
.user-menu.open .user-menu-trigger {
    border-color: var(--gold);
    box-shadow: 0 0 18px rgba(201, 162, 39, 0.15);
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-dark));
    color: #1a1200;
    font-weight: 800;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.user-menu-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    text-align: right;
}

.user-menu-name {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--gold-light);
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu-role {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.user-menu-chevron {
    color: var(--gold);
    font-size: 0.8rem;
    transition: transform 0.2s;
}

.user-menu.open .user-menu-chevron {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 240px;
    background: linear-gradient(165deg, #14100a, #0a0a0a);
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    z-index: 300;
    overflow: hidden;
}

.user-menu.open .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-head {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(201, 162, 39, 0.15);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-dropdown-head strong {
    color: var(--gold-light);
    font-size: 0.92rem;
}

.user-dropdown-head span {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.user-dropdown-quota {
    margin-top: 4px;
    color: var(--gold) !important;
    font-size: 0.75rem !important;
}

.user-dropdown-links {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-dropdown-item {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}

.user-dropdown-item:hover {
    background: rgba(201, 162, 39, 0.1);
    color: var(--gold-light);
}

.user-dropdown-logout {
    color: #f5a5a5;
    border-top: 1px solid rgba(201, 162, 39, 0.1);
    margin-top: 4px;
    padding-top: 12px;
    border-radius: 0 0 8px 8px;
}

.user-dropdown-logout:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ffb4b4;
}

/* ===== Profile Page ===== */
.profile-page {
    padding: 28px 0 48px;
}

.profile-hero {
    margin-bottom: 20px;
    padding: 24px;
}

.profile-hero-main {
    display: flex;
    align-items: center;
    gap: 18px;
}

.profile-avatar-lg {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-dark));
    color: #1a1200;
    font-size: 1.8rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: var(--shadow-gold);
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gold-light);
    margin: 0 0 4px;
}

.profile-username {
    color: var(--text-muted);
    margin: 0 0 10px;
    font-size: 0.9rem;
}

.profile-role-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    border: 1px solid var(--border-strong);
    background: rgba(201, 162, 39, 0.1);
    color: var(--gold-light);
}

.profile-role-badge.admin {
    border-color: var(--gold);
}

.profile-role-badge.demo {
    border-color: rgba(59, 130, 246, 0.45);
    color: #93c5fd;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.profile-card {
    padding: 22px;
}

.profile-empty {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.profile-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.profile-status.active {
    background: rgba(62, 207, 110, 0.1);
    border: 1px solid rgba(62, 207, 110, 0.35);
    color: var(--success);
}

.profile-status.expired {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: var(--danger);
}

.profile-status.unlimited {
    background: rgba(201, 162, 39, 0.1);
    border: 1px solid var(--border-strong);
    color: var(--gold-light);
}

.profile-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.profile-kv {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(201, 162, 39, 0.1);
    font-size: 0.9rem;
}

.profile-kv span {
    color: var(--text-muted);
}

.profile-kv strong {
    color: var(--gold-light);
}

.profile-progress-wrap {
    margin-top: 16px;
}

.profile-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.profile-progress-bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(201, 162, 39, 0.12);
    overflow: hidden;
}

.profile-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-bright));
}

.profile-stat-unlimited {
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    border: 1px dashed var(--border-strong);
    color: var(--gold-light);
    font-weight: 700;
}

.profile-usage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.profile-usage-box {
    padding: 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(201, 162, 39, 0.04);
    text-align: center;
}

.profile-usage-num {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--gold-light);
    margin-bottom: 4px;
}

.profile-usage-label {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.profile-usage-rem {
    display: block;
    margin-top: 6px;
    font-size: 0.75rem;
    color: var(--gold);
}

.profile-limits {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.profile-limits p {
    margin: 6px 0;
}

.profile-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.profile-actions .btn {
    width: auto;
    min-width: 160px;
}

.price-badge.compact {
    padding: 10px 16px;
}

.price-badge.compact .value {
    font-size: 1.2rem;
}

/* ===== News Impact Page ===== */
.news-page {
    padding: 24px 0 48px;
}

.news-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.news-updated {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.news-section {
    margin-top: 24px;
}

.section-hint {
    margin-bottom: 16px;
}

.sentiment-overview {
    margin-bottom: 8px;
}

.sentiment-overview-body {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.sentiment-score-ring {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
    border: 4px solid var(--border);
    flex-shrink: 0;
}

.sentiment-score-ring.bullish,
.sentiment-score-ring.bullish-light {
    border-color: var(--success);
    color: var(--success);
    background: rgba(34, 197, 94, 0.1);
}

.sentiment-score-ring.bearish,
.sentiment-score-ring.bearish-light {
    border-color: var(--danger);
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

.sentiment-score-ring.neutral {
    border-color: var(--warning);
    color: var(--warning);
}

.sentiment-details {
    flex: 1;
    min-width: 240px;
}

.sentiment-label {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.sentiment-sub {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 14px;
}

.sentiment-bar-wide {
    position: relative;
    height: 10px;
    background: var(--bg-secondary);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 8px;
}

.sentiment-bar-center {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--text-muted);
    transform: translateX(-50%);
    z-index: 2;
}

.sentiment-bar-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.5s ease;
}

.sentiment-bar-fill.bullish,
.sentiment-bar-fill.bullish-light {
    background: linear-gradient(90deg, transparent, var(--success));
}

.sentiment-bar-fill.bearish,
.sentiment-bar-fill.bearish-light {
    background: linear-gradient(270deg, transparent, var(--danger));
}

.sentiment-legend {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.sentiment-legend .bear { color: var(--danger); }
.sentiment-legend .bull { color: var(--success); }

.news-counts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.count-pill {
    padding: 6px 12px;
    border-radius: 20px;
    background: var(--bg-secondary);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.count-pill.bull { color: var(--success); background: rgba(34, 197, 94, 0.12); }
.count-pill.bear { color: var(--danger); background: rgba(239, 68, 68, 0.12); }

.impact-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.filter-chip {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-chip:hover,
.filter-chip.active {
    border-color: var(--gold);
    color: var(--gold-light);
    background: rgba(212, 168, 83, 0.12);
}

.impact-news-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.impact-news-card {
    padding: 16px 18px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    border-right: 4px solid var(--border);
    transition: background 0.2s;
}

.impact-news-card:hover {
    background: var(--bg-card-hover);
}

.impact-news-card.bullish { border-right-color: var(--success); }
.impact-news-card.bullish-light { border-right-color: rgba(34, 197, 94, 0.5); }
.impact-news-card.bearish { border-right-color: var(--danger); }
.impact-news-card.bearish-light { border-right-color: rgba(239, 68, 68, 0.5); }
.impact-news-card.neutral { border-right-color: var(--warning); }

.impact-news-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.impact-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
}

.impact-badge.bullish,
.impact-badge.bullish-light {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.impact-badge.bearish,
.impact-badge.bearish-light {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.impact-badge.neutral {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.impact-category {
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 3px 8px;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.upcoming-tag {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(59, 130, 246, 0.15);
    color: var(--info);
}

.impact-news-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 8px;
}

.impact-news-summary {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.6;
}

.impact-reason {
    font-size: 0.85rem;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(212, 168, 83, 0.08);
    border: 1px solid rgba(212, 168, 83, 0.2);
    line-height: 1.6;
    margin-bottom: 10px;
}

.impact-reason strong {
    color: var(--gold-light);
}

.impact-news-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.impact-strength {
    color: var(--text-secondary);
}

.news-read-more {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
}

.news-read-more:hover {
    text-decoration: underline;
}

.news-loading,
.news-empty,
.news-error {
    text-align: center;
    padding: 32px;
    color: var(--text-muted);
}

.news-error {
    color: var(--danger);
}

.news-disclaimer {
    margin-top: 28px;
    padding: 14px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

@media (max-width: 768px) {
    .header-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .header-nav {
        justify-content: center;
        order: 3;
    }

    .header-actions {
        justify-content: center;
        order: 2;
    }

    .brand-lockup {
        order: 1;
        justify-content: center;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

    .user-menu-text {
        display: none;
    }

    .sentiment-overview-body {
        flex-direction: column;
        text-align: center;
    }

    .tf-analysis-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== Multi-Timeframe Analysis Page ===== */
.frames-page {
    padding: 24px 0 48px;
}

.frames-toolbar {
    margin-bottom: 20px;
    padding: 16px 20px;
}

.frames-toolbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}

.frames-updated {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.frames-visibility {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.tf-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.tf-toggle input {
    display: none;
}

.tf-toggle.active {
    border-color: var(--gold);
    background: rgba(212, 168, 83, 0.12);
    color: var(--gold-light);
}

.frames-quick-actions {
    display: flex;
    gap: 8px;
}

.btn-ghost {
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 0.85rem;
    cursor: pointer;
}

.btn-ghost:hover {
    border-color: var(--gold);
    color: var(--gold-light);
}

.frames-overall {
    margin-bottom: 20px;
}

.overall-bias {
    font-size: 1.2rem;
    font-weight: 800;
    margin: 12px 0 8px;
}

.overall-bias.bull { color: var(--success); }
.overall-bias.bear { color: var(--danger); }
.overall-bias.neutral { color: var(--warning); }

.overall-summary,
.overall-best {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 6px;
}

.frames-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tf-panel {
    transition: opacity 0.25s, max-height 0.3s;
    overflow: hidden;
}

.tf-panel.tf-hidden {
    display: none;
}

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

.btn-tf-hide {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font);
    font-size: 0.8rem;
    cursor: pointer;
    flex-shrink: 0;
}

.btn-tf-hide:hover {
    border-color: var(--danger);
    color: var(--danger);
}

.tf-chart-wrap {
    height: 320px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 14px;
    background: var(--bg-secondary);
    position: relative;
}

.chart-loading,
.tf-chart-wrap .chart-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.chart-canvas {
    width: 100%;
    height: 280px;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    padding: 8px 12px;
    background: rgba(10, 14, 23, 0.85);
    border-bottom: 1px solid var(--border);
    font-size: 0.75rem;
    font-weight: 600;
}

.chart-legend .cl-support { color: var(--success); }
.chart-legend .cl-resist { color: var(--danger); }

.chart-legend .cl-live {
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.chart-legend .cl-live-on {
    color: #38bdf8;
}

.chart-legend .cl-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #64748b;
    display: inline-block;
}

.chart-legend .cl-live-on .cl-live-dot {
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.8);
    animation: live-pulse 1.5s ease-in-out infinite;
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}

.chart-legend .cl-live-price {
    color: #f8fafc;
    font-weight: 600;
}

.tf-analysis {
    padding-top: 4px;
}

.tf-loading,
.tf-error {
    text-align: center;
    color: var(--text-muted);
    padding: 16px;
}

.tf-error { color: var(--danger); }

.tf-analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.tf-stat {
    padding: 10px;
    border-radius: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    text-align: center;
}

.tf-stat-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.tf-stat-value {
    font-weight: 700;
    font-size: 0.95rem;
}

.tf-stat-value.bull,
.tf-stat-value.support { color: var(--success); }
.tf-stat-value.bear,
.tf-stat-value.resistance { color: var(--danger); }
.tf-stat-value.neutral { color: var(--warning); }

.tf-signal {
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(201, 162, 39, 0.08);
    border: 1px solid rgba(201, 162, 39, 0.25);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.tf-summary {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ===== Brand responsive ===== */
@media (max-width: 768px) {
    .brand-logo-img {
        height: 68px;
        max-width: 96px;
    }

    .brand-page-title {
        font-size: 1rem;
    }

    .brand-tagline {
        font-size: 1.05rem;
    }

    .brand-page-sub {
        font-size: 0.85rem;
    }

    .header-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .header-nav {
        justify-content: center;
    }

    .header-actions {
        justify-content: center;
    }

    .header-price-row .price-badge {
        max-width: none;
    }

    .price-badge {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .brand-lockup {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

/* ===== Auth / Login ===== */
.auth-page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    overflow-y: auto;
    color-scheme: dark;
    color: var(--gold-light);
}

.auth-wrap {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.auth-card {
    background: linear-gradient(165deg, #14100a 0%, #0a0a0a 50%, #0d0b07 100%);
    border: 1px solid var(--border-strong);
    border-radius: 18px;
    padding: 32px 28px 36px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(201, 162, 39, 0.12);
}

.auth-logo-img {
    display: block;
    height: 80px !important;
    max-height: 80px !important;
    max-width: 120px !important;
    width: auto !important;
    margin: 0 auto 20px;
    object-fit: contain;
    filter: drop-shadow(0 4px 20px rgba(201, 162, 39, 0.35));
}

.auth-title {
    font-family: var(--font-brand);
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
    color: var(--gold-light);
    letter-spacing: 0.03em;
}

.auth-sub {
    color: rgba(240, 215, 140, 0.8);
    text-align: center;
    font-size: 0.88rem;
    margin-bottom: 20px;
}

.auth-note {
    text-align: center;
    font-size: 0.82rem;
    color: rgba(201, 162, 39, 0.9);
    margin-bottom: 20px;
    line-height: 1.65;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(201, 162, 39, 0.08);
    border: 1px solid rgba(201, 162, 39, 0.25);
}

.auth-form {
    text-align: right;
}

.auth-form .form-group {
    margin-bottom: 16px;
}

.auth-form .form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--gold-light) !important;
    -webkit-text-fill-color: var(--gold-light) !important;
    font-weight: 600;
    font-size: 0.9rem;
}

.auth-form input[type="text"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 13px 15px;
    background: #0f0d08 !important;
    border: 1px solid rgba(201, 162, 39, 0.5) !important;
    border-radius: 10px;
    color: var(--gold-bright) !important;
    -webkit-text-fill-color: var(--gold-bright) !important;
    caret-color: var(--gold);
    font-family: var(--font);
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-form input::placeholder {
    color: rgba(201, 162, 39, 0.45) !important;
    -webkit-text-fill-color: rgba(201, 162, 39, 0.45) !important;
    opacity: 1;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--gold) !important;
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2) !important;
}

.auth-form input:-webkit-autofill,
.auth-form input:-webkit-autofill:hover,
.auth-form input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--gold-bright) !important;
    -webkit-box-shadow: 0 0 0 1000px #0f0d08 inset !important;
    box-shadow: 0 0 0 1000px #0f0d08 inset !important;
    border: 1px solid rgba(201, 162, 39, 0.5) !important;
    color: var(--gold-bright) !important;
}

.auth-form .btn-primary {
    width: 100%;
    margin-top: 10px;
    padding: 14px;
    font-size: 1rem;
    color: #1a1200 !important;
    -webkit-text-fill-color: #1a1200 !important;
}

.auth-alert {
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.88rem;
    text-align: center;
}

.auth-alert.error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #f5a5a5;
}

.auth-alert.warn {
    background: rgba(201, 162, 39, 0.12);
    border: 1px solid rgba(201, 162, 39, 0.4);
    color: var(--gold-bright);
}

.auth-hint {
    margin-top: 20px;
    text-align: center;
    font-size: 0.78rem;
    color: rgba(201, 162, 39, 0.65);
    line-height: 1.75;
}

.auth-hint code {
    color: var(--gold-bright) !important;
    -webkit-text-fill-color: var(--gold-bright) !important;
    background: rgba(201, 162, 39, 0.12);
    border: 1px solid rgba(201, 162, 39, 0.22);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Consolas', 'Courier New', monospace;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 24px 18px 28px;
    }

    .auth-logo-img {
        height: 68px !important;
        max-height: 68px !important;
    }

    .auth-title {
        font-size: 1.3rem;
    }
}

/* ===== Quota badge ===== */
.quota-badge {
    display: flex;
    align-items: center;
}

.quota-pill {
    padding: 8px 14px;
    border-radius: 20px;
    border: 1px solid var(--border-strong);
    background: rgba(201, 162, 39, 0.08);
    font-size: 0.78rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.quota-pill strong {
    color: var(--gold-light);
}

.quota-pill.unlimited {
    color: var(--gold-light);
    border-color: var(--gold);
}

.nav-logout {
    border-color: rgba(239, 68, 68, 0.35) !important;
    color: #f0a0a0 !important;
}

/* ===== Admin panel ===== */
.admin-page {
    padding: 24px 0 48px;
}

.admin-form-card,
.admin-users-card,
.admin-info-card {
    padding: 22px;
}

.admin-page .header-row {
    grid-template-columns: minmax(0, 1fr) auto;
}

.admin-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 960px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }
}

.admin-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.admin-msg {
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 14px;
    font-size: 0.88rem;
}

.admin-msg.success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: var(--success);
}

.admin-msg.error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: var(--danger);
}

.admin-users-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 620px;
    overflow-y: auto;
}

.admin-user-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
    border-right: 4px solid var(--border);
}

.admin-user-card.achieved { border-right-color: var(--success); }
.admin-user-card.pending { border-right-color: var(--warning); }
.admin-user-card.stopped { border-right-color: var(--danger); }

.admin-user-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.admin-user-role {
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(201, 162, 39, 0.15);
    color: var(--gold-light);
}

.admin-user-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.admin-stat-pill {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(201, 162, 39, 0.06);
    border: 1px solid rgba(201, 162, 39, 0.18);
    min-width: 120px;
}

.admin-stat-label {
    font-size: 0.72rem;
    color: var(--gold);
    font-weight: 700;
}

.admin-stat-value {
    font-size: 0.88rem;
    color: var(--gold-light);
    font-weight: 700;
}

.admin-user-actions {
    display: block;
}

.admin-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.admin-actions-row .inline-form {
    flex: 0 0 auto;
}

.admin-panel-toggle.active {
    border-color: var(--gold) !important;
    color: var(--gold-light) !important;
    background: rgba(201, 162, 39, 0.15) !important;
}

.admin-action-panel {
    margin-top: 10px;
}

.admin-action-panel .admin-renew-form {
    width: 100%;
}

.inline-form {
    display: inline;
}

.btn-sm {
    padding: 6px 12px !important;
    font-size: 0.78rem !important;
}

.admin-renew-form {
    padding: 14px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(201, 162, 39, 0.2);
    border-radius: 10px;
}

.admin-renew-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.admin-renew-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

@media (max-width: 700px) {
    .admin-renew-grid {
        grid-template-columns: 1fr;
    }
}

.admin-renew-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-renew-field-wide {
    margin-bottom: 10px;
}

.admin-renew-field label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--gold-light);
}

.admin-renew-field input {
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    background: #0f0d08;
    border: 1px solid rgba(201, 162, 39, 0.4);
    border-radius: 8px;
    color: var(--gold-bright);
    font-size: 1rem;
    font-weight: 700;
}

.admin-field-note {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.admin-renew-submit {
    width: 100%;
}

.admin-password-form .admin-renew-submit {
    margin-top: 4px;
}

.admin-info-card p {
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.admin-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 24px;
}

.admin-header-row {
    flex-wrap: wrap;
    gap: 12px;
}

.admin-header-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.admin-clients-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.admin-stat-pill.highlight {
    border-color: rgba(201, 162, 39, 0.45);
    background: rgba(201, 162, 39, 0.12);
}

.admin-clients-card {
    padding: 22px;
}

.admin-clients-table-wrap {
    overflow-x: auto;
    margin-top: 8px;
}

.admin-clients-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.admin-clients-table th,
.admin-clients-table td {
    padding: 12px 10px;
    text-align: right;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.admin-clients-table th {
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 700;
}

.admin-clients-table tbody tr:hover {
    background: rgba(201, 162, 39, 0.04);
}

.admin-client-user {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.admin-clients-table .col-pending { color: var(--warning); font-weight: 700; }
.admin-clients-table .col-achieved { color: var(--success); font-weight: 700; }
.admin-clients-table .col-stopped { color: var(--danger); font-weight: 700; }

.admin-clients-table .rate-good { color: var(--success); font-weight: 700; }
.admin-clients-table .rate-mid { color: var(--warning); font-weight: 700; }
.admin-clients-table .rate-low { color: var(--danger); font-weight: 700; }

.admin-rate-bar {
    display: inline-block;
    width: 48px;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
    overflow: hidden;
}

.admin-rate-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 4px;
}

.admin-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 700;
}

.admin-status-badge.achieved {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.admin-status-badge.stopped {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.admin-clients-note {
    margin-top: 14px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.admin-password-page-card {
    max-width: 560px;
    padding: 22px;
}

.admin-password-self-form {
    margin-top: 8px;
}

.admin-settings-page {
    max-width: 960px;
}

.admin-settings-flash {
    margin-bottom: 16px;
}

.admin-settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

@media (max-width: 860px) {
    .admin-settings-grid {
        grid-template-columns: 1fr;
    }
}

.admin-settings-grid .admin-form-card,
.admin-danger-card {
    padding: 22px;
}

.admin-danger-card {
    border: 1px solid rgba(239, 68, 68, 0.45);
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.06) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.admin-danger-lead {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 12px;
    line-height: 1.6;
}

.admin-danger-list {
    margin: 0 0 14px;
    padding-right: 20px;
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.8;
}

.admin-danger-note {
    font-size: 0.82rem;
    color: var(--gold);
    margin-bottom: 16px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(201, 162, 39, 0.08);
    border: 1px solid rgba(201, 162, 39, 0.2);
}

.admin-reset-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.admin-reset-check input {
    margin-top: 4px;
    accent-color: var(--danger);
}

.admin-reset-form .btn-danger {
    width: 100%;
    margin-top: 4px;
}

.admin-reset-form .btn-danger:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.modal-box-danger {
    border-color: rgba(239, 68, 68, 0.45);
    box-shadow: 0 20px 50px rgba(239, 68, 68, 0.12);
}

.admin-actions-row .btn-danger {
    margin-inline-start: auto;
}

.hidden-form {
    display: none;
}
