:root {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --card-hover: #2d3748;
    --accent-color: #38bdf8;
    --text-main: #f8fafc;
    --text-sub: #94a3b8;
    --up-color: #ef4444;
    /* Modern Red */
    --down-color: #3b82f6;
    /* Modern Blue */
    --flat-color: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.1);
    --skeleton-base: #1e293b;
    --skeleton-shine: #334155;
    --shadow-color: rgba(0, 0, 0, 0.3);
    color-scheme: dark;
}

/* Light Mode */
[data-theme="light"] {
    --bg-color: #f1f5f9;
    --card-bg: #ffffff;
    --card-hover: #f8fafc;
    --accent-color: #0ea5e9;
    --text-main: #0f172a;
    --text-sub: #475569;
    --up-color: #dc2626;
    --down-color: #2563eb;
    --flat-color: #64748b;
    --border-color: rgba(0, 0, 0, 0.1);
    --skeleton-base: #e2e8f0;
    --skeleton-shine: #f1f5f9;
    --shadow-color: rgba(0, 0, 0, 0.08);
    color-scheme: light;
}

[data-theme="light"] h1 {
    background: linear-gradient(to right, #0f172a, #475569);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="light"] .navbar-logo {
    filter: none;
}

[data-theme="light"] #briefing-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

/* Navigation Bar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.navbar-brand {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.navbar-logo {
    height: 50px;
    /* Reduced height for better balance */
    width: auto;
    display: block;
    object-fit: contain;
    filter: brightness(1.1);
}

.navbar-menu {
    display: flex;
    gap: 25px;
}

.navbar-menu a {
    color: var(--text-sub);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.navbar-menu a:hover {
    color: var(--accent-color);
}

header {
    margin-bottom: 35px;
}

h1 {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Briefing Section */
#briefing-section {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

#briefing-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--accent-color);
}

/* Link Cards */
.link-card-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.link-card {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 18px 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.link-card:hover {
    transform: translateY(-2px);
    background: var(--card-hover);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.link-card-label {
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.link-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-main);
}

.link-card-arrow {
    font-size: 1.25rem;
    margin-left: auto;
    opacity: 0.5;
    transition: transform 0.2s ease;
}

.link-card:hover .link-card-arrow {
    transform: translateX(4px);
    opacity: 1;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.card:hover {
    background-color: var(--card-hover);
}

.card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-sub);
    margin-bottom: 12px;
}

.card-value {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.025em;
}

.card-change {
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Fear & Greed Gauge */
.fng-gauge {
    margin-top: 15px;
    height: 8px;
    background: #334155;
    border-radius: 4px;
    overflow: hidden;
}

.fng-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #ef4444);
    width: 0%;
    transition: width 1s ease-in-out;
}

/* Bitcoin Signal Section */
#bitcoin-signal-section {
    margin-top: 40px;
}

#bitcoin-signal-link {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 16px;
    padding: 24px;
    text-decoration: none;
    color: white;
    box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.2);
    transition: transform 0.2s ease;
}

#bitcoin-signal-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(245, 158, 11, 0.3);
}

/* News Section */
.news-container {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.news-container h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--accent-color);
}

#news-list {
    list-style: none;
    padding: 0;
}

.news-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.news-headline {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    display: block;
    margin-bottom: 6px;
    transition: color 0.2s;
}

.news-headline:hover {
    color: var(--accent-color);
}

.news-meta {
    font-size: 0.85rem;
    color: #cbd5e1;
}

/* Fear & Greed States */
.fng-extreme-fear {
    color: #f87171 !important;
    font-weight: 800;
}

.fng-fear {
    color: #fb923c !important;
}

.fng-neutral {
    color: #facc15 !important;
}

.fng-greed {
    color: #4ade80 !important;
}

.fng-extreme-greed {
    color: #22c55e !important;
    font-weight: 800;
}

/* Footer */
.site-footer {
    margin-top: 80px;
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-sub);
    font-size: 0.875rem;
}

.footer-links {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-links a {
    color: var(--text-sub);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text-main);
}

/* Utility Classes */
.text-up {
    color: var(--up-color);
}

.text-down {
    color: var(--down-color);
}

.text-flat {
    color: var(--flat-color);
}

/* Accordion Specifics */
.briefing-text {
    color: var(--text-main);
    font-size: 1.05rem;
}

.briefing-text h3 {
    color: var(--accent-color);
    margin-top: 24px;
    font-size: 1.25rem;
}

.briefing-text p {
    margin-bottom: 16px;
    color: #e2e8f0;
    /* Slate 200 for better visibility */
}

#briefing-details {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

#briefing-details.open {
    max-height: 3000px;
    opacity: 1;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#briefing-toggle-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 10px 24px;
    border-radius: 99px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s;
    margin-top: 20px;
}

#briefing-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

#briefing-toggle-btn .arrow {
    display: inline-block;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

#briefing-toggle-btn.open .arrow {
    transform: rotate(180deg);
}

