/* BullApe Dashboard - Dark Theme */

@font-face {
    font-family: 'Work Sans';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: local('Work Sans'), local('WorkSans-Regular'), local('WorkSans'),
         url('https://cdn.jsdelivr.net/fontsource/fonts/work-sans:vf@latest/latin-wght-normal.woff2') format('woff2-variations');
}

@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: local('Space Grotesk'), local('SpaceGrotesk-Regular'), local('SpaceGrotesk'),
         url('https://cdn.jsdelivr.net/fontsource/fonts/space-grotesk:vf@latest/latin-wght-normal.woff2') format('woff2-variations');
}

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

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Work Sans', 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-secondary);
    background:
        linear-gradient(180deg, rgba(7, 10, 16, 0.9), rgba(7, 7, 10, 1)),
        radial-gradient(circle at 15% 10%, rgba(34, 197, 94, 0.08), transparent 40%),
        radial-gradient(circle at 80% 0%, rgba(239, 68, 68, 0.08), transparent 45%);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 0;
    display: none;
}

/* Dashboard palette overrides (bullape-redesign direction) */
body.dashboard-body {
    background: #0a0a0a;
    color: var(--text-secondary);
    font-family: 'Work Sans', 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --accent-yellow: #ffe16e;
    --accent-yellow-rgb: 255, 225, 110;
    --brand-bg-base: #0a0a0a;
    --brand-surface-gradient: linear-gradient(135deg, #141414 0%, #171717 100%);
    --brand-surface-hover-gradient: linear-gradient(135deg, #161616 0%, #191919 100%);
    --brand-border-subtle: rgba(255, 255, 255, 0.08);
    --brand-border-soft: rgba(255, 255, 255, 0.12);
    --brand-overlay-strong: rgba(8, 11, 17, 0.72);
    --brand-overlay-soft: rgba(8, 11, 17, 0);
    --brand-panel-bg: rgba(9, 13, 20, 0.62);
    --brand-input-bg: rgba(7, 10, 16, 0.95);
    --brand-control-bg: rgba(10, 14, 21, 0.88);
    --brand-pill-warning-bg: rgba(var(--accent-yellow-rgb), 0.08);
    --brand-pill-success-bg: rgba(16, 185, 129, 0.08);
    --brand-chip-buy-bg: rgba(16, 185, 129, 0.1);
    --brand-chip-sell-bg: rgba(244, 63, 94, 0.1);
    --brand-accent-hover: #ffd95a;
    --brand-confidence-panel-bg: linear-gradient(160deg, rgba(17, 22, 31, 0.76), rgba(12, 16, 24, 0.82));
    --brand-confidence-track-bg: rgba(15, 23, 42, 0.68);
    --brand-confidence-reliability-bg: rgba(15, 23, 42, 0.4);
    --brand-confidence-high-bg: linear-gradient(160deg, rgba(16, 185, 129, 0.09), rgba(12, 16, 24, 0.82));
    --brand-confidence-medium-bg: linear-gradient(160deg, rgba(245, 158, 11, 0.09), rgba(12, 16, 24, 0.82));
    --brand-confidence-low-bg: linear-gradient(160deg, rgba(239, 68, 68, 0.09), rgba(12, 16, 24, 0.82));
    --brand-confidence-fill-default: linear-gradient(90deg, rgba(255, 225, 110, 0.78), rgba(255, 225, 110, 1));
    --brand-confidence-fill-high: linear-gradient(90deg, rgba(74, 222, 128, 0.85), rgba(22, 163, 74, 1));
    --brand-confidence-fill-medium: linear-gradient(90deg, rgba(251, 191, 36, 0.86), rgba(245, 158, 11, 1));
    --brand-confidence-fill-low: linear-gradient(90deg, rgba(252, 165, 165, 0.86), rgba(239, 68, 68, 1));
    --brand-trust-badge-bg: rgba(255, 255, 255, 0.03);
    --brand-trust-high-bg: rgba(16, 185, 129, 0.12);
    --brand-trust-medium-bg: rgba(245, 158, 11, 0.12);
    --brand-trust-low-bg: rgba(239, 68, 68, 0.12);
}

body.dashboard-body::before {
    display: none;
}

body.dashboard-body .topbar {
    background: #0a0a0a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.dashboard-body .logo-text {
    color: var(--text-primary);
}

body.dashboard-body .logo {
    background: none;
    -webkit-text-fill-color: initial;
}

body.dashboard-body .nav-icons .icon-link {
    background: transparent;
    color: var(--text-muted);
}

body.dashboard-body .nav-icons .icon-link:hover {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.06);
}

body.dashboard-body .nav-icons .icon-link.icon-link--primary {
    color: var(--text-secondary);
}

body.dashboard-body .ticker-bar {
    background: #0b0b0b;
    border-bottom: 1px solid rgba(var(--accent-yellow-rgb), 0.12);
}

h1, h2, h3, h4, h5, h6,
.hero-title,
.logo-text,
.provider-name {
    font-family: 'Space Grotesk', 'Work Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    letter-spacing: -0.02em;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    position: relative;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(253, 184, 19, 0.1);
    z-index: 1000;
}

/* Topbar Redesign */
.topbar {
    position: sticky;
    top: 0;
    background: rgba(7, 8, 12, 0.86);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    z-index: 1000;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 56px;
}

.topbar .container {
    max-width: none;
    padding: 0 4vw;
}

.logo {
    font-size: 1.4rem;
}

.topbar .logo {
    background: none;
    -webkit-text-fill-color: initial;
}

.logo-text {
    color: var(--text-primary);
    background: none;
    -webkit-text-fill-color: initial;
}

.nav-icons {
    gap: 2px;
}

.nav-icons .icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    transition: color 0.2s ease, background 0.2s ease;
    text-decoration: none;
    position: relative;
}

.nav-icons .icon-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
}

.nav-icons .icon-link svg.reddit-glyph {
    width: 21px;
    height: 21px;
}

.nav-icons .icon-link:hover {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.06);
}

.nav-icons .icon-link::after {
    display: none;
}

.nav-icons .icon-link:focus-visible {
    outline: 2px solid #38bdf8;
    outline-offset: 2px;
}

/* Primary nav items (Dashboard, Portfolio) — brighter default */
.nav-icons .icon-link.icon-link--primary {
    color: var(--text-secondary);
    font-weight: 600;
}
.nav-icons .icon-link.icon-link--primary:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

/* Active state for primary items */
.nav-icons .icon-link.icon-link--primary.is-current {
    color: #ffe16e;
    background: rgba(255, 225, 110, 0.12);
}

/* Nav separator between primary and secondary groups */
.nav-separator {
    width: 1px;
    height: 24px;
    background: rgba(148, 163, 184, 0.15);
    margin: 0 6px;
    flex-shrink: 0;
    align-self: center;
}

@media (min-width: 1024px) {
    .nav-icons .icon-link {
        flex-direction: row;
        gap: 6px;
        padding: 7px 12px;
    }

    .nav-icons .icon-link .sr-only {
        position: static;
        width: auto;
        height: auto;
        margin: 0;
        overflow: visible;
        clip: auto;
        border: 0;
        font-size: 13px;
        font-weight: 500;
        line-height: 1;
        letter-spacing: 0.01em;
        color: inherit;
    }

    .nav-icons .icon-link.icon-link--primary { padding: 7px 14px; }
    .nav-icons .icon-link.icon-link--primary .sr-only { font-weight: 600; }
}

/* Ticker strip */
.ticker-bar {
    position: relative;
    z-index: 2;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(9, 12, 18, 0.85);
    overflow: hidden;
}

.ticker-track {
    display: flex;
    gap: 24px;
    padding: 8px 20px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
    animation: tickerScroll 28s linear infinite;
}

.ticker-item {
    color: #cbd5e1;
    text-decoration: none;
}

.ticker-item.up {
    color: #22c55e;
}

.ticker-item.down {
    color: #ef4444;
}

.ticker-item.neutral {
    color: var(--text-muted);
}

.ticker-item:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ticker-loading {
    color: #64748b;
    font-style: italic;
}

@keyframes tickerScroll {
    from { transform: translateX(100%); }
    to { transform: translateX(-100%); }
}

.nav-icons .nav-dropdown > a::after {
    content: '';
}

@media (min-width: 1024px) {
    .nav-icons .nav-dropdown > a::after {
        content: ' \25BE';
        font-size: 0.7rem;
        margin-left: 2px;
        opacity: 0.6;
    }
}

.logout-link {
    color: var(--text-muted);
}

.logout-link:hover {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.08);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    background: #ffe16e;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 6px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.25rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

.nav-menu a:hover {
    color: #f1f5f9;
}

/* Nav Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > a {
    padding-bottom: 0.5rem;
    margin-bottom: -0.25rem;
}

.nav-dropdown > a::after {
    content: ' ▾';
    font-size: 0.75rem;
}

.nav-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 0;
    background: rgba(20, 20, 20, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    min-width: 190px;
    padding: 6px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    list-style: none;
}

/* Bridge the gap between trigger and menu */
.nav-dropdown .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -0.35rem;
    left: 0;
    right: 0;
    height: 0.35rem;
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.nav-dropdown .dropdown-menu li {
    padding: 0;
}

.nav-dropdown .dropdown-menu a {
    display: block;
    padding: 7px 12px;
    color: #cbd5e1;
    border-radius: 6px;
    font-size: 13px;
}

.nav-dropdown .dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #f1f5f9;
}

/* Nav Stock Search */
.nav-search { position: relative; display: flex; align-items: center; }
.stock-search { position: relative; display: flex; align-items: center; }
.stock-search__icon { width: 16px; height: 16px; fill: var(--text-secondary); position: absolute; left: 10px; pointer-events: none; }
.stock-search__input {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #f1f5f9;
    font-size: 13px;
    padding: 6px 12px 6px 32px;
    width: 160px;
    outline: none;
    transition: border-color 0.15s, width 0.2s;
}
.stock-search__input::placeholder { color: rgba(255,255,255,0.35); }
.stock-search__input:focus { border-color: var(--accent-yellow); width: 220px; }
.stock-search__results {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: rgba(20,20,20,0.98);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    list-style: none;
    padding: 4px;
    margin: 0;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    z-index: 1001;
    min-width: 260px;
    max-height: 320px;
    overflow-y: auto;
}
.stock-search__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.1s;
}
.stock-search__item:hover, .stock-search__item--active { background: rgba(255,255,255,0.06); }
.stock-search__ticker { font-weight: 700; color: #fff; font-size: 0.9rem; min-width: 50px; }
.stock-search__name { color: var(--text-secondary); font-size: 0.82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stock-search__empty { padding: 12px; color: var(--text-secondary); font-size: 0.85rem; text-align: center; }

@media (max-width: 768px) {
    .nav-search { width: 100%; padding: 0.75rem 1.5rem; box-sizing: border-box; }
    .stock-search { width: 100%; }
    .stock-search__input { width: 100%; font-size: 15px; padding: 10px 12px 10px 36px; box-sizing: border-box; }
    .stock-search__input:focus { width: 100%; }
    .stock-search__icon { left: 12px; width: 18px; height: 18px; }
    .stock-search__results { min-width: 100%; }
}

/* Nav User */
.nav-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: 0.75rem;
    margin-left: 4px;
    border-left: 1px solid rgba(148, 163, 184, 0.12);
}

.nav-user .user-name {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 140px);
    padding: 2rem 20px;
}

h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #f1f5f9;
    font-weight: 700;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Alerts */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border-left: 4px solid;
    backdrop-filter: blur(10px);
}

.alert-success {
    background: rgba(253, 184, 19, 0.15);
    border-color: #FDB813;
    color: #6ee7b7;
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
    color: #fca5a5;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, #141414 0%, #171717 100%);
    padding: 1.5rem;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(253, 184, 19, 0.2);
    border-color: rgba(253, 184, 19, 0.5);
}

.stat-card h3 {
    font-size: 2.5rem;
    background: #ffe16e;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.stat-card p {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
}