/* Article & Content Pages */
.article-container {
    max-width: 800px;
    margin: 40px auto;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 30px;
}

.article-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.article-meta {
    font-size: 0.875rem;
    color: var(--text-sub);
    font-weight: 500;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #cbd5e1;
    /* Slate 300 for readability */
}

.article-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-top: 40px;
    margin-bottom: 15px;
    border-left: 4px solid var(--accent-color);
    padding-left: 16px;
}

.article-content p {
    margin-bottom: 24px;
}

.article-content ul,
.article-content ol {
    margin-bottom: 24px;
    padding-left: 20px;
}

.article-content li {
    margin-bottom: 12px;
}

.highlight {
    color: var(--accent-color);
    font-weight: 600;
}

.info-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
}

.performance-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
}

.top-tier {
    border-top: 4px solid var(--up-color);
}

.bottom-tier {
    border-top: 4px solid var(--down-color);
}

.signal-box {
    display: flex;
    gap: 20px;
    margin: 24px 0;
}

.bullish {
    flex: 1;
    background: rgba(16, 185, 129, 0.05);
    border-left: 4px solid #10b981;
    padding: 20px;
    border-radius: 8px;
}

.bearish {
    flex: 1;
    background: rgba(239, 68, 68, 0.05);
    border-left: 4px solid #ef4444;
    padding: 20px;
    border-radius: 8px;
}

.strategy-card {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 16px;
    padding: 30px;
    margin-top: 40px;
}

.strategy-card h2 {
    margin-top: 0 !important;
    border-left: none !important;
    padding-left: 0 !important;
    color: var(--accent-color) !important;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-sub);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 24px;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .article-container {
        padding: 24px;
        margin: 20px auto;
    }

    .article-title {
        font-size: 1.75rem;
    }

    .signal-box {
        flex-direction: column;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--card-bg);
    margin: 5% auto;
    padding: 20px;
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 900px;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--accent-color);
}

.close-button {
    color: var(--text-sub);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover {
    color: var(--text-main);
}

.modal-body {
    height: 500px;
    width: 100%;
}

#tradingview-widget-container {
    height: 100%;
    width: 100%;
}

.clickable-card {
    cursor: pointer;
    position: relative;
}

.clickable-card::after {
    content: "View Chart ↗";
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 0.7rem;
    color: var(--accent-color);
    opacity: 0;
    transition: opacity 0.2s;
}

/* Tesla Briefing Content Readability */
#tesla-briefing-modal-content {
    color: #f1f5f9;
    /* Slate 100 - very light for high contrast */
}

#tesla-briefing-modal-content h3 {
    color: #fb7185;
    /* Tesla-ish rose color for headers */
    margin-top: 25px;
    margin-bottom: 12px;
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(251, 113, 133, 0.2);
    padding-bottom: 5px;
}

#tesla-briefing-modal-content p {
    margin-bottom: 16px;
    color: #e2e8f0;
}

#tesla-briefing-modal-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

#tesla-briefing-modal-content li {
    margin-bottom: 10px;
}

#tesla-briefing-modal-content .highlight {
    color: #f43f5e;
    font-weight: 700;
}

#tesla-briefing-modal-content .info-box {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(251, 113, 133, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    color: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.price-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.price-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.price-item-label {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: 600;
}

.price-item-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #f1f5f9;
}

.price-item.highlight-up {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.1);
}

.price-item.highlight-up .price-item-value {
    color: #f87171;
}

.price-item.highlight-down {
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.1);
}

.price-item.highlight-down .price-item-value {
    color: #60a5fa;
}

/* ─── Error & Loading States ─── */
.error-state {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-sub);
}

.error-state .error-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.error-state p {
    margin-bottom: 15px;
    color: var(--text-sub);
}

.error-indicator {
    color: var(--text-sub);
    font-size: 1.5rem;
}

.error-text {
    font-size: 0.75rem;
    color: var(--text-sub);
    opacity: 0.8;
}

.news-error {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.news-error .error-icon {
    font-size: 1.2rem;
}

.retry-btn {
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent-color);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 6px 16px;
    border-radius: 99px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s;
}

.retry-btn:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: var(--accent-color);
}

.chart-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 500px;
    color: var(--text-sub);
    font-size: 1rem;
}

.news-update-tag {
    font-size: 0.75rem;
    color: var(--accent-color);
    margin-bottom: 10px;
    opacity: 0.8;
}

/* ─── Responsive: Tablet (≤768px) ─── */
@media (max-width: 768px) {
    .container {
        padding: 0 16px 30px;
    }

    .navbar {
        flex-direction: column;
        gap: 12px;
        padding: 16px 0;
        margin-bottom: 20px;
    }

    .navbar-menu {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }

    h1 {
        font-size: 1.4rem;
    }

    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 30px;
    }

    .card {
        padding: 16px;
        border-radius: 12px;
    }

    .card-value {
        font-size: 1.4rem;
    }

    .card-change {
        font-size: 0.85rem;
    }

    #briefing-section {
        padding: 20px;
        margin-bottom: 30px;
        border-radius: 12px;
    }

    #briefing-title {
        font-size: 1.25rem;
    }

    .briefing-text {
        font-size: 0.95rem;
    }

    .link-card {
        padding: 14px 18px;
    }

    .news-container {
        margin-top: 40px;
    }

    .news-container h2 {
        font-size: 1.25rem;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 16px;
    }

    .modal-body {
        height: 400px;
    }

    .article-container {
        padding: 24px;
        margin: 20px auto;
    }

    .article-title {
        font-size: 1.75rem;
    }

    .signal-box {
        flex-direction: column;
    }

    .site-footer {
        margin-top: 50px;
        padding: 30px 0;
    }
}

/* ─── Responsive: Mobile (≤480px) ─── */
@media (max-width: 480px) {
    .container {
        padding: 0 12px 24px;
    }

    .navbar-logo {
        height: 36px;
    }

    .navbar-menu {
        gap: 12px;
        font-size: 0.85rem;
    }

    h1 {
        font-size: 1.2rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .card {
        padding: 14px;
    }

    .card-title {
        font-size: 0.8rem;
    }

    .card-value {
        font-size: 1.25rem;
    }

    #briefing-section {
        padding: 16px;
        border-radius: 10px;
    }

    #briefing-title {
        font-size: 1.1rem;
    }

    .briefing-text {
        font-size: 0.9rem;
    }

    .briefing-text h3 {
        font-size: 1.05rem;
    }

    #briefing-toggle-btn {
        font-size: 0.8rem;
        padding: 8px 18px;
    }

    .link-card {
        padding: 12px 16px;
        border-radius: 10px;
    }

    .link-card-title {
        font-size: 1rem;
    }

    .news-headline {
        font-size: 0.95rem;
    }

    .news-meta {
        font-size: 0.75rem;
    }

    .modal-content {
        width: 98%;
        margin: 5% auto;
        padding: 12px;
        border-radius: 12px;
    }

    .modal-header h2 {
        font-size: 1.1rem;
    }

    .modal-body {
        height: 300px;
    }

    .article-container {
        padding: 16px;
        margin: 12px;
        border-radius: 14px;
    }

    .article-title {
        font-size: 1.4rem;
    }

    .article-content {
        font-size: 1rem;
    }

    .price-summary {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }

    .site-footer {
        margin-top: 40px;
    }
}

/* ─── Responsive: Small Mobile (≤360px) ─── */
@media (max-width: 360px) {
    .card-value {
        font-size: 1.1rem;
    }

    .price-summary {
        grid-template-columns: 1fr;
    }
}

/* ─── Skeleton Loading ─── */

@keyframes skeleton-shimmer {
    0% {
        background-position: -200px 0;
    }

    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.skeleton-line {
    background: linear-gradient(90deg, var(--skeleton-base) 25%, var(--skeleton-shine) 50%, var(--skeleton-base) 75%);
    background-size: 200px 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: 6px;
    height: 14px;
    margin-bottom: 10px;
}

.skeleton-card {
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

.skeleton-title {
    width: 70%;
    height: 12px;
}

.skeleton-value {
    width: 50%;
    height: 22px;
    margin: 8px 0;
}

.skeleton-change {
    width: 40%;
    height: 12px;
}

.skeleton-briefing {
    padding: 10px 0;
}

/* ─── Theme Toggle ─── */

.theme-toggle-btn {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
}

.theme-toggle-btn:hover {
    background: var(--card-hover);
    transform: scale(1.1);
}

/* ─── Navbar Actions ─── */

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-action-btn {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
}

.navbar-action-btn:hover {
    background: var(--card-hover);
    transform: scale(1.1);
}

.navbar-action-btn.active {
    border-color: var(--accent-color);
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.3);
}

/* ─── Watchlist Modal ─── */

.watchlist-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.watchlist-modal-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.watchlist-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.watchlist-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-main);
}

.watchlist-modal-close {
    background: none;
    border: none;
    color: var(--text-sub);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 4px;
}

.watchlist-editor-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.watchlist-editor-item:hover {
    background: var(--card-hover);
}

.watchlist-editor-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-color);
    cursor: pointer;
}

.watchlist-item-name {
    color: var(--text-main);
    font-size: 0.95rem;
}

.watchlist-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.watchlist-modal-actions button {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.watchlist-save-btn {
    background: var(--accent-color);
    color: #fff;
}

.watchlist-save-btn:hover {
    filter: brightness(1.1);
}

.watchlist-reset-btn {
    background: transparent;
    border: 1px solid var(--border-color) !important;
    color: var(--text-sub);
}

.watchlist-reset-btn:hover {
    background: var(--card-hover);
}

/* ─── Briefing Timestamp ─── */

.briefing-timestamp {
    display: none;
    font-size: 0.8rem;
    color: var(--text-sub);
    margin-top: 8px;
    opacity: 0.8;
}

/* ─── Dashboard Header ─── */

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

.dashboard-header h2 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-main);
}