/* Section */
.section {
    background: linear-gradient(135deg, #141414 0%, #171717 100%);
    padding: 2rem;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.video-card {
    background: linear-gradient(135deg, #141414 0%, #171717 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(255, 225, 110, 0.2);
    border-color: rgba(255, 225, 110, 0.4);
}

.video-thumbnail {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.video-info {
    padding: 1rem;
    background: transparent;
}

.video-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.video-card h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.video-card h3 a:hover {
    color: #ffe16e;
}

.video-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.video-meta .author {
    font-weight: 500;
    color: #cbd5e1;
}

.video-meta .date {
    margin-left: 1rem;
}

.video-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Channel List */
.channel-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.channel-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: linear-gradient(135deg, #141414 0%, #171717 100%);
    transition: all 0.3s ease;
}

.channel-item:hover {
    background: linear-gradient(135deg, #161616 0%, #191919 100%);
    border-color: rgba(255, 225, 110, 0.4);
    transform: translateX(4px);
    box-shadow: 0 8px 20px rgba(255, 225, 110, 0.15);
}

.channel-item h4 {
    margin-bottom: 0.25rem;
}

.channel-item h4 a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.channel-item h4 a:hover {
    color: #ffe16e;
}

.channel-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Forms */
.edit-form, .add-form {
    max-width: 600px;
    background: linear-gradient(135deg, #141414 0%, #171717 100%);
    padding: 2rem;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: #0a0a0a;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-secondary);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FDB813;
    box-shadow: 0 0 0 3px rgba(253, 184, 19, 0.1);
}

.form-group input:disabled {
    background: rgba(20, 20, 20, 0.75);
    cursor: not-allowed;
    opacity: 0.6;
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Checkbox styling */
.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.form-check input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}

.form-check label {
    display: inline;
    margin: 0;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 1rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.empty-state a {
    color: #FFD700;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.empty-state a:hover {
    color: #FFE66D;
}

/* Footer */
footer {
    background: #0a0a0a;
    color: white;
    text-align: center;
    padding: 2rem 20px;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 225, 110, 0.08);
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #ffe16e;
    text-decoration: underline;
}

.footer-separator {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.875rem;
    user-select: none;
}

.footer-copyright {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.25);
    margin: 0;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(20, 20, 20, 0.95);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(253, 184, 19, 0.3);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

.toast.hiding {
    animation: slideOut 0.3s ease-out forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.toast-message {
    flex: 1;
}

.toast-action {
    padding: 0.5rem 1rem;
    background: #ffe16e;
    color: #000;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s, transform 0.2s;
}

.toast-action:hover {
    background: #ffd95a;
    transform: scale(1.05);
}

.toast-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.toast-close:hover {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

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

    .nav-menu {
        gap: 1rem;
        font-size: 0.875rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

    .footer-separator {
        display: none;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Global color scheme overrides (black + signal yellow) */
:root {
    --bg-900: #0b0b0b;
    --bg-800: #0f0f0f;
    --bg-700: #121212;
    --accent-yellow: #ffe16e;
    --accent-yellow-rgb: 255, 225, 110;
    --brand-accent-hover: #ffd95a;
    --border-500: rgba(255, 225, 110, 0.18);
    --text-100: #ffffff;
    --text-300: #e5e7eb;
    --text-500: #cbd5e1;
    --text-700: #9ca3af;
    --accent: #ffe16e;
    --accent-rgb: 255, 225, 110;
    --accent-yellow: #ffe16e;
    --accent-yellow-rgb: 255, 225, 110;
    --brand-accent-hover: #ffd95a;
    --accent-soft: rgba(255, 225, 110, 0.18);
    --green: #22c55e;
    --red: #ef4444;

    /* Design tokens */
    --radius-sm: 8px;   /* buttons, inputs, badges */
    --radius-md: 14px;  /* cards, panels */
    --radius-lg: 18px;  /* page containers, modals */
    --shadow-card: 0 2px 8px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.03);
    --surface-bg: linear-gradient(135deg, #141414 0%, #171717 100%);
    --surface-border: rgba(255,255,255,0.08);

    /* Semantic text colors */
    --text-primary: #f8fafc;
    --text-secondary: #e2e8f0;
    --text-muted: #94a3b8;
}

/* Shared card base */
.card-base {
    background: var(--surface-bg);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}

/* Page shell — consistent centered container */
.page-shell { max-width: 1400px; margin: 0 auto; padding: 24px 4vw 60px; width: 100%; }
.page-shell--wide { max-width: 1600px; }
.page-shell--narrow { max-width: 1000px; }
@media (max-width: 768px) { .page-shell { padding: 16px 16px 40px; } }

/* Standardized page header */
.page-head {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 1.2rem;
    padding: 1.4rem 1.6rem; border-radius: 16px;
    background: linear-gradient(135deg, #141414, #171717);
    border: 1px solid rgba(255,255,255,0.08); margin-bottom: 1.4rem;
}
.page-head__kicker { text-transform: uppercase; letter-spacing: 0.09em; font-size: 0.73rem; color: #ffe16e; }
.page-head__title { font-size: clamp(1.3rem, 2.2vw, 1.8rem); color: var(--text-primary); }
.page-head__subtitle { color: var(--text-muted); font-size: 0.9rem; }
.page-head__actions { display: flex; align-items: center; gap: 0.75rem; }
@media (max-width: 768px) { .page-head { flex-direction: column; padding: 1.2rem; } }

body {
    background: #0a0a0a;
    color: var(--text-300);
}

a {
    color: var(--accent);
}

.navbar,
.topbar {
    background: var(--bg-900);
    border-bottom: 1px solid var(--border-500);
}

.ticker-bar {
    background: var(--bg-900);
    border-bottom: 1px solid rgba(var(--accent-rgb), 0.12);
}

.card,
.account-item,
.prediction-card,
.rec-card,
.modal-content,
.stats-summary,
.prediction-frame {
    background: var(--bg-800);
    border: 1px solid var(--border-500);
    border-radius: 18px;
    padding: 2rem;
}

.card h2 {
    margin-top: 2rem;
}

.form-control,
input,
select,
textarea {
    background: var(--bg-700);
    color: var(--text-300);
    border: 1px solid rgba(var(--accent-rgb), 0.12);
}

.form-control::placeholder {
    color: var(--text-700);
}

.badge,
.model-badge,
.rec-type {
    background: rgba(var(--accent-rgb), 0.12);
    color: var(--accent);
}

.rec-symbol {
    color: var(--green);
}

.rec-symbol.sell {
    color: var(--red);
}

.alert {
    border: 1px solid var(--border-500);
    background: var(--bg-800);
    color: var(--text-300);
}

table,
.table {
    background: var(--bg-800);
    color: var(--text-300);
    border-color: rgba(var(--accent-rgb), 0.12);
}

th,
td {
    border-color: rgba(var(--accent-rgb), 0.12);
}

footer {
    background: var(--bg-900);
    color: var(--text-700);
    border-top: 1px solid var(--border-500);
}

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

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


/* ========================================
   PAGE-SPECIFIC STYLES (moved from inline)
   ======================================== */

/* ========================================
   admin_cron_monitor
   ======================================== */

.monitor-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .job-card {
        background: white;
        border-radius: 8px;
        padding: 1.5rem;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        border-left: 4px solid #FFD700;
    }

    .job-card.running {
        border-left-color: #27ae60;
    }

    .job-card.error {
        border-left-color: #e74c3c;
    }

    .job-header {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .job-icon {
        font-size: 2rem;
    }

    .job-info h3 {
        margin: 0;
        font-size: 1.2rem;
        color: #2c3e50;
    }

    .job-schedule {
        font-size: 0.85rem;
        color: #7f8c8d;
        margin-top: 0.25rem;
    }

    .job-description {
        color: #7f8c8d;
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .job-status {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem;
        background: #f8f9fa;
        border-radius: 4px;
        margin-bottom: 0.75rem;
        font-size: 0.85rem;
    }

    .status-label {
        font-weight: bold;
        color: #7f8c8d;
    }

    .status-value {
        color: #2c3e50;
    }

    .job-detail {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        font-size: 0.85rem;
        gap: 0.75rem;
    }

    .detail-label {
        font-weight: bold;
        color: #7f8c8d;
        white-space: nowrap;
    }

    .detail-value {
        color: #2c3e50;
        text-align: right;
        word-break: break-word;
    }

    .status-success {
        color: #27ae60;
        font-weight: 600;
    }

    .status-failed {
        color: #e74c3c;
        font-weight: 600;
    }

    .status-running {
        color: #2980b9;
        font-weight: 600;
    }

    .status-unknown {
        color: #7f8c8d;
        font-weight: 600;
    }

    .job-error .detail-value {
        color: #e74c3c;
    }

    .trigger-btn {
        width: 100%;
        padding: 0.75rem;
        background: #FFD700;
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-size: 0.9rem;
        font-weight: 600;
        transition: background 0.2s;
    }

    .trigger-btn:hover {
        background: #2980b9;
    }

    .trigger-btn:disabled {
        background: #95a5a6;
        cursor: not-allowed;
    }

    .logs-container {
        background: #1e1e1e;
        border-radius: 8px;
        padding: 1.5rem;
        margin-top: 2rem;
        max-height: 600px;
        overflow-y: auto;
    }

    .logs-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1rem;
    }

    .logs-header h2 {
        color: white;
        margin: 0;
        font-size: 1.3rem;
    }

    .logs-controls {
        display: flex;
        gap: 0.5rem;
    }

    .control-btn {
        padding: 0.5rem 1rem;
        background: #FFD700;
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-size: 0.85rem;
    }

    .control-btn:hover {
        background: #2980b9;
    }

    .control-btn.danger {
        background: #e74c3c;
    }

    .control-btn.danger:hover {
        background: #c0392b;
    }

    .log-content {
        font-family: 'Courier New', monospace;
        font-size: 0.85rem;
        color: #e0e0e0;
        line-height: 1.6;
        white-space: pre-wrap;
        word-wrap: break-word;
    }

    .log-line {
        padding: 0.25rem 0;
        border-bottom: 1px solid #2d2d2d;
    }

    .log-line:last-child {
        border-bottom: none;
    }

    .log-line.success {
        color: #27ae60;
    }

    .log-line.error {
        color: #e74c3c;
    }

    .log-line.warning {
        color: #f39c12;
    }

    .connection-status {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
        background: #2d2d2d;
        border-radius: 4px;
        color: white;
        font-size: 0.85rem;
    }

    .status-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #95a5a6;
    }

    .status-dot.connected {
        background: #27ae60;
        animation: pulse 2s infinite;
    }

    @keyframes pulse {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.5; }
    }

    .empty-logs {
        text-align: center;
        color: #7f8c8d;
        padding: 3rem;
    }

/* ========================================
   admin_invite_codes
   ======================================== */

.admin-header {
    margin-bottom: 2rem;
}

.admin-header h1 {
    margin-bottom: 0.5rem;
}

.admin-header .subtitle {
    color: var(--text-muted, #94a3b8);
}

.stats-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, #141414 0%, #171717 100%);
    padding: 1.5rem;
    border-radius: 18px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    flex: 1;
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #FFD700;
}

.stat-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.action-bar {
    margin-bottom: 1.5rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.data-table th {
    background: #141414;
    font-weight: 600;
    color: var(--text-secondary);
}

.data-table td {
    color: #cbd5e1;
}

.used-row {
    opacity: 0.6;
}

.invite-code {
    font-family: monospace;
    font-size: 1rem;
    background: rgba(253, 184, 19, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    color: #FFD700;
    letter-spacing: 1px;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 4px;
    font-weight: 500;
}

.badge-success {
    background: rgba(253, 184, 19, 0.15);
    color: #6ee7b7;
}

.badge-secondary {
    background: rgba(100, 116, 139, 0.15);
    color: var(--text-muted);
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

@media (max-width: 1200px) {
    .data-table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 768px) {
    .stats-row {
        flex-direction: column;
    }
}

/* ========================================
   admin_users
   ======================================== */

.admin-header {
    margin-bottom: 2rem;
}

.admin-header h1 {
    margin-bottom: 0.5rem;
}

.admin-header .subtitle {
    color: var(--text-muted);
}

.stats-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, #141414 0%, #171717 100%);
    padding: 1.5rem;
    border-radius: 18px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    flex: 1;
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #FFD700;
}

.stat-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.data-table th {
    background: #141414;
    font-weight: 600;
    color: var(--text-secondary);
}

.data-table td {
    color: #cbd5e1;
}

.inactive-row {
    opacity: 0.6;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 4px;
    font-weight: 500;
}

.badge-success {
    background: rgba(253, 184, 19, 0.15);
    color: #6ee7b7;
}

.badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #fcd34d;
}

.badge-info {
    background: rgba(253, 184, 19, 0.15);
    color: #FFE66D;
}

.badge-secondary {
    background: rgba(100, 116, 139, 0.15);
    color: var(--text-muted);
}

.auth-method {
    display: inline-block;
    padding: 0.125rem 0.375rem;
    font-size: 0.7rem;
    background: rgba(253, 184, 19, 0.1);
    color: #FFD700;
    border-radius: 3px;
    margin-right: 0.25rem;
}

.actions {
    white-space: nowrap;
}

.actions form {
    margin-right: 0.25rem;
}

@media (max-width: 1200px) {
    .data-table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 768px) {
    .stats-row {
        flex-direction: column;
    }
}

/* ========================================
   audit_log
   ======================================== */

.audit-log-page {
        max-width: 1400px;
        margin: 0 auto;
    }

    .audit-table {
        width: 100%;
        border-collapse: collapse;
        background: linear-gradient(135deg, #141414 0%, #171717 100%);
        border-radius: 18px;
        overflow: hidden;
    }

    .audit-table thead {
        background: rgba(253, 184, 19, 0.1);
        border-bottom: 2px solid rgba(253, 184, 19, 0.3);
    }

    .audit-table th {
        padding: 1rem;
        text-align: left;
        font-weight: 600;
        color: var(--text-secondary);
        font-size: 0.875rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .audit-table td {
        padding: 1rem;
        border-bottom: 1px solid rgba(148, 163, 184, 0.16);
        color: #cbd5e1;
    }

    .audit-table tbody tr {
        transition: background 0.2s;
    }

    .audit-table tbody tr:hover {
        background: rgba(253, 184, 19, 0.05);
    }

    .timestamp {
        white-space: nowrap;
        font-size: 0.875rem;
    }

    .item-type {
        white-space: nowrap;
    }

    .item-title {
        max-width: 400px;
        word-wrap: break-word;
    }

    .item-link {
        color: #FFD700;
        text-decoration: none;
        font-weight: 500;
        transition: color 0.3s;
    }

    .item-link:hover {
        color: #FFE66D;
        text-decoration: underline;
    }

    .ip-address code {
        background: rgba(253, 184, 19, 0.1);
        color: #FFE66D;
        padding: 0.25rem 0.5rem;
        border-radius: 4px;
        font-size: 0.875rem;
        font-family: 'Monaco', 'Courier New', monospace;
        border: 1px solid rgba(253, 184, 19, 0.2);
    }

    .action-badge {
        display: inline-block;
        padding: 0.4rem 0.75rem;
        border-radius: 6px;
        font-size: 0.8rem;
        font-weight: 600;
        white-space: nowrap;
    }

    .action-hide_video,
    .action-hide_channel {
        background: rgba(239, 68, 68, 0.15);
        color: #fca5a5;
        border: 1px solid rgba(239, 68, 68, 0.3);
    }

    .action-unhide_video,
    .action-unhide_channel {
        background: rgba(253, 184, 19, 0.15);
        color: #6ee7b7;
        border: 1px solid rgba(253, 184, 19, 0.3);
    }

    .action-add_channel {
        background: rgba(253, 184, 19, 0.15);
        color: #FFE66D;
        border: 1px solid rgba(253, 184, 19, 0.3);
    }

    .action-transcribe_video {
        background: rgba(168, 85, 247, 0.15);
        color: #c084fc;
        border: 1px solid rgba(168, 85, 247, 0.3);
    }

    .action-summarize_openai {
        background: rgba(253, 184, 19, 0.15);
        color: #6ee7b7;
        border: 1px solid rgba(253, 184, 19, 0.3);
    }

    .action-summarize_claude {
        background: rgba(251, 146, 60, 0.15);
        color: #fdba74;
        border: 1px solid rgba(251, 146, 60, 0.3);
    }

    .action-summarize_gemini {
        background: rgba(253, 184, 19, 0.15);
        color: #FFE66D;
        border: 1px solid rgba(253, 184, 19, 0.3);
    }

    @media (max-width: 768px) {
        .audit-table {
            font-size: 0.875rem;
        }

        .audit-table th,
        .audit-table td {
            padding: 0.75rem 0.5rem;
        }

        .item-title {
            max-width: 200px;
        }
    }

/* ========================================
   auth_forgot_password
   ======================================== */

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 2rem;
}

.auth-card {
    background: linear-gradient(135deg, #141414 0%, #171717 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.auth-card h1 {
    margin: 0 0 0.5rem;
    font-size: 1.75rem;
    text-align: center;
    color: #f1f5f9;
}

.auth-subtitle {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"] {
    width: 100%;
    padding: 0.75rem;
    background: #0a0a0a;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-secondary);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input::placeholder {
    color: #64748b;
}

.form-group input:focus {
    outline: none;
    border-color: #FDB813;
    box-shadow: 0 0 0 3px rgba(253, 184, 19, 0.2);
}


.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: #FFD700;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
    color: #FFE66D;
}

.auth-terms {
    font-size: 0.75rem;
    color: var(--text-muted, #94a3b8);
    text-align: center;
    margin-top: 0.75rem;
}

.auth-terms a {
    color: var(--text-muted, #94a3b8);
    text-decoration: underline;
}

/* ========================================
   auth_login
   ======================================== */

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 2rem;
}

.auth-card {
    background: linear-gradient(135deg, #141414 0%, #171717 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.auth-card h1 {
    margin: 0 0 0.5rem;
    font-size: 1.75rem;
    text-align: center;
    color: #f1f5f9;
}

.auth-subtitle {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"] {
    width: 100%;
    padding: 0.75rem;
    background: #0a0a0a;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-secondary);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input::placeholder {
    color: #64748b;
}

.form-group input:focus {
    outline: none;
    border-color: #FDB813;
    box-shadow: 0 0 0 3px rgba(253, 184, 19, 0.2);
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: #cbd5e1;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    accent-color: #FDB813;
}


.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(148, 163, 184, 0.16);
}

.auth-divider span {
    padding: 0 1rem;
    color: #64748b;
    font-size: 0.875rem;
}

.oauth-buttons {
    display: flex;
    gap: 1rem;
}


.oauth-icon {
    width: 20px;
    height: 20px;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: #FFD700;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
    color: #FFE66D;
}

.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input {
    padding-right: 3rem;
}

.toggle-password {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: #FDB813;
}

.eye-icon {
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ========================================
   auth_register
   ======================================== */

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 2rem;
}

.auth-card {
    background: linear-gradient(135deg, #141414 0%, #171717 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.auth-card h1 {
    margin: 0 0 0.5rem;
    font-size: 1.75rem;
    text-align: center;
    color: #f1f5f9;
}

.auth-subtitle {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"] {
    width: 100%;
    padding: 0.75rem;
    background: #0a0a0a;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-secondary);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input::placeholder {
    color: #64748b;
}

.form-group input:focus {
    outline: none;
    border-color: #FDB813;
    box-shadow: 0 0 0 3px rgba(253, 184, 19, 0.2);
}


.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: #FFD700;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
    color: #FFE66D;
}

.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input {
    padding-right: 3rem;
}

.toggle-password {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: #FDB813;
}

.eye-icon {
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ========================================
   auth_reset_password
   ======================================== */

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 2rem;
}

.auth-card {
    background: linear-gradient(135deg, #141414 0%, #171717 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.auth-card h1 {
    margin: 0 0 0.5rem;
    font-size: 1.75rem;
    text-align: center;
    color: #f1f5f9;
}

.auth-subtitle {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-subtitle strong {
    color: #FFD700;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"] {
    width: 100%;
    padding: 0.75rem;
    background: #0a0a0a;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-secondary);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input::placeholder {
    color: #64748b;
}

.form-group input:focus {
    outline: none;
    border-color: #FDB813;
    box-shadow: 0 0 0 3px rgba(253, 184, 19, 0.2);
}


.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: #FFD700;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
    color: #FFE66D;
}

.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input {
    padding-right: 3rem;
}

.toggle-password {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: #FDB813;
}

.eye-icon {
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ========================================
   database_viewer
   ======================================== */

.database-viewer-page {
        padding: 2rem 0;
    }

    .collection-list {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        background: white;
        border-radius: 8px;
        padding: 1rem;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .collection-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 1rem;
        background: #f8f9fa;
        border-radius: 6px;
        text-decoration: none;
        color: #2c3e50;
        transition: all 0.2s;
    }

    .collection-item:hover {
        background: #e9ecef;
        transform: translateX(4px);
    }

    .collection-item.active {
        background: #FFD700;
        color: white;
    }

    .collection-name {
        font-weight: 500;
    }

    .collection-count {
        background: rgba(0, 0, 0, 0.1);
        padding: 0.25rem 0.5rem;
        border-radius: 4px;
        font-size: 0.85rem;
    }

    .collection-item.active .collection-count {
        background: rgba(255, 255, 255, 0.2);
    }

    .documents-container {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .document-card {
        background: white;
        border-radius: 8px;
        padding: 1.5rem;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        overflow-x: auto;
    }

    .json-viewer {
        font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
        font-size: 0.9rem;
        line-height: 1.6;
        color: #2c3e50;
        background: #f8f9fa;
        padding: 1rem;
        border-radius: 4px;
    }

    .json-key {
        color: #8b4513;
        font-weight: 600;
    }

    .json-string {
        color: #2ecc71;
    }

    .json-number {
        color: #FFD700;
    }

    .json-boolean {
        color: #9b59b6;
        font-weight: 600;
    }

    .json-null {
        color: #95a5a6;
        font-style: italic;
    }

    .json-toggle {
        cursor: pointer;
        user-select: none;
        display: inline-block;
        width: 20px;
        color: #7f8c8d;
        font-weight: bold;
    }

    .json-toggle:hover {
        color: #FFD700;
    }

    .json-collapsible {
        margin-left: 20px;
    }

    .json-collapsed {
        display: none;
    }

    .json-line {
        margin: 2px 0;
    }

    .pagination {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 2rem;
        padding: 1rem;
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .empty-state {
        background: white;
        border-radius: 8px;
        padding: 3rem;
        text-align: center;
        color: #7f8c8d;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    @media (max-width: 768px) {
        .database-viewer-page > div {
            flex-direction: column;
        }

        .collection-list {
            min-width: auto;
        }
    }

/* ========================================
   index
   ======================================== */

.spinner-small {
        width: 12px;
        height: 12px;
        border: 2px solid rgba(253, 184, 19, 0.2);
        border-top: 2px solid #FFD700;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

    .spinner-large {
        width: 40px;
        height: 40px;
        border: 4px solid rgba(253, 184, 19, 0.2);
        border-top: 4px solid #FFD700;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin: 0 auto;
    }

    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

/* ========================================
   market_prediction
   ======================================== */

.market-analysis-page {
        padding: 2rem;
        max-width: 1400px;
        margin: 0 auto;
    }

    .market-analysis-page .reddit-content-card {
        padding: 1rem 1.25rem;
        border-radius: 14px;
    }

    .page-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 2rem;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .page-header h1 {
        margin: 0;
        color: var(--text-secondary);
    }

    .subtitle {
        color: var(--text-muted);
        font-size: 0.9rem;
        margin-top: 0.5rem;
    }

    .controls {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

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

    #daysSelector {
        padding: 0.5rem 1rem;
        border-radius: 8px;
        background: rgba(20, 20, 20, 0.7);
        color: white;
        border: 1px solid rgba(255, 255, 255, 0.08);
        cursor: pointer;
        font-size: 0.9rem;
    }

    #daysSelector:hover {
        background: rgba(20, 20, 20, 0.9);
        border-color: rgba(253, 184, 19, 0.5);
    }

    /* Empty State */
    .empty-state {
        background: linear-gradient(135deg, #141414 0%, #171717 100%);
        border-radius: 18px;
        padding: 3rem;
        text-align: center;
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .empty-message {
        font-size: 1.5rem;
        color: var(--text-muted);
        margin-bottom: 1rem;
    }

    .empty-hint {
        color: #64748b;
        margin-bottom: 2rem;
    }

    /* Videos Table */
    .videos-table-container {
        background: linear-gradient(135deg, #141414 0%, #171717 100%);
        border-radius: 18px;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .videos-table {
        width: 100%;
        border-collapse: collapse;
    }

    .videos-table thead {
        background: #141414;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .videos-table th {
        padding: 1rem;
        text-align: left;
        color: #8b949e;
        font-weight: 600;
        font-size: 0.875rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .videos-table tbody tr {
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
        transition: background 0.2s;
    }

    .videos-table tbody tr:hover {
        background: rgba(255, 255, 255, 0.03);
    }

    .videos-table tbody tr:last-child {
        border-bottom: none;
    }

    .videos-table td {
        padding: 1rem;
        color: #e6edf3;
    }

    .title-cell {
        max-width: 500px;
    }

    .title-cell .video-link {
        color: #ffffff;
        font-weight: 600;
        text-decoration: none;
        transition: color 0.2s;
    }

    .title-cell .video-link:hover {
        color: #ffe16e;
    }

    .author-cell {
        color: #8b949e;
        font-size: 0.9rem;
    }

    .date-cell {
        color: #7d8590;
        font-size: 0.875rem;
    }

    .video-link:hover {
        color: #FDB813;
        text-decoration: underline;
    }

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

    .date-cell {
        color: var(--text-muted);
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .summaries-cell {
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .summary-badge {
        padding: 0.35rem 0.65rem;
        border-radius: 6px;
        font-size: 0.75rem;
        font-weight: 600;
        white-space: nowrap;
        letter-spacing: 0.02em;
    }

    .badge-openai {
        background: rgba(255, 255, 255, 0.08);
        color: #c9d1d9;
        border: 1px solid rgba(255, 255, 255, 0.15);
    }

    .badge-claude {
        background: rgba(255, 255, 255, 0.08);
        color: #c9d1d9;
        border: 1px solid rgba(255, 255, 255, 0.15);
    }

    .badge-gemini {
        background: rgba(255, 255, 255, 0.08);
        color: #c9d1d9;
        border: 1px solid rgba(255, 255, 255, 0.15);
    }

    .stock-provider-badge {
        background: rgba(148, 163, 184, 0.14);
        color: #d5deea;
        border: 1px solid rgba(148, 163, 184, 0.28);
    }

    /* Generate Prediction Section */
    .generate-section {
        margin-top: 2rem;
        text-align: center;
        padding: 0;
        background: transparent;
    }

    /* Loading Indicator */
    .loading-indicator {
        margin-top: 2rem;
        padding: 2rem;
        text-align: center;
        background: linear-gradient(135deg, #141414 0%, #171717 100%);
        border-radius: 18px;
        border: 2px solid rgba(253, 184, 19, 0.3);
    }

    .spinner {
        width: 50px;
        height: 50px;
        margin: 0 auto 1rem;
        border: 4px solid rgba(253, 184, 19, 0.2);
        border-top-color: #FDB813;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

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

    .loading-indicator p {
        color: var(--text-muted);
        font-size: 1rem;
        margin: 0;
    }

    /* Prediction Results */
    .prediction-results {
        margin-top: 2rem;
        padding: 2rem;
        background: linear-gradient(135deg, rgba(253, 184, 19, 0.1) 0%, rgba(253, 184, 19, 0.1) 100%);
        border-radius: 12px;
        border: 2px solid rgba(253, 184, 19, 0.3);
        animation: slideIn 0.5s ease-out;
    }

    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .results-header {
        margin-bottom: 2rem;
    }

    .results-header h3 {
        color: #FDB813;
        margin: 0 0 0.5rem 0;
    }

    .results-subtitle {
        color: var(--text-muted);
        margin: 0;
        font-size: 0.9rem;
    }

    .results-subtitle strong {
        color: #FFD700;
    }

    .results-warning {
        margin: 0.75rem 0 0;
        color: #f59e0b;
        font-size: 0.9rem;
    }

    /* Provider Predictions Grid */
    .provider-predictions-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .provider-prediction-card {
        background: linear-gradient(135deg, #141414 0%, #171717 100%);
        border-radius: 18px;
        border-left: 4px solid;
        padding: 1.5rem;
        transition: all 0.3s;
    }

    .provider-prediction-card:hover {
        background: linear-gradient(135deg, #161616 0%, #191919 100%);
        transform: translateY(-2px);
    }

    .provider-error-card {
        opacity: 0.7;
    }

    .provider-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
        border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    }

    .provider-name {
        font-weight: 600;
        font-size: 1.1rem;
    }

    .provider-model {
        color: #64748b;
        font-size: 0.8rem;
        font-family: monospace;
    }

    .provider-error {
        color: #ef4444;
        font-size: 0.85rem;
        font-weight: 500;
    }

    .provider-prediction-text {
        color: var(--text-secondary);
        line-height: 1.6;
        font-size: 0.95rem;
    }

    .provider-error-text {
        color: #f87171;
        font-size: 0.9rem;
    }

    /* Trends Section */
    .trends-section {
        margin-bottom: 1.5rem;
    }

    .trends-section h4 {
        color: #FFD700;
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
        font-weight: 600;
    }

    .trends-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .trends-list li {
        color: var(--text-secondary);
        font-size: 0.9rem;
        line-height: 1.6;
        padding: 0.5rem 0;
        padding-left: 1.5rem;
        position: relative;
    }

    .trends-list li:before {
        content: "▸";
        position: absolute;
        left: 0;
        color: #FFD700;
        font-weight: bold;
    }

    /* Recommendations Section */
    .recommendations-section {
        margin-top: 1.5rem;
    }

    .recommendations-section h4 {
        color: #FDB813;
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
        font-weight: 600;
    }

    .recommendations-grid {
        display: grid;
        gap: 0.75rem;
    }

    .recommendation-card {
        background: linear-gradient(135deg, #141414 0%, #171717 100%);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 6px;
        padding: 0.75rem;
        transition: all 0.2s;
    }

    .recommendation-card:hover {
        background: linear-gradient(135deg, #161616 0%, #191919 100%);
        border-color: rgba(255, 225, 110, 0.4);
        transform: translateX(4px);
    }

    .rec-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0.5rem;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .rec-price-wrapper {
        margin-bottom: 0.5rem;
        padding: 0.5rem 0;
    }

    .rec-price-container {
    }

    .rec-price-label {
        font-size: 0.7rem;
        color: #64748b;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 0.15rem;
        font-weight: 600;
    }

    .rec-price {
        font-size: 1.5rem;
        font-weight: 700;
        color: #10b981;
        font-family: 'Courier New', monospace;
        letter-spacing: 0.5px;
    }

    .rec-price-current {
        color: #fbbf24;
    }

    .sell-recommendation .rec-price {
        color: #ef4444;
    }

    .sell-recommendation .rec-price-current {
        color: #fb923c;
    }

    .rec-symbol {
        font-weight: 700;
        font-size: 1rem;
        color: var(--text-secondary);
        font-family: monospace;
    }

    .rec-type {
        padding: 0.2rem 0.5rem;
        border-radius: 10px;
        font-size: 0.7rem;
        font-weight: 600;
        border: 1px solid;
    }

    .rec-name {
        color: var(--text-muted);
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    .rec-rationale {
        color: #cbd5e1;
        font-size: 0.85rem;
        line-height: 1.5;
    }

    /* Confidence Badges for Market Predictions */
    .rec-confidence-badges {
        display: flex;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .confidence-badge {
        padding: 0.2rem 0.5rem;
        border-radius: 4px;
        font-size: 0.75rem;
        font-weight: 600;
    }

    .confidence-badge.video-confidence {
        background: rgba(16, 185, 129, 0.3);
        color: #34d399;
    }

    .confidence-badge.video-confidence.sell {
        background: rgba(239, 68, 68, 0.3);
        color: #f87171;
    }

    .confidence-badge.ai-confidence {
        background: rgba(168, 85, 247, 0.3);
        color: #c084fc;
    }

    .rec-confidence-rationales {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid rgba(148, 163, 184, 0.16);
    }

    .rec-confidence-rationales .rationale-item {
        font-size: 0.8rem;
        color: var(--text-muted);
        margin-bottom: 0.25rem;
    }

    .rec-confidence-rationales .rationale-label {
        font-weight: 600;
    }

    .rec-confidence-rationales .rationale-label.video-label {
        color: #34d399;
    }

    .rec-confidence-rationales .rationale-label.sell-label {
        color: #f87171;
    }

    .rec-confidence-rationales .rationale-label.ai-label {
        color: #c084fc;
    }

    .no-recommendations {
        color: #64748b;
        font-style: italic;
        font-size: 0.9rem;
    }

    /* Source Videos Section */
    .source-videos-section {
        margin-top: 2rem;
        padding-top: 1.5rem;
        border-top: 1px solid rgba(148, 163, 184, 0.16);
    }

    .source-videos-section h4 {
        color: #FFD700;
        margin-top: 0;
        margin-bottom: 1rem;
        font-size: 1rem;
    }

    .source-videos-list {
        display: grid;
        gap: 0.75rem;
    }

    .source-video-item {
        background: rgba(20, 20, 20, 0.6);
        padding: 1rem;
        border-radius: 8px;
        border-left: 3px solid rgba(253, 184, 19, 0.5);
        transition: all 0.2s;
    }

    .source-video-item:hover {
        background: rgba(20, 20, 20, 0.8);
        border-left-color: #FDB813;
    }

    .source-video-item .video-title {
        color: #FFD700;
        text-decoration: none;
        font-weight: 500;
        display: block;
        margin-bottom: 0.5rem;
        transition: color 0.2s;
    }

    .source-video-item .video-title:hover {
        color: #FDB813;
        text-decoration: underline;
    }

    .source-video-item .video-details {
        display: flex;
        gap: 1rem;
        font-size: 0.85rem;
    }

    .source-video-item .video-author {
        color: var(--text-muted);
    }

    .source-video-item .video-date {
        color: #64748b;
    }

    /* Responsive Design */
    @media (max-width: 768px) {
        .market-analysis-page {
            padding: 1rem;
        }

        .market-analysis-page .reddit-content-card {
            padding: 0.85rem 1rem;
            border-radius: 12px;
        }

        .page-header {
            flex-direction: column;
            align-items: flex-start;
        }

        .videos-table-container {
            overflow-x: auto;
        }

        .videos-table {
            min-width: 600px;
        }

        .title-cell {
            max-width: 250px;
        }

        .prediction-meta {
            flex-direction: column;
        }
    }

/* ========================================
   prediction_history
   ======================================== */

.history-page {
        padding: 2rem;
        max-width: 1400px;
        margin: 0 auto;
    }

    .page-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 2rem;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .page-header h1 {
        margin: 0;
        color: var(--text-secondary);
    }

    .subtitle {
        color: var(--text-muted);
        font-size: 0.9rem;
        margin-top: 0.5rem;
    }

    .empty-state {
        background: linear-gradient(135deg, #141414 0%, #171717 100%);
        border-radius: 18px;
        padding: 3rem;
        text-align: center;
    }

    .empty-message {
        font-size: 1.5rem;
        color: var(--text-muted);
        margin-bottom: 1rem;
    }

    .empty-hint {
        color: #64748b;
        margin-bottom: 2rem;
    }

    .group-section {
        margin-bottom: 3rem;
    }

    .group-section h2 {
        color: #FFD700;
        margin-bottom: 1rem;
        font-size: 1.5rem;
    }

    .predictions-list {
        display: grid;
        gap: 1.5rem;
    }

    .prediction-card {
        background: linear-gradient(135deg, #141414 0%, #171717 100%);
        border-radius: 18px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        overflow: hidden;
        transition: all 0.3s;
    }

    .prediction-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        border-color: rgba(253, 184, 19, 0.5);
    }

    .card-header {
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        background: #141414;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

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

    .badges {
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .badge {
        padding: 0.25rem 0.75rem;
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: 500;
    }

    .badge-days {
        background: rgba(253, 184, 19, 0.2);
        color: #FFD700;
        border: 1px solid rgba(253, 184, 19, 0.3);
    }

    .badge-videos {
        background: rgba(253, 184, 19, 0.2);
        color: #34d399;
        border: 1px solid rgba(253, 184, 19, 0.3);
    }

    .badge-provider {
        background: rgba(245, 158, 11, 0.2);
        color: #fbbf24;
        border: 1px solid rgba(245, 158, 11, 0.3);
    }

    .card-content {
        padding: 1.5rem;
    }

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

    .provider-prediction-mini {
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid rgba(51, 65, 85, 0.3);
    }

    .provider-prediction-mini:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    .provider-header-mini {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0.5rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .provider-label {
        color: #FFD700;
        font-size: 0.95rem;
    }

    .model-badge {
        background: rgba(100, 116, 139, 0.3);
        color: #cbd5e1;
        padding: 0.2rem 0.6rem;
        border-radius: 12px;
        font-size: 0.75rem;
        font-family: monospace;
        border: 1px solid rgba(100, 116, 139, 0.4);
    }

    .prediction-text-mini {
        color: var(--text-secondary);
        line-height: 1.6;
        margin: 0;
        font-size: 0.95rem;
    }

    .prediction-error-mini {
        color: #f87171;
        margin: 0;
        font-size: 0.9rem;
        font-style: italic;
    }

    .section-title {
        color: #FFD700;
        font-size: 0.85rem;
        display: block;
        margin-top: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .trends-mini {
        margin-bottom: 1rem;
    }

    .trends-list-mini {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .trends-list-mini li {
        color: #cbd5e1;
        font-size: 0.85rem;
        line-height: 1.5;
        padding: 0.3rem 0;
        padding-left: 1.2rem;
        position: relative;
    }

    .trends-list-mini li:before {
        content: "▸";
        position: absolute;
        left: 0;
        color: #FFD700;
    }

    .recommendations-mini {
        margin-top: 1rem;
    }

    .recs-list-mini {
        display: grid;
        gap: 0.5rem;
        margin-top: 0.5rem;
    }

    .rec-item-mini {
        background: rgba(20, 20, 20, 0.5);
        padding: 0.5rem;
        border-radius: 4px;
        font-size: 0.85rem;
        line-height: 1.5;
        color: #cbd5e1;
        border: 1px solid rgba(51, 65, 85, 0.3);
    }

    .rec-symbol-mini {
        font-weight: 700;
        color: var(--text-secondary);
        font-family: monospace;
    }

    .rec-type-mini {
        background: rgba(253, 184, 19, 0.2);
        color: #FFD700;
        padding: 0.1rem 0.4rem;
        border-radius: 8px;
        font-size: 0.7rem;
        text-transform: uppercase;
        font-weight: 600;
    }

    /* Mini Confidence Badges for Prediction History */
    .rec-header-mini {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex-wrap: wrap;
        margin-bottom: 0.25rem;
    }

    .rec-price-mini {
        font-size: 1.1rem;
        font-weight: 700;
        color: #10b981;
        font-family: 'Courier New', monospace;
        letter-spacing: 0.5px;
    }

    .rec-price-mini.rec-price-current {
        color: #fbbf24;
    }

    .rec-price-mini.sell-price {
        color: #ef4444;
    }

    .rec-price-mini.rec-price-current.sell-price {
        color: #fb923c;
    }

    .confidence-badge-mini {
        padding: 0.1rem 0.4rem;
        border-radius: 4px;
        font-size: 0.65rem;
        font-weight: 600;
    }

    .confidence-badge-mini.video {
        background: rgba(16, 185, 129, 0.3);
        color: #34d399;
    }

    .confidence-badge-mini.sell {
        background: rgba(239, 68, 68, 0.3);
        color: #f87171;
    }

    .confidence-badge-mini.ai {
        background: rgba(168, 85, 247, 0.3);
        color: #c084fc;
    }

    .rec-detail-mini {
        color: #cbd5e1;
        line-height: 1.4;
    }

    .rec-rationale-mini {
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(51, 65, 85, 0.3);
        font-size: 0.75rem;
        color: var(--text-muted);
    }

    .rec-rationale-mini .rationale-video {
        display: block;
        margin-bottom: 0.25rem;
    }

    .rec-rationale-mini .rationale-video::before {
        content: '';
        display: inline-block;
        width: 8px;
        height: 8px;
        background: #34d399;
        border-radius: 2px;
        margin-right: 0.5rem;
    }

    .rec-rationale-mini .rationale-sell {
        display: block;
        margin-bottom: 0.25rem;
    }

    .rec-rationale-mini .rationale-sell::before {
        content: '';
        display: inline-block;
        width: 8px;
        height: 8px;
        background: #f87171;
        border-radius: 2px;
        margin-right: 0.5rem;
    }

    .rec-rationale-mini .rationale-ai {
        display: block;
    }

    .rec-rationale-mini .rationale-ai::before {
        content: '';
        display: inline-block;
        width: 8px;
        height: 8px;
        background: #c084fc;
        border-radius: 2px;
        margin-right: 0.5rem;
    }

    .videos-used-section {
        margin-top: 2rem;
        padding-top: 1.5rem;
        border-top: 1px solid rgba(148, 163, 184, 0.16);
    }

    .videos-used-header {
        color: var(--text-muted);
        font-size: 0.9rem;
        margin-bottom: 1rem;
        font-weight: 600;
    }

    .videos-used-list {
        display: grid;
        gap: 0.75rem;
    }

    .video-used-item {
        background: rgba(20, 20, 20, 0.5);
        padding: 0.5rem;
        border-radius: 6px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        transition: all 0.2s;
    }

    .video-used-item:hover {
        background: rgba(20, 20, 20, 0.7);
        border-color: rgba(253, 184, 19, 0.4);
        transform: translateX(4px);
    }

    .video-used-link {
        display: block;
        padding: 0.75rem 1rem;
        text-decoration: none;
        color: inherit;
    }

    .video-used-title {
        color: var(--text-secondary);
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
        line-height: 1.4;
    }

    .video-used-meta {
        display: flex;
        gap: 1rem;
        font-size: 0.8rem;
        flex-wrap: wrap;
    }

    .video-used-author {
        color: var(--text-muted);
    }

    .video-used-date {
        color: #64748b;
        font-family: monospace;
    }

    .card-footer {
        padding: 1rem 1.5rem;
        background: #141414;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .prediction-id {
        color: #64748b;
        font-size: 0.8rem;
        font-family: monospace;
    }

    @media (max-width: 768px) {
        .history-page {
            padding: 1rem;
        }

        .page-header {
            flex-direction: column;
            align-items: flex-start;
        }

        .card-header {
            flex-direction: column;
            align-items: flex-start;
        }
    }

/* ========================================
   transcribed_videos
   ======================================== */

.video-list-vertical {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .video-list-item {
        display: flex;
        gap: 1.5rem;
        padding: 1.5rem;
        background: white;
        border-bottom: 1px solid #e1e8ed;
        transition: background-color 0.2s;
    }

    .video-list-item:hover {
        background-color: #f8f9fa;
    }

    .video-thumbnail-small {
        flex-shrink: 0;
        width: 180px;
        height: 101px;
        border-radius: 6px;
        overflow: hidden;
    }

    .video-thumbnail-small img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.2s;
    }

    .video-thumbnail-small:hover img {
        transform: scale(1.05);
    }

    .video-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-width: 0;
    }

    .video-header h3 {
        margin: 0 0 0.5rem 0;
        font-size: 1.2rem;
        line-height: 1.4;
    }

    .video-header h3 a {
        color: #2c3e50;
        text-decoration: none;
    }

    .video-header h3 a:hover {
        color: #FFD700;
    }

    .video-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        align-items: center;
        font-size: 0.9rem;
        color: #7f8c8d;
        margin-bottom: 0.75rem;
    }

    .video-meta .separator {
        color: #bdc3c7;
    }

    .video-meta .author {
        font-weight: 500;
        color: #34495e;
    }

    .video-actions {
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    @media (max-width: 768px) {
        .video-list-item {
            flex-direction: column;
        }

        .video-thumbnail-small {
            width: 100%;
            height: auto;
            aspect-ratio: 16/9;
        }
    }

/* ========================================
   video_detail
   ======================================== */

.spinner {
            width: 16px;
            height: 16px;
            border: 2px solid rgba(253, 184, 19, 0.2);
            border-top: 2px solid #FFD700;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
/* ========================================
   MOBILE-FIRST ENHANCEMENTS
   ======================================== */

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-toggle:focus-visible {
    outline: 2px solid #FDB813;
    outline-offset: 3px;
    border-radius: 6px;
    box-shadow: 0 0 0 2px rgba(20, 20, 20, 0.9);
    background: rgba(253, 184, 19, 0.12);
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #FFD700;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu Close Button (inside flyout panel) */
.mobile-menu-close {
    display: none;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    /* Show hamburger button on mobile */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Close button inside the flyout panel */
    .mobile-menu-close {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 18px;
        right: 16px;
        width: 36px;
        height: 36px;
        background: none;
        border: 1px solid rgba(148, 163, 184, 0.15);
        border-radius: 8px;
        color: var(--text-muted);
        font-size: 22px;
        line-height: 1;
        cursor: pointer;
        z-index: 1;
        transition: all 0.2s ease;
    }

    .mobile-menu-close:hover {
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(148, 163, 184, 0.25);
        color: #f1f5f9;
    }

    .mobile-menu-close:focus-visible {
        outline: 2px solid #38bdf8;
        outline-offset: 2px;
    }

    /* Mobile Navigation */
    .navbar .container {
        position: relative;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(14, 14, 18, 0.98);
        flex-direction: column;
        padding: 80px 0 20px;
        gap: 0;
        box-shadow: -8px 0 30px rgba(0, 0, 0, 0.5);
        transition: right 0.3s ease;
        overflow-y: auto;
        z-index: 10001;
        border-left: 1px solid rgba(148, 163, 184, 0.1);
    }

    .nav-menu.active {
        right: 0;
    }

    /* Ensure navbar stays on top */
    .navbar {
        position: relative;
        z-index: 10002;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(148, 163, 184, 0.06);
    }

    .nav-menu > li > a {
        display: block;
        padding: 1rem 1.5rem;
        width: 100%;
        text-align: left;
        font-size: 1.1rem;
    }

    /* Center login/register in logged-out flyout */
    .nav-menu:not(.nav-icons) > li:not(.nav-user) {
        text-align: center;
    }

    .nav-menu:not(.nav-icons) > li:not(.nav-user) > a {
        text-align: center;
    }

    /* Ensure nav-icons container is full width in mobile menu */
    .nav-menu.nav-icons {
        width: 100%;
        gap: 0;
    }

    /* Mobile icon-links in sidebar */
    .nav-menu .icon-link {
        display: flex !important;
        align-items: center;
        gap: 1rem;
        color: var(--text-secondary) !important;
        background: transparent !important;
        border: none !important;
        width: 100% !important;
        max-width: 100%;
        height: auto;
        min-height: 56px;
        padding: 1rem 1.5rem;
        margin: 0;
        border-radius: 0;
        box-sizing: border-box;
    }

    .nav-menu .icon-link svg {
        width: 24px;
        height: 24px;
        flex-shrink: 0;
        fill: currentColor;
    }

    .nav-menu .icon-link svg.reddit-glyph {
        width: 27px;
        height: 27px;
    }

    .nav-menu .icon-link .sr-only {
        position: static;
        width: auto;
        height: auto;
        clip: auto;
        overflow: visible;
        white-space: normal;
        font-size: 1.1rem;
        color: inherit;
    }

    .nav-menu .icon-link:hover {
        background: rgba(255, 255, 255, 0.06) !important;
        color: #f1f5f9 !important;
        transform: none;
        box-shadow: none;
    }

    .nav-menu .icon-link.is-current,
    .nav-menu .icon-link[aria-current="page"] {
        color: #ffe16e !important;
        background: rgba(255, 225, 110, 0.08) !important;
    }

    /* Mobile separator — horizontal divider */
    .nav-separator {
        width: 100%;
        height: 1px;
        margin: 4px 0;
    }

    /* Mobile primary nav — gold left accent */
    .nav-menu .icon-link.icon-link--primary {
        border-left: 3px solid rgba(255, 225, 110, 0.35) !important;
        padding-left: calc(1.5rem - 3px);
    }

    /* Hide tooltip in mobile menu since we show labels */
    .nav-menu .icon-link::after {
        display: none !important;
    }

    /* Mobile dropdown */
    .nav-dropdown .dropdown-menu {
        position: static;
        display: none;
        background: rgba(0, 0, 0, 0.3);
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0;
    }

    .nav-dropdown.active .dropdown-menu {
        display: block;
    }

    .nav-dropdown > a::after {
        float: right;
    }

    /* Mobile user section */
    .nav-user {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 1.5rem;
        border-left: none;
        margin-left: 0;
        border-top: 1px solid rgba(148, 163, 184, 0.12);
        gap: 0.5rem;
    }

    /* Overlay when menu is open */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        z-index: 999;
    }

    /* Adjust main content */
    .container {
        padding: 0 15px;
    }

    .main-content {
        padding: 1.5rem 15px;
    }

    /* Improved touch targets (minimum 44x44px) */
    .btn {
        min-height: 44px;
        padding: 0.75rem 1rem;
        font-size: 1rem;
        white-space: normal;
        word-wrap: break-word;
    }
    
    /* Nav menu buttons on mobile */
    .nav-menu .btn--primary {
        display: inline-flex;
        width: auto;
        max-width: 100%;
    }

    /* Tables scroll horizontally on mobile */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    /* Video grid - single column on mobile */
    .video-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    /* Stats grid - stack on mobile */
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    /* Form adjustments */
    .edit-form, .add-form {
        padding: 1.5rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .form-actions {
        flex-direction: column !important;
        gap: 0.75rem;
    }

    .form-actions .btn {
        width: 100% !important;
    }

    /* Channel items stack better */
    .channel-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .video-actions {
        width: 100%;
    }

    .video-actions .btn {
        flex: 1;
    }

    /* Toast notifications */
    .toast {
        right: 1rem;
        left: 1rem;
        bottom: 1rem;
        width: auto;
    }

    /* Footer */
    footer {
        padding: 1rem 0;
        font-size: 0.875rem;
    }

    /* Headings */
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.25rem;
    }
}

/* Tablet Styles (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .nav-menu {
        gap: 0.5rem;
        font-size: 0.9rem;
    }

    .nav-icons .icon-link {
        padding: 6px 8px;
    }

    .nav-icons .icon-link svg {
        width: 18px;
        height: 18px;
    }

    .nav-icons .icon-link svg.reddit-glyph {
        width: 21px;
        height: 21px;
    }

    .nav-icons .icon-link.icon-link--primary {
        background: rgba(255, 255, 255, 0.04);
        color: #cbd5e1;
    }

    .nav-separator { height: 20px; margin: 0 4px; }

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

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

/* Desktop Styles (1024px+) */
@media (min-width: 1024px) {
    .container {
        max-width: 1200px;
    }

    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

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

/* Large Desktop (1440px+) */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
}

/* Improve touch feedback */
@media (hover: none) and (pointer: coarse) {
    /* Better touch targets for mobile */
    a, button, .btn {
        min-height: 44px;
        min-width: 44px;
    }
    .blog-pill,
    .blog-ticker-tag,
    .pricing-toggle__switch {
        min-height: auto;
        min-width: auto;
    }

    /* Remove hover effects on touch devices */
    .btn:hover {
        transform: none;
    }

    /* Add active state for touch feedback */
    .btn:active {
        transform: scale(0.98);
        opacity: 0.9;
    }

    a:active, button:active {
        opacity: 0.7;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
    overflow: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    z-index: 10000;
    background: linear-gradient(135deg, #141414 0%, #171717 100%);
    border-radius: 18px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #fff;
}

.modal-title {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
    color: #fff;
}

/* Dashboard Redesign */
.dashboard-page {
    position: relative;
    max-width: none;
    margin: 0 auto;
    padding: 32px 4vw 60px;
}

.dashboard-page::before {
    content: '';
    position: absolute;
    inset: -40px -20px auto -20px;
    height: 320px;
    background: radial-gradient(circle at 20% 20%, rgba(14, 165, 233, 0.18), transparent 55%),
                radial-gradient(circle at 80% 0%, rgba(248, 113, 113, 0.12), transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.dashboard-hero {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    padding: 28px 32px;
    border-radius: 18px;
    background: linear-gradient(135deg, #141414 0%, #171717 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
    margin-bottom: 36px;
}

.dashboard-hero::after {
    content: '';
    position: absolute;
    right: 24px;
    top: 18px;
    width: 120px;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.9), rgba(56, 189, 248, 0.2));
    opacity: 0.6;
}

.hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.7rem;
    color: #38bdf8;
    font-weight: 600;
    margin-bottom: 10px;
}

.hero-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    margin-bottom: 4px;
    color: var(--text-primary);
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 540px;
}

.hero-cta {
    padding: 12px 20px;
    font-size: 0.95rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(56, 189, 248, 0.25);
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-message {
    font-size: 24px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.empty-hint {
    font-size: 16px;
    color: var(--text-muted);
}

.prediction-container {
    position: relative;
    z-index: 1;
    margin: 0 auto 48px auto;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.prediction-container:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.prediction-header {
    text-align: center;
    padding: 20px;
    margin-bottom: 28px;
    background: rgba(20, 20, 20, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.prediction-frame {
    padding: 16px;
    border-radius: 20px;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 18px 36px rgba(20, 20, 20, 0.6);
}

.timestamp {
    font-size: 14px;
    color: #38bdf8;
    font-weight: 600;
    margin-bottom: 10px;
}

.meta-badges {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.dashboard-page .badge {
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.dashboard-page .badge-days {
    background: rgba(56, 189, 248, 0.2);
    color: #7dd3fc;
}

.dashboard-page .badge-videos {
    background: rgba(248, 113, 113, 0.2);
    color: #fecaca;
}

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

/* Unified predictions container replaces grid */
.unified-predictions-container {
    width: 100%;
    margin-bottom: 10px;
}

.prediction-card {
    background: var(--surface-bg);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.prediction-card:hover {
    border-color: inherit;
    box-shadow: none;
    transform: none;
}

.openai-card {
    border-color: rgba(34, 197, 94, 0.35);
}

.claude-card {
    border-color: rgba(251, 146, 60, 0.35);
}

.gemini-card {
    border-color: rgba(59, 130, 246, 0.35);
}

.provider-header {
    padding: 14px 16px;
    background: rgba(12, 18, 30, 0.8);
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.provider-name {
    font-size: 12px;
    color: #f1f5f9;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.model-badge {
    padding: 3px 8px;
    background: rgba(148, 163, 184, 0.12);
    border-radius: 999px;
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.card-content {
    padding: 14px;
    flex: 1;
    overflow-y: auto;
}

.section-title {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.section-title.sell-title {
    color: #fca5a5;
}

.trends-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.trends-list li {
    padding: 6px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    color: var(--text-secondary);
    font-size: 13px;
}

.trends-list li:last-child {
    border-bottom: none;
}

.trends-section {
    padding: 14px 16px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 12px;
    background: rgba(20, 20, 20, 0.6);
    margin-bottom: 16px;
}

.recommendations-section {
    margin-top: 12px;
    padding: 10px 12px 12px;
    border: none;
    border-radius: 12px;
    background: rgba(20, 20, 20, 0.6);
}

.recs-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Grid layout for unified card recommendations on larger screens */
body.dashboard-body .unified-card .recs-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

/* 2 columns on tablets */
@media (min-width: 768px) {
    body.dashboard-body .unified-card .recs-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 3 columns on larger screens */
@media (min-width: 1200px) {
    body.dashboard-body .unified-card .recs-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

.rec-card {
    background: linear-gradient(135deg, #141414 0%, #171717 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transform: translateY(0);
    transition: all 0.2s ease;
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dashboard redesign overrides */
body.dashboard-body .dashboard-page::before {
    display: none;
}

body.dashboard-body .dashboard-hero {
    background: #0f0f0f;
    border: 1px solid rgba(var(--accent-yellow-rgb), 0.22);
    box-shadow: none;
}

body.dashboard-body .dashboard-hero::after {
    content: '';
    position: absolute;
    right: 24px;
    top: 18px;
    width: 120px;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.9), rgba(56, 189, 248, 0.2));
    opacity: 0.6;
}

body.dashboard-body .hero-eyebrow {
    color: var(--accent-yellow);
}

body.dashboard-body .hero-title {
    color: var(--accent-yellow);
    background: none;
    -webkit-text-fill-color: initial;
}

body.dashboard-body .hero-subtitle {
    color: #ffffff;
}

body.dashboard-body .hero-cta {
    background: var(--accent-yellow);
    color: #0a0a0a;
    border: none;
    box-shadow: none;
}

body.dashboard-body .btn--primary {
    background: var(--accent-yellow);
    color: #0a0a0a;
    border: none;
}

body.dashboard-body .btn--primary:hover {
    background: #ffd95a;
}

body.dashboard-body .btn--secondary {
    background: transparent;
    color: var(--accent-yellow);
    border: 1px solid rgba(var(--accent-yellow-rgb), 0.4);
}

body.dashboard-body .prediction-frame {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

body.dashboard-body .prediction-header {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0 2px 12px 2px;
    margin-bottom: 18px;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

body.dashboard-body .timestamp {
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 600;
}

body.dashboard-body .meta-badges {
    justify-content: flex-start;
    gap: 10px;
}

body.dashboard-body .meta-badges .badge {
    border: none !important;
    box-shadow: none !important;
}

body.dashboard-body .badge-days {
    background: transparent;
    color: var(--accent-yellow);
    padding: 0;
    border-radius: 0;
}

body.dashboard-body .badge-videos {
    background: transparent;
    color: #9ca3af;
    padding: 0;
    border-radius: 0;
}

body.dashboard-body .prediction-card {
    background: transparent;
    border: 3px solid rgba(var(--accent-yellow-rgb), 0.12);
    border-radius: 12px;
    box-shadow: none;
}

body.dashboard-body .prediction-card.openai-card {
    background: linear-gradient(180deg, rgba(16, 163, 127, 0.08), rgba(15, 15, 15, 1));
    border-color: rgba(16, 163, 127, 0.7);
    box-shadow: 0 0 20px rgba(16, 163, 127, 0.2);
}

body.dashboard-body .prediction-card.openai-card:hover {
    background: linear-gradient(180deg, rgba(16, 163, 127, 0.08), rgba(15, 15, 15, 1));
    border-color: rgba(16, 163, 127, 0.85);
    box-shadow: 0 0 30px rgba(16, 163, 127, 0.3);
}

body.dashboard-body .prediction-card.claude-card {
    background: linear-gradient(180deg, rgba(217, 119, 87, 0.12), rgba(15, 15, 15, 1));
    border-color: rgba(217, 119, 87, 0.7);
    box-shadow: 0 0 20px rgba(217, 119, 87, 0.2);
}

body.dashboard-body .prediction-card.claude-card:hover {
    background: linear-gradient(180deg, rgba(217, 119, 87, 0.12), rgba(15, 15, 15, 1));
    border-color: rgba(217, 119, 87, 0.85);
    box-shadow: 0 0 30px rgba(217, 119, 87, 0.3);
}

body.dashboard-body .prediction-card.gemini-card {
    background: linear-gradient(180deg, rgba(66, 133, 244, 0.12), rgba(15, 15, 15, 1));
    border-color: rgba(66, 133, 244, 0.7);
    box-shadow: 0 0 20px rgba(66, 133, 244, 0.2);
}

body.dashboard-body .prediction-card.gemini-card:hover {
    background: linear-gradient(180deg, rgba(66, 133, 244, 0.12), rgba(15, 15, 15, 1));
    border-color: rgba(66, 133, 244, 0.85);
    box-shadow: 0 0 30px rgba(66, 133, 244, 0.3);
}

/* Unified AI Predictions Card */
body.dashboard-body .unified-predictions-container {
    width: 100%;
    margin-bottom: 10px;
}

body.dashboard-body .prediction-card.unified-card {
    background: linear-gradient(135deg, #141414 0%, #171717 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.dashboard-body .prediction-card.unified-card:hover {
    background: linear-gradient(135deg, #161616 0%, #191919 100%);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Unified header with provider badges */
body.dashboard-body .unified-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* Left side of unified header with brand and date */
body.dashboard-body .unified-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

body.dashboard-body .header-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

body.dashboard-body .header-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

body.dashboard-body .header-brand-name {
    font-size: 14px;
    font-weight: 700;
    color: #e6edf3;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

body.dashboard-body .unified-date {
    font-size: 13px;
    font-weight: 500;
    color: #8b949e;
    letter-spacing: 0.01em;
    line-height: 1.4;
}

body.dashboard-body .unified-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #7d8590;
    line-height: 1.5;
}

body.dashboard-body .unified-meta-item {
    font-weight: 500;
}

body.dashboard-body .unified-meta-separator {
    color: rgba(255, 255, 255, 0.3);
    font-weight: 700;
}

body.dashboard-body .unified-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

body.dashboard-body .provider-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

body.dashboard-body .share-card-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 6px 8px;
    cursor: pointer;
    color: #c9d1d9;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

body.dashboard-body .share-card-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #e6edf3;
}

/* Card branding for screenshots */
body.dashboard-body .card-branding {
    display: none;
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 16px;
}

body.dashboard-body .card-branding .brand-logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

body.dashboard-body .card-branding .brand-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

body.dashboard-body .card-branding .brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

body.dashboard-body .card-branding .brand-name {
    font-size: 16px;
    font-weight: 700;
    color: #e6edf3;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

body.dashboard-body .card-branding .brand-tagline {
    font-size: 11px;
    color: #8b949e;
    font-weight: 400;
    line-height: 1.2;
}

/* Disable hover effects during screenshot capture */
body.dashboard-body .prediction-card.card-capturing,
body.dashboard-body .card-capturing .rec-item,
body.dashboard-body .card-capturing .rec-card {
    transform: none !important;
    box-shadow: none !important;
    background: linear-gradient(135deg, #141414 0%, #171717 100%) !important;
}

body.dashboard-body .card-capturing .rec-symbol,
body.dashboard-body .card-capturing .rec-price-dash,
body.dashboard-body .card-capturing .rec-name {
    text-shadow: none !important;
    color: inherit !important;
}

/* Add explicit borders for screenshot capture (pseudo-elements don't capture well) */
body.dashboard-body .card-capturing .rec-item {
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 12px !important;
    position: relative !important;
}

body.dashboard-body .card-capturing .rec-item::before,
body.dashboard-body .card-capturing .rec-item::after {
    display: none !important;
}

body.dashboard-body .provider-badge {
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 0 8px;
    align-items: center;
}

body.dashboard-body .provider-badge-icon {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: center;
    flex-shrink: 0;
    font-size: 18px;
    line-height: 1;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
}

body.dashboard-body .provider-badge-text {
    grid-column: 2;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

body.dashboard-body .provider-badge-name {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
    font-size: 11px;
    font-weight: 600;
}

body.dashboard-body .provider-badge-model {
    font-size: 9px;
    font-weight: 400;
    opacity: 0.7;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.2;
}

body.dashboard-body .provider-badge.openai {
    background: rgba(255, 255, 255, 0.08);
    color: #c9d1d9;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

body.dashboard-body .provider-badge.claude {
    background: rgba(255, 255, 255, 0.08);
    color: #c9d1d9;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

body.dashboard-body .provider-badge.gemini {
    background: rgba(255, 255, 255, 0.08);
    color: #c9d1d9;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Inline provider icons */
body.dashboard-body .provider-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    font-size: 18px;
    line-height: 22px;
    flex-shrink: 0;
    margin-right: 8px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
}

/* Update trends list to accommodate icon */
body.dashboard-body .unified-card .trends-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    padding: 8px 0;
    padding-left: 0;
}

body.dashboard-body .unified-card .trends-list li::before {
    content: none;
}

body.dashboard-body .unified-card .trend-text {
    flex: 1;
    line-height: 1.65;
    font-size: 14px;
    color: #c9d1d9;
    font-weight: 500;
}

/* Provider trends grouping */
body.dashboard-body .unified-card .provider-trends-group {
    margin-bottom: 24px;
}

body.dashboard-body .unified-card .provider-trends-group:last-child {
    margin-bottom: 0;
}

body.dashboard-body .unified-card .provider-trends-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

body.dashboard-body .unified-card .provider-trends-name {
    font-size: 13px;
    font-weight: 600;
    color: #e6edf3;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

body.dashboard-body .unified-card .provider-trends-group .trends-list {
    list-style: disc;
    padding-left: 28px;
    margin: 0;
}

body.dashboard-body .unified-card .provider-trends-group .trends-list li {
    display: list-item;
    padding: 4px 0;
    margin-bottom: 8px;
}

body.dashboard-body .unified-card .provider-trends-group .trends-list li::marker {
    color: rgba(255, 255, 255, 0.4);
}

/* Trends header row with toggle button */
body.dashboard-body .unified-card .trends-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

body.dashboard-body .unified-card .trends-header-row .section-title {
    margin-bottom: 0;
}

body.dashboard-body .unified-card .toggle-insights-view {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 6px 8px;
    cursor: pointer;
    color: #c9d1d9;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.dashboard-body .unified-card .toggle-insights-view:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #e6edf3;
}

/* 3-column layout for insights */
body.dashboard-body .unified-card .trends-section.trends-columns-view {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

body.dashboard-body .unified-card .trends-section.trends-columns-view .provider-trends-group {
    margin-bottom: 0;
}

/* Responsive: stack on smaller screens */
@media (max-width: 1024px) {
    body.dashboard-body .unified-card .trends-section.trends-columns-view {
        grid-template-columns: 1fr;
    }
}

/* Compact horizontal layout for unified card recommendations */
body.dashboard-body .unified-card .rec-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    gap: 10px 16px;
    align-items: center;
    padding: 16px;
}

/* Consensus highlight for multiple providers */
body.dashboard-body .unified-card .rec-item.consensus-rec {
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Ticker section - floats to the left */
body.dashboard-body .unified-card .rec-item .rec-header {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    min-width: 85px;
}

/* Ticker symbol */
body.dashboard-body .unified-card .rec-item .rec-symbol {
    font-size: 17px;
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #e6edf3;
}

/* Type badge below ticker */
body.dashboard-body .unified-card .rec-item .rec-type {
    font-size: 10px;
    padding: 4px 10px;
    background: rgba(139, 148, 158, 0.2);
    color: #8b949e;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    border: 1px solid rgba(139, 148, 158, 0.2);
}

/* Name in center */
body.dashboard-body .unified-card .rec-item .rec-name {
    grid-column: 2;
    grid-row: 1;
    font-size: 14px;
    font-weight: 600;
    color: #e6edf3;
    align-self: center;
    line-height: 1.4;
}

/* Price in top right */
body.dashboard-body .unified-card .rec-item .rec-price-wrapper {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: center;
}

body.dashboard-body .unified-card .rec-item .rec-greed-fear-ratio {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: end;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    margin-top: 44px;
}

body.dashboard-body .unified-card .rec-item .rec-greed-fear-ratio .ratio-label {
    font-size: 10px;
    color: #7d8590;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

body.dashboard-body .unified-card .rec-item .rec-greed-fear-ratio .ratio-value {
    font-size: 13px;
    font-weight: 700;
    color: #93c5fd;
}

body.dashboard-body .unified-card .rec-item .rec-price-container {
    text-align: right;
}

body.dashboard-body .unified-card .rec-item .rec-price-label {
    font-size: 11px;
    color: #7d8590;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
    font-weight: 500;
}

body.dashboard-body .unified-card .rec-item .rec-price-dash {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #e6edf3;
}

body.dashboard-body .unified-card .rec-item .rec-price-dash.rec-price-current {
    color: #fbbf24;
}

body.dashboard-body .unified-card .rec-item .rec-price-dash.rec-price-current.price-up {
    color: #22c55e;
}

body.dashboard-body .unified-card .rec-item .rec-price-dash.rec-price-current.price-down {
    color: #ef4444;
}

body.dashboard-body .unified-card .rec-item .rec-price-dash.rec-price-current .price-change {
    font-size: 11px;
    font-weight: 700;
    margin-left: 4px;
}
/* Multiple rationales container spans bottom */
body.dashboard-body .unified-card .rec-item .rec-rationales {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 12px;
    margin-top: 8px;
    align-self: start;
}

/* Individual provider rationale */
body.dashboard-body .unified-card .rec-item .provider-rationale {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    padding: 12px 14px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
    border-radius: 10px;
    border-left: 3px solid rgba(63, 185, 80, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 3px solid rgba(63, 185, 80, 0.4);
}

body.dashboard-body .unified-card .rec-item .provider-rationale.sell-rationale {
    border-left-color: rgba(248, 81, 73, 0.5);
}

body.dashboard-body .unified-card .rec-item .provider-rationale-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

body.dashboard-body .unified-card .rec-item .rationale-provider {
    font-size: 13px;
    flex-shrink: 0;
    margin-top: 1px;
    font-weight: 600;
    color: #e6edf3;
}

body.dashboard-body .unified-card .rec-item .provider-confidence-wrapper {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

body.dashboard-body .unified-card .rec-item .confidence-header {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8b949e;
    font-weight: 600;
}

body.dashboard-body .unified-card .rec-item .confidence-pill-stacked {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, 0.35);
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.2), rgba(56, 189, 248, 0.1));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

body.dashboard-body .unified-card .rec-item .confidence-pill-stacked.conf-high {
    border-color: rgba(63, 185, 80, 0.45);
    background: linear-gradient(180deg, rgba(63, 185, 80, 0.2), rgba(63, 185, 80, 0.09));
}

body.dashboard-body .unified-card .rec-item .confidence-pill-stacked.conf-medium {
    border-color: rgba(255, 190, 92, 0.45);
    background: linear-gradient(180deg, rgba(255, 190, 92, 0.2), rgba(255, 190, 92, 0.09));
}

body.dashboard-body .unified-card .rec-item .confidence-pill-stacked.conf-low {
    border-color: rgba(248, 81, 73, 0.45);
    background: linear-gradient(180deg, rgba(248, 81, 73, 0.22), rgba(248, 81, 73, 0.1));
}

body.dashboard-body .unified-card .rec-item .conf-value {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.01em;
}

body.dashboard-body .unified-card .rec-item .rationale-text {
    font-size: 13px;
    line-height: 1.65;
    color: #8b949e;
    flex: 1;
    font-weight: 400;
}

body.dashboard-body .prediction-card:hover {
    box-shadow: none;
    transform: none;
}

/* Hover effects only on devices with mouse/hover capability */
@media (hover: hover) and (pointer: fine) {
    body.dashboard-body .rec-card:hover,
    body.dashboard-body .rec-item:hover,
    body.dashboard-body .recommendation-card:hover {
        transform: translateY(-2px) scale(1.01);
        box-shadow:
            0 8px 24px rgba(0, 0, 0, 0.3),
            0 0 0 1px rgba(var(--accent-yellow-rgb), 0.5),
            0 0 20px rgba(var(--accent-yellow-rgb), 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.08),
            inset 0 -1px 0 rgba(0, 0, 0, 0.15);
        border-color: rgba(var(--accent-yellow-rgb), 0.6);

        /* Animated Gradient on Hover */
        background:
            linear-gradient(135deg,
                rgba(var(--accent-yellow-rgb), 0.12) 0%,
                rgba(var(--accent-yellow-rgb), 0.06) 25%,
                rgba(var(--accent-yellow-rgb), 0.08) 50%,
                rgba(var(--accent-yellow-rgb), 0.04) 75%,
                rgba(var(--accent-yellow-rgb), 0.06) 100%),
            radial-gradient(circle at 50% 0%,
                rgba(255, 255, 255, 0.05) 0%,
                transparent 70%);

        /* Enhanced glassmorphism on hover */
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }

    /* Brighten text on hover with enhanced glow */
    body.dashboard-body .rec-card:hover .rec-symbol,
    body.dashboard-body .rec-item:hover .rec-symbol {
        color: #4ade80;
        text-shadow:
            0 0 8px rgba(74, 222, 128, 0.4),
            0 0 16px rgba(74, 222, 128, 0.2),
            0 1px 2px rgba(0, 0, 0, 0.3);
    }

    body.dashboard-body .rec-card:hover .rec-symbol.sell,
    body.dashboard-body .rec-item:hover .rec-symbol.sell {
        color: #fca5a5;
        text-shadow:
            0 0 8px rgba(252, 165, 165, 0.4),
            0 0 16px rgba(252, 165, 165, 0.2),
            0 1px 2px rgba(0, 0, 0, 0.3);
    }

    body.dashboard-body .rec-card:hover .rec-price-dash,
    body.dashboard-body .rec-item:hover .rec-price-dash {
        color: #ffffff;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    }

    body.dashboard-body .rec-card:hover .rec-name,
    body.dashboard-body .rec-item:hover .rec-name {
        color: #ffffff;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    }

    body.dashboard-body .rec-card:hover .rec-rationale,
    body.dashboard-body .rec-item:hover .rec-rationale {
        color: var(--text-primary);
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
        opacity: 1;
    }
}

body.dashboard-body .provider-header {
    background: transparent;
    border-bottom: 1px solid rgba(var(--accent-yellow-rgb), 0.12);
    padding: 16px 18px;
}

body.dashboard-body .provider-name {
    color: #ffffff;
    text-transform: none;
    letter-spacing: 0.02em;
    font-size: 1rem;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

body.dashboard-body .model-badge {
    background: rgba(var(--accent-yellow-rgb), 0.12);
    color: var(--accent-yellow);
    border-radius: 999px;
    font-size: 10px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.1),
        0 0 8px rgba(var(--accent-yellow-rgb), 0.1);
}

body.dashboard-body .section-title {
    color: #e6edf3;
    font-size: 14px;
    letter-spacing: 0.06em;
    font-weight: 700;
    text-align: left;
    text-shadow: none;
    margin-bottom: 16px;
}

body.dashboard-body .section-title.sell-title {
    color: #f85149;
}

body.dashboard-body .recommendations-section .section-title {
    color: #3fb950;
}

body.dashboard-body .recommendations-section .section-title.sell-title {
    color: #f85149;
}

body.dashboard-body .trends-section,
body.dashboard-body .recommendations-section {
    background: transparent;
    border: none;
    text-align: left;
    margin-bottom: 32px;
}

body.dashboard-body .trends-section {
    padding-bottom: 8px;
}

body.dashboard-body .recommendations-section {
    padding-top: 8px;
}

body.dashboard-body .trends-list li {
    color: #ffffff;
    border-bottom: 1px solid rgba(var(--accent-yellow-rgb), 0.08);
    font-size: 16px;
    line-height: 1.75;
    font-weight: 600;
    padding: 10px 0 10px 16px;
    position: relative;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

body.dashboard-body .trends-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-yellow);
}

body.dashboard-body .rec-card {
    /* Glassmorphism + Advanced Gradients */
    background:
        linear-gradient(135deg,
            rgba(var(--accent-yellow-rgb), 0.04) 0%,
            rgba(var(--accent-yellow-rgb), 0.01) 50%,
            transparent 100%),
        linear-gradient(to bottom,
            rgba(255, 255, 255, 0.02) 0%,
            rgba(255, 255, 255, 0.005) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    /* Gradient Border */
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;

    transform: translateY(0);
    transition: all 0.2s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease, background 0.4s ease;

    /* Advanced Multi-layered Shadows */
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.1),
        0 8px 16px rgba(0, 0, 0, 0.1);

    /* Premium Typography */
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Gradient Border Effect */
body.dashboard-body .rec-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg,
        rgba(var(--accent-yellow-rgb), 0.3) 0%,
        rgba(var(--accent-yellow-rgb), 0.1) 50%,
        rgba(var(--accent-yellow-rgb), 0.2) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: -1;
    transition: background 0.4s ease, opacity 0.3s ease;
}

/* Animated gradient border on hover */
@media (hover: hover) and (pointer: fine) {
    body.dashboard-body .rec-card:hover::before {
        background: linear-gradient(135deg,
            rgba(var(--accent-yellow-rgb), 0.6) 0%,
            rgba(var(--accent-yellow-rgb), 0.3) 25%,
            rgba(var(--accent-yellow-rgb), 0.5) 50%,
            rgba(var(--accent-yellow-rgb), 0.2) 75%,
            rgba(var(--accent-yellow-rgb), 0.5) 100%);
    }
}

/* Noise Texture Overlay */
body.dashboard-body .rec-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.4;
    pointer-events: none;
    mix-blend-mode: overlay;
    transition: opacity 0.4s ease;
}

/* Enhance noise texture on hover */
@media (hover: hover) and (pointer: fine) {
    body.dashboard-body .rec-card:hover::after {
        opacity: 0.5;
    }
}

body.dashboard-body .rec-item {
    /* Glassmorphism + Advanced Gradients */
    background:
        linear-gradient(135deg,
            rgba(var(--accent-yellow-rgb), 0.04) 0%,
            rgba(var(--accent-yellow-rgb), 0.01) 50%,
            transparent 100%),
        linear-gradient(to bottom,
            rgba(255, 255, 255, 0.02) 0%,
            rgba(255, 255, 255, 0.005) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    /* Gradient Border */
    border: 2px solid transparent;
    background-clip: padding-box;
    border-radius: 12px;
    padding: 16px 18px;
    position: relative;

    transform: translateY(0);
    transition: all 0.2s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease, background 0.4s ease;

    /* Advanced Multi-layered Shadows */
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.1),
        0 8px 16px rgba(0, 0, 0, 0.1);
    gap: 12px;

    /* Premium Typography */
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Gradient Border Effect for rec-item */
body.dashboard-body .rec-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg,
        rgba(var(--accent-yellow-rgb), 0.4) 0%,
        rgba(var(--accent-yellow-rgb), 0.15) 50%,
        rgba(var(--accent-yellow-rgb), 0.3) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: -1;
    transition: background 0.4s ease, opacity 0.3s ease;
}

/* Animated gradient border on hover for rec-item */
@media (hover: hover) and (pointer: fine) {
    body.dashboard-body .rec-item:hover::before {
        background: linear-gradient(135deg,
            rgba(var(--accent-yellow-rgb), 0.7) 0%,
            rgba(var(--accent-yellow-rgb), 0.35) 25%,
            rgba(var(--accent-yellow-rgb), 0.6) 50%,
            rgba(var(--accent-yellow-rgb), 0.25) 75%,
            rgba(var(--accent-yellow-rgb), 0.6) 100%);
    }
}

/* Noise Texture Overlay for rec-item */
body.dashboard-body .rec-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.4;
    pointer-events: none;
    mix-blend-mode: overlay;
    transition: opacity 0.4s ease;
}

/* Enhance noise texture on hover for rec-item */
@media (hover: hover) and (pointer: fine) {
    body.dashboard-body .rec-item:hover::after {
        opacity: 0.5;
    }
}

body.dashboard-body .rec-symbol {
    color: #4ade80;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 0 12px rgba(74, 222, 128, 0.2);
    transition: all 0.2s ease;
}

body.dashboard-body .rec-symbol.sell {
    color: #fca5a5;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 0 12px rgba(252, 165, 165, 0.2);
    transition: all 0.2s ease;
}

body.dashboard-body .rec-price-dash {
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease;
}

body.dashboard-body .rec-name {
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
    margin-bottom: 8px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

body.dashboard-body .rec-rationale {
    color: #f1f5f9;
    font-size: 14px;
    line-height: 1.7;
    transition: all 0.2s ease;
    padding-top: 10px;
    border-top: 1px solid rgba(var(--accent-yellow-rgb), 0.08);
    margin-top: 10px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    opacity: 1;
    font-weight: 500;
}


.rec-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(var(--accent-yellow-rgb), 0.08);
    margin-bottom: 10px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

@media (hover: hover) and (pointer: fine) {
    body.dashboard-body .rec-card:hover .rec-header,
    body.dashboard-body .rec-item:hover .rec-header {
        border-bottom-color: rgba(var(--accent-yellow-rgb), 0.15);
    }
}

.rec-symbol {
    font-size: 15px;
    font-weight: 700;
    color: #22c55e;
    letter-spacing: 0.5px;
}

.rec-symbol.sell {
    color: #ef4444;
}

.rec-price-wrapper {
    margin: 12px 0;
    padding: 10px 0;
    transition: all 0.2s ease;
}

.rec-price-dash {
    font-size: 16px;
    font-weight: 700;
    color: #22c55e;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.5px;
}

.rec-price-dash.rec-price-current {
    color: #fbbf24;
}

.rec-price-dash.sell-price-dash {
    color: #ef4444;
}

.rec-price-dash.rec-price-current.sell-price-dash {
    color: #fb923c;
}

.rec-type {
    padding: 2px 8px;
    background: rgba(var(--accent-yellow-rgb), 0.22);
    border-radius: 6px;
    font-size: 10px;
    color: var(--accent-yellow);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.rec-item.sell-signal .rec-type {
    color: var(--accent-yellow);
}

.confidence-scores {
    display: flex;
    gap: 8px;
    margin-left: auto;
    margin-top: 8px;
}

.confidence-badge {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    border: 1px solid;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.confidence-badge.video {
    background: rgba(56, 189, 248, 0.25);
    color: #7dd3fc;
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.1),
        0 0 10px rgba(56, 189, 248, 0.1);
}

.confidence-badge.ai {
    background: rgba(168, 85, 247, 0.25);
    color: #c084fc;
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.1),
        0 0 10px rgba(168, 85, 247, 0.1);
}

@media (hover: hover) and (pointer: fine) {
    body.dashboard-body .rec-card:hover .confidence-badge,
    body.dashboard-body .rec-item:hover .confidence-badge {
        transform: scale(1.05);
    }

    body.dashboard-body .rec-card:hover .confidence-badge.video,
    body.dashboard-body .rec-item:hover .confidence-badge.video {
        box-shadow:
            0 4px 8px rgba(0, 0, 0, 0.2),
            0 0 16px rgba(56, 189, 248, 0.2),
            0 0 24px rgba(56, 189, 248, 0.1);
    }

    body.dashboard-body .rec-card:hover .confidence-badge.ai,
    body.dashboard-body .rec-item:hover .confidence-badge.ai {
        box-shadow:
            0 4px 8px rgba(0, 0, 0, 0.2),
            0 0 16px rgba(168, 85, 247, 0.2),
            0 0 24px rgba(168, 85, 247, 0.1);
    }
}

.rec-name {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.rec-rationale {
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.5;
}

.prediction-error {
    padding: 12px;
    background: rgba(239, 68, 68, 0.1);
    border-left: 3px solid #ef4444;
    color: #fca5a5;
    font-size: 14px;
}

@media (max-width: 1400px) {
    .ai-predictions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 900px) {
    .dashboard-hero {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .dashboard-page {
        padding: 16px;
    }

    .prediction-header {
        padding: 16px;
    }

    .timestamp {
        font-size: 15px;
    }

    .provider-header {
        padding: 12px;
    }

    .card-content {
        padding: 12px;
    }

    .provider-name {
        font-size: 15px;
    }

    body.dashboard-body .prediction-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding-bottom: 8px;
    }

    body.dashboard-body .meta-badges {
        justify-content: flex-start;
    }

    /* Unified card mobile styles */
    body.dashboard-body .unified-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    body.dashboard-body .unified-date {
        font-size: 14px;
    }

    body.dashboard-body .unified-meta {
        font-size: 11px;
    }

    body.dashboard-body .provider-badges {
        width: 100%;
        justify-content: flex-start;
    }

    body.dashboard-body .provider-badge {
        font-size: 10px;
        padding: 5px 10px;
    }

    /* Mobile: stack recommendations vertically */
    body.dashboard-body .unified-card .recs-list {
        grid-template-columns: 1fr !important;
    }

    /* Mobile: adjust rec-item layout for smaller screens */
    body.dashboard-body .unified-card .rec-item {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto auto;
        gap: 8px;
    }

    body.dashboard-body .unified-card .rec-item .rec-header {
        grid-column: 1;
        grid-row: 1 / 3;
        min-width: 70px;
        padding: 6px;
    }

    body.dashboard-body .unified-card .rec-item .rec-name {
        grid-column: 2;
        grid-row: 1;
        font-size: 11px;
    }

    body.dashboard-body .unified-card .rec-item .rec-price-wrapper {
        grid-column: 2;
        grid-row: 2;
        justify-self: start;
    }

    body.dashboard-body .unified-card .rec-item .rec-price-container {
        text-align: left;
    }

    body.dashboard-body .unified-card .rec-item .rec-symbol {
        font-size: 14px;
    }

    body.dashboard-body .unified-card .rec-item .rec-price-dash {
        font-size: 14px;
    }

    body.dashboard-body .unified-card .rec-item .rec-rationales {
        grid-column: 1 / -1;
        grid-row: 3;
    }

    body.dashboard-body .unified-card .rec-item .rationale-text {
        font-size: 11px;
    }

    body.dashboard-body .unified-card .rec-item .provider-rationale-header {
        flex-wrap: wrap;
    }

    body.dashboard-body .unified-card .rec-item .provider-confidence-wrapper {
        gap: 3px;
    }

    body.dashboard-body .unified-card .rec-item .confidence-pill-stacked {
        min-width: 50px;
        padding: 3px 8px;
    }

    .ticker-bar {
        display: none;
    }

    .nav-icons .icon-link {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .nav-icons .icon-link svg {
        filter: none;
    }
}

/* Full-width dashboard layout with safe gutters */
.dashboard-body .main-content {
    max-width: none;
    padding: 0;
}

/* X accounts dashboard-aligned layout */
.dashboard-body .x-accounts-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
}

.dashboard-body .x-accounts-frame {
    margin-bottom: 1.25rem;
}

.dashboard-body .x-accounts-header {
    gap: 1rem;
}

.dashboard-body .x-accounts-summary {
    margin-bottom: 1.25rem;
    padding: 1rem 1.2rem;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(11, 16, 26, 0.74);
}

.dashboard-body .x-accounts-summary-text {
    margin: 0;
    color: #e6edf3;
}

.dashboard-body .x-accounts-highlight {
    color: #ffe16e;
}

.dashboard-body .x-accounts-bullet {
    color: var(--text-muted);
    margin: 0 0.5rem;
}

.dashboard-body .x-accounts-list {
    display: grid;
    gap: 0.95rem;
}

.dashboard-body .x-account-card {
    padding: 1.2rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.dashboard-body .x-account-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 225, 110, 0.38);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(255, 225, 110, 0.12);
}

.dashboard-body .x-account-card-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
}

.dashboard-body .x-account-content {
    flex: 1;
    min-width: 0;
}

.dashboard-body .x-account-title-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.45rem;
}

.dashboard-body .x-account-avatar {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffe16e;
    flex-shrink: 0;
}

.dashboard-body .x-account-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dashboard-body .x-account-avatar-fallback {
    width: 100%;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dashboard-body .x-account-name {
    margin: 0;
}

.dashboard-body .x-account-name-link {
    color: #ffe16e;
    text-decoration: none;
    transition: color 0.2s ease;
}

.dashboard-body .x-account-name-link:hover {
    color: #fff0a6;
}

.dashboard-body .x-account-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.dashboard-body .x-account-bullet {
    margin: 0 0.5rem;
}

.dashboard-body .x-account-warning {
    color: #ef4444;
}

.dashboard-body .x-account-muted {
    color: #64748b;
}

.dashboard-body .x-account-last-seen {
    margin-top: 0.45rem;
    font-size: 0.85rem;
    color: #64748b;
}

.dashboard-body .x-account-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.dashboard-body .x-accounts-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
    background: rgba(11, 16, 26, 0.75);
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.dashboard-body .x-accounts-empty-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #e6edf3;
}

/* X accounts modal overrides */
.modal.modal-twitter {
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.65);
}

.modal-content.modal-content-twitter {
    background-color: #0f131d;
    color: #e5e7eb;
    margin: 10% auto;
    padding: 0;
    border-radius: 18px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
    max-width: 500px;
    border: 1px solid rgba(255, 225, 110, 0.24);
}

.modal-twitter .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 19, 29, 0.95);
}

.modal-twitter .modal-header h2 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.modal-twitter .close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.modal-twitter .close-btn:hover {
    color: #ffe16e;
}

.modal-twitter .modal-content form {
    padding: 1.25rem;
}

.modal-twitter .form-group {
    margin-bottom: 1.25rem;
}

.modal-twitter .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #e5e7eb;
}

.modal-twitter .form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 8px;
    font-size: 1rem;
    color: #e5e7eb;
    background: rgba(20, 20, 20, 0.72);
}

.modal-twitter .form-control:focus {
    outline: none;
    border-color: #ffe16e;
    box-shadow: 0 0 0 3px rgba(255, 225, 110, 0.2);
}

.modal-twitter .form-control::placeholder {
    color: var(--text-muted);
}

.modal-twitter small {
    color: var(--text-muted);
}

.modal-twitter .modal-twitter-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.modal-twitter .modal-twitter-body-copy {
    margin: 1rem 0;
    color: #e6edf3;
}

.modal-twitter .modal-twitter-highlight {
    color: #ffe16e;
}

.modal-twitter .modal-twitter-body-note {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 1rem 0;
}

.modal-content.modal-content-twitter-danger {
    border-color: rgba(239, 68, 68, 0.36);
}

.modal-content.modal-content-twitter-danger .close-btn:hover {
    color: #ef4444;
}

.modal-twitter .modal-twitter-danger-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    border-color: #ef4444 !important;
    color: #fff !important;
}

.modal-twitter .modal-twitter-danger-btn:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    border-color: #dc2626 !important;
}

/* X posts dashboard-aligned layout */
.dashboard-body .x-posts-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
}

.dashboard-body .x-posts-frame {
    margin-bottom: 1.5rem;
}

.dashboard-body .x-posts-header {
    gap: 1rem;
}

.dashboard-body .x-nav-guide-card {
    margin-bottom: 1rem;
    padding: 1.1rem 1.2rem;
}

.dashboard-body .x-nav-guide-header {
    margin-bottom: 0.8rem;
}

.dashboard-body .x-nav-guide-title {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.02rem;
}

.dashboard-body .x-nav-guide-subtitle {
    margin: 0.35rem 0 0;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.dashboard-body .x-nav-guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.6rem;
}

.dashboard-body .x-nav-guide-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 0.7rem;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.5);
    color: #d7deea;
    font-size: 0.88rem;
}

.dashboard-body .x-nav-guide-icon {
    width: 24px;
    min-width: 24px;
    text-align: center;
    font-size: 1rem;
    color: #ffe16e;
}

.dashboard-body .x-engagement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.dashboard-body .x-insight-card,
.dashboard-body .x-alert-card,
.dashboard-body .x-challenge-card {
    padding: 1rem 1.1rem;
}

.dashboard-body .x-insight-card h2,
.dashboard-body .x-alert-card h2,
.dashboard-body .x-challenge-card h2 {
    margin: 0 0 0.55rem;
    color: var(--text-primary);
    font-size: 1rem;
}

.dashboard-body .x-insight-date {
    margin: 0 0 0.55rem;
    color: var(--text-muted);
    font-size: 0.84rem;
}

.dashboard-body .x-insight-copy,
.dashboard-body .x-trust-note,
.dashboard-body .x-streak-note {
    margin: 0;
    color: #d6deeb;
    line-height: 1.6;
    font-size: 0.9rem;
}

.dashboard-body .x-alert-list,
.dashboard-body .x-challenge-list {
    margin: 0 0 0.75rem;
    padding-left: 1.05rem;
    color: #d6deeb;
    line-height: 1.55;
    font-size: 0.9rem;
}

.dashboard-body .x-streak-note {
    margin-top: 0.55rem;
    color: #ffe16e;
}

.dashboard-body .x-challenge-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.dashboard-body .x-challenge-status {
    color: #cbd5e1;
    font-size: 0.86rem;
}

.dashboard-body .x-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.dashboard-body .x-post-card {
    padding: 1rem;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.dashboard-body .x-post-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 225, 110, 0.4);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 225, 110, 0.15);
}

.dashboard-body .x-post-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.dashboard-body .x-post-author {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.dashboard-body .x-post-avatar {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffe16e;
    flex-shrink: 0;
}

.dashboard-body .x-post-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.dashboard-body .x-post-avatar-fallback {
    width: 100%;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dashboard-body .x-post-author-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.dashboard-body .x-post-author-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.dashboard-body .x-post-time {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.dashboard-body .x-post-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: #ffe16e;
    border: 1px solid rgba(255, 225, 110, 0.26);
    background: rgba(255, 225, 110, 0.08);
    transition: all 0.2s ease;
}

.dashboard-body .x-post-link:hover {
    background: rgba(255, 225, 110, 0.16);
    border-color: rgba(255, 225, 110, 0.45);
    color: #fff0a6;
}

.dashboard-body .x-post-text {
    margin: 0;
    color: #d7deea;
    line-height: 1.65;
    font-size: 0.95rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.dashboard-body .x-post-text-empty {
    margin: 0;
    color: #7f8ca0;
    font-style: italic;
    font-size: 0.92rem;
}

.dashboard-body .x-posts-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(11, 16, 26, 0.74);
}

.dashboard-body .x-posts-page-info {
    color: #cbd5e1;
    font-size: 0.9rem;
}

.dashboard-body .x-posts-page-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .dashboard-body .x-accounts-page {
        padding: 1rem;
    }

    .dashboard-body .x-account-card-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .dashboard-body .x-account-actions {
        width: 100%;
    }

    .dashboard-body .x-account-actions .btn {
        flex: 1 1 auto;
    }

    .modal-twitter .modal-twitter-actions {
        flex-direction: column;
    }

    .modal-twitter .modal-twitter-actions .btn {
        width: 100%;
    }

    .dashboard-body .x-posts-page {
        padding: 1rem;
    }

    .dashboard-body .x-challenge-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-body .x-posts-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-body .x-posts-pagination {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Prediction history dashboard-aligned layout */
.dashboard-body .history-page {
    max-width: min(1400px, 98vw);
    margin: 0 auto;
    padding: 24px 20px 56px;
}

.dashboard-body .history-frame {
    margin-bottom: 1.5rem;
}

.dashboard-body .history-header {
    align-items: flex-start;
    gap: 1rem;
}

.dashboard-body .history-group-title {
    margin: 0 0 0.9rem;
    color: #f4e1a3;
    letter-spacing: 0.02em;
    font-size: 1.15rem;
}

.dashboard-body .history-card {
    border: 1px solid rgba(244, 225, 163, 0.14);
}

.dashboard-body .history-card .card-header {
    border-bottom: 1px solid rgba(244, 225, 163, 0.12);
}

.dashboard-body .history-card .badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.dashboard-body .history-card .badge-provider {
    background: rgba(49, 160, 255, 0.16);
    border: 1px solid rgba(49, 160, 255, 0.33);
    color: #7fc5ff;
}

.dashboard-body .history-card .provider-label {
    color: #f4e1a3;
}

.dashboard-body .history-card .section-title {
    color: #f4e1a3;
}

.dashboard-body .history-card .section-title.sell-title {
    color: #f3b0a8;
}

.dashboard-body .history-card .video-used-item {
    background: rgba(19, 21, 31, 0.58);
}

.dashboard-body .history-card .video-used-item:hover {
    border-color: rgba(244, 225, 163, 0.4);
    background: rgba(19, 21, 31, 0.8);
}

@media (max-width: 768px) {
    .dashboard-body .history-page {
        padding: 16px 12px 40px;
    }
}

.separator {
    color: #666;
    margin: 0 8px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Landing Page Styles */
.landing-hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #141414 0%, #171717 100%);
    color: white;
    margin: -20px -20px 40px -20px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    background: #ffe16e;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: #ccc;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.features-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(253, 184, 19, 0.2);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #FDB813;
}

.feature-card p {
    color: #ccc;
    line-height: 1.6;
}

.cta-section {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, rgba(253, 184, 19, 0.1) 0%, rgba(255, 165, 0, 0.1) 100%);
    border-radius: 12px;
    margin: 40px 0;
}

.cta-section h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: #fff;
}

/* Responsive adjustments for landing page */
@media (max-width: 768px) {
    .landing-hero {
        padding: 60px 20px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .btn--lg {
        padding: 12px 30px;
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .modal {
        align-items: center;
        padding: 10px;
    }

    .modal.active {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .modal-content {
        padding: 30px 20px;
        width: calc(100% - 20px);
        max-width: calc(100vw - 40px);
        max-height: 85vh;
        margin: 0;
        position: relative;
        box-sizing: border-box;
    }

    .modal-content * {
        max-width: 100%;
        box-sizing: border-box;
    }

    .modal-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .features-section {
        padding: 40px 20px;
    }

    .cta-section {
        padding: 60px 20px;
    }

    .cta-section h2 {
        font-size: 24px;
    }
}
/* ========================================
   videos_enhanced
   ======================================== */

.nav-icons .icon-link.is-current,
.nav-icons .icon-link[aria-current="page"] {
    color: #ffe16e;
    background: rgba(255, 225, 110, 0.08);
}

.videos-page-enhanced {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.videos-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.6rem;
    border-radius: 16px;
    background: var(--brand-surface-gradient);
    border: 1px solid var(--brand-border-subtle);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.videos-kicker {
    margin: 0 0 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-size: 0.73rem;
    color: var(--accent-yellow);
    font-weight: 700;
}

.videos-header h1 {
    margin: 0;
    font-size: clamp(1.4rem, 2.2vw, 2rem);
    line-height: 1.15;
    color: var(--accent-yellow);
    font-family: 'Space Grotesk', 'Work Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.videos-subtitle {
    margin-top: 0.45rem;
    color: #b6c4d8;
    max-width: 70ch;
}

.videos-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.8rem;
}

.overview-card {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.95rem 1.05rem;
    border-radius: var(--radius-md);
    background: var(--surface-bg);
    border: 1px solid var(--surface-border);
    box-shadow: var(--shadow-card);
}

.overview-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-yellow);
    font-family: 'Space Grotesk', 'Work Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.overview-label {
    font-size: 0.79rem;
    color: #a9bacf;
}

.video-insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.15rem;
}

@media (min-width: 1180px) {
    .video-insights-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.video-insight-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--surface-border);
    background: var(--surface-bg);
    box-shadow: var(--shadow-card);
    position: relative;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.video-insight-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.03);
    pointer-events: none;
}

.video-insight-card:hover,
.video-insight-card:focus-within {
    transform: translateY(-3px);
    border-color: rgba(var(--accent-yellow-rgb), 0.26);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.video-media-wrap {
    position: relative;
}

.video-thumb-link {
    display: block;
    position: relative;
}

.video-thumb-link::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--brand-overlay-soft), var(--brand-overlay-strong));
}

/* Unified button and pill primitives (phase 1 migration) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.24s ease;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn--sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn--lg {
    padding: 0.95rem 1.9rem;
    font-size: 1.02rem;
}

.btn--primary {
    background: var(--accent-yellow) !important;
    color: #0a0a0a !important;
    border-color: var(--accent-yellow) !important;
}

.btn--primary:hover,
.btn--primary:focus-visible {
    background: var(--brand-accent-hover) !important;
    border-color: var(--brand-accent-hover) !important;
    box-shadow: 0 8px 20px rgba(var(--accent-yellow-rgb), 0.3);
}

.btn--secondary {
    background: transparent !important;
    color: var(--accent-yellow) !important;
    border-color: rgba(var(--accent-yellow-rgb), 0.4) !important;
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
    background: rgba(var(--accent-yellow-rgb), 0.1) !important;
    border-color: var(--accent-yellow) !important;
}

.btn--danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: #ffffff !important;
    border-color: #dc2626 !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.btn--danger:hover,
.btn--danger:focus-visible {
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
}

.btn--success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    border-color: #059669 !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn--warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #ffffff !important;
    border-color: #d97706 !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn--info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn--google {
    background: #ffffff !important;
    color: #111827 !important;
    border-color: #d1d5db !important;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.16);
}

.btn--google:hover,
.btn--google:focus-visible {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.22);
}

.btn--facebook {
    background: linear-gradient(135deg, #1877f2 0%, #145acb 100%) !important;
    color: #ffffff !important;
    border-color: #145acb !important;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.34);
}

.btn--facebook:hover,
.btn--facebook:focus-visible {
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.42);
}

.btn--link {
    background: transparent !important;
    color: var(--accent-yellow) !important;
    border-color: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.btn--link:hover,
.btn--link:focus-visible {
    color: var(--brand-accent-hover) !important;
    text-decoration: underline;
    transform: none !important;
}

.btn--block {
    width: 100%;
}

@media (max-width: 768px) {
    .btn--block { white-space: normal; word-wrap: break-word; }
}

.btn--push-right {
    margin-left: auto;
}

.btn--icon-inline {
    gap: 0.35rem;
}

.btn:disabled,
.btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
    transform: none !important;
    box-shadow: none !important;
}

.pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.28rem 0.64rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
}

.pill--success {
    color: #86efac;
    border-color: rgba(16, 185, 129, 0.5);
    background: rgba(5, 46, 22, 0.85);
    box-shadow: 0 6px 18px rgba(4, 120, 87, 0.28);
}

.pill--warning {
    border-color: rgba(251, 191, 36, 0.72);
    color: #1f2937;
    background: #fcd34d;
}

.pill--static {
    cursor: default !important;
    pointer-events: none !important;
}

.badge-spaced {
    margin-right: 0.35rem;
}

.summary-complete-bubble {
    text-transform: uppercase;
}

.video-play-overlay {
    position: absolute;
    right: 0.85rem;
    bottom: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 0.48rem 0.92rem;
    background: var(--brand-control-bg);
    color: #e6edf8;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: all 0.2s ease;
}

.video-play-overlay:hover,
.video-play-overlay:focus-visible {
    background: var(--accent-yellow);
    color: #111827;
    border-color: var(--accent-yellow);
}

.video-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.95rem;
    padding: 1rem;
}

.video-card-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.video-card-header-main {
    display: flex;
    flex-direction: column;
    gap: 0.32rem;
}

.video-card-body h2 {
    font-size: 1.06rem;
    line-height: 1.38;
    margin: 0;
    font-family: 'Space Grotesk', 'Work Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.video-card-body h2 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.video-card-body h2 a:hover,
.video-card-body h2 a:focus-visible {
    color: var(--accent-yellow);
}

.video-meta-compact {
    font-size: 0.74rem;
    color: #aebed2;
}

.video-channel-link {
    color: rgba(var(--accent-yellow-rgb), 0.86);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.video-channel-link:hover,
.video-channel-link:focus-visible {
    color: #fff3b0;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.video-card-submeta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.73rem;
    color: #9caec4;
    line-height: 1.35;
}

.video-card-submeta-items {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.38rem;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.24rem 0.58rem;
    font-size: 0.73rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: var(--brand-trust-badge-bg);
}

@media (max-width: 620px) {
    .video-card-submeta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }
}

.trust-badge.confidence.high {
    color: #86efac;
    border-color: rgba(16, 185, 129, 0.45);
    background: var(--brand-trust-high-bg);
}

.trust-badge.confidence.medium {
    color: #fcd34d;
    border-color: rgba(245, 158, 11, 0.45);
    background: var(--brand-trust-medium-bg);
}

.trust-badge.confidence.low {
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.45);
    background: var(--brand-trust-low-bg);
}

.source-note {
    margin: 0;
    color: #a8b9cf;
    font-size: 0.83rem;
    line-height: 1.45;
}

.video-card-insights {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.insight-section {
    margin: 0;
}

.confidence-section {
    margin-bottom: 0.08rem;
}

.confidence-panel {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.44rem;
    border-radius: 12px;
    border: 1px solid var(--brand-border-soft);
    background: var(--brand-confidence-panel-bg);
    padding: 0.56rem 0.68rem;
}

.confidence-panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
}

.confidence-panel-label {
    font-size: 0.76rem;
    color: #e6edf8;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.confidence-meter {
    width: 100%;
    height: 7px;
    border-radius: 999px;
    background: var(--brand-confidence-track-bg);
    overflow: hidden;
}

.confidence-meter-fill {
    display: block;
    height: 100%;
    width: min(100%, max(6%, var(--confidence-score, 0%)));
    border-radius: inherit;
    background: var(--brand-confidence-fill-default);
}

.confidence-panel-reliability {
    font-size: 0.72rem;
    color: #d3deec;
    line-height: 1.35;
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    width: fit-content;
    border-radius: 999px;
    padding: 0.18rem 0.48rem;
    background: var(--brand-confidence-reliability-bg);
}

.confidence-panel-reliability::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.95);
}

.confidence-panel-score {
    font-size: 0.9rem;
    color: var(--accent-yellow);
    font-weight: 800;
    font-family: 'Space Grotesk', 'Work Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.confidence-panel.high {
    border-color: rgba(16, 185, 129, 0.45);
    background: var(--brand-confidence-high-bg);
}

.confidence-panel.high .confidence-meter-fill {
    background: var(--brand-confidence-fill-high);
}

.confidence-panel.high .confidence-panel-reliability::before {
    background: rgba(74, 222, 128, 0.95);
}

.confidence-panel.medium {
    border-color: rgba(245, 158, 11, 0.45);
    background: var(--brand-confidence-medium-bg);
}

.confidence-panel.medium .confidence-meter-fill {
    background: var(--brand-confidence-fill-medium);
}

.confidence-panel.medium .confidence-panel-reliability::before {
    background: rgba(251, 191, 36, 0.95);
}

.confidence-panel.low {
    border-color: rgba(239, 68, 68, 0.45);
    background: var(--brand-confidence-low-bg);
}

.confidence-panel.low .confidence-meter-fill {
    background: var(--brand-confidence-fill-low);
}

.confidence-panel.low .confidence-panel-reliability::before {
    background: rgba(252, 165, 165, 0.95);
}

.insight-section h3 {
    margin: 0 0 0.38rem;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-yellow);
    font-weight: 700;
}

.insight-section ul {
    margin: 0;
    padding-left: 1rem;
    color: #d9e5f2;
    font-size: 0.85rem;
    line-height: 1.45;
}

.insight-section ul li + li {
    margin-top: 0.3rem;
}

.ticker-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.ticker-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.22rem 0.62rem;
    font-size: 0.76rem;
    border: 1px solid transparent;
    font-weight: 600;
    text-decoration: none;
}

.ticker-chip.buy {
    color: #b6f5cf;
    border-color: rgba(16, 185, 129, 0.28);
    background: var(--brand-chip-buy-bg);
}

.ticker-chip.sell {
    color: #ffc5cd;
    border-color: rgba(244, 63, 94, 0.28);
    background: var(--brand-chip-sell-bg);
}

.videos-page-enhanced .pill--warning {
    border-color: rgba(var(--accent-yellow-rgb), 0.38);
    color: var(--accent-yellow);
    background: var(--brand-pill-warning-bg);
    box-shadow: none;
}

.videos-page-enhanced .pill--success {
    color: #9ce7c2;
    border-color: rgba(16, 185, 129, 0.34);
    background: var(--brand-pill-success-bg);
    box-shadow: none;
}

.ticker-chip small {
    font-size: 0.66rem;
    color: #d5deea;
}

.stock-link {
    color: inherit;
    text-decoration: none;
}

.stock-link:visited {
    color: inherit;
}

.stock-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ticker-empty,
.comment-empty {
    color: #94a8c0;
    font-size: 0.8rem;
}

.engagement-actions {
    margin: auto 0 0;
    padding-top: 25px;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.count {
    margin-left: 0.3rem;
    font-weight: 700;
    color: var(--accent-yellow);
}

.comments-panel {
    margin-top: 0.1rem;
    padding: 0.78rem;
    border-radius: 12px;
    border: 1px solid var(--brand-border-subtle);
    background: var(--brand-panel-bg);
}

.comments-panel label {
    display: block;
    margin-bottom: 0.42rem;
    font-size: 0.77rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #a8b9cf;
    font-weight: 700;
}

.comment-entry-row {
    display: flex;
    gap: 0.35rem;
}

.comment-entry-row input {
    flex: 1;
    min-width: 0;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: var(--brand-input-bg);
    color: var(--text-primary);
    padding: 0.46rem 0.6rem;
    font-size: 0.82rem;
}

.comments-list {
    margin: 0.45rem 0 0;
    padding-left: 1rem;
    color: #d4deeb;
    font-size: 0.82rem;
}

.moderation-status {
    margin-top: 0.18rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.transcript-ready {
    text-transform: uppercase;
}

.video-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    place-items: center;
    padding: 1rem;
}

.video-modal.is-open {
    display: grid;
}

.video-modal-open {
    overflow: hidden;
}

.video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 12, 0.72);
}

.video-modal-content {
    position: relative;
    width: min(980px, 100%);
    border-radius: 14px;
    background: #0a1018;
    border: 1px solid rgba(148, 163, 184, 0.22);
    overflow: hidden;
}

.video-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 0.9rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.video-modal-close {
    border: 0;
    border-radius: 8px;
    background: rgba(30, 41, 59, 0.7);
    color: var(--text-primary);
    padding: 0.35rem 0.55rem;
    cursor: pointer;
}

.video-modal-player {
    aspect-ratio: 16 / 9;
}

.video-modal-player iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 820px) {
    .videos-header {
        flex-direction: column;
    }

    .video-insights-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================================
   Pricing Page & Billing
   ============================================================================ */

.pricing-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 60px 20px 80px;
}

.pricing-hero {
    text-align: center;
    margin-bottom: 48px;
}

.pricing-hero-title {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.pricing-hero-subtitle {
    font-size: 18px;
    color: #888;
    max-width: 500px;
    margin: 0 auto;
}

.pricing-card-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
}

.pricing-cards-row {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.pricing-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 48px 40px;
    max-width: 440px;
    width: 100%;
    text-align: center;
}

.pricing-card--featured {
    border-color: rgba(253, 184, 19, 0.3);
    box-shadow: 0 0 30px rgba(253, 184, 19, 0.08);
}

.pricing-card-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #FDB813 0%, #FFA500 100%);
    color: #000;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.pricing-card-header {
    margin-bottom: 32px;
}

.pricing-plan-name {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 8px;
}

.pricing-amount {
    font-size: 56px;
    font-weight: 700;
    color: #FDB813;
    line-height: 1;
}

.pricing-period {
    font-size: 18px;
    color: #888;
    font-weight: 500;
}

.pricing-trial-note {
    font-size: 14px;
    color: #a0a0a0;
}

.pricing-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
}

.pricing-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #ccc;
}

.pricing-feature svg {
    flex-shrink: 0;
}

.pricing-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #FDB813 0%, #FFA500 100%);
    color: #000;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(253, 184, 19, 0.3);
}

.pricing-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(253, 184, 19, 0.4);
}

.pricing-cta:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.pricing-cta--secondary {
    background: transparent;
    color: #FDB813;
    border: 1px solid rgba(253, 184, 19, 0.4);
    box-shadow: none;
}

.pricing-cta--secondary:hover {
    background: rgba(253, 184, 19, 0.1);
    box-shadow: 0 4px 20px rgba(253, 184, 19, 0.15);
}

.pricing-guarantee {
    margin-top: 16px;
    font-size: 13px;
    color: #666;
}

/* Social proof on pricing page */
.pricing-social-proof {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 32px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    margin-bottom: 60px;
}

.pricing-proof-item {
    text-align: center;
}

.pricing-proof-number {
    font-size: 28px;
    font-weight: 700;
    color: #FDB813;
    margin-bottom: 4px;
}

.pricing-proof-label {
    font-size: 13px;
    color: #888;
}

.pricing-proof-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

/* FAQ */
.pricing-faq {
    margin-bottom: 40px;
}

.pricing-faq-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 32px;
}

.pricing-faq-item {
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin-bottom: 12px;
}

.pricing-faq-question {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.pricing-faq-answer {
    font-size: 14px;
    line-height: 1.6;
    color: #999;
}

.pricing-footer-link {
    text-align: center;
    font-size: 14px;
    color: #666;
}

.pricing-footer-link a {
    color: #FDB813;
}

/* Landing page pricing section */
.landing-pricing-section {
    padding: 56px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.landing-pricing-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 48px 40px;
    max-width: 440px;
    width: 100%;
    text-align: center;
}

.landing-pricing-card--featured {
    border-color: rgba(253, 184, 19, 0.3);
    box-shadow: 0 0 30px rgba(253, 184, 19, 0.08);
}

/* Pricing page responsive */
@media (max-width: 768px) {
    .pricing-hero-title {
        font-size: 28px;
    }

    .pricing-amount {
        font-size: 42px;
    }

    .pricing-card {
        padding: 36px 24px;
    }

    .pricing-cards-row {
        flex-direction: column;
        align-items: center;
    }

    .pricing-social-proof {
        flex-direction: column;
        gap: 20px;
    }

    .pricing-proof-divider {
        width: 40px;
        height: 1px;
    }
}

.onboarding-step-icon {
    margin-bottom: 24px;
}

/* ============================================================================
   Trial Badge (Nav) & Dashboard Welcome Banner
   ============================================================================ */

.trial-badge-nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(253, 184, 19, 0.12);
    border: 1px solid rgba(253, 184, 19, 0.3);
    color: #FDB813;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.trial-badge-nav svg {
    flex-shrink: 0;
}

/* Dashboard welcome banner */
.welcome-banner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: rgba(253, 184, 19, 0.06);
    border: 1px solid rgba(253, 184, 19, 0.2);
    border-radius: 12px;
    margin-bottom: 24px;
}

.welcome-banner-content h3 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.welcome-banner-content p {
    font-size: 14px;
    line-height: 1.5;
    color: #999;
}

.welcome-banner-dismiss {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px;
    font-size: 18px;
    line-height: 1;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.welcome-banner-dismiss:hover {
    color: #999;
}

/* Trial expired page */
.trial-expired-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 80px 20px;
    text-align: center;
}

.trial-expired-container h1 {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.trial-expired-container > p {
    font-size: 17px;
    color: #888;
    margin-bottom: 36px;
}

.lost-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
    text-align: left;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

.lost-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #ccc;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.lost-feature-item svg {
    flex-shrink: 0;
}

.trial-expired-note {
    margin-top: 20px;
    font-size: 13px;
    color: #666;
}

/* Account Settings */
.account-settings::before {
    display: none;
}

.account-settings .prediction-frame {
    max-width: none;
}

.account-settings .settings-row {
    display: flex;
    gap: 1rem;
}

.account-settings .settings-row > section {
    flex: 1;
    min-width: 0;
}

.account-settings .settings-section {
    padding: 1.25rem 1.5rem;
}

.account-settings .settings-section h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e6edf3;
    margin: 0 0 0.75rem;
}

.account-settings .settings-section p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0 0 0.5rem;
    line-height: 1.5;
}

.account-settings .settings-section p strong {
    color: var(--text-secondary);
}

.account-settings .settings-section form {
    margin-top: 0.75rem;
}

.account-settings .settings-section .form-group {
    margin-bottom: 1rem;
}

.account-settings .settings-section .form-group input {
    max-width: 100%;
}

@media (max-width: 768px) {
    .account-settings .settings-row {
        flex-direction: column;
    }
}

/* ======================================================================
   Blog Styles
   ====================================================================== */

.blog-header { text-align: center; margin-bottom: 32px; }
.blog-header__title { font-size: 2rem; font-weight: 700; color: #fff; }
.blog-header__sub { color: var(--text-secondary); margin-top: 4px; font-size: 0.95rem; }

/* Category filter pills */
.blog-categories {
    display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
    margin-bottom: 32px; padding-bottom: 16px;
    border-bottom: 1px solid var(--surface-border);
}
.blog-pill {
    padding: 6px 14px; border-radius: 20px; font-size: 0.82rem; font-weight: 500;
    color: var(--text-secondary); background: rgba(255,255,255,0.04);
    border: 1px solid var(--surface-border); text-decoration: none; transition: all 0.15s;
    white-space: nowrap; -webkit-appearance: none; appearance: none;
}
.blog-pill:hover { background: rgba(255,255,255,0.08); color: #fff; }
.blog-pill--active {
    background: rgba(var(--accent-yellow-rgb), 0.12);
    color: var(--accent-yellow); border-color: rgba(var(--accent-yellow-rgb), 0.3);
}

/* Blog card grid */
.blog-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}
.blog-card {
    display: flex; flex-direction: column; padding: 20px; text-decoration: none;
    color: inherit; transition: border-color 0.15s, transform 0.15s;
}
.blog-card:hover {
    border-color: rgba(var(--accent-yellow-rgb), 0.25);
    transform: translateY(-2px);
}
.blog-card__thumb { width: calc(100% + 40px); margin: -20px -20px 16px; height: 180px; object-fit: cover; display: block; border-radius: 12px 12px 0 0; }
.blog-card__cat {
    font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--accent-yellow); margin-bottom: 8px;
}
.blog-card__title { font-size: 1.15rem; font-weight: 600; color: #fff; line-height: 1.35; margin-bottom: 6px; }
.blog-card__subtitle { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 8px; }
.blog-card__excerpt { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; flex: 1; margin-bottom: 12px; }
.blog-card__meta {
    display: flex; gap: 12px; font-size: 0.78rem; color: rgba(255,255,255,0.4);
}
.blog-card__tickers { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.blog-ticker-tag {
    font-size: 0.72rem; font-weight: 600; padding: 2px 8px; border-radius: 4px;
    background: rgba(var(--accent-yellow-rgb), 0.08); color: var(--accent-yellow);
    text-decoration: none; transition: background 0.2s;
}
a.blog-ticker-tag:hover {
    background: rgba(var(--accent-yellow-rgb), 0.18);
}

/* Pagination */
.blog-pagination {
    display: flex; align-items: center; justify-content: center; gap: 16px;
    margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--surface-border);
}
.blog-pagination__btn {
    padding: 8px 16px; border-radius: 6px; font-size: 0.85rem; font-weight: 500;
    color: var(--accent-yellow); border: 1px solid rgba(var(--accent-yellow-rgb), 0.3);
    text-decoration: none; transition: background 0.15s;
}
.blog-pagination__btn:hover { background: rgba(var(--accent-yellow-rgb), 0.1); }
.blog-pagination__info { font-size: 0.85rem; color: rgba(255,255,255,0.4); }

.blog-empty { text-align: center; padding: 60px 20px; color: var(--text-secondary); }

/* Blog detail */
.blog-detail__back {
    display: inline-block; margin-bottom: 20px; font-size: 0.85rem;
    color: var(--text-secondary); text-decoration: none; transition: color 0.15s;
}
.blog-detail__back:hover { color: var(--accent-yellow); }

img.blog-detail__hero { width: 100%; max-height: 420px; object-fit: cover; display: block; margin: 0 0 28px; border-radius: 12px; }
.blog-detail__header { margin-bottom: 28px; }
.blog-detail__cat {
    font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--accent-yellow); margin-bottom: 10px; display: inline-block;
}
.blog-detail__title { font-size: 2rem; font-weight: 700; color: #fff; line-height: 1.25; margin-bottom: 8px; }
.blog-detail__subtitle { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 16px; }
.blog-detail__meta {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    font-size: 0.82rem; color: rgba(255,255,255,0.45);
}
.blog-detail__author { display: flex; align-items: center; gap: 8px; }
.blog-detail__avatar {
    width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 700; color: #000;
    background: var(--accent-yellow);
}
.blog-detail__avatar-img {
    width: 28px; height: 28px; border-radius: 50%; object-fit: cover;
}
.blog-detail__byline { font-weight: 500; color: rgba(255,255,255,0.7); }

.blog-admin-tools { margin-bottom: 16px; }
.blog-detail__tickers { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }

/* Article body typography */
.blog-detail__content { line-height: 1.8; color: rgba(255,255,255,0.82); font-size: 1.02rem; }
.blog-detail__content h2 {
    font-size: 1.35rem; font-weight: 600; color: #fff; margin: 32px 0 12px;
}
.blog-detail__content h3 { font-size: 1.12rem; font-weight: 600; color: #fff; margin: 24px 0 8px; }
.blog-detail__content p { margin-bottom: 16px; }
.blog-detail__content ul, .blog-detail__content ol { margin: 0 0 16px 20px; }
.blog-detail__content li { margin-bottom: 6px; }
.blog-detail__content blockquote {
    border-left: 3px solid var(--accent-yellow); margin: 20px 0; padding: 12px 16px;
    background: rgba(var(--accent-yellow-rgb), 0.04); border-radius: 0 6px 6px 0;
    color: rgba(255,255,255,0.7); font-style: italic;
}
.blog-detail__content strong { color: #fff; }

.blog-detail__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0; }
.blog-tag {
    font-size: 0.78rem; padding: 4px 12px; border-radius: 14px;
    background: rgba(255,255,255,0.05); color: var(--text-secondary);
    border: 1px solid var(--surface-border);
    text-decoration: none; cursor: pointer;
}
.blog-tag:hover {
    background: rgba(255,255,255,0.12); color: var(--text-primary);
    border-color: var(--accent);
}

/* Share buttons */
.blog-share {
    display: flex; align-items: center; gap: 10px; padding: 16px 0;
    border-top: 1px solid var(--surface-border); border-bottom: 1px solid var(--surface-border);
    margin: 24px 0;
}
.blog-share__label { font-size: 0.82rem; font-weight: 500; color: rgba(255,255,255,0.5); margin-right: 4px; }
.blog-share__btn {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--surface-border);
    background: rgba(255,255,255,0.03); color: var(--text-secondary);
    text-decoration: none; cursor: pointer; transition: all 0.15s;
}
.blog-share__btn:hover { background: rgba(255,255,255,0.08); color: #fff; }

/* Related articles */
.blog-related { margin-top: 40px; }
.blog-related__title { font-size: 1.1rem; font-weight: 600; color: #fff; margin-bottom: 16px; }
.blog-related__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.blog-related__card {
    padding: 16px; text-decoration: none; color: inherit; transition: border-color 0.15s;
}
.blog-related__card:hover { border-color: rgba(var(--accent-yellow-rgb), 0.25); }
.blog-related__card h3 { font-size: 0.95rem; font-weight: 600; color: #fff; line-height: 1.35; margin: 6px 0 8px; }

/* Author bio */
.blog-author-bio {
    display: flex; gap: 20px; padding: 24px; margin: 28px 0; align-items: center;
}
.blog-author-bio__photo {
    width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.blog-author-bio__label {
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em;
    color: var(--accent-yellow); text-transform: uppercase; margin-bottom: 2px; display: block;
}
.blog-author-bio__name {
    font-size: 1rem; font-weight: 600; color: #fff; margin: 2px 0 6px;
}
.blog-author-bio__text {
    font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; margin: 0;
}

/* CTA card */
.blog-cta {
    text-align: center; padding: 32px 24px; margin-top: 40px;
    border: 1px solid rgba(var(--accent-yellow-rgb), 0.18);
    background: rgba(var(--accent-yellow-rgb), 0.03);
}
.blog-cta__title { font-size: 1.25rem; font-weight: 600; color: #fff; margin-bottom: 8px; }
.blog-cta__text { color: var(--text-secondary); margin-bottom: 16px; font-size: 0.92rem; }

@media (max-width: 600px) {
    .blog-grid { grid-template-columns: 1fr; }
    .blog-detail__title { font-size: 1.5rem; }
    .blog-header__title { font-size: 1.5rem; }
    .blog-related__grid { grid-template-columns: 1fr; }
}

/* ===== Stock Profile Page ===== */
.stock-profile__back { display: inline-block; color: var(--text-secondary); font-size: 0.88rem; margin-bottom: 20px; text-decoration: none; }
.stock-profile__back:hover { color: var(--accent-yellow); }

.stock-profile__header {
    background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 28px 32px;
    margin-bottom: 24px;
}
.stock-profile__title-row { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 16px; }
.stock-profile__ticker { font-size: 2.2rem; font-weight: 800; color: #fff; letter-spacing: 1px; margin: 0; line-height: 1.1; }
.stock-profile__name { color: var(--text-secondary); font-size: 1rem; margin-top: 4px; }
.stock-profile__price-block { text-align: right; }
.stock-profile__price { font-size: 2rem; font-weight: 700; color: #fff; display: block; }
.stock-profile__price--na { font-size: 1rem; color: var(--text-secondary); }
.stock-profile__change { font-size: 0.85rem; display: block; margin-top: 2px; }
.stock-profile__change--up { color: #22c55e; }
.stock-profile__change--down { color: #ef4444; }

.stock-profile__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}
.sp-stat-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
}
.sp-stat-card--buy { border-color: rgba(34,197,94,0.25); }
.sp-stat-card--sell { border-color: rgba(239,68,68,0.25); }
.sp-stat-card__value { display: block; font-size: 1.5rem; font-weight: 700; color: #fff; }
.sp-stat-card--buy .sp-stat-card__value { color: #22c55e; }
.sp-stat-card--sell .sp-stat-card__value { color: #ef4444; }
.sp-stat-card__label { display: block; font-size: 0.78rem; color: var(--text-secondary); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px; }

.stock-profile__section { margin-bottom: 32px; }
.stock-profile__section-title { font-size: 1.15rem; font-weight: 600; color: #fff; margin-bottom: 14px; }
.stock-profile__section-sub { font-weight: 400; color: var(--text-secondary); font-size: 0.88rem; }

/* Portfolio */
.sp-portfolio { padding: 20px 24px; }
.sp-portfolio__row { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.sp-portfolio__field { display: flex; flex-direction: column; gap: 4px; }
.sp-portfolio__label { font-size: 0.75rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; }
.sp-portfolio__val { font-size: 1.1rem; font-weight: 600; color: #fff; }
.sp-portfolio__rationale { margin-top: 12px; color: var(--text-secondary); font-size: 0.9rem; line-height: 1.5; }

/* Latest Signal */
.sp-latest-signal { padding: 16px 20px; }
.sp-latest-signal__row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sp-latest-signal__price { font-weight: 600; color: #fff; font-size: 1.05rem; }
.sp-latest-signal__date { color: var(--text-secondary); font-size: 0.88rem; }

/* Sentiment */
.sp-sentiment { display: grid; grid-template-columns: 1fr; gap: 14px; }
.sp-sentiment__bars { padding: 20px 24px; }
.sp-sentiment__bar-row { margin-bottom: 12px; }
.sp-sentiment__bar-track { display: flex; height: 18px; border-radius: 9px; overflow: hidden; background: rgba(255,255,255,0.06); }
.sp-sentiment__bar { min-width: 2px; transition: width 0.3s; }
.sp-sentiment__bar--bull { background: #22c55e; }
.sp-sentiment__bar--neutral { background: #6b7280; }
.sp-sentiment__bar--bear { background: #ef4444; }
.sp-sentiment__legend { display: flex; gap: 18px; flex-wrap: wrap; }
.sp-sentiment__legend-item { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--text-secondary); }
.sp-sentiment__dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.sp-sentiment__dot--bull { background: #22c55e; }
.sp-sentiment__dot--neutral { background: #6b7280; }
.sp-sentiment__dot--bear { background: #ef4444; }

/* Anomalies */
.sp-anomalies { padding: 16px 20px; }
.sp-anomalies__title { font-size: 0.92rem; font-weight: 600; color: #fff; margin-bottom: 10px; }
.sp-anomaly-item { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.sp-anomaly-item:last-child { border-bottom: none; }
.sp-anomaly-item__count { color: #fff; font-weight: 500; font-size: 0.9rem; }
.sp-anomaly-item__date { color: var(--text-secondary); font-size: 0.82rem; }
.sp-anomaly-item__summary { width: 100%; margin: 4px 0 0; color: var(--text-secondary); font-size: 0.85rem; line-height: 1.4; }

/* Signal History Table */
.sp-table-wrap { overflow-x: auto; padding: 0; }
.sp-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.sp-table thead th { text-align: left; padding: 12px 16px; color: var(--text-secondary); font-weight: 500; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.sp-table tbody td { padding: 10px 16px; border-bottom: 1px solid rgba(255,255,255,0.03); color: rgba(255,255,255,0.8); }
.sp-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.sp-table tbody tr.stock-row-link:hover { background: rgba(255,255,255,0.04); }
.sp-empty { padding: 32px; text-align: center; color: var(--text-secondary); }

/* Blog Grid */
.sp-blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.sp-blog-card { display: flex; flex-direction: column; text-decoration: none; overflow: hidden; transition: transform 0.15s, box-shadow 0.15s; }
.sp-blog-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.3); }
.sp-blog-card__thumb { width: 100%; height: 140px; object-fit: cover; }
.sp-blog-card__body { padding: 14px 16px; }
.sp-blog-card__cat { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--accent-yellow); font-weight: 600; }
.sp-blog-card__title { font-size: 0.95rem; font-weight: 600; color: #fff; margin: 6px 0 8px; line-height: 1.3; }
.sp-blog-card__date { font-size: 0.8rem; color: var(--text-secondary); }

/* Source lists (YouTube, X, News on stock profile) */
.sp-source-list { display: flex; flex-direction: column; gap: 0; }
.sp-source-item {
    display: flex; flex-direction: column; gap: 4px; padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.sp-source-item:last-child { border-bottom: none; }
.sp-source-item__title {
    font-size: 0.88rem; color: #fff; line-height: 1.4; text-decoration: none;
}
a.sp-source-item__title:hover { color: var(--accent-yellow); }
.sp-source-item__meta {
    font-size: 0.75rem; color: #8f9399;
}

/* Price chart */
.sp-chart-header {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 8px;
}
.sp-chart-header .stock-profile__section-title { margin-bottom: 0; }
.sp-chart-ranges { display: flex; gap: 4px; }
.sp-chart-range {
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); color: #8f9399;
    padding: 4px 12px; border-radius: 6px; font-size: 0.72rem; font-weight: 600; cursor: pointer;
    transition: all 0.15s;
}
.sp-chart-range:hover { color: #fff; border-color: rgba(255,255,255,0.15); }
.sp-chart-range--active { color: var(--accent-yellow); border-color: rgba(var(--accent-yellow-rgb), 0.3); background: rgba(var(--accent-yellow-rgb), 0.08); }
.sp-chart-wrap { position: relative; height: 340px; padding: 12px; }
.sp-chart-loading {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    color: #8f9399; font-size: 0.85rem;
}

.text-green { color: #22c55e; }
.text-red { color: #ef4444; }
.text-muted { color: var(--text-secondary); }

@media (max-width: 640px) {
    .stock-profile__title-row { flex-direction: column; }
    .sp-chart-wrap { height: 260px; }
    .stock-profile__price-block { text-align: left; }
    .stock-profile__ticker { font-size: 1.6rem; }
    .stock-profile__price { font-size: 1.5rem; }
    .stock-profile__stats { grid-template-columns: repeat(2, 1fr); }
    .sp-blog-grid { grid-template-columns: 1fr; }
}

/* Ticker hover tooltip */
.ticker-tooltip {
    position: fixed;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--surface-bg, linear-gradient(135deg, #141414 0%, #171717 100%));
    border: 1px solid rgba(var(--accent-yellow-rgb, 255,225,110), 0.12);
    border-radius: 8px;
    padding: 10px 14px;
    pointer-events: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    font-size: 0.82rem;
    line-height: 1.4;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.15s;
}
.ticker-tooltip.visible { opacity: 1; }
.ticker-tooltip__left { display: flex; flex-direction: column; gap: 1px; }
.ticker-tooltip__symbol { font-weight: 700; color: #fff; font-size: 0.9rem; }
.ticker-tooltip__name { color: rgba(255,255,255,0.45); font-size: 0.72rem; }
.ticker-tooltip__right { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.ticker-tooltip__price { color: #fff; font-weight: 600; font-size: 0.88rem; }
.ticker-tooltip__change { font-weight: 600; font-size: 0.75rem; }
.ticker-tooltip__change.up { color: #22c55e; }
.ticker-tooltip__change.down { color: #ef4444; }
.ticker-tooltip__change.neutral { color: rgba(255,255,255,0.45); }
.ticker-tooltip__loading { color: rgba(255,255,255,0.45); font-style: italic; }
