/* Base & Variables — Modern Institutional Fintech Design System (2026) */
:root {
    --bg-dark: #07090e;
    --bg-surface: #0d111a;
    --bg-card: rgba(13, 17, 26, 0.95);
    --bg-card-hover: rgba(18, 24, 37, 0.98);
    --primary: #F59E0B;
    --primary-light: #FDE68A;
    --primary-hover: #FBBF24;
    --primary-glow: rgba(245, 158, 11, 0.28);
    --text-main: #FFFFFF;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --success: #10B981;
    --success-glow: rgba(16, 185, 129, 0.22);
    --danger: #F43F5E;
    --danger-glow: rgba(244, 63, 94, 0.22);
    --accent-blue: #38bdf8;
    --accent-cyan: #06b6d4;
    --sidebar-width: 260px;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(245, 158, 11, 0.25);
    --card-radius: 14px;
    --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Plus Jakarta Sans', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Roboto Mono', 'SF Pro Display', monospace;
}

html[data-theme="light"],
body.theme-light {
    --bg-dark: #f8fafc;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --primary: #d97706;
    --primary-light: #b45309;
    --primary-hover: #b45309;
    --primary-glow: rgba(217, 119, 6, 0.18);
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-dim: #64748b;
    --success: #059669;
    --success-glow: rgba(5, 150, 105, 0.15);
    --danger: #dc2626;
    --danger-glow: rgba(220, 38, 38, 0.15);
    --accent-blue: #0284c7;
    --accent-cyan: #0891b2;
    --border-color: rgba(15, 23, 42, 0.08);
    --border-glow: rgba(217, 119, 6, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(ellipse 90% 40% at 50% 0%, rgba(56, 189, 248, 0.035) 0%, transparent 60%),
        radial-gradient(circle at 100% 10%, rgba(226, 195, 116, 0.025) 0%, transparent 40%),
        radial-gradient(circle at 0% 90%, rgba(16, 185, 129, 0.02) 0%, transparent 40%);
    background-attachment: fixed;
    color: var(--text-main);
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: rgba(13, 16, 24, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 50;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);
}

.sidebar-header {
    height: 70px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    box-sizing: border-box;
}

.sidebar-brand-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.sidebar-logo {
    height: 38px;
    width: 38px;
    object-fit: contain;
    border-radius: 50%;
    display: block;
    background: #ffffff;
    padding: 2px;
    box-sizing: border-box;
    border: 1.5px solid var(--primary);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.25);
    flex-shrink: 0;
}

.sidebar-brand-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.15;
}

.sidebar-brand-title {
    font-size: 1.12rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.sidebar-brand-sub {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.vip-badge-pill {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #d4af37 0%, #f59e0b 100%);
    color: #000000;
    font-size: 0.62rem;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    line-height: 1;
    box-shadow: 0 1px 4px rgba(212, 175, 55, 0.35);
}

.sidebar-close-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    flex-shrink: 0;
}

.sidebar-close-btn:hover, .sidebar-close-btn:active {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
    transform: rotate(90deg);
}

.sidebar-close-btn svg {
    width: 18px;
    height: 18px;
}

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.76);
    z-index: 1150;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

body.mobile-menu-open .sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
}

.sidebar-nav {
    padding: 20px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 15px;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 10px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid transparent;
}

.nav-item svg {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
    transition: transform 0.2s ease, stroke 0.2s ease;
}

.nav-item:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.06);
    transform: translateX(3px);
}

.nav-item:hover svg {
    transform: scale(1.08);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.16) 0%, rgba(212, 175, 55, 0.03) 100%);
    color: #d4af37;
    border: 1px solid rgba(212, 175, 55, 0.28);
    border-left: 3px solid #d4af37;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), inset 0 0 12px rgba(212, 175, 55, 0.06);
    font-weight: 700;
}

.nav-item.active svg {
    stroke: #d4af37;
    filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.4));
}

.sidebar-footer {
    padding: 12px 16px 40px 16px;
    border-top: 1px solid var(--border-color);
}

.sidebar-footer:empty {
    display: none !important;
}

.btn-install-app {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    margin-bottom: 12px;
    padding: 10px;
    color: #f2c94c;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.55);
    border-radius: 8px;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}

.btn-install-app:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.btn-install-app:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.btn-install-app:disabled {
    opacity: 0.72;
    cursor: wait;
    transform: none;
}

.btn-install-app[hidden] {
    display: none !important;
}

.btn-notifications {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    margin-bottom: 12px;
    padding: 10px;
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.45);
    border-radius: 8px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-notifications svg {
    width: 17px;
    height: 17px;
}

.btn-notifications:hover {
    background: rgba(59, 130, 246, 0.18);
    border-color: #60a5fa;
}

.btn-notifications.is-active {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.5);
}

.btn-notifications.is-blocked,
.btn-notifications[data-state="unsupported"] {
    color: var(--text-muted);
    border-color: var(--border-color);
    background: transparent;
}

.btn-notifications:disabled {
    opacity: 0.7;
    cursor: wait;
}

.install-app-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.btn-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    background: transparent;
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-logout svg {
    width: 16px;
    height: 16px;
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--danger);
}

.pwa-install-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(3, 6, 12, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-sizing: border-box;
    animation: pwaFadeIn 0.25s ease;
}

@keyframes pwaFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.pwa-install-modal[hidden] {
    display: none !important;
}

.pwa-install-dialog {
    width: 100%;
    max-width: 440px;
    max-height: 92vh;
    overflow-y: auto;
    margin: auto;
    padding: 24px 20px 20px 20px;
    color: #f1f5f9;
    background: #131722;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(212, 175, 55, 0.15);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.pwa-dialog-header {
    text-align: center;
    margin-bottom: 16px;
}

.pwa-brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 99px;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.pwa-install-dialog h2 {
    margin: 0 0 6px 0;
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-align: center;
    justify-content: center;
}

.pwa-dialog-subtitle {
    margin: 0;
    color: #94a3b8;
    font-size: 0.82rem;
    line-height: 1.4;
    text-align: center;
}

/* Platform Switcher Tabs */
.pwa-platform-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    background: rgba(0, 0, 0, 0.45);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 18px;
}

.pwa-tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 4px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 9px;
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.pwa-tab-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.pwa-tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
}

.pwa-tab-btn.active {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.22) 0%, rgba(212, 175, 55, 0.08) 100%);
    border-color: rgba(212, 175, 55, 0.5);
    color: var(--primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Panel Content */
.pwa-panel-badge {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.pwa-panel-desc {
    margin: 0 0 14px 0;
    color: #cbd5e1;
    font-size: 0.85rem;
    line-height: 1.5;
}

.pwa-install-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 18px 0;
    padding: 0;
    list-style: none;
    counter-reset: pwa-step-counter;
}

.pwa-install-steps li {
    counter-increment: pwa-step-counter;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 0.84rem;
    line-height: 1.45;
    color: #e2e8f0;
}

.pwa-install-steps li::before {
    content: counter(pwa-step-counter);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    min-width: 24px;
    color: #000;
    background: var(--primary);
    border-radius: 50%;
    font-weight: 800;
    font-size: 0.78rem;
    flex-shrink: 0;
    margin-top: 1px;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.pwa-step-text {
    flex: 1;
    min-width: 0;
}

.pwa-step-text strong {
    color: #ffffff;
}

.pwa-dialog-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
}

.pwa-btn-prompt-retry {
    width: 100%;
    padding: 12px 16px;
    color: #000;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border: 0;
    border-radius: 12px;
    font: inherit;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    transition: all 0.2s ease;
    animation: pwaBtnPulse 2s infinite;
}

@keyframes pwaBtnPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
    70% { transform: scale(1.01); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.pwa-install-close {
    width: 100%;
    padding: 11px 16px;
    color: #000;
    background: linear-gradient(135deg, #d4af37 0%, #aa820a 100%);
    border: 0;
    border-radius: 12px;
    font: inherit;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
    transition: all 0.2s ease;
}

.pwa-install-close:active,
.pwa-btn-prompt-retry:active {
    transform: scale(0.98);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 0;
    max-width: 100vw;
    overflow-x: clip;
}

.topbar {
    height: 70px;
    padding: 0 32px;
    background: rgba(13, 16, 24, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: sticky;
    top: 0;
    z-index: 40;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.mobile-only {
    display: none;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.mobile-brand {
    display: none;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    user-select: none;
}

.mobile-brand img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: contain;
    background: #ffffff;
    border: 1.5px solid var(--primary);
    padding: 2px;
    box-sizing: border-box;
    display: block;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
    flex-shrink: 0;
}

.mobile-brand-title {
    font-size: 1.02rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.2px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.user-profile-wrapper {
    position: relative;
    z-index: 1050;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 14px 5px 6px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.user-profile:hover,
.user-profile.active {
    background: rgba(212, 175, 55, 0.12);
    border-color: rgba(212, 175, 55, 0.45);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.2);
}

.avatar-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: contain;
    border: 2px solid var(--primary);
    background: #ffffff;
    padding: 2px;
    box-sizing: border-box;
    display: block;
    flex-shrink: 0;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 700;
    font-family: var(--font-display) !important;
    font-size: 0.92rem;
    color: #ffffff;
    line-height: 1.2;
}

.user-status {
    font-size: 0.72rem;
    font-family: var(--font-mono) !important;
    color: var(--success);
    margin-top: 1px;
    font-weight: 600;
}

.profile-dropdown-arrow {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
    margin-left: 2px;
}

.user-profile.active .profile-dropdown-arrow {
    transform: rotate(180deg);
    color: var(--primary);
}

/* User Profile Dropdown Popup */
.user-profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 250px;
    background: rgba(20, 24, 34, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), 0 0 25px rgba(212, 175, 55, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.96);
    transform-origin: top right;
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
    pointer-events: none;
    box-sizing: border-box;
    z-index: 1060;
}

.user-profile-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.dropdown-header-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 6px 10px 6px;
}

.dropdown-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: #ffffff;
    padding: 2px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.dropdown-meta {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dropdown-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-badge {
    font-size: 0.7rem;
    font-weight: 700;
    color: #10b981;
    margin-top: 3px;
    letter-spacing: 0.2px;
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 6px 0;
}

.dropdown-menu-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dropdown-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    padding: 9px 12px !important;
    border-radius: 10px !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    box-sizing: border-box !important;
    border: 1px solid transparent !important;
    text-align: left !important;
    justify-content: flex-start !important;
    margin-bottom: 0 !important;
    text-decoration: none !important;
}

.dropdown-icon {
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.dropdown-label {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-item.btn-install-app {
    color: #f2c94c !important;
    background: rgba(212, 175, 55, 0.08) !important;
    border-color: rgba(212, 175, 55, 0.25) !important;
}

.dropdown-item.btn-install-app:hover {
    background: rgba(212, 175, 55, 0.18) !important;
    border-color: rgba(212, 175, 55, 0.6) !important;
    transform: translateY(-1px);
}

.dropdown-item.btn-notifications {
    color: #60a5fa !important;
    background: rgba(59, 130, 246, 0.08) !important;
    border-color: rgba(59, 130, 246, 0.25) !important;
}

.dropdown-item.btn-notifications:hover {
    background: rgba(59, 130, 246, 0.18) !important;
    border-color: rgba(59, 130, 246, 0.6) !important;
    transform: translateY(-1px);
}

.dropdown-item.btn-notifications.is-active {
    color: #22c55e !important;
    background: rgba(34, 197, 94, 0.08) !important;
    border-color: rgba(34, 197, 94, 0.3) !important;
}

.dropdown-item-admin {
    color: #fbbf24 !important;
    background: rgba(251, 191, 36, 0.08) !important;
    border-color: rgba(251, 191, 36, 0.25) !important;
}

.dropdown-item-admin:hover {
    background: rgba(251, 191, 36, 0.18) !important;
    border-color: rgba(251, 191, 36, 0.6) !important;
    transform: translateY(-1px);
}

.dropdown-item-logout {
    color: #f87171 !important;
    background: rgba(239, 68, 68, 0.08) !important;
    border-color: rgba(239, 68, 68, 0.25) !important;
}

.dropdown-item-logout:hover {
    background: rgba(239, 68, 68, 0.2) !important;
    border-color: rgba(239, 68, 68, 0.6) !important;
    transform: translateY(-1px);
}

/* Pages */
.pages-wrapper {
    padding: 32px;
    flex: 1;
}

.page-section {
    display: none;
}

.page-section.active {
    display: block;
    animation: fadeIn 0.25s ease-out;
}

.home-intel-grid { 
    display: grid; 
    grid-template-columns: repeat(2, minmax(0, 1fr)); 
    gap: 24px; 
    align-items: start; 
}
.home-market-card { 
    display: flex; 
    flex-direction: column; 
    justify-content: center;
    gap: 16px;
    padding: 22px !important;
    background: linear-gradient(145deg, rgba(20, 25, 36, 0.8) 0%, rgba(13, 16, 24, 0.95) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: var(--card-radius) !important;
    box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    position: relative;
    overflow: hidden;
}
.home-market-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding-bottom: 14px;
}
.home-market-title {
    margin: 0 0 4px;
    color: var(--primary);
    font-size: 1.15rem;
    font-weight: 800;
    font-family: var(--font-display) !important;
    letter-spacing: -0.01em;
}
.home-market-subtitle {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-family: var(--font-body);
}
.market-status-badge,
#home-market-status-badge {
    background: rgba(16, 185, 129, 0.12) !important;
    border: 1px solid rgba(16, 185, 129, 0.45) !important;
    color: #10b981 !important;
    font-family: var(--font-display) !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    padding: 5px 13px !important;
    border-radius: 20px !important;
    white-space: nowrap !important;
    letter-spacing: 0.06em !important;
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.2) !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.home-session-grid,
#home-session-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
}
.session-box,
#home-session-grid > div {
    border-radius: 12px !important;
    padding: 11px 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: rgba(255, 255, 255, 0.025) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}
.session-box:hover,
#home-session-grid > div:hover {
    border-color: rgba(255, 255, 255, 0.12) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
}
.session-city,
#home-session-grid strong {
    display: block;
    font-family: var(--font-display) !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    color: #ffffff;
}
.session-time,
#home-session-grid small {
    display: block;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-family: var(--font-mono);
    letter-spacing: 0.02em;
    margin-top: 2px;
}
.session-badge,
#home-session-grid span {
    font-family: var(--font-display) !important;
    font-size: 0.7rem !important;
    font-weight: 800 !important;
    padding: 3px 9px !important;
    border-radius: 6px !important;
    letter-spacing: 0.04em !important;
}
.badge-closed {
    background: rgba(255, 255, 255, 0.04) !important;
    color: #64748b !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
}
.badge-open {
    background: rgba(16, 185, 129, 0.16) !important;
    color: #10b981 !important;
    border: 1px solid rgba(16, 185, 129, 0.45) !important;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.25) !important;
}
.home-session-stats-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
}
.session-telemetry-tile,
.home-market-card > div[style*="repeat(3, 1fr)"] > div {
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 10px !important;
    padding: 10px 8px !important;
    text-align: center !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
    transition: all 0.2s ease !important;
}
.session-telemetry-tile:hover,
.home-market-card > div[style*="repeat(3, 1fr)"] > div:hover {
    border-color: rgba(255, 255, 255, 0.12) !important;
    background: rgba(0, 0, 0, 0.4) !important;
}
.session-telemetry-tile small,
.home-market-card > div[style*="repeat(3, 1fr)"] small {
    display: block !important;
    color: #94a3b8 !important;
    font-family: var(--font-display) !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    margin-bottom: 3px !important;
}
.session-telemetry-tile strong,
.home-market-card > div[style*="repeat(3, 1fr)"] strong {
    font-family: var(--font-display) !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
}
.home-countdown-bar,
#home-session-countdown {
    padding: 12px 16px !important;
    border-radius: 12px !important;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.12) 0%, rgba(212, 175, 55, 0.03) 100%) !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    color: #facc15 !important;
    font-family: var(--font-mono) !important;
    font-weight: 700 !important;
    font-size: 0.92rem !important;
    text-align: center !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), inset 0 0 12px rgba(212, 175, 55, 0.05) !important;
    letter-spacing: 0.02em !important;
}
.home-session-insight-card,
#home-session-insight-card {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.35) 0%, rgba(15, 20, 30, 0.35) 100%) !important;
    border: 1px solid rgba(212, 175, 55, 0.25) !important;
    border-radius: 12px !important;
    padding: 13px 16px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
}
.home-session-insight-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    gap: 8px;
}
.home-session-tip-title,
#home-session-tip-title {
    color: #facc15 !important;
    font-family: var(--font-display) !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.home-session-primetime,
#home-session-primetime {
    color: #facc15 !important;
    font-family: var(--font-mono) !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    background: rgba(212, 175, 55, 0.14) !important;
    border: 1px solid rgba(212, 175, 55, 0.35) !important;
    padding: 3px 9px !important;
    border-radius: 6px !important;
    white-space: nowrap;
    flex-shrink: 0;
}
.home-session-tip,
#home-session-tip {
    margin: 0;
    color: #cbd5e1 !important;
    font-size: 0.82rem !important;
    line-height: 1.5 !important;
    font-family: var(--font-body);
}

.home-trading-detail-grid { display:grid; grid-template-columns:minmax(0,1fr); gap:20px; }
.home-card-heading { display:flex; justify-content:space-between; gap:12px; align-items:center; margin-bottom:16px; }
.home-card-heading h3 { margin:0; color:var(--primary); font-family:var(--font-display) !important; font-size:1.15rem; font-weight:800; letter-spacing:-0.01em; display:flex; align-items:center; gap:8px; }
.heading-gold-accent { color:var(--primary); font-size:0.9rem; text-shadow:0 0 10px rgba(212,175,55,0.6); }
.home-badge { border:1px solid rgba(212,175,55,.45); color:var(--primary); border-radius:999px; padding:5px 11px; font-size:.72rem; font-weight:800; white-space:nowrap; letter-spacing:0.04em; }
.home-signal-content, #home-news-impact, #home-xau-brief { display:flex; flex-direction:column; gap:10px; color:var(--text-muted); }
.home-signal-content strong, #home-news-impact strong, #home-xau-brief strong { color:var(--text-main); font-size:1.05rem; }
.home-signal-content small, #home-news-impact span, #home-xau-brief span { color:var(--text-muted); }
.home-signal-card { position:relative; overflow:hidden; border:1px solid rgba(212,175,55,.22) !important; background:linear-gradient(145deg,rgba(22,27,39,.88),rgba(13,16,24,.96)) !important; border-radius:var(--card-radius) !important; box-shadow:0 16px 40px -10px rgba(0,0,0,.7), 0 0 24px rgba(212,175,55,.06) !important; }

/* Recap HUD Telemetry Section */
.signal-recap-wrap { display:flex; flex-direction:column; gap:12px; margin-top:14px; }
.signal-recap-section { display:flex; flex-direction:column; gap:7px; }
.signal-recap-title { color:#94a3b8; font-family:var(--font-display) !important; font-size:.72rem; font-weight:700; text-transform:uppercase; letter-spacing:.08em; display:flex; align-items:center; gap:6px; }
.signal-recap-title::before { content:''; display:inline-block; width:6px; height:6px; border-radius:50%; background:#d4af37; box-shadow:0 0 8px rgba(212,175,55,0.7); }
.signal-recap { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; }
.signal-recap > div { display:flex; flex-direction:column; justify-content:center; gap:4px; padding:10px 8px; text-align:center; border:1px solid rgba(255,255,255,0.07); border-radius:12px; background:linear-gradient(180deg, rgba(255,255,255,0.035) 0%, rgba(255,255,255,0.01) 100%); box-shadow:0 4px 14px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.04); min-height:60px; transition:all .2s cubic-bezier(0.4, 0, 0.2, 1); }
.signal-recap > div:hover { border-color:rgba(212,175,55,0.35); background:linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%); transform:translateY(-2px); box-shadow:0 6px 18px rgba(0,0,0,0.35); }
.signal-recap small { color:#94a3b8; font-family:var(--font-display) !important; font-size:.67rem; font-weight:700; text-transform:uppercase; letter-spacing:.05em; }
.signal-recap strong { font-family:var(--font-mono) !important; font-size:1.05rem; font-weight:800; font-variant-numeric:tabular-nums !important; color:#ffffff; letter-spacing:-0.01em; }
.signal-recap .recap-tp strong { color:var(--success); text-shadow:0 0 10px rgba(16,185,129,.35); }
.signal-recap .recap-sl strong { color:var(--danger); text-shadow:0 0 10px rgba(239,68,68,.35); }
.signal-recap .recap-rate strong { color:var(--primary); text-shadow:0 0 10px rgba(212,175,55,.35); }
.signal-recap .pips-positive strong { color:var(--success); text-shadow:0 0 10px rgba(16,185,129,.35); }
.signal-recap .pips-negative strong { color:var(--danger); text-shadow:0 0 10px rgba(239,68,68,.35); }
@keyframes signalPulse { 0% { box-shadow:0 0 0 0 rgba(212,175,55,.45); } 70% { box-shadow:0 0 0 8px rgba(212,175,55,0); } 100% { box-shadow:0 0 0 0 rgba(212,175,55,0); } }

/* Signal card refinement: clearer hierarchy and a calmer premium layout. */
.home-signal-card { position:relative; overflow:hidden; border-color:rgba(212,175,55,.16); background:linear-gradient(145deg,rgba(24,28,37,.98),rgba(15,18,24,.98)); }
.home-signal-card .home-card-heading { padding-top:4px; margin-bottom:18px; }
.home-signal-card .home-card-heading h3 { letter-spacing:.01em; }
.signal-main { min-height:72px; padding:16px 18px; border-color:rgba(255,255,255,.12); background:linear-gradient(110deg,rgba(255,255,255,.055),rgba(255,255,255,.018)); box-shadow:inset 3px 0 0 rgba(212,175,55,.7); }
.signal-main small { font-size:.66rem; letter-spacing:.12em; }
.signal-main > div > strong { font-size:1.5rem; letter-spacing:.02em; }
.signal-main b { min-width:58px; text-align:center; font-size:.76rem; letter-spacing:.06em; }
.signal-levels { gap:10px; margin-top:2px; }
.signal-levels > span { min-height:68px; padding:11px 12px; background:rgba(255,255,255,.018); border-color:rgba(255,255,255,.1); }
.signal-levels > span:first-child { border-color:rgba(212,175,55,.24); }
.signal-levels strong { font-size:1rem; letter-spacing:.01em; }
.signal-levels em { font-size:.66rem; letter-spacing:.02em; }
.signal-result { margin-top:1px; padding:12px 14px; background:rgba(255,255,255,.018); }
.signal-result span { font-size:.7rem; letter-spacing:.05em; text-transform:uppercase; }
.signal-result strong { letter-spacing:.04em; }
.signal-reason { margin-top:2px; padding:13px 15px; border:1px solid rgba(212,175,55,.18); border-left:3px solid var(--primary); border-radius:0 10px 10px 0; background:rgba(212,175,55,.045); }
.signal-reason small { font-size:.68rem; letter-spacing:.1em; }
.signal-reason p { margin-top:7px; line-height:1.55; }
.signal-recap-wrap { gap:14px; margin-top:3px; }
.signal-recap-section { gap:8px; padding-top:3px; }
.signal-recap-title { font-size:.74rem; letter-spacing:.08em; font-weight:700; color:var(--text-muted); }
.signal-recap { gap:8px; }
.signal-recap > div { min-height:58px; justify-content:center; padding:9px 7px; background:rgba(255,255,255,.025); border-color:rgba(255,255,255,.1); }
.signal-recap small { font-size:.7rem; font-weight:600; color:var(--text-muted); }
.signal-recap strong { font-size:1rem; font-weight:700; }
.home-signal-content > small { margin-top:1px; line-height:1.45; }
@media (max-width:800px) { .signal-main > div > strong { font-size:1.35rem; } .signal-levels { gap:8px; grid-template-columns:repeat(3,minmax(0,1fr)); } .signal-levels > span { min-height:64px; padding:10px 9px; } .signal-levels strong { font-size:.9rem; } .signal-levels em { font-size:.65rem; } }
.home-market-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.home-market-stats > div { background:rgba(255,255,255,.035); border:1px solid var(--border-color); border-radius:9px; padding:12px; display:flex; flex-direction:column; gap:6px; }
.home-market-stats small { color:var(--text-muted); font-size:.72rem; }.home-market-stats strong { font-size:.9rem; }
.home-session-countdown { margin:14px 0 10px; padding:10px 12px; border-radius:8px; background:rgba(212,175,55,.1); color:var(--primary); font-weight:700; text-align:center; }
.home-session-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin-top:10px; }
.home-session-item { background:rgba(255,255,255,.025); border:1px solid var(--border-color); border-radius:8px; padding:8px 6px; text-align:center; display:flex; flex-direction:column; gap:3px; transition:all .2s ease; }
.home-session-item.active-market { background:rgba(212,175,55,.08); border-color:rgba(212,175,55,.4); box-shadow:0 0 10px rgba(212,175,55,.15); }
.home-session-item small { color:var(--text-muted); font-size:.72rem; font-weight:600; display:flex; align-items:center; justify-content:center; gap:4px; }
.home-session-item strong { font-size:.85rem; font-weight:700; }
.session-dot { width:6px; height:6px; border-radius:50%; background:#6b7280; display:inline-block; }
.active-market .session-dot { background:#10b981; box-shadow:0 0 6px #10b981; }

.home-session-pairs-box { margin-top:12px; padding:10px 12px; border-radius:9px; background:rgba(255,255,255,.022); border:1px solid var(--border-color); }
.session-pair-chip { font-size:.75rem; font-weight:700; padding:4px 9px; border-radius:6px; background:rgba(212,175,55,.12); color:var(--primary); border:1px solid rgba(212,175,55,.3); }

.home-world-clocks { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin-top:10px; text-align:center; }
.home-world-clocks > div { padding:7px 4px; border-radius:7px; background:rgba(0,0,0,0.25); border:1px solid var(--border-color); display:flex; flex-direction:column; gap:3px; }
.home-world-clocks small { color:var(--text-muted); font-size:.65rem; text-transform:uppercase; letter-spacing:.05em; }
.home-world-clocks strong { font-size:.8rem; font-family:monospace; color:var(--text-main); }

/* News Article Body Table, Image & Typography Styles */
.news-article-body { text-align: justify; line-height: 1.85; font-size: 1.02rem; color: #e2e8f0; }
.news-article-body p { margin-bottom: 18px; text-align: justify; line-height: 1.85; letter-spacing: 0.01em; }
.news-article-body ul, .news-article-body ol { margin: 16px 0 20px 20px; padding-left: 10px; }
.news-article-body li { margin-bottom: 10px; line-height: 1.7; color: #e2e8f0; list-style-type: square; }
.news-article-body blockquote { border-left: 4px solid var(--primary); background: rgba(212,175,55,0.06); margin: 20px 0; padding: 14px 18px; border-radius: 0 8px 8px 0; font-style: italic; color: #f1f5f9; }
.news-article-body img { max-width:100%; height:auto; border-radius:8px; margin:16px 0; display:block; }
.news-article-body table { width:100%; border-collapse:collapse; margin:20px 0; background:rgba(0,0,0,0.25); border:1px solid rgba(255,255,255,0.08); border-radius:8px; overflow:hidden; }
.news-article-body th, .news-article-body td { padding:10px 14px; border:1px solid rgba(255,255,255,0.08); font-size:0.9rem; text-align:left; color:var(--text-main); }
.news-article-body th { background:rgba(212,175,55,0.12); color:var(--primary); font-weight:700; text-transform:uppercase; font-size:0.8rem; letter-spacing:0.05em; }
.news-article-body tr:nth-child(even) { background:rgba(255,255,255,0.015); }

#news-list-view {
    width: 100%;
}

.news-card {
    width: 100%;
    padding: 18px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color .2s ease, transform .2s ease, background .2s ease;
}

.news-card:hover,
.news-card:focus-visible {
    border-color: rgba(212, 175, 55, .5);
    background: rgba(212, 175, 55, .035);
    transform: translateY(-1px);
    outline: none;
}

.news-card-meta,
.news-reader-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--text-muted);
    font-size: .78rem;
}

.news-card-meta span,
.news-reader-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 10px;
    border-radius: 999px;
    color: var(--primary);
    background: rgba(212, 175, 55, .13);
    font-weight: 700;
}

.news-card h2 {
    margin: 9px 0 5px;
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.4;
}

.news-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: .88rem;
    line-height: 1.55;
}

.news-loading-state,
.news-error-state {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: var(--text-muted);
    text-align: center;
}

.news-loading-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(148, 163, 184, .22);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.news-loading-state strong,
.news-error-state strong {
    color: var(--text-main);
}

.news-loading-state small,
.news-error-state span {
    font-size: .84rem;
}

.news-error-state button,
.news-reader-footer button {
    border: 1px solid var(--primary);
    border-radius: 999px;
    padding: 10px 18px;
    background: transparent;
    color: var(--primary);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.news-reader-meta {
    margin-bottom: 14px;
}

#news-article-content h1 {
    margin: 0 0 22px;
    color: var(--text-main);
    line-height: 1.35;
}

.news-reader-image {
    display: block;
    width: 100%;
    max-height: 460px;
    margin: 0 0 24px;
    object-fit: cover;
    border-radius: 12px;
}

.news-reader-footer {
    display: flex;
    justify-content: center;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .news-card {
        padding: 16px;
    }

    #news-article-content {
        padding: 20px !important;
    }

    #news-article-content h1 {
        font-size: 1.45rem;
    }
}

@media (max-width:800px) { .home-intel-grid { grid-template-columns:1fr; }.home-market-stats { grid-template-columns:1fr; }.home-session-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.home-world-clocks { grid-template-columns:repeat(2,minmax(0,1fr)); }.signal-levels { grid-template-columns:repeat(2,minmax(0,1fr)); }.signal-recap { grid-template-columns:repeat(3,minmax(0,1fr)); }.signal-recap .recap-rate { grid-column:span 2; }.signal-finished { align-items:flex-start; } }

/* ============ DUAL-SIGNAL DESKTOP LAYOUT (BTCUSD Left, XAUUSD Right, Sesi Pasar Wide Below) ============ */
@media (min-width: 801px) {
    .home-intel-grid.has-dual-signals {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }
    .home-intel-grid.has-dual-signals .home-signal-card {
        width: 100%;
        max-width: 100%;
    }
    .home-intel-grid.has-dual-signals .active-signal-stack {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
        align-items: stretch;
    }
    .home-intel-grid.has-dual-signals .active-signal-card {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
    }
    .home-intel-grid.has-dual-signals .signal-recap-wrap {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        margin-top: 14px;
    }
    .home-intel-grid.has-dual-signals .home-market-card {
        width: 100%;
        max-width: 100%;
        height: auto !important;
    }
}

@media (min-width: 1024px) {
    .home-intel-grid.has-dual-signals #home-session-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }
}
@media (min-width: 801px) and (max-width: 1023px) {
    .home-intel-grid.has-dual-signals #home-session-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
}

/* ============ ULTRA-MODERN SIGNAL CARD ARCHITECTURE (v2026) ============ */
.active-signal-stack { display:flex; flex-direction:column; gap:16px; }

.active-signal-card {
    padding: 18px 20px;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(22, 27, 37, 0.98), rgba(14, 18, 26, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.active-signal-card.signal-card-buy {
    border-color: rgba(16, 185, 129, 0.35);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), 0 0 24px rgba(16, 185, 129, 0.08);
}

.active-signal-card.signal-card-sell {
    border-color: rgba(239, 68, 68, 0.35);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), 0 0 24px rgba(239, 68, 68, 0.08);
}

/* Header: Pair Name & Action Badges */
.active-signal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.signal-pair-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.signal-setup-label {
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.68rem;
    font-weight: 700;
}
.signal-pair-name {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.02em;
    line-height: 1.2;
}
.signal-action-badges {
    display: flex;
    align-items: center;
    gap: 8px;
}
.badge-direction {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 15px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    user-select: none;
}
.badge-direction.signal-buy {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}
.badge-direction.signal-sell {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
}
.badge-be-pill {
    background: rgba(234, 179, 8, 0.16);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.4);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

/* Hero Live Price & Running Pips Strip */
.signal-hero-live-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin-bottom: 12px;
}
.live-price-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.live-indicator-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.66rem;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.live-blink-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: rhfxLiveBlink 1.8s ease-in-out infinite;
}
@keyframes rhfxLiveBlink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.85); }
}
.active-signal-live-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.active-signal-pips-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    padding: 5px 12px;
    border-radius: 10px;
    min-width: 90px;
    text-align: right;
    transition: all 0.25s ease;
}
.active-signal-pips-container.pips-positive {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.45);
    color: #4ade80;
    box-shadow: 0 2px 10px rgba(34, 197, 94, 0.15);
}
.active-signal-pips-container.pips-negative {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.45);
    color: #f87171;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.15);
}
.pips-badge-label {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    opacity: 0.85;
    text-transform: uppercase;
}
.active-signal-live-pips {
    font-size: 0.96rem;
    font-weight: 800;
    line-height: 1.2;
}

/* Primary Levels (Entry & SL - 2 Balanced Columns) */
.signal-levels-primary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-bottom: 9px;
}

/* Target Levels (TP 1, TP 2, TP 3 - 3 Balanced Columns) */
.signal-levels-targets {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin-bottom: 12px;
}

/* Level Cards Generic Styling */
.signal-level-card {
    border-radius: 12px;
    padding: 9px 11px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.18s ease;
    user-select: none;
    position: relative;
    min-width: 0;
}
.signal-level-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}
.signal-level-card:active {
    transform: scale(0.97);
}

.level-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.label-entry { color: #f5d77f; }
.label-sl { color: #fca5a5; }
.label-tp { color: #86efac; }

.signal-level-entry {
    background: rgba(212, 175, 55, 0.04) !important;
    border: 1px solid rgba(212, 175, 55, 0.32) !important;
}
.signal-level-entry:hover {
    background: rgba(212, 175, 55, 0.08) !important;
    border-color: rgba(212, 175, 55, 0.6) !important;
}

.signal-level-sl {
    background: rgba(239, 68, 68, 0.04) !important;
    border: 1px solid rgba(239, 68, 68, 0.32) !important;
}
.signal-level-sl:hover {
    background: rgba(239, 68, 68, 0.08) !important;
    border-color: rgba(239, 68, 68, 0.6) !important;
}

.signal-level-tp1,
.signal-level-tp2,
.signal-level-tp3 {
    background: rgba(34, 197, 94, 0.04) !important;
    border: 1px solid rgba(34, 197, 94, 0.25) !important;
}
.signal-level-tp1:hover,
.signal-level-tp2:hover,
.signal-level-tp3:hover {
    background: rgba(34, 197, 94, 0.08) !important;
    border-color: rgba(34, 197, 94, 0.5) !important;
}

.level-price {
    display: block;
    font-size: 1.02rem;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}
.signal-levels-targets .level-price {
    font-size: 0.92rem;
}

.level-pips {
    font-size: 0.66rem;
    font-weight: 700;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pips-green { color: #4ade80; }
.pips-red { color: #f87171; }
.level-subtext {
    font-size: 0.64rem;
    color: #94a3b8;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hit-check { display: inline-block; margin-left: 2px; }

/* Break Even Warning Banner */
.signal-be-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(234, 179, 8, 0.18), rgba(34, 197, 94, 0.12));
    border: 1px solid rgba(234, 179, 8, 0.45);
    margin-bottom: 12px;
}
.be-banner-icon { font-size: 1.3rem; flex-shrink: 0; }
.be-banner-text strong {
    color: #facc15;
    font-size: 0.82rem;
    display: block;
    font-weight: 800;
}
.be-banner-text small {
    color: #cbd5e1;
    font-size: 0.74rem;
    line-height: 1.4;
    display: block;
    margin-top: 2px;
}

/* Status & Progress */
.signal-status-progress-wrap {
    margin: 10px 0 12px;
}
.signal-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}
.status-title {
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.status-value {
    color: #f8fafc;
    font-size: 0.76rem;
    font-weight: 800;
}
.signal-progress {
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}
.signal-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #d4af37, #22c55e);
    transition: width 0.35s ease;
}

/* Footer & Full-Width Copy Action */
.signal-card-footer-modern {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.btn-copy-broadcast-modern {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.22), rgba(212, 175, 55, 0.08));
    border: 1px solid rgba(212, 175, 55, 0.5);
    color: #f5d77f;
    font-weight: 700;
    font-size: 0.84rem;
    cursor: pointer;
    transition: all 0.18s ease;
    font-family: inherit;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.btn-copy-broadcast-modern:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.35), rgba(212, 175, 55, 0.15));
    border-color: #ffd700;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.25);
}
.btn-copy-broadcast-modern:active {
    transform: scale(0.98);
}
.copy-tap-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #94a3b8;
    font-size: 0.7rem;
    text-align: center;
}

/* Hak Akses Salin Sinyal: Hanya Khusus Owner & Admin (Disembunyikan untuk Member) */
body:not([data-user-role="master"]):not([data-user-role="admin"]):not([data-user-role="owner"]) .signal-card-footer-modern,
body:not([data-user-role="master"]):not([data-user-role="admin"]):not([data-user-role="owner"]) .level-copy-ic,
body:not([data-user-role="master"]):not([data-user-role="admin"]):not([data-user-role="owner"]) .copy-tap-hint {
    display: none !important;
}

/* Mobile Screen Tuning (<= 600px) */
@media (max-width: 600px) {
    .active-signal-card {
        padding: 14px 13px !important;
        border-radius: 15px !important;
    }
    .signal-pair-name {
        font-size: 1.25rem !important;
    }
    .badge-direction {
        font-size: 0.76rem !important;
        padding: 4px 12px !important;
    }
    .signal-hero-live-strip {
        padding: 9px 12px !important;
    }
    .active-signal-live-price {
        font-size: 1.15rem !important;
    }
    .active-signal-live-pips {
        font-size: 0.88rem !important;
    }
    .level-price {
        font-size: 0.94rem !important;
    }
    .signal-levels-targets .level-price {
        font-size: 0.84rem !important;
    }
    .level-pips {
        font-size: 0.62rem !important;
    }
    .signal-level-card {
        padding: 8px 9px !important;
    }
}

/* /* --- Dual-Zone Anticipation Widget Styles --- */
.anticipation-card { 
    padding: 22px; 
    border: 1px solid rgba(212, 175, 55, 0.25); 
    border-radius: var(--card-radius); 
    background: linear-gradient(145deg, rgba(20, 25, 36, 0.82) 0%, rgba(12, 15, 22, 0.96) 100%); 
    box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    position: relative;
}
.anticipation-head { 
    display: flex; 
    flex-direction: column;
    gap: 10px; 
    margin-bottom: 14px; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.07); 
    padding-bottom: 12px; 
}
.anticipation-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.anticipation-title {
    font-size: 1.55rem;
    font-weight: 900;
    color: #ffffff;
    font-family: var(--font-display) !important;
    letter-spacing: 0.03em;
    margin: 0;
    line-height: 1;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
.anticipation-live-price-box {
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: right;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.anticipation-beacon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 10px #38bdf8;
    animation: signalPulse 1.8s infinite ease-in-out;
}
.anticipation-live-price-num {
    font-size: 1.45rem;
    font-weight: 800;
    color: #ffffff;
    font-family: var(--font-mono) !important;
    font-variant-numeric: tabular-nums !important;
    letter-spacing: -0.01em;
    line-height: 1;
    white-space: nowrap;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
}
.anticipation-badges-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.anticipation-trend-badge {
    font-size: 0.68rem;
    font-weight: 800;
    font-family: var(--font-display) !important;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.anticipation-trend-badge.trend-bullish {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}
.anticipation-trend-badge.trend-bearish {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}
.anticipation-trend-badge.trend-sideways {
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.3);
}
.anticipation-status-pill {
    background: rgba(234, 179, 8, 0.14);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.38);
    font-size: 0.68rem;
    font-weight: 800;
    font-family: var(--font-display) !important;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    letter-spacing: 0.03em;
    box-shadow: 0 0 10px rgba(234, 179, 8, 0.15);
}
.anticipation-live-tag {
    display: none !important;
}
.anticipation-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:0; }
@media (max-width: 680px) { 
    .anticipation-card { padding:14px 14px; border-radius: 12px; }
    .anticipation-grid { grid-template-columns:1fr; gap:10px; }
    .anticipation-head { 
        gap: 6px;
        margin-bottom: 10px; 
        padding-bottom: 10px; 
    }
    .anticipation-title { 
        font-size: 1.25rem; 
        line-height: 1;
    }
    .anticipation-live-price-num { 
        font-size: 1.25rem; 
        line-height: 1;
    }
    .anticipation-badges-row { 
        gap: 5px; 
    }
    .anticipation-trend-badge,
    .anticipation-status-pill { 
        font-size: 0.64rem; 
        padding: 3px 8px; 
    }
    .anticipation-live-tag { 
        font-size: 0.58rem; 
    }
    .anticipation-zone-box { padding: 12px 12px; gap: 8px; }
    .anticipation-zone-table { margin-top: 6px; }
    .anticipation-zone-row { padding: 7px 10px; }
    .anticipation-zone-lbl { font-size: 0.74rem; }
    .anticipation-zone-val { font-size: 0.78rem; }
}
.anticipation-zone-box { border-radius:14px; padding:15px 16px; display:flex; flex-direction:column; justify-content:space-between; gap:10px; position:relative; overflow:hidden; box-shadow:0 4px 16px rgba(0,0,0,.25); }
.anticipation-zone-buy { background:linear-gradient(135deg, rgba(16,185,129,.12), rgba(16,185,129,.03)); border:1px solid rgba(16,185,129,.38); }
.anticipation-zone-sell { background:linear-gradient(135deg, rgba(239,68,68,.12), rgba(239,68,68,.03)); border:1px solid rgba(239,68,68,.38); }
.anticipation-zone-header { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.anticipation-zone-tag { font-size:.74rem; font-weight:800; font-family:var(--font-display) !important; padding:4px 10px; border-radius:6px; letter-spacing:.04em; }
.anticipation-zone-buy .anticipation-zone-tag { background:rgba(16,185,129,.22); color:#4ade80; border:1px solid rgba(16,185,129,0.35); }
.anticipation-zone-sell .anticipation-zone-tag { background:rgba(239,68,68,.22); color:#f87171; border:1px solid rgba(239,68,68,0.35); }
.anticipation-distance { font-size:.74rem; font-weight:700; color:var(--text-muted); font-family:var(--font-mono); }
.anticipation-distance.in-zone { background:rgba(250,204,21,.16); border:1px solid rgba(250,204,21,.4); padding:3px 9px; border-radius:6px; }
.anticipation-range { font-size:1.18rem; font-weight:800; color:#fff; letter-spacing:.02em; font-family:var(--font-mono); }
.anticipation-targets { display:grid; grid-template-columns:repeat(4, 1fr); gap:6px; font-size:.68rem; text-align:center; padding-top:8px; border-top:1px solid rgba(255,255,255,.07); }
.anticipation-targets div { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.anticipation-targets small { color:var(--text-muted); display:block; font-size:.6rem; font-family:var(--font-display); }
.anticipation-zone-table {
    background: rgba(0, 0, 0, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 8px;
}
.anticipation-zone-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.anticipation-zone-row:last-child {
    border-bottom: none;
}
.anticipation-zone-lbl {
    font-size: 0.78rem;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.01em;
    font-family: var(--font-body);
}
.anticipation-zone-val {
    font-size: 0.85rem;
    font-weight: 700;
    font-family: var(--font-mono) !important;
    font-variant-numeric: tabular-nums !important;
    letter-spacing: 0.02em;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-block;
}
.anticipation-zone-val.val-gold {
    color: #facc15;
    background: rgba(250, 204, 21, 0.1);
    border: 1px solid rgba(250, 204, 21, 0.25);
    text-shadow: 0 0 8px rgba(250, 204, 21, 0.3);
}
.anticipation-zone-val.val-green {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.25);
    text-shadow: 0 0 8px rgba(74, 222, 128, 0.3);
}
.anticipation-zone-val.val-red {
    color: #f87171;
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.25);
    text-shadow: 0 0 8px rgba(248, 113, 113, 0.3);
}

/* Institutional SMC Engine Badges & Telemetry */
.smc-zone-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    line-height: 1.2;
}
.smc-zone-pill.smc-fresh {
    background: rgba(34, 197, 94, 0.16);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.35);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.2);
}
.smc-zone-pill.smc-tested {
    background: rgba(234, 179, 8, 0.16);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.35);
}
.smc-zone-pill.smc-exhausted {
    background: rgba(239, 68, 68, 0.16);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.35);
}
.smc-zone-pill.smc-sweep {
    background: rgba(6, 182, 212, 0.2);
    color: #22d3ee;
    border: 1px solid rgba(6, 182, 212, 0.45);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
    animation: sweepPulse 2s infinite ease-in-out;
}

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

.smc-session-pill {
    font-size: 0.65rem;
    font-weight: 800;
    background: rgba(147, 51, 234, 0.15);
    color: #c084fc;
    border: 1px solid rgba(147, 51, 234, 0.35);
    padding: 3px 8px;
    border-radius: 999px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.anticipation-smc-bar {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.72rem;
}
.smc-bar-left {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
}
.smc-engine-tag {
    font-weight: 800;
    color: #d4af37;
    letter-spacing: 0.03em;
}
.smc-session-name {
    color: #94a3b8;
    font-weight: 600;
}
.smc-bar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
}
.smc-telemetry-item b {
    color: #f1f5f9;
}
.signal-last-result { display:flex; flex-direction:column; gap:4px; padding:11px 13px; border-radius:9px; background:rgba(255,255,255,.025); }
.signal-last-result span { font-size:.78rem; color:var(--text-muted); }
.home-signal-history { display:flex; flex-direction:column; gap:7px; max-height:420px; overflow-y:auto; padding-right:4px; }
.signal-history-row { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:10px; padding:10px; border:1px solid var(--border-color); border-radius:9px; background:rgba(255,255,255,.02); }
.signal-history-row > div { display:flex; flex-direction:column; gap:2px; min-width:0; }
.signal-history-row small { color:var(--text-muted); font-size:.68rem; }.signal-history-row > div > strong { overflow:hidden; text-overflow:ellipsis; }
.history-side { min-width:42px; padding:5px 6px; border-radius:6px; text-align:center; font-size:.62rem; font-weight:800; }
.history-buy { color:var(--success); background:rgba(16,185,129,.12); }.history-sell { color:var(--danger); background:rgba(239,68,68,.12); }
.history-result { text-align:right; }.history-result.result-tp strong,.history-result.result-slplus strong { color:var(--success); }.history-result.result-sl strong { color:var(--danger); }.history-result.result-be strong { color:var(--primary); }
.signal-history-empty { padding:18px; color:var(--text-muted); text-align:center; border:1px dashed var(--border-color); border-radius:10px; }
.home-brief-card { position:relative; overflow:hidden; border-color:rgba(212,175,55,.18); background:linear-gradient(145deg,rgba(24,28,37,.99),rgba(14,17,23,.99)); }
.home-xau-brief { display:flex; flex-direction:column; gap:14px; }
.brief-widget-grid { display:grid; grid-template-columns:minmax(230px,.72fr) minmax(0,1.28fr); gap:12px; }
.brief-direction-panel,.brief-market-panel { min-width:0; padding:16px; border:1px solid rgba(255,255,255,.09); border-radius:13px; background:linear-gradient(135deg,rgba(255,255,255,.045),rgba(255,255,255,.015)); }
.brief-direction-panel { position:relative; display:flex; flex-direction:column; justify-content:center; min-height:146px; overflow:hidden; }
.brief-panel-bullish { background:linear-gradient(135deg,rgba(16,185,129,.12),rgba(16,185,129,.025)); border-color:rgba(16,185,129,.22); }
.brief-panel-bearish { background:linear-gradient(135deg,rgba(239,68,68,.12),rgba(239,68,68,.025)); border-color:rgba(239,68,68,.22); }
.brief-direction-top { display:flex; align-items:center; justify-content:flex-start; margin-bottom:10px; }
.brief-direction-icon { width:58px; height:58px; flex:0 0 58px; display:grid; place-items:center; border-radius:18px; color:var(--primary); background:rgba(212,175,55,.13); font-size:2.9rem; line-height:1; font-weight:900; animation:briefDirectionPulse 3.2s ease-in-out infinite; will-change:transform,opacity; }
.brief-panel-bullish .brief-direction-icon { color:var(--success); background:rgba(16,185,129,.14); }
.brief-panel-bearish .brief-direction-icon { color:var(--danger); background:rgba(239,68,68,.14); }
.brief-bias-main { display:block; margin:0 0 14px; font-size:1.55rem!important; line-height:1; letter-spacing:.04em; font-family:var(--font-display)!important; font-weight:900; }
.brief-bias { width:max-content; max-width:calc(100% - 44px); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; padding:6px 12px; border-radius:999px; color:var(--primary); border:1px solid rgba(212,175,55,.35); font-size:.68rem; font-weight:800; text-transform:uppercase; letter-spacing:.06em; font-family:var(--font-display); }
.brief-bullish { color:var(--success); border-color:rgba(16,185,129,.35); }.brief-bearish { color:var(--danger); border-color:rgba(239,68,68,.35); }
.brief-direction-panel > small { color:var(--text-muted); font-size:.68rem; text-transform:uppercase; letter-spacing:.08em; font-family:var(--font-display); font-weight:700; }
.brief-current-price { margin:4px 0 3px; font-size:1.85rem!important; line-height:1.1; letter-spacing:-0.02em; font-family:var(--font-mono)!important; font-variant-numeric:tabular-nums; font-weight:800; }
.brief-change { color:var(--text-muted); font-size:.74rem; font-weight:700; font-family:var(--font-mono); }.brief-change.is-positive { color:var(--success); }.brief-change.is-negative { color:var(--danger); }
.brief-market-visual { position:absolute; right:18px; top:50%; display:flex; align-items:flex-end; gap:4px; width:138px; height:70px; transform:translateY(-50%); opacity:.7; }
.brief-market-visual span { flex:1; min-width:5px; height:var(--bar-height,40%); border-radius:5px 5px 2px 2px; background:currentColor; animation:briefBarPulse 3.8s ease-in-out infinite alternate; animation-delay:var(--bar-delay,0s); will-change:transform,opacity; }
.brief-visual-bearish { color:var(--danger); transform:translateY(-50%) rotate(180deg); }
.brief-visual-bullish { color:var(--success); }
.brief-visual-sideways { color:var(--primary); }
.brief-market-visual span:nth-child(1) { --bar-height:62%; --bar-delay:-.9s; }.brief-market-visual span:nth-child(2) { --bar-height:46%; --bar-delay:-.7s; }.brief-market-visual span:nth-child(3) { --bar-height:72%; --bar-delay:-.5s; }.brief-market-visual span:nth-child(4) { --bar-height:38%; --bar-delay:-.3s; }.brief-market-visual span:nth-child(5) { --bar-height:84%; --bar-delay:-.1s; }.brief-market-visual span:nth-child(6) { --bar-height:52%; --bar-delay:-.8s; }.brief-market-visual span:nth-child(7) { --bar-height:68%; --bar-delay:-.6s; }.brief-market-visual span:nth-child(8) { --bar-height:42%; --bar-delay:-.4s; }.brief-market-visual span:nth-child(9) { --bar-height:76%; --bar-delay:-.2s; }.brief-market-visual span:nth-child(10) { --bar-height:58%; --bar-delay:0s; }
.brief-market-panel { display:flex; flex-direction:column; justify-content:center; gap:16px; }
.brief-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.brief-metrics > div { min-width:0; padding:11px 12px; border:1px solid rgba(255,255,255,.07); border-radius:10px; background:rgba(255,255,255,.025); }
.brief-metrics small { display:block; margin-bottom:4px; color:var(--text-muted); font-size:.66rem; text-transform:uppercase; letter-spacing:.06em; font-family:var(--font-display); font-weight:700; }
.brief-metrics strong { display:block; overflow:hidden; text-overflow:ellipsis; font-size:.95rem!important; font-family:var(--font-mono)!important; font-variant-numeric:tabular-nums; font-weight:800; color:#fff; }
.brief-range-head,.brief-range-labels { display:flex; align-items:center; justify-content:space-between; gap:10px; color:var(--text-muted); font-size:.68rem; }
.brief-range-head { margin-bottom:10px; }
.brief-range-head strong { color:var(--primary)!important; font-size:.72rem!important; }
.brief-range-track { position:relative; height:7px; margin:0 4px; border-radius:99px; background:linear-gradient(90deg,rgba(239,68,68,.42),rgba(212,175,55,.42) 50%,rgba(16,185,129,.42)); }
.brief-range-track span { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--danger),var(--primary) 58%,var(--success)); opacity:.78; transition:width .7s ease; }
.brief-range-track i { position:absolute; top:50%; width:14px; height:14px; transform:translate(-50%,-50%); border:3px solid var(--card-bg); border-radius:50%; background:#fff; box-shadow:0 0 0 2px rgba(255,255,255,.2); transition:left .7s ease; }
.brief-range-labels { margin-top:8px; }

/* Brief Pair Switcher matching Outlook Market buttons */
.brief-pair-bar { display:flex; align-items:center; justify-content:flex-start; gap:10px; margin-bottom:12px; }
.brief-pair-tabs { display:inline-flex; align-items:center; background:rgba(0,0,0,0.35); padding:3px 4px; border-radius:10px; border:1px solid rgba(255,255,255,0.08); gap:4px; }
@media (max-width: 680px) {
    .brief-pair-bar { margin-bottom:10px; width:100%; }
    .brief-pair-tabs { width:100%; display:flex; }
    .brief-pair-tabs .btn-brief-tab { flex:1; justify-content:center; padding:8px 12px; font-size:0.82rem; }
}

#home-xau-brief .btn-brief-tab,
.btn-brief-tab {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted) !important;
    padding: 8px 16px;
    border-radius: 9px;
    font-size: 0.82rem;
    font-weight: 700 !important;
    font-family: var(--font-display) !important;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    -webkit-tap-highlight-color: transparent;
}
#home-xau-brief .btn-brief-tab span,
.btn-brief-tab span {
    color: inherit !important;
    font-weight: inherit !important;
}
#home-xau-brief .btn-brief-tab:hover,
.btn-brief-tab:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.08);
}
#home-xau-brief .btn-brief-tab:hover span,
.btn-brief-tab:hover span {
    color: #fff !important;
}
#home-xau-brief .btn-brief-tab.active,
.btn-brief-tab.active {
    background: linear-gradient(135deg, #d4af37 0%, #aa820a 100%) !important;
    color: #000000 !important;
    font-weight: 800 !important;
    box-shadow: 0 2px 10px rgba(212,175,55,0.4) !important;
    border-color: transparent !important;
}
#home-xau-brief .btn-brief-tab.active span,
.btn-brief-tab.active span {
    color: #000000 !important;
    font-weight: 800 !important;
}
.brief-summary-box { margin-top:12px; padding:11px 14px; background:rgba(255,255,255,0.025); border:1px solid rgba(255,255,255,0.07); border-radius:10px; color:var(--text-muted); font-size:0.78rem; line-height:1.45; }
.brief-summary-box strong { color:var(--text-main); margin-right:4px; }

.trading-tool-picker {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 24px;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(20, 24, 34, 0.95) 0%, rgba(12, 14, 20, 0.98) 100%);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}
.tool-picker-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.tool-picker-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.kicker-sparkle {
    font-size: 0.85rem;
    color: var(--primary);
    animation: briefIconFloat 2s ease-in-out infinite;
}
.tool-picker-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.01em;
    line-height: 1.35;
}
.tool-picker-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.45);
    padding: 4px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.tool-picker-btn {
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}
.tool-picker-btn .btn-icon {
    font-size: 1rem;
    transition: transform 0.25s ease;
}
.tool-picker-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}
.tool-picker-btn.active {
    background: linear-gradient(135deg, rgba(212,175,55,0.22) 0%, rgba(212,175,55,0.1) 100%);
    color: var(--primary);
    border: 1px solid var(--primary);
    box-shadow: 0 4px 15px rgba(212,175,55,0.2);
    font-weight: 800;
}
.tool-picker-btn.active .btn-icon {
    transform: scale(1.15);
}
@media (max-width: 768px) {
    .trading-tool-picker {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 16px;
        border-radius: 14px;
        margin-top: 14px;
        margin-bottom: 18px;
    }
    .tool-picker-title {
        font-size: 0.98rem;
    }
    .tool-picker-kicker {
        font-size: 0.68rem;
    }
    .tool-picker-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        width: 100%;
        background: transparent;
        padding: 0;
        border: 0;
    }
    .tool-picker-btn {
        width: 100%;
        padding: 10px 12px;
        font-size: 0.8rem;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 10px;
    }
}

/* ========================================
   Trading Tool Picker V2 — Select-First
   Premium Dark Theme
   ======================================== */
.trading-tool-picker-v2 {
    margin-top: 24px;
    margin-bottom: 32px;
    padding: 48px 36px;
    background: linear-gradient(145deg, #12161f 0%, #0c0e15 100%);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 24px;
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(255,255,255,0.03),
        inset 0 1px 0 rgba(255,255,255,0.07);
    position: relative;
    overflow: hidden;
    text-align: center;
}
.trading-tool-picker-v2::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 50% -10%, rgba(212,175,55,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.tool-picker-v2-header {
    margin-bottom: 36px;
    position: relative;
    z-index: 1;
}
.tool-picker-v2-icon {
    font-size: 2.8rem;
    margin-bottom: 16px;
    display: inline-block;
    filter: drop-shadow(0 0 12px rgba(212,175,55,0.5));
    animation: briefIconFloat 3s ease-in-out infinite;
}
.tool-picker-v2-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px 0;
    letter-spacing: -0.03em;
    line-height: 1.15;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.tool-picker-v2-subtitle {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
    font-weight: 400;
}
.tool-picker-v2-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

/* === TOOL CARD === */
.tool-card-btn {
    all: unset;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 30px 26px;
    background: linear-gradient(145deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.015) 100%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 20px;
    cursor: pointer;
    transition:
        transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        border-color 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    gap: 12px;
    width: 100%;
}
.tool-card-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(212,175,55,0.12) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}
.tool-card-btn:hover {
    border-color: rgba(212, 175, 55, 0.6);
    background: linear-gradient(145deg, rgba(212,175,55,0.09) 0%, rgba(212,175,55,0.03) 100%);
    transform: translateY(-6px) scale(1.01);
    box-shadow:
        0 20px 50px rgba(0,0,0,0.5),
        0 0 0 1px rgba(212,175,55,0.2),
        0 0 30px rgba(212,175,55,0.08);
}
.tool-card-btn:hover::after {
    opacity: 1;
}
.tool-card-btn:hover .tool-card-cta {
    color: var(--primary);
    letter-spacing: 0.02em;
}
.tool-card-btn:hover .tool-card-icon {
    transform: scale(1.1) rotate(-5deg);
    filter: drop-shadow(0 0 10px rgba(212,175,55,0.4));
}
.tool-card-btn:active {
    transform: translateY(-2px) scale(0.99);
}

.tool-card-icon {
    font-size: 2.8rem;
    line-height: 1;
    margin-bottom: 4px;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.35s ease;
    display: block;
    position: relative;
    z-index: 1;
}
.tool-card-badge {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.28);
    padding: 3px 12px;
    border-radius: 99px;
    display: inline-block;
    position: relative;
    z-index: 1;
}
.tool-card-name {
    font-size: 1.28rem;
    font-weight: 800;
    color: #f1f5f9;
    letter-spacing: -0.02em;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}
.tool-card-desc {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.65;
    flex: 1;
    position: relative;
    z-index: 1;
    font-weight: 400;
}
.tool-card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 6px;
    position: relative;
    z-index: 1;
}
.tool-card-features span {
    font-size: 0.73rem;
    font-weight: 600;
    color: rgba(212,175,55,0.7);
    background: rgba(212,175,55,0.06);
    border: 1px solid rgba(212,175,55,0.15);
    padding: 4px 12px;
    border-radius: 8px;
}
.tool-card-divider {
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.06);
    margin: 4px 0;
    position: relative;
    z-index: 1;
}
.tool-card-cta {
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(255,255,255,0.3);
    margin-top: 4px;
    transition: color 0.25s ease, letter-spacing 0.25s ease;
    align-self: flex-end;
    width: 100%;
    text-align: right;
    position: relative;
    z-index: 1;
    font-family: 'Outfit', sans-serif;
}

/* Mobile tool selector: keep cards readable and touch-friendly. */
@media (max-width: 600px) {
    #trading-tool-selector.tool-selector-v3 {
        margin-top: 14px !important;
        margin-bottom: 24px !important;
        padding: 28px 16px !important;
        border-radius: 18px !important;
    }
    #trading-tool-selector.tool-selector-v3 > div[style*="margin-bottom:36px"] {
        margin-bottom: 24px !important;
    }
    #trading-tool-selector.tool-selector-v3 h2 {
        font-size: 1.35rem !important;
        line-height: 1.2 !important;
    }
    #trading-tool-selector.tool-selector-v3 h2 + p {
        font-size: .82rem !important;
        line-height: 1.5 !important;
    }
    #trading-tool-selector .tool-selector-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        max-width: 100% !important;
    }
    #trading-tool-selector .tool-selector-card {
        min-height: 0 !important;
        padding: 20px 18px !important;
        border-radius: 16px !important;
        gap: 10px !important;
    }
    #trading-tool-selector .tool-selector-card > div:nth-child(1) {
        font-size: 2.25rem !important;
    }
    #trading-tool-selector .tool-selector-card > div:nth-child(2) {
        font-size: .58rem !important;
        padding: 3px 10px !important;
    }
    #trading-tool-selector .tool-selector-card > div:nth-child(3) {
        font-size: 1.18rem !important;
    }
    #trading-tool-selector .tool-selector-card > div:nth-child(4) {
        font-size: .86rem !important;
        line-height: 1.55 !important;
    }
    #trading-tool-selector .tool-selector-card > div:nth-child(6) {
        gap: 6px !important;
    }
    #trading-tool-selector .tool-selector-card > div:nth-child(6) span {
        font-size: .68rem !important;
        padding: 5px 9px !important;
    }
    #trading-tool-selector .tool-selector-card > div:nth-child(7) {
        font-size: .82rem !important;
        margin-top: 4px !important;
    }
}

@media (max-width: 900px) {
    .trading-tool-picker-v2 {
        padding: 36px 22px;
        margin-top: 16px;
        margin-bottom: 24px;
        border-radius: 18px;
    }
    .tool-picker-v2-title {
        font-size: 1.35rem;
    }
    .tool-picker-v2-icon {
        font-size: 2.2rem;
    }
    .tool-picker-v2-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        max-width: 100%;
    }
    .tool-card-btn {
        padding: 22px 20px;
        border-radius: 16px;
    }
    .tool-card-name {
        font-size: 1.1rem;
    }
    .tool-card-icon {
        font-size: 2.2rem;
    }
}

.trading-tool-panel { margin-top:16px; padding:22px; border:1px solid rgba(212,175,55,.24); }
.tool-panel-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:18px; }
.tool-panel-heading h2 { margin:0; font-size:1.2rem; color:var(--text-main); }
.tool-panel-heading p { margin:5px 0 0; color:var(--text-muted); font-size:.82rem; }
.tool-live-badge { padding:5px 9px; border:1px solid rgba(212,175,55,.35); border-radius:999px; color:var(--primary); font-size:.64rem; font-weight:800; }
.tool-note { display:block; margin-top:12px; color:var(--text-muted); }
.risk-reward-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.risk-reward-grid label { display:block; margin-bottom:7px; color:var(--text-muted); font-size:.75rem; }
.risk-reward-grid input { width:100%; box-sizing:border-box; padding:11px 12px; border:1px solid rgba(148,163,184,.25); border-radius:8px; background:#202631; color:var(--text-main); }
.risk-reward-result { display:flex; justify-content:space-around; gap:12px; margin-top:16px; padding:15px; border:1px dashed rgba(212,175,55,.5); border-radius:10px; color:var(--text-muted); text-align:center; }
.risk-reward-result strong { color:var(--primary); }
.brief-analysis-box,.brief-news { padding:15px 16px; border:1px solid rgba(255,255,255,.08); border-radius:11px; background:rgba(255,255,255,.022); }
.brief-analysis-box p,.brief-news p { margin:7px 0 0; color:var(--text-muted); line-height:1.65; }
.brief-section-label { color:var(--primary); font-size:.68rem; font-weight:800; text-transform:uppercase; letter-spacing:.09em; }
.brief-section-label span { margin-right:5px; }
.brief-news { border-color:rgba(212,175,55,.2); background:rgba(212,175,55,.045); }
.brief-update { display:flex; align-items:center; gap:7px; color:var(--text-muted); }
.brief-live-dot,.brief-loading-pulse { width:8px; height:8px; flex:0 0 8px; border-radius:50%; background:var(--success); box-shadow:0 0 0 0 rgba(16,185,129,.45); animation:signalPulse 1.8s infinite; }
.brief-update small { font-size:.67rem; }
.brief-loading { display:flex; align-items:center; gap:12px; min-height:100px; padding:16px; border:1px dashed rgba(212,175,55,.3); border-radius:12px; }
.brief-loading > div { display:flex; flex-direction:column; gap:4px; }.brief-loading small { color:var(--text-muted); }
@keyframes briefIconFloat { 0%,100% { transform:translateY(0) rotate(0deg); } 50% { transform:translateY(-3px) rotate(-4deg); } }
@keyframes briefDirectionPulse { 0%,100% { transform:translateY(-2px) scale(.94); opacity:.7; } 50% { transform:translateY(5px) scale(1.08); opacity:1; } }
@keyframes briefBarPulse { from { transform:scaleY(.62); opacity:.48; } to { transform:scaleY(1); opacity:1; } }
@media (max-width:800px) {
    .home-trading-detail-grid { grid-template-columns:1fr; }
    .active-signal-card { padding:12px; }
    .signal-live-row { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .signal-live-row > div:last-child { grid-column:span 2; }
    .home-signal-history { max-height:360px; }
    .brief-widget-grid { grid-template-columns:1fr; }
    .brief-direction-panel { min-height:112px; padding:13px; }
    .brief-direction-top { margin-bottom:9px; }
    .brief-direction-icon { width:54px; height:54px; flex-basis:54px; font-size:2.6rem; }
    .brief-market-visual { right:14px; width:120px; height:60px; gap:3px; }
    .brief-current-price { font-size:1.5rem!important; }
    .brief-analysis-box,.brief-news { padding:13px; }
}

/* Kalkulator lanjutan ditampilkan lebih dulu di menu Alat Trading. */
#menu-tools.active { display: flex; flex-direction: column; }
#menu-tools .page-header { order: 1; }
#menu-tools .calc-currency-card { order: 2; }
#menu-tools .calc-advanced-grid { order: 3; }
#menu-tools .calc-primary-grid { order: 4; }

.live-market-card { margin-top: 24px; }
.live-market-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:12px; }
.live-market-heading h3, .live-market-card h4 { margin:0 0 6px; }
.live-market-heading p, .live-bias-title small { color:var(--text-muted); font-size:.85rem; }
.market-status { white-space:nowrap; border:1px solid var(--border-color); border-radius:999px; padding:6px 10px; font-size:.75rem; font-weight:700; }
.market-status.is-live { color:var(--success); border-color:rgba(16,185,129,.35); }
.market-status.is-error { color:var(--danger); border-color:rgba(239,68,68,.35); }
.market-live-message { color:var(--text-muted); font-size:.85rem; margin:8px 0 16px; }
.live-market-layout { display:grid; grid-template-columns:1.2fr .8fr; gap:20px; }
.market-positive { color:var(--success)!important; }.market-negative { color:var(--danger)!important; }.market-neutral { color:var(--text-muted)!important; }
.live-heatmap { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.heat-cell, .bias-card { border:1px solid var(--border-color); border-radius:10px; padding:14px; display:flex; flex-direction:column; gap:5px; }
.heat-cell span { font-size:1.1rem; font-weight:700; }.heat-up { background:rgba(16,185,129,.14); }.heat-down { background:rgba(239,68,68,.14); }.heat-flat { background:rgba(148,163,184,.1); }
.live-bias-wrap { margin-top:20px; border-top:1px solid var(--border-color); padding-top:16px; }.live-bias-title { display:flex; justify-content:space-between; gap:12px; align-items:baseline; margin-bottom:12px; }.live-bias-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }.bias-card span { font-weight:700; }.bias-card small { color:var(--text-muted); }
.market-empty { color:var(--text-muted); }
@media (max-width:700px) { .live-market-layout { grid-template-columns:1fr; }.live-bias-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.live-market-heading { flex-direction:column; }.live-market-card { overflow:hidden; } }

.page-header {
    margin-bottom: 32px;
}

.page-header h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.page-header p {
    color: var(--text-muted);
}

#news-mobile-back-btn {
    display: none;
}

/* Cards & Layouts */
.card {
    background: linear-gradient(145deg, rgba(20, 25, 36, 0.75) 0%, rgba(13, 16, 24, 0.9) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--card-radius);
    padding: 22px;
    max-width: 100%;
    min-width: 0;
    box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.card h3 {
    margin-bottom: 16px;
    font-size: 1.15rem;
    font-weight: 800;
    font-family: var(--font-display) !important;
    letter-spacing: -0.01em;
    color: var(--primary);
}

.full-width {
    width: 100%;
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.mt-4 { margin-top: 24px; }

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

/* Journal Table */
.journal-table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
    font-size: 0.95rem;
    white-space: nowrap;
}

.journal-table th, .journal-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.journal-table th {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
    font-weight: 500;
}

/* Ensure columns 1 to 5 (Tanggal, Pair, Tipe, Lot, P/L) have identical widths */
.journal-table th:nth-child(1), .journal-table td:nth-child(1),
.journal-table th:nth-child(2), .journal-table td:nth-child(2),
.journal-table th:nth-child(3), .journal-table td:nth-child(3),
.journal-table th:nth-child(4), .journal-table td:nth-child(4),
.journal-table th:nth-child(5), .journal-table td:nth-child(5) {
    width: 14%;
    min-width: 110px;
}

/* Catatan column takes remaining space */
.journal-table th:nth-child(6), .journal-table td:nth-child(6) {
    width: auto;
}

/* Aksi column */
.journal-table th:nth-child(7), .journal-table td:nth-child(7) {
    width: 100px;
}

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

.pl-profit {
    color: var(--success);
    font-weight: 600;
}

.pl-loss {
    color: var(--danger);
    font-weight: 600;
}

.table-responsive {
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
    display: block;
    -webkit-overflow-scrolling: touch;
}

.btn-secondary {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--danger);
    color: var(--danger);
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Outfit';
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: rgba(239, 68, 68, 0.1);
}

.btn-delete-row {
    color: var(--danger);
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    transition: all 0.2s;
}

.btn-delete-row:hover {
    background: rgba(239, 68, 68, 0.12);
}

.btn-delete-row svg,
.section-icon svg,
.resource-card-icon svg,
.support-card-icon svg {
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btn-delete-row svg {
    width: 18px;
    height: 18px;
}

.section-icon {
    color: var(--primary);
}

.section-icon svg {
    width: 20px;
    height: 20px;
}

.resource-card-icon,
.support-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 12px;
}

.resource-card-icon svg {
    width: 48px;
    height: 48px;
}

.support-card-icon {
    color: #25D366;
    margin-bottom: 20px;
}

.support-card-icon svg {
    width: 64px;
    height: 64px;
}

/* Keep the third-party market ticker dark while its iframe is initializing. */
.ticker-card {
    position: relative;
    min-height: 74px;
    overflow: hidden;
    background: var(--bg-card);
}

.ticker-card .tradingview-widget-container,
.ticker-card .tradingview-widget-container__widget,
.ticker-card iframe {
    background: var(--bg-card) !important;
}

.ticker-loading-cover {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: 28px;
    padding: 20px 28px;
    background: var(--bg-card);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.ticker-card.is-loading .ticker-loading-cover {
    opacity: 1;
    visibility: visible;
}

.ticker-loading-cover span {
    height: 30px;
    border-radius: 6px;
    background: linear-gradient(90deg, rgba(255,255,255,0.045), rgba(212,175,55,0.12), rgba(255,255,255,0.045));
    background-size: 220% 100%;
    animation: ticker-loading 1.4s ease-in-out infinite;
}

@keyframes ticker-loading {
    0% { background-position: 100% 0; }
    100% { background-position: -120% 0; }
}

/* Forms & Calculators */
.grid-3-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

#ea-card-grid,
#ebook-card-grid,
#support-card-grid {
    grid-template-columns: repeat(var(--admin-columns, 3), 1fr);
}

#support-card-grid {
    --admin-columns: 2;
}

/* Beranda widgets: equal-height cards and hide third-party branding. */
#menu-overview .home-market-widgets {
    align-items: stretch;
    grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr);
}

#menu-overview .home-market-widgets > div {
    display: flex;
    flex-direction: column;
}

#menu-overview .home-market-widgets > div > .tall-card {
    flex: 1 1 auto;
}

#menu-calendar .tall-card {
    padding: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

#menu-calendar .calendar-scroll-wrapper {
    width: 100% !important;
    overflow: hidden !important;
    background: #181c25 !important;
    border-radius: 12px !important;
    position: relative !important;
}

#menu-calendar .calendar-iframe-wrapper {
    position: relative !important;
    width: 100% !important;
    height: 780px !important;
    min-height: 580px !important;
    overflow: hidden !important;
    background: #181c25 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

#menu-calendar .calendar-frame-scaler {
    width: 100% !important;
    height: 100% !important;
    max-width: 860px !important;
    margin: 0 auto !important;
    overflow: hidden !important;
    position: relative !important;
}

#menu-calendar .calendar-frame-scaler iframe {
    width: 100% !important;
    height: calc(100% + 28px) !important;
    margin-top: -28px !important;
    border: none !important;
    filter: invert(1) hue-rotate(180deg) contrast(1.1) !important;
}

.sentiment-tf-bar-container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin: 8px 0 16px 0 !important;
}

.sentiment-tf-bar {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    padding: 4px !important;
    background: #181c25 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 10px !important;
}

.btn-sentiment-tf {
    background: transparent !important;
    border: none !important;
    color: #94a3b8 !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    padding: 7px 14px !important;
    border-radius: 7px !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-family: inherit !important;
    letter-spacing: 0.2px !important;
    line-height: 1 !important;
    display: inline-block !important;
}

.btn-sentiment-tf:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.btn-sentiment-tf.active {
    background: #2a2e39 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

#menu-overview .sentiment-wrapper {
    position: relative;
    width: 100%;
    height: 410px;
    min-height: 410px;
    overflow: hidden;
}

#menu-overview .sentiment-wrapper .tradingview-widget-container {
    width: 100% !important;
    height: calc(100% + 50px) !important;
    min-height: 460px !important;
    margin-top: -50px !important;
}

#menu-overview .sentiment-wrapper iframe {
    width: 100% !important;
    height: 100% !important;
    min-height: 460px !important;
    border: none !important;
}

#menu-overview .sentiment-wrapper::after {
    content: '';
    position: absolute;
    z-index: 10;
    right: 0;
    bottom: 0;
    width: 80px;
    height: 48px;
    background: var(--bg-card);
    pointer-events: none;
}

.calc-card {
    display: flex;
    flex-direction: column;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-group input, .form-group select, .form-group textarea {
    display: block;
    width: 100%;
    min-width: 100%;
    /* iOS Safari fix for date/number inputs bleeding out of containers */
    width: -webkit-fill-available;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    outline: none;
    transition: all 0.2s;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}

.form-group select option, .form-group select optgroup {
    background-color: var(--bg-card);
    color: var(--text-main);
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background-color: var(--primary);
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: auto;
}

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

.calc-result {
    margin-top: 16px;
    padding: 16px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px dashed var(--primary);
    border-radius: 8px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

/* Responsive */
.card-widget-wrapper {
    height: 800px;
    overflow: hidden;
    position: relative;
}

@media (max-width: 992px) {
    .grid-2-col, .grid-3-col {
        grid-template-columns: 1fr;
    }

    #ea-card-grid,
    #ebook-card-grid,
    #support-card-grid {
        grid-template-columns: 1fr;
    }

    #menu-overview .home-market-widgets {
        grid-template-columns: 1fr;
    }

    #menu-overview .home-market-widgets > div {
        min-width: 0;
    }

    #menu-calendar .tall-card {
        padding: 14px 6px !important;
    }

    #menu-calendar .calendar-impact-legend {
        font-size: 0.76rem !important;
        gap: 6px !important;
        padding: 8px 12px !important;
    }

    #menu-calendar .tall-card {
        padding: 12px 6px !important;
        margin-top: 12px !important;
    }

    #menu-calendar .calendar-impact-legend {
        font-size: 0.76rem !important;
        gap: 6px !important;
        padding: 8px 12px !important;
    }

    #menu-calendar .calendar-iframe-wrapper {
        height: 740px !important;
        min-height: 660px !important;
        width: 100% !important;
        overflow: hidden !important;
    }

    #menu-calendar .calendar-frame-scaler {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        overflow: hidden !important;
        position: relative !important;
        padding-top: 4px !important;
    }

    #menu-calendar .calendar-frame-scaler iframe {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 178% !important;
        height: calc(178% + 50px) !important;
        transform: scale(0.562) !important;
        transform-origin: top left !important;
        margin-top: -12px !important;
    }
}

@media (max-width: 480px) {
    #menu-calendar .tall-card {
        padding: 10px 4px !important;
    }

    #menu-calendar .calendar-iframe-wrapper {
        height: 740px !important;
        min-height: 660px !important;
    }

    #menu-calendar .calendar-frame-scaler {
        padding-top: 4px !important;
    }

    #menu-calendar .calendar-frame-scaler iframe {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 184% !important;
        height: calc(184% + 55px) !important;
        transform: scale(0.543) !important;
        transform-origin: top left !important;
        margin-top: -12px !important;
    }
}

@media (max-width: 768px) {

    body.news-reading-mobile #menu-news .page-header {
        display: none;
    }

    body.news-reading-mobile #news-mobile-back-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin: 0 0 16px 0;
        padding: 10px 18px;
        border: 1px solid var(--primary);
        border-radius: 50px;
        background: transparent;
        color: var(--primary);
        cursor: pointer;
        font-family: inherit;
        font-weight: 700;
    }

    body.news-reading-mobile #news-article-content {
        padding: 20px !important;
    }

    body.news-reading-mobile .news-desktop-back-btn {
        display: none !important;
    }
    
    .sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        width: 290px !important;
        max-width: 84vw !important;
        height: 100% !important;
        height: 100dvh !important;
        background: #0d111a !important;
        background: linear-gradient(180deg, #111726 0%, #0a0d14 100%) !important;
        border-right: 1px solid rgba(212, 175, 55, 0.22) !important;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.75) !important;
        z-index: 1200 !important;
        transform: translate3d(-100%, 0, 0) !important;
        -webkit-transform: translate3d(-100%, 0, 0) !important;
        transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
        will-change: transform;
        backface-visibility: hidden !important;
        -webkit-backface-visibility: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .sidebar.open {
        transform: translate3d(0, 0, 0) !important;
        -webkit-transform: translate3d(0, 0, 0) !important;
    }

    .sidebar-header {
        height: 68px !important;
        min-height: 68px !important;
        padding: 0 16px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        visibility: visible !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        background: rgba(255, 255, 255, 0.02) !important;
    }

    .sidebar-close-btn {
        display: flex !important;
    }

    .sidebar-nav {
        padding: 12px 10px !important;
        gap: 6px !important;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .topbar {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        height: 58px !important;
        padding: 0 10px !important;
        background: rgba(11, 14, 20, 0.98) !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6) !important;
        z-index: 1000 !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        box-sizing: border-box !important;
        gap: 6px !important;
    }

    .topbar-left {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        min-width: 0 !important;
        flex-shrink: 0 !important;
    }

    .mobile-brand {
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
    }

    .mobile-brand img {
        width: 26px !important;
        height: 26px !important;
        flex-shrink: 0 !important;
    }

    .mobile-brand-title {
        font-size: 0.88rem !important;
        white-space: nowrap !important;
        letter-spacing: -0.01em !important;
    }

    .mobile-brand-title .vip-badge-pill {
        font-size: 0.62rem !important;
        padding: 2px 5px !important;
    }

    .topbar-right {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        margin-left: auto !important;
        flex-shrink: 0 !important;
    }

    /* Mobile Icon-Only Circular Theme Toggle */
    .btn-theme-toggle {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        max-width: 34px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
        background: rgba(255, 255, 255, 0.06) !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
        box-shadow: none !important;
    }

    .btn-theme-toggle .theme-toggle-label {
        display: none !important;
    }

    .theme-toggle-indicator {
        width: 18px !important;
        height: 18px !important;
        margin: 0 !important;
    }

    .theme-toggle-indicator svg {
        width: 17px !important;
        height: 17px !important;
    }

    .user-profile-wrapper {
        flex-shrink: 0 !important;
    }

    .user-profile {
        padding: 3px 8px 3px 4px !important;
        gap: 6px !important;
        border-radius: 999px !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        max-width: 135px !important;
        flex-shrink: 0 !important;
    }

    .avatar-img {
        width: 26px !important;
        height: 26px !important;
        flex-shrink: 0 !important;
    }

    .user-info {
        display: flex !important;
        flex-direction: column !important;
        line-height: 1.15 !important;
        min-width: 0 !important;
    }

    .user-info .user-name {
        font-size: 0.74rem !important;
        font-weight: 700 !important;
        max-width: 72px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        color: #fff !important;
    }

    .user-info .user-status {
        display: none !important;
    }

    .profile-dropdown-arrow {
        width: 12px !important;
        height: 12px !important;
        opacity: 0.6 !important;
        flex-shrink: 0 !important;
    }

    .user-profile-dropdown {
        right: 0 !important;
        max-width: calc(100vw - 20px) !important;
        width: 250px !important;
    }

    .pages-wrapper {
        padding-top: 68px !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        box-sizing: border-box !important;
    }

    .home-signal-card {
        padding: 12px !important;
        border-radius: 16px !important;
    }
    
    .mobile-only {
        display: block;
        appearance: none;
        -webkit-appearance: none;
        background: transparent !important;
        border: none;
        box-shadow: none !important;
        outline: none;
        color: white;
        cursor: pointer;
    }

    body.mobile-menu-open {
        overflow: hidden !important;
        touch-action: none;
    }
    
    .btn-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .pages-wrapper {
        padding: 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px auto;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        padding: 20px;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}
.modal.active { display: flex !important; }
.modal-content {
    background-color: var(--bg-card);
    margin: auto;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.close-modal {
    color: var(--text-muted);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.close-modal:hover { color: #fff; }

/* Final signal template layout. Kept at the end so it wins over legacy
   mobile rules and keeps the price levels balanced on small screens. */
.signal-template { display:flex; flex-direction:column; gap:10px; }
.signal-template .signal-recap-wrap { margin-top:2px; }
.signal-disclaimer { display:block; margin-top:1px; }
@media (max-width:800px) {
    .home-signal-card { padding:14px !important; }
    .home-signal-card .home-card-heading { margin-bottom:14px; }
    .signal-template { gap:9px; }
    .signal-hero { min-height:68px; padding:14px 15px; }
    .signal-hero > div > strong { font-size:1.4rem !important; }
    .signal-levels { grid-template-columns:repeat(3,minmax(0,1fr)) !important; gap:7px !important; }
    .signal-levels > span { min-width:0; min-height:62px; padding:9px 8px !important; }
    .signal-levels strong { font-size:.9rem !important; white-space:nowrap; }
    .signal-levels em { font-size:.66rem !important; white-space:nowrap; }
    .signal-result { min-height:42px; }
    .signal-reason { padding:12px 13px; }
    .signal-reason p { font-size:.84rem; line-height:1.5; }
    .signal-recap-wrap { gap:11px; }
    .signal-recap-section { gap:6px; }
    .signal-recap { gap:6px !important; }
    .signal-recap > div { min-height:54px; padding:8px 5px; }
    .signal-recap small { font-size:.66rem; font-weight:600; }
}

/* ============ FIBONACCI CALCULATOR RESPONSIVE STYLES ============ */
.fib-main-grid {
    display: grid;
    grid-template-columns: 280px 1fr 1fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 992px) {
    .fib-main-grid {
        grid-template-columns: 1fr 1fr !important;
    }
    .fib-main-grid > div:first-child {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .fib-main-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    .fib-main-grid > div:first-child {
        grid-column: span 1 !important;
    }
    
    /* Fibonacci Header Responsiveness on Mobile */
    #menu-trading-tools .card {
        padding: 16px !important;
    }
    
    #menu-trading-tools .card > div:first-child {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 14px !important;
    }
    
    #menu-trading-tools .card > div:first-child > div:last-child {
        width: 100% !important;
        justify-content: space-between !important;
    }
    
    .fib-tab-btn {
        flex: 1 !important;
        text-align: center !important;
        padding: 10px 12px !important;
        font-size: 0.8rem !important;
    }
    
    /* Table paddings & font sizing for smaller screens */
    #fib-ret-tbody td, #fib-ext-tbody td {
        padding: 8px 10px !important;
        font-size: 0.78rem !important;
    }
}

/* ============ DEDICATED TABLET OPTIMIZATION SUITE (768px - 1024px) ============ */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Page Layout & Container Spacing for Tablet */
    .pages-wrapper {
        padding: 24px 20px !important;
    }
    
    .page-header h1 {
        font-size: 1.6rem !important;
    }
    
    /* 3-Column Grids adapt gracefully to 2 Balanced Columns on Tablet */
    .grid-3-col, 
    .calc-primary-grid, 
    .calc-advanced-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
    
    /* Full-width elements remain wide on Tablet */
    .calc-card, .card {
        padding: 22px !important;
    }
    
    /* Signal Template on Tablet */
    .signal-levels {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px !important;
    }
    
    /* Overview Market Sessions Grid on Tablet */
    #home-sessions-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px !important;
    }

    /* Edu Module Cards Grid on Tablet */
    .edu-modules-grid,
    .modules-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 18px !important;
    }
    
    /* Fibonacci Grid on Tablet (Inputs on left, 2 tables side-by-side or stacked 2-col) */
    .fib-main-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 20px !important;
    }
    
    /* Economic Calendar Table for Tablet */
    .calendar-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* News correlation map: readable on desktop and compact on mobile. */
.news-analysis-map { margin: 18px 0 24px; padding: 18px; border: 1px solid rgba(212,175,55,.28); border-radius: 14px; background: rgba(255,255,255,.018); color: var(--text-main); }
.news-analysis-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; }
.news-analysis-title { color: var(--primary); font-size: 1rem; font-weight: 800; letter-spacing: .01em; }
.news-analysis-subtitle { margin-top: 5px; color: var(--text-muted); font-size: .78rem; }
.news-instrument-tags { display:flex; flex-wrap:wrap; gap:6px; margin-top: 11px; }
.news-instrument-tag { padding: 4px 9px; border: 1px solid rgba(148,163,184,.25); border-radius: 999px; background: rgba(148,163,184,.08); color: #cbd5e1; font-size: .68rem; font-weight: 700; }
.news-sentiment-badge { flex:0 0 auto; padding: 8px 11px; border:1px solid currentColor; border-radius:999px; font-size:.72rem; font-weight:800; white-space:nowrap; }
.news-sentiment-up { color: #22c55e; background: rgba(34,197,94,.1); }
.news-sentiment-down { color: #ef4444; background: rgba(239,68,68,.1); }
.news-sentiment-neutral { color: var(--primary); background: rgba(212,175,55,.1); }
.news-sentiment-mixed { color: #f59e0b; background: rgba(245,158,11,.1); }
.news-why-box { margin-top: 16px; padding: 13px 15px; border-left: 3px solid var(--primary); border-radius: 0 10px 10px 0; background: rgba(212,175,55,.06); }
.news-analysis-label, .news-impact-heading { margin-bottom: 9px; color: var(--primary); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.news-why-box p { margin:0; color: var(--text-muted); font-size:.86rem; line-height:1.65; }
.news-impact-heading { margin-top: 17px; }
.news-impact-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:8px; }
.news-impact-item { display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:54px; padding:9px 11px; border:1px solid rgba(148,163,184,.16); border-radius:10px; background:rgba(255,255,255,.025); }
.news-impact-item strong { display:block; color:#e2e8f0; font-size:.78rem; }
.news-impact-item small { display:block; margin-top:3px; color:var(--text-muted); font-size:.65rem; }
.news-impact-item > span { font-size:.76rem; font-weight:800; white-space:nowrap; animation: newsImpactFloat 2.8s ease-in-out infinite; }
.news-impact-up > span { color:#22c55e; }
.news-impact-down > span { color:#ef4444; }
.news-impact-neutral > span { color:#94a3b8; }
.news-points-label { margin-top:18px; }
.news-key-points { display:flex; flex-direction:column; gap:7px; }
.news-key-point { display:flex; align-items:flex-start; gap:10px; padding:10px 12px; border-radius:9px; background:rgba(255,255,255,.025); color:#cbd5e1; font-size:.82rem; line-height:1.6; }
.news-key-point > span { display:flex; align-items:center; justify-content:center; flex:0 0 22px; height:22px; border-radius:50%; background:rgba(212,175,55,.18); color:var(--primary); font-size:.7rem; font-weight:800; }
@keyframes newsImpactFloat { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-3px); } }
@media (max-width: 600px) {
    .news-analysis-map { padding:14px; }
    .news-analysis-heading { flex-direction:column; gap:10px; }
    .news-sentiment-badge { align-self:flex-start; }
    .news-impact-grid { grid-template-columns:1fr; }
}

/* Final visual priority for the correlation template */
.news-analysis-map { border-top: 3px solid #d4af37 !important; background: #151b25 !important; }
.news-analysis-heading { min-height: 62px; }
.news-analysis-title { color: #f0c94a !important; font-size: 1.12rem !important; }
.news-sentiment-badge { font-size: .76rem !important; letter-spacing: .02em; }
.news-impact-item { border-left: 3px solid rgba(148,163,184,.34) !important; }
.news-impact-up { border-left-color: #22c55e !important; }
.news-impact-down { border-left-color: #ef4444 !important; }
.news-impact-neutral { border-left-color: #64748b !important; }
.news-impact-item > span { font-size: .75rem !important; }
.news-key-point { border-left: 2px solid rgba(212,175,55,.5); }

/* Refined market-analysis template */
.news-analysis-map {
    position: relative;
    overflow: hidden;
    margin: 22px 0 26px;
    padding: 22px;
    border: 1px solid rgba(212,175,55,.34);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(24,29,39,.98), rgba(13,17,25,.98));
    box-shadow: 0 14px 30px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.035);
}
.news-analysis-heading { align-items: center; padding-bottom: 17px; border-bottom: 1px solid rgba(148,163,184,.14); }
.news-analysis-title { font-size: 1.08rem; letter-spacing: .015em; }
.news-analysis-subtitle { font-size: .78rem; color: #94a3b8; }
.news-instrument-tags { gap: 7px; margin-top: 13px; }
.news-instrument-tag { padding: 5px 10px; border-color: rgba(212,175,55,.24); background: rgba(212,175,55,.075); color: #dbe3ef; transition: transform .2s ease, background .2s ease; }
.news-instrument-tag:hover { transform: translateY(-1px); background: rgba(212,175,55,.15); }
.news-sentiment-badge { padding: 9px 13px; box-shadow: 0 5px 14px rgba(0,0,0,.14); }
.news-why-box { margin-top: 18px; padding: 15px 17px; border-left-width: 4px; background: linear-gradient(90deg, rgba(212,175,55,.09), rgba(212,175,55,.025)); }
.news-analysis-label, .news-impact-heading { font-size: .68rem; letter-spacing: .11em; }
.news-why-box p { font-size: .88rem; }
.news-impact-heading { display:flex; align-items:center; gap:9px; margin-top: 21px; }
.news-impact-heading::after { content:""; flex:1; height:1px; background:rgba(148,163,184,.16); }
.news-impact-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 9px; }
.news-impact-item { min-height: 60px; padding: 10px 12px; border-color: rgba(148,163,184,.18); background: rgba(255,255,255,.035); transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.news-impact-item:hover { transform: translateY(-2px); border-color: rgba(212,175,55,.4); background: rgba(255,255,255,.055); }
.news-impact-item strong { font-size: .8rem; }
.news-impact-item > span { padding: 4px 7px; border-radius: 999px; background: rgba(148,163,184,.08); font-size: .7rem; }
.news-impact-up > span { background: rgba(34,197,94,.1); }
.news-impact-down > span { background: rgba(239,68,68,.1); }
.news-points-label { margin-top: 22px; }
.news-key-point { padding: 12px 13px; border: 1px solid rgba(148,163,184,.1); background: rgba(255,255,255,.028); }
.news-key-point > span { box-shadow: 0 0 0 4px rgba(212,175,55,.06); }
@media (max-width: 900px) { .news-impact-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 600px) {
    .news-analysis-map { padding: 16px; border-radius: 14px; }
    .news-analysis-title { font-size: .98rem; }
    .news-impact-grid { grid-template-columns: 1fr; }
    .news-impact-item { min-height: 56px; }
}

/* ==========================================================================
   📱 COMPREHENSIVE MOBILE OPTIMIZATION SUITE (<= 768px & <= 480px)
   ========================================================================== */
@media (max-width: 768px) {
    /* 1. Base Container, Header & Layout */
    .pages-wrapper {
        padding: 70px 10px 30px !important;
        box-sizing: border-box !important;
    }
    .page-header {
        margin-bottom: 18px !important;
    }
    .page-header h1 {
        font-size: 1.4rem !important;
        line-height: 1.25 !important;
    }
    .page-header p {
        font-size: 0.84rem !important;
        line-height: 1.5 !important;
    }

    /* 2. Tool Selector Grid (Alat Bantu Trading: AI Analyst, Fibonacci, etc.) */
    .tool-selector-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        max-width: 100% !important;
    }
    .tool-selector-card {
        padding: 22px 18px !important;
        border-radius: 16px !important;
    }

    /* 3. Live Outlook Market & Chart Engine */
    #menu-xauusd-engine .page-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }
    #rhfx-engine-wrapper,
    #mt5-live-dashboard-screen {
        padding: 10px 10px 14px !important;
        border-radius: 14px !important;
        box-sizing: border-box !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    #rhfx_webchart_container {
        height: 480px !important;
        min-height: 360px !important;
        border-radius: 10px !important;
    }
    #rhfx-engine-control-bar {
        gap: 6px !important;
        padding-bottom: 8px !important;
        margin-bottom: 8px !important;
    }
    .rhfx-engine-tier1-bar {
        gap: 4px !important;
        padding: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .rhfx-pair-btn-group {
        gap: 2px !important;
        padding: 2px 3px !important;
        border-radius: 8px !important;
        flex-shrink: 0 !important;
    }
    .btn-rhfx-pair {
        padding: 5px 8px !important;
        font-size: 0.72rem !important;
        gap: 3px !important;
        border-radius: 6px !important;
    }
    .btn-rhfx-pair span {
        font-size: 0.75rem !important;
    }
    .rhfx-engine-actions-group {
        gap: 4px !important;
        flex-shrink: 0 !important;
    }
    .rhfx-zoom-btn-group {
        gap: 1px !important;
        padding: 2px 3px !important;
        border-radius: 8px !important;
        flex-shrink: 0 !important;
    }
    .rhfx-zoom-btn-group button {
        padding: 3px 6px !important;
        font-size: 0.75rem !important;
    }
    #rhfx-btn-fullscreen {
        padding: 5px 8px !important;
        font-size: 0.74rem !important;
        gap: 3px !important;
        border-radius: 7px !important;
        flex-shrink: 0 !important;
    }
    #rhfx-btn-fullscreen #rhfx-fs-text {
        display: none !important;
    }
    .btn-rhfx-tf {
        padding: 4px 6px !important;
        font-size: 0.72rem !important;
    }
    #rhfx-indicator-toggles-bar {
        justify-content: flex-start !important;
        padding-bottom: 4px !important;
    }
    #rhfx-indicator-toggles-bar button {
        padding: 5px 9px !important;
        font-size: 0.74rem !important;
    }
    #rhfx-indicator-guide-cards {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        margin-top: 16px !important;
    }
    #rhfx-indicator-guide-cards .card {
        padding: 14px 16px !important;
        border-radius: 12px !important;
    }
    #rhfx-indicator-guide-cards h4 {
        font-size: 0.92rem !important;
    }
    #rhfx-indicator-guide-cards ul {
        font-size: 0.78rem !important;
    }

    /* 4. Edukasi Forex Class Cards */
    #edu-class-list {
        gap: 14px !important;
    }
    #edu-class-list .card {
        padding: 18px 16px !important;
        gap: 14px !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
    #edu-class-list .card > div:first-child {
        width: 64px !important;
        height: 64px !important;
    }
    #edu-class-list .card > div:first-child svg {
        width: 32px !important;
        height: 32px !important;
    }
    #edu-class-list .card h2 {
        font-size: 1.25rem !important;
        margin-bottom: 8px !important;
    }
    #edu-class-list .card p {
        font-size: 0.84rem !important;
        margin-bottom: 16px !important;
    }
    #edu-class-list .card button {
        width: 100% !important;
        padding: 10px 20px !important;
    }

    /* 5. Kalkulator Trading Grids */
    .calc-primary-grid,
    .calc-advanced-grid,
    .grid-3-col,
    .grid-2-col {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
    .calc-card, .card {
        padding: 16px !important;
        border-radius: 14px !important;
    }

    /* 6. Bantuan & Komunitas Cards */
    #support-card-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    /* 7. Jurnal Trading */
    .journal-container {
        gap: 14px !important;
    }
    .journal-form-card, .journal-stats-card {
        padding: 16px !important;
    }
    .journal-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .journal-stat-item {
        padding: 12px 10px !important;
    }

    /* 8. Pustaka VIP (Resources) Grids */
    #ea-grid, #ebook-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    /* 9. Navigation Topbar on Mobile */
    .mobile-header {
        padding: 12px 16px !important;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.25rem !important;
    }
    #rhfx_webchart_container {
        height: 440px !important;
    }
    .btn-rhfx-pair {
        padding: 4px 7px !important;
        font-size: 0.7rem !important;
    }
    .rhfx-zoom-btn-group button {
        padding: 3px 5px !important;
        font-size: 0.72rem !important;
    }
    #rhfx-btn-fullscreen {
        padding: 4px 7px !important;
        font-size: 0.72rem !important;
    }
    .btn-rhfx-tf {
        padding: 4px 5px !important;
        font-size: 0.68rem !important;
    }
    .journal-stats-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }
    .journal-stat-val {
        font-size: 1.1rem !important;
    }
}

/* --- MT4 / MT5 Quick Copy Styling & Floating Toast --- */
@keyframes rhfxToastIn {
    from {
        opacity: 0;
        transform: translate(-50%, 15px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0) scale(1);
    }
}

.signal-levels > span {
    transition: background 0.2s ease, transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    border-radius: 8px;
    padding: 9px 11px;
    position: relative;
    user-select: none;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.signal-levels small {
    display: inline-block;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    min-height: auto !important;
    line-height: 1.2;
    box-shadow: none !important;
}

.signal-levels > span:hover {
    background: rgba(255, 255, 255, 0.055) !important;
    border-color: rgba(212, 175, 55, 0.45) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.signal-levels > span:active {
    transform: scale(0.98);
}

.level-copy-ic {
    opacity: 0.4;
    transition: opacity 0.15s ease, transform 0.15s ease, color 0.15s ease;
    color: var(--text-muted);
}
.signal-levels > span:hover .level-copy-ic {
    opacity: 1 !important;
    transform: scale(1.18);
    color: #f5d77f !important;
}

/* --- Ultra-Clean Luxury Signal Action Footer --- */
.signal-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    flex-wrap: wrap;
}

.quick-copy-pills {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    padding: 3px 6px !important;
}

.pills-label {
    font-size: 0.68rem;
    font-weight: 800;
    color: #d4af37;
    letter-spacing: 0.04em;
    padding: 0 6px 0 2px;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    display: inline-flex;
    align-items: center;
    gap: 3px;
    user-select: none;
}

.q-chip {
    all: unset;
    box-sizing: border-box;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 5px;
    padding: 3px 8px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s ease;
    line-height: 1.2;
    appearance: none;
    -webkit-appearance: none;
}

.q-chip-sl {
    color: #fca5a5 !important;
    background: rgba(239, 68, 68, 0.16) !important;
    border: 1px solid rgba(239, 68, 68, 0.35) !important;
}
.q-chip-sl:hover {
    background: rgba(239, 68, 68, 0.28) !important;
    border-color: rgba(239, 68, 68, 0.6) !important;
    transform: translateY(-1px);
}

.q-chip-tp {
    color: #86efac !important;
    background: rgba(34, 197, 94, 0.16) !important;
    border: 1px solid rgba(34, 197, 94, 0.35) !important;
}
.q-chip-tp:hover {
    background: rgba(34, 197, 94, 0.28) !important;
    border-color: rgba(34, 197, 94, 0.6) !important;
    transform: translateY(-1px);
}

.q-chip-entry {
    color: #93c5fd !important;
    background: rgba(59, 130, 246, 0.16) !important;
    border: 1px solid rgba(59, 130, 246, 0.35) !important;
}
.q-chip-entry:hover {
    background: rgba(59, 130, 246, 0.28) !important;
    border-color: rgba(59, 130, 246, 0.6) !important;
    transform: translateY(-1px);
}

.btn-copy-broadcast {
    all: unset;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.22), rgba(212, 175, 55, 0.08)) !important;
    color: #f5d77f !important;
    border: 1px solid rgba(212, 175, 55, 0.45) !important;
    border-radius: 8px !important;
    padding: 6px 14px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    font-family: inherit !important;
    transition: all 0.18s ease;
    white-space: nowrap;
    appearance: none;
    -webkit-appearance: none;
}
.btn-copy-broadcast:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.35), rgba(212, 175, 55, 0.15)) !important;
    border-color: #d4af37 !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
}

/* Real-Time Price Tick Glow Effects (Wall Street Terminal Style) */
@keyframes tickGlowGreen {
    0% { color: #4ade80 !important; text-shadow: 0 0 12px rgba(74, 222, 128, 0.75); }
    100% { color: inherit; text-shadow: none; }
}
@keyframes tickGlowRed {
    0% { color: #f87171 !important; text-shadow: 0 0 12px rgba(248, 113, 113, 0.75); }
    100% { color: inherit; text-shadow: none; }
}
.price-tick-up {
    animation: tickGlowGreen 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}
.price-tick-down {
    animation: tickGlowRed 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

/* ==========================================================================
   ForexFactory Authentic Economic Calendar (1:1 Pixel-Perfect Replica)
   ========================================================================== */
.ff-classic-theme {
    --ff-ribbon-bg: linear-gradient(180deg, #2b547e 0%, #1c3c5c 100%);
    --ff-th-bg: #5b7999;
    --ff-th-border: #486684;
    --ff-row-bg: #ffffff;
    --ff-row-alt: #f6f8fa;
    --ff-row-hover: #eaf1f7;
    --ff-date-bg: #edf2f7;
    --ff-border: #ccd6e0;
    --ff-text: #1a202c;
    --ff-text-muted: #556270;
    --ff-green: #008000;
    --ff-red: #c53030;
    background: #ffffff;
    border: 1px solid #b4c2ce;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    font-family: Arial, Tahoma, Verdana, sans-serif;
}

/* Dark theme variation if user switches to dark mode */
.ff-classic-theme.ff-dark-theme {
    --ff-ribbon-bg: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    --ff-th-bg: #273549;
    --ff-th-border: #334155;
    --ff-row-bg: #141b26;
    --ff-row-alt: #182230;
    --ff-row-hover: #1e2d42;
    --ff-date-bg: #0f1622;
    --ff-border: #28384d;
    --ff-text: #f1f5f9;
    --ff-text-muted: #94a3b8;
    --ff-green: #34d399;
    --ff-red: #f87171;
    background: #141b26;
    border-color: #334155;
}

/* 1. Header Ribbon */
.ff-ribbon {
    background: var(--ff-ribbon-bg);
    color: #ffffff;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    border-bottom: 1px solid #142c44;
}
.ff-ribbon-left, .ff-ribbon-right {
    display: flex;
    align-items: center;
    gap: 6px;
}
.ff-ribbon-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-family: Arial, Tahoma, sans-serif;
    font-size: 11px;
    font-weight: 700;
    border-radius: 3px;
    padding: 3px 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background 0.15s ease;
    line-height: 1;
}
.ff-ribbon-btn:hover {
    background: rgba(255, 255, 255, 0.24);
}
.ff-arrow-btn {
    padding: 3px 7px;
    font-size: 10px;
}
.ff-ribbon-today {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    padding: 2px 6px;
    white-space: nowrap;
    position: relative;
    cursor: pointer;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.ff-ribbon-today.is-today::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 6px 6px;
    border-color: transparent transparent #22c55e transparent;
}
.ff-dropdown-caret {
    font-size: 9px;
    opacity: 0.85;
    margin-left: 2px;
}
.ff-date-dropdown {
    position: absolute;
    top: 34px;
    left: 8px;
    background: #ffffff;
    border: 1px solid #94a3b8;
    border-radius: 4px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    z-index: 200;
    min-width: 200px;
    font-family: Arial, Tahoma, sans-serif;
    overflow: hidden;
}
.ff-classic-theme.ff-dark-theme .ff-date-dropdown {
    background: #1e293b;
    border-color: #475569;
}
.ff-dd-item {
    padding: 8px 12px;
    font-size: 11.5px;
    color: #1e293b;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background 0.15s;
    text-align: left;
}
.ff-classic-theme.ff-dark-theme .ff-dd-item {
    color: #f1f5f9;
    border-bottom-color: #334155;
}
.ff-dd-item:hover {
    background: #e2e8f0;
}
.ff-classic-theme.ff-dark-theme .ff-dd-item:hover {
    background: #334155;
}
.ff-dd-item.selected {
    background: #eff6ff;
    color: #2563eb;
    font-weight: 700;
}
.ff-classic-theme.ff-dark-theme .ff-dd-item.selected {
    background: #1e3a8a;
    color: #93c5fd;
}
.ff-row-highlight {
    background: #fef08a !important;
    transition: background 0.5s ease;
}
.ff-btn-upnext {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.4);
    color: #ffffff;
}
.ff-btn-upnext:hover {
    background: rgba(16, 185, 129, 0.35);
}

/* 2. Table Wrapper & Authentic Table */
.ff-table-wrapper {
    overflow-x: auto;
    max-height: 800px;
    position: relative;
    background: var(--ff-row-bg);
}
.ff-authentic-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11.5px;
    font-family: Arial, Tahoma, Verdana, sans-serif;
    line-height: 1.3;
}
.ff-authentic-table thead th {
    background: var(--ff-th-bg);
    color: #ffffff;
    border-right: 1px solid var(--ff-th-border);
    border-bottom: 1px solid var(--ff-th-border);
    padding: 5px 6px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    text-shadow: 0 1px 1px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 5;
}
.ff-authentic-table thead th:last-child {
    border-right: none;
}
.ff-authentic-table tbody td {
    padding: 3.5px 6px;
    border-bottom: 1px solid var(--ff-border);
    color: var(--ff-text);
    vertical-align: middle;
}
.ff-authentic-table tbody tr.row-alt {
    background: var(--ff-row-alt);
}
.ff-authentic-table tbody tr:hover {
    background: var(--ff-row-hover) !important;
}

/* Specific Columns */
.ff-authentic-table thead th.col-date {
    background: var(--ff-th-bg) !important;
    color: #ffffff !important;
    border-right: 1px solid var(--ff-th-border) !important;
    border-bottom: 1px solid var(--ff-th-border) !important;
    font-weight: 700 !important;
    text-align: center !important;
}
.ff-authentic-table tbody td.col-date {
    width: 68px;
    min-width: 68px;
    text-align: center;
    background: var(--ff-date-bg) !important;
    border-right: 1px solid var(--ff-border) !important;
    border-bottom: 1px solid transparent !important;
    font-weight: 700;
    color: var(--ff-text) !important;
    vertical-align: top !important;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    font-size: 11px;
    line-height: 1.25;
}
.ff-authentic-table tbody tr.is-last-of-day td.col-date {
    border-bottom: 1px solid var(--ff-border) !important;
}
.ff-authentic-table tbody tr.ff-detail-row td.col-date {
    border-bottom: 1px solid transparent !important;
    background: var(--ff-date-bg) !important;
}
.col-time {
    width: 82px;
    min-width: 82px;
    text-align: center;
    color: var(--ff-text-muted);
    white-space: nowrap;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    font-family: 'JetBrains Mono', 'Outfit', monospace;
}
#th-ff-time {
    width: 82px;
    min-width: 82px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    font-family: 'JetBrains Mono', 'Outfit', monospace;
    font-size: 11px;
    letter-spacing: 0.2px;
    color: #ffffff;
}
.col-currency {
    width: 55px;
    min-width: 55px;
    text-align: center;
    font-weight: 700;
    color: var(--ff-text);
    font-size: 11.5px;
}
.col-impact {
    width: 42px;
    min-width: 42px;
    text-align: center;
}
.col-detail-title {
    text-align: left;
    color: var(--ff-text);
    font-weight: 500;
    cursor: pointer;
}
.col-detail-title:hover {
    text-decoration: underline;
    color: #2b547e;
}
.col-alerts {
    width: 38px;
    min-width: 38px;
    text-align: center;
}
.col-spec {
    width: 38px;
    min-width: 38px;
    text-align: center;
    cursor: pointer;
}
.col-actual {
    width: 65px;
    min-width: 65px;
    text-align: right;
    font-weight: 700;
    white-space: nowrap;
}
.col-forecast {
    width: 65px;
    min-width: 65px;
    text-align: right;
    color: var(--ff-text);
    white-space: nowrap;
}
.col-previous {
    width: 68px;
    min-width: 68px;
    text-align: right;
    color: var(--ff-text-muted);
    white-space: nowrap;
}
.col-graph {
    width: 38px;
    min-width: 38px;
    text-align: center;
    cursor: pointer;
}

/* Number highlights */
.val-worse {
    color: var(--ff-red) !important;
}
.val-better {
    color: var(--ff-green) !important;
}
.val-revised {
    color: #e5a100;
    font-size: 8px;
    margin-left: 2px;
    vertical-align: middle;
}
.up-next-arrow {
    color: #22c55e;
    font-weight: 900;
    font-size: 10px;
    margin-right: 2px;
}

/* 3. Inline Detail Spec Drawer */
.ff-detail-row {
    background: #f8fafc !important;
}
.ff-classic-theme.ff-dark-theme .ff-detail-row {
    background: #0f172a !important;
}
.ff-authentic-table tbody tr {
    cursor: pointer;
}
.ff-authentic-table tbody tr.ff-detail-row {
    cursor: default;
}
.ff-detail-box {
    padding: 10px 14px;
    border-left: 4px solid #f59e0b;
    margin: 4px 8px 8px 8px;
    background: #ffffff;
    border-radius: 4px;
    border-top: 1px solid var(--ff-border);
    border-right: 1px solid var(--ff-border);
    border-bottom: 1px solid var(--ff-border);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}
.ff-classic-theme.ff-dark-theme .ff-detail-box {
    background: #182230;
}
.ff-detail-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--ff-border);
}
.ff-classic-theme.ff-dark-theme .ff-detail-header-row {
    border-bottom-color: #334155;
}
.ff-detail-header-title {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--ff-text);
}
.ff-classic-theme.ff-dark-theme .ff-detail-header-title {
    color: #f1f5f9;
}
.ff-detail-close-btn {
    background: transparent;
    border: 1px solid var(--ff-border);
    border-radius: 4px;
    color: var(--ff-text-muted);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    cursor: pointer;
    transition: all 0.15s;
}
.ff-detail-close-btn:hover {
    background: rgba(0,0,0,0.06);
    color: var(--ff-text);
}
.ff-classic-theme.ff-dark-theme .ff-detail-close-btn {
    border-color: #334155;
    color: #cbd5e1;
}
.ff-classic-theme.ff-dark-theme .ff-detail-close-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #ffffff;
}
.ff-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    font-size: 11px;
}
.ff-spec-item strong {
    color: var(--ff-text-muted);
    display: block;
    margin-bottom: 2px;
    font-size: 10.5px;
    text-transform: uppercase;
}

/* 4. Footer Bar */
.ff-footer-bar {
    background: var(--ff-date-bg);
    border-top: 1px solid var(--ff-border);
    padding: 6px 12px;
    display: flex;
    align-items: center;
}
.ff-more-btn {
    background: none;
    border: none;
    color: #2563eb;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
}
.ff-classic-theme.ff-dark-theme .ff-more-btn {
    color: #60a5fa;
}
.ff-more-btn:hover {
    text-decoration: underline;
}

/* 5. Filter Popup Modal */
.ff-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(3px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.ff-filter-card {
    background: #ffffff;
    border: 1px solid #94a3b8;
    border-radius: 6px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.4);
    font-family: Arial, Tahoma, sans-serif;
    overflow: hidden;
}
.ff-filter-header {
    background: #2b547e;
    color: #ffffff;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 12px;
}
.ff-filter-body {
    padding: 14px;
    color: #1e293b;
    font-size: 11.5px;
}
.ff-filter-section-title {
    font-weight: 700;
    font-size: 11px;
    color: #475569;
    margin-bottom: 6px;
    text-transform: uppercase;
}
.ff-filter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 12px;
}
.ff-filter-checkbox-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    cursor: pointer;
}
.ff-filter-footer {
    background: #f1f5f9;
    border-top: 1px solid #e2e8f0;
    padding: 8px 12px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* ==========================================================================
   ForexFactory Mobile Replica Styles (1:1 Exact Match with Mobile Reference)
   ========================================================================== */

/* Subheader Bar (Under top ribbon, slate blue with live clock & Actual label) */
.ff-mobile-subheader {
    display: none;
    background: #6a87a6;
    color: #ffffff;
    height: 25px;
    padding: 0 10px;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    border-bottom: 1px solid #57738f;
    box-sizing: border-box;
}
.ff-classic-theme.ff-dark-theme .ff-mobile-subheader {
    background: #253346;
    border-bottom-color: #334155;
}
.ff-mobile-clock {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    font-size: 11.5px;
    font-variant-numeric: tabular-nums;
    font-family: 'JetBrains Mono', 'Outfit', monospace;
    display: inline-flex;
    align-items: center;
}
.ff-mobile-clock:hover {
    color: #dbeafe;
}
.ff-mobile-actual-header {
    color: #ffffff;
    font-weight: 500;
    font-size: 11.5px;
}

/* Date Banner Row (Full-width date header across table for mobile) */
.ff-date-banner-row {
    display: none;
}
.ff-date-banner-cell {
    background: #f1f4f8 !important;
    color: #111827 !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    padding: 6px 10px !important;
    border-top: 1px solid #dce2e8 !important;
    border-bottom: 1px solid #dce2e8 !important;
    text-align: left !important;
}
.ff-classic-theme.ff-dark-theme .ff-date-banner-cell {
    background: #182232 !important;
    color: #f1f5f9 !important;
    border-color: #28384d !important;
}

/* Time coloring: past vs upcoming vs next */
.ff-time-past {
    color: #64748b !important;
    font-weight: 500 !important;
}
.ff-time-next {
    color: var(--ff-text) !important;
    font-weight: 700 !important;
}
.ff-time-upcoming {
    color: var(--ff-text) !important;
    font-weight: 600 !important;
}
.ff-upnext-flag {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle !important;
    margin-right: 3px !important;
    line-height: 1 !important;
}
.ff-upnext-flag svg {
    width: 12px !important;
    height: 12px !important;
    display: inline-block !important;
}

/* Mobile Quick Stats inside Drawer */
.ff-mob-quick-stats {
    display: none;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    background: #edf2f7;
    padding: 6px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 11px;
}
.ff-classic-theme.ff-dark-theme .ff-mob-quick-stats {
    background: #1e293b;
    color: #f1f5f9;
}
.ff-mob-stat-col {
    display: flex;
    align-items: center;
    gap: 4px;
}
.ff-mob-chart-btn {
    background: #2b547e;
    color: #ffffff;
    border: none;
    border-radius: 3px;
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 8px;
    cursor: pointer;
}
.ff-classic-theme.ff-dark-theme .ff-mob-chart-btn {
    background: #3b82f6;
}

/* Centered Mobile Action Modal (No navbar overlap) */
.ff-mobile-modal-card {
    background: #1c3c5c;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    width: 100%;
    max-width: 320px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
    font-family: Arial, Tahoma, sans-serif;
    overflow: hidden;
    animation: ffModalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.ff-classic-theme.ff-dark-theme .ff-mobile-modal-card,
.ff-dark-theme .ff-mobile-modal-card {
    background: #1e293b;
    border-color: #334155;
}
@keyframes ffModalFadeIn {
    from { opacity: 0; transform: scale(0.93); }
    to { opacity: 1; transform: scale(1); }
}
.ff-mobile-modal-header {
    background: #2b547e;
    color: #ffffff;
    padding: 11px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.ff-classic-theme.ff-dark-theme .ff-mobile-modal-header,
.ff-dark-theme .ff-mobile-modal-header {
    background: #0f172a;
    border-bottom-color: #334155;
}
.ff-modal-header-title {
    font-size: 12.5px;
    font-weight: 700;
}
.ff-modal-close-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
.ff-mobile-modal-body {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.ff-mob-modal-btn {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 7px;
    padding: 9px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    width: 100%;
}
.ff-mob-modal-btn:hover, .ff-mob-modal-btn:active {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.3);
}
.ff-classic-theme.ff-dark-theme .ff-mob-modal-btn,
.ff-dark-theme .ff-mob-modal-btn {
    background: #0f172a;
    border-color: #334155;
}
.ff-classic-theme.ff-dark-theme .ff-mob-modal-btn:hover,
.ff-dark-theme .ff-mob-modal-btn:hover {
    background: #273549;
}
.ff-modal-btn-icon {
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    flex-shrink: 0;
}
.ff-modal-btn-content {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.ff-modal-btn-content strong {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
}
.ff-modal-btn-content small {
    font-size: 10px;
    color: #94a3b8;
}
.ff-mobile-modal-footer {
    padding: 8px 10px 10px 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.ff-mob-modal-close-action {
    width: 100%;
    padding: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    border-radius: 6px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.ff-mob-more-btn {
    display: none;
}

/* Responsive Styles for Mobile Screens (<= 768px) */
@media (max-width: 768px) {
    /* 1. Prevent any horizontal slide/scroll on mobile - Foto 2 Exact Match */
    .ff-classic-theme {
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .ff-table-wrapper {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .ff-authentic-table {
        width: 100% !important;
        max-width: 100% !important;
        table-layout: fixed !important;
        box-sizing: border-box !important;
    }

    /* 2. Header Ribbon becomes sleek segmented dark-blue bar */
    .ff-ribbon {
        height: 38px !important;
        padding: 0 !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: stretch !important;
        position: relative !important;
    }
    .ff-ribbon-left {
        display: flex !important;
        align-items: stretch !important;
        flex: 1 !important;
        gap: 0 !important;
    }
    .ff-ribbon-right {
        display: flex !important;
        align-items: stretch !important;
        gap: 0 !important;
    }

    /* Hide desktop-only controls from mobile ribbon */
    #btn-ff-upnext,
    #btn-ff-search,
    #ff-tz-badge,
    #btn-ff-refresh-desktop,
    .ff-btn-filter-text {
        display: none !important;
    }

    /* Ribbon buttons on mobile act as segmented bar */
    .ff-ribbon-btn {
        border-radius: 0 !important;
        border: none !important;
        border-right: 1px solid rgba(255, 255, 255, 0.18) !important;
        padding: 0 12px !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: transparent !important;
        height: 100% !important;
        font-size: 12px !important;
    }
    .ff-ribbon-btn:active {
        background: rgba(255, 255, 255, 0.2) !important;
    }
    .ff-ribbon-today {
        flex: 1 !important;
        text-align: center !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        border-right: 1px solid rgba(255, 255, 255, 0.18) !important;
        white-space: nowrap !important;
        position: relative !important;
        padding: 0 !important;
    }
    .ff-arrow-btn {
        width: 38px !important;
        min-width: 38px !important;
        max-width: 38px !important;
        padding: 0 !important;
        font-size: 11px !important;
    }
    #btn-ff-filter {
        display: flex !important;
        width: 38px !important;
        min-width: 38px !important;
        padding: 0 !important;
        border-right: 1px solid rgba(255, 255, 255, 0.18) !important;
    }
    #btn-ff-mobile-more {
        display: flex !important;
        width: 38px !important;
        min-width: 38px !important;
        padding: 0 !important;
        font-weight: 900 !important;
        letter-spacing: 1px !important;
        font-size: 14px !important;
    }

    /* 3. Replace thead with Subheader bar */
    .ff-authentic-table thead {
        display: none !important;
    }
    .ff-mobile-subheader {
        display: flex !important;
        background: #6a87a6 !important;
        color: #ffffff !important;
        height: 25px !important;
        padding: 0 6px 0 8px !important;
        align-items: center !important;
        justify-content: space-between !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        border-bottom: 1px solid #57738f !important;
        box-sizing: border-box !important;
    }
    .ff-mobile-clock {
        color: #ffffff !important;
        font-weight: 700 !important;
        font-size: 11.5px !important;
        text-decoration: none !important;
        padding-left: 2px !important;
    }
    .ff-mobile-data-headers {
        display: flex !important;
        align-items: center !important;
        gap: 0 !important;
    }
    .ff-hdr-act, .ff-hdr-for, .ff-hdr-prev {
        width: 46px !important;
        min-width: 46px !important;
        max-width: 46px !important;
        text-align: right !important;
        font-size: 9.5px !important;
        letter-spacing: -0.2px;
        font-weight: 700 !important;
        color: #ffffff !important;
        padding: 0 3px !important;
        box-sizing: border-box !important;
    }

    /* 4. Hide secondary non-data columns on mobile */
    .col-date,
    .col-alerts,
    .col-spec,
    .col-graph {
        display: none !important;
        width: 0 !important;
        padding: 0 !important;
        border: none !important;
    }

    /* 5. Show date banner row (Spans 100% full width with uniform background) */
    .ff-date-banner-row {
        display: table-row !important;
        background: #e8edf3 !important;
    }
    .ff-date-banner-cell {
        background: #e8edf3 !important;
        color: var(--ff-text) !important;
        font-weight: 700 !important;
        font-size: 11.5px !important;
        padding: 5px 8px !important;
        border-top: 1px solid #d4dde6 !important;
        border-bottom: 1px solid #d4dde6 !important;
        text-align: left !important;
        box-sizing: border-box !important;
    }

    /* 6. Precise 7-column layout for mobile (Time, Currency, Impact, Title, Actual, Forecast, Previous) */
    .ff-authentic-table {
        width: 100% !important;
        max-width: 100% !important;
        table-layout: auto !important;
        border-collapse: collapse !important;
        box-sizing: border-box !important;
    }
    .col-time {
        width: 56px !important;
        min-width: 52px !important;
        max-width: 60px !important;
        text-align: left !important;
        padding: 5px 2px 5px 6px !important;
        font-size: 10.5px !important;
        white-space: nowrap !important;
        color: var(--ff-text) !important;
        box-sizing: border-box !important;
    }
    .col-currency {
        width: 32px !important;
        min-width: 28px !important;
        max-width: 36px !important;
        text-align: left !important;
        padding: 5px 2px !important;
        font-size: 10.5px !important;
        font-weight: 700 !important;
        color: var(--ff-text) !important;
        box-sizing: border-box !important;
    }
    .col-impact {
        width: 18px !important;
        min-width: 16px !important;
        max-width: 20px !important;
        text-align: center !important;
        padding: 5px 1px !important;
        box-sizing: border-box !important;
    }
    .col-detail-title {
        width: auto !important;
        padding: 5px 4px !important;
        font-size: 10.5px !important;
        line-height: 1.25 !important;
        color: var(--ff-text) !important;
        word-break: normal !important;
        cursor: pointer;
        box-sizing: border-box !important;
    }
    .col-actual {
        display: table-cell !important;
        width: 46px !important;
        min-width: 46px !important;
        max-width: 46px !important;
        text-align: right !important;
        padding: 5px 3px !important;
        font-size: 10.5px !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
    }
    .col-forecast {
        display: table-cell !important;
        width: 46px !important;
        min-width: 46px !important;
        max-width: 46px !important;
        text-align: right !important;
        padding: 5px 3px !important;
        font-size: 10.5px !important;
        color: var(--ff-text-muted) !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
    }
    .col-previous {
        display: table-cell !important;
        width: 46px !important;
        min-width: 46px !important;
        max-width: 46px !important;
        text-align: right !important;
        padding: 5px 3px !important;
        font-size: 10.5px !important;
        color: var(--ff-text-muted) !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
    }

    /* Alternating rows background */
    .ff-authentic-table tbody td {
        padding-top: 5px !important;
        padding-bottom: 5px !important;
    }
    .ff-mob-quick-stats {
        display: flex !important;
    }
    .ff-detail-row {
        display: table-row !important;
    }
    .ff-detail-row td.col-detail-cell {
        padding: 4px 6px 8px 6px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .ff-detail-box {
        margin: 2px 0 !important;
        padding: 8px 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .ff-detail-grid {
        grid-template-columns: 1fr !important;
        gap: 6px !important;
    }
}

/* ==========================================================
   Comprehensive ForexFactory Dark Mode Visibility Fixes
   ========================================================== */
.ff-classic-theme.ff-dark-theme,
#ff-calendar-box.ff-dark-theme {
    background: #141b26 !important;
    border-color: #2a3b50 !important;
    color: #f1f5f9 !important;
}
.ff-classic-theme.ff-dark-theme .ff-authentic-table,
.ff-dark-theme .ff-authentic-table {
    background: #141b26 !important;
}
.ff-classic-theme.ff-dark-theme .ff-authentic-table tbody td,
.ff-dark-theme .ff-authentic-table tbody td {
    border-bottom: 1px solid #223042 !important;
    color: #f1f5f9 !important;
}
.ff-classic-theme.ff-dark-theme .ff-authentic-table tbody tr.row-alt,
.ff-dark-theme .ff-authentic-table tbody tr.row-alt {
    background: #182230 !important;
}
.ff-classic-theme.ff-dark-theme .ff-authentic-table tbody tr:hover,
.ff-dark-theme .ff-authentic-table tbody tr:hover {
    background: #202d3f !important;
}
.ff-classic-theme.ff-dark-theme .col-currency,
.ff-dark-theme .col-currency {
    color: #f8fafc !important;
}
.ff-classic-theme.ff-dark-theme .col-detail-title,
.ff-dark-theme .col-detail-title {
    color: #f1f5f9 !important;
}
.ff-classic-theme.ff-dark-theme .col-time,
.ff-dark-theme .col-time {
    color: #cbd5e1 !important;
}
.ff-classic-theme.ff-dark-theme .ff-time-past,
.ff-dark-theme .ff-time-past {
    color: #8193a8 !important;
}
.ff-classic-theme.ff-dark-theme .ff-time-next,
.ff-dark-theme .ff-time-next {
    color: #ffffff !important;
    font-weight: 700 !important;
}
.ff-classic-theme.ff-dark-theme .ff-time-upcoming,
.ff-dark-theme .ff-time-upcoming {
    color: #f1f5f9 !important;
}
.ff-classic-theme.ff-dark-theme .ff-date-banner-row,
.ff-dark-theme .ff-date-banner-row {
    background: #1e293b !important;
}
.ff-classic-theme.ff-dark-theme .ff-date-banner-cell,
.ff-dark-theme .ff-date-banner-cell {
    background: #1e293b !important;
    color: #f8fafc !important;
    border-top-color: #334155 !important;
    border-bottom-color: #334155 !important;
}
.ff-classic-theme.ff-dark-theme td.col-date,
.ff-dark-theme td.col-date {
    background: #0f172a !important;
    color: #f1f5f9 !important;
    border-right-color: #28384d !important;
}
.ff-classic-theme.ff-dark-theme thead th,
.ff-dark-theme thead th {
    background: #1e293b !important;
    color: #f8fafc !important;
    border-color: #334155 !important;
}
.ff-classic-theme.ff-dark-theme thead th.col-date,
.ff-dark-theme thead th.col-date {
    background: #1e293b !important;
    color: #f8fafc !important;
    border-color: #334155 !important;
}
.ff-classic-theme.ff-dark-theme .ff-mobile-subheader,
.ff-dark-theme .ff-mobile-subheader {
    background: #1e293b !important;
    border-bottom-color: #334155 !important;
    color: #f8fafc !important;
}
.ff-classic-theme.ff-dark-theme .ff-mobile-clock,
.ff-dark-theme .ff-mobile-clock {
    color: #93c5fd !important;
}
.ff-classic-theme.ff-dark-theme .ff-mobile-actual-header,
.ff-dark-theme .ff-mobile-actual-header,
.ff-classic-theme.ff-dark-theme .ff-hdr-act,
.ff-dark-theme .ff-hdr-act,
.ff-classic-theme.ff-dark-theme .ff-hdr-for,
.ff-dark-theme .ff-hdr-for,
.ff-classic-theme.ff-dark-theme .ff-hdr-prev,
.ff-dark-theme .ff-hdr-prev {
    color: #f8fafc !important;
}
.ff-classic-theme.ff-dark-theme .ff-footer-bar,
.ff-dark-theme .ff-footer-bar {
    background: #0f172a !important;
    border-top-color: #28384d !important;
    color: #94a3b8 !important;
}
.ff-classic-theme.ff-dark-theme .ff-footer-bar span,
.ff-dark-theme .ff-footer-bar span {
    color: #94a3b8 !important;
}
.ff-classic-theme.ff-dark-theme .ff-detail-box,
.ff-dark-theme .ff-detail-box {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}
.ff-classic-theme.ff-dark-theme .ff-spec-item,
.ff-dark-theme .ff-spec-item {
    color: #e2e8f0 !important;
}
.ff-classic-theme.ff-dark-theme .ff-spec-item strong,
.ff-dark-theme .ff-spec-item strong {
    color: #94a3b8 !important;
}
.ff-classic-theme.ff-dark-theme .col-forecast,
.ff-dark-theme .col-forecast {
    color: #cbd5e1 !important;
}
.ff-classic-theme.ff-dark-theme .col-previous,
.ff-dark-theme .col-previous {
    color: #94a3b8 !important;
}




/* ==========================================================================
   🏛️ RHFX ULTRA-MODERN INSTITUTIONAL FINTECH DESIGN SYSTEM (2026 OVERHAUL)
   Precision Dark UI • Bloomberg Terminal meets Linear/Vercel • No-Alay Aesthetic
   ========================================================================== */

/* 1. Global Custom Scrollbars & Selection */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #1c2333;
    border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2b364e;
}
::selection {
    background: rgba(56, 189, 248, 0.25);
    color: #ffffff;
}

/* 2. Sidebar Architecture */
.sidebar {
    background: rgba(10, 13, 20, 0.96) !important;
    backdrop-filter: blur(24px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(160%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: 6px 0 30px rgba(0, 0, 0, 0.5) !important;
}

.sidebar-header {
    height: 68px !important;
    padding: 0 18px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    background: transparent !important;
}

.sidebar-logo {
    height: 36px !important;
    width: 36px !important;
    border: 1.5px solid rgba(226, 195, 116, 0.35) !important;
    box-shadow: 0 0 12px rgba(226, 195, 116, 0.15) !important;
}

.sidebar-brand-title {
    font-size: 1.08rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.015em !important;
    color: #ffffff !important;
}

.sidebar-brand-sub {
    font-size: 0.6rem !important;
    font-weight: 700 !important;
    letter-spacing: 1.6px !important;
    color: #64748b !important;
}

.vip-badge-pill {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #000000 !important;
    font-size: 0.62rem !important;
    font-weight: 900 !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    letter-spacing: 0.04em !important;
    box-shadow: 0 1px 6px rgba(245, 158, 11, 0.35) !important;
}

.sidebar-nav {
    padding: 16px 10px !important;
    gap: 5px !important;
}

.nav-item {
    padding: 10px 14px !important;
    border-radius: 9px !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    color: #94a3b8 !important;
    border: 1px solid transparent !important;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.nav-item svg {
    width: 18px !important;
    height: 18px !important;
    stroke: #94a3b8 !important;
    transition: transform 0.2s ease, stroke 0.2s ease !important;
}

.nav-item:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.035) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
    transform: translateX(2px) !important;
}

.nav-item:hover svg {
    stroke: #ffffff !important;
    transform: scale(1.05) !important;
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.14) 0%, rgba(245, 158, 11, 0.02) 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(245, 158, 11, 0.25) !important;
    border-left: 3px solid #f59e0b !important;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.3), inset 0 0 12px rgba(245, 158, 11, 0.05) !important;
    font-weight: 700 !important;
}

.nav-item.active svg {
    stroke: #f59e0b !important;
    filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.4)) !important;
}

/* 3. Topbar Architecture */
.topbar {
    height: 68px !important;
    padding: 0 28px !important;
    background: rgba(10, 13, 20, 0.92) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.topbar-right {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-left: auto !important;
}

/* Theme Toggle Button */
.btn-theme-toggle {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 6px 14px !important;
    border-radius: 30px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    color: #f8fafc !important;
    font-family: var(--font-display) !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
    outline: none !important;
    user-select: none !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
}

.btn-theme-toggle:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(245, 158, 11, 0.4) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 0 12px rgba(245, 158, 11, 0.15) !important;
}

.theme-toggle-indicator {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 20px !important;
    height: 20px !important;
}

.theme-toggle-indicator svg {
    width: 17px !important;
    height: 17px !important;
    stroke: #f59e0b !important;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), stroke 0.2s ease !important;
}

.theme-icon-sun {
    display: none !important;
}
.theme-icon-moon {
    display: inline-block !important;
}

.btn-dropdown-theme .dropdown-icon {
    font-size: 1.1rem;
}

.user-profile {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 40px !important;
    padding: 4px 12px 4px 5px !important;
    gap: 9px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.user-profile:hover,
.user-profile.active {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(245, 158, 11, 0.35) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), 0 0 14px rgba(245, 158, 11, 0.12) !important;
}

.avatar-img {
    width: 32px !important;
    height: 32px !important;
    border: 1.5px solid rgba(245, 158, 11, 0.5) !important;
}

.user-name {
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
}

.user-status {
    font-size: 0.68rem !important;
    color: #10b981 !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
}

.user-profile-dropdown {
    background: #0d1118 !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    border-radius: 14px !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
    padding: 10px !important;
}

/* 4. Universal Cards & Panels */
.card,
.tall-card,
.home-market-card,
.home-signal-card,
.home-brief-card {
    background: linear-gradient(180deg, rgba(16, 21, 31, 0.88) 0%, rgba(10, 13, 20, 0.96) 100%) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 32px -4px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    transition: border-color 0.25s ease, box-shadow 0.25s ease !important;
}

.card:hover,
.tall-card:hover {
    border-color: rgba(255, 255, 255, 0.12) !important;
}

.card h3,
.home-card-heading h3,
.home-market-title {
    font-size: 1.12rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.015em !important;
    color: #ffffff !important;
}

.heading-gold-accent {
    color: #f59e0b !important;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.4) !important;
}

/* 5. Sesi Pasar Dunia (Overview Market Grid) */

.market-status-badge,
#home-market-status-badge {
    background: rgba(16, 185, 129, 0.1) !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    color: #34d399 !important;
    font-size: 0.7rem !important;
    font-weight: 800 !important;
    padding: 4px 11px !important;
    border-radius: 20px !important;
    letter-spacing: 0.05em !important;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.15) !important;
}

.session-box,
#home-session-grid > div {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 10px !important;
    padding: 10px 13px !important;
    box-shadow: none !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.session-box:hover,
#home-session-grid > div:hover {
    border-color: rgba(255, 255, 255, 0.12) !important;
    background: rgba(255, 255, 255, 0.035) !important;
    transform: translateY(-1px) !important;
}

.session-active-box,
#home-session-grid > .session-active-box {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(16, 185, 129, 0.02) 100%) !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.1) !important;
}

.session-city,
#home-session-grid strong {
    font-size: 0.86rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
}

.session-time,
#home-session-grid small {
    color: #94a3b8 !important;
    font-size: 0.72rem !important;
}

.session-badge {
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    padding: 3px 8px !important;
    border-radius: 5px !important;
    letter-spacing: 0.04em !important;
}

.badge-closed {
    background: rgba(255, 255, 255, 0.035) !important;
    color: #64748b !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.badge-open {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #10b981 !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.2) !important;
}

.session-telemetry-tile,
.home-market-card > div[style*="repeat(3, 1fr)"] > div {
    background: rgba(0, 0, 0, 0.25) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 9px !important;
    padding: 9px 8px !important;
}

.home-countdown-bar,
#home-session-countdown {
    background: rgba(14, 165, 233, 0.06) !important;
    border: 1px solid rgba(14, 165, 233, 0.22) !important;
    color: #38bdf8 !important;
    font-family: var(--font-mono) !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}

.home-session-insight-card,
#home-session-insight-card {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-left: 3px solid #f59e0b !important;
    border-radius: 10px !important;
    padding: 12px 14px !important;
    box-shadow: none !important;
}

.home-session-tip-title,
#home-session-tip-title {
    color: #f59e0b !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
}

.home-session-primetime,
#home-session-primetime {
    color: #f59e0b !important;
    background: rgba(245, 158, 11, 0.12) !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
    font-size: 0.7rem !important;
    border-radius: 5px !important;
}

/* 6. Signal Trading Hari Ini Cards */
.active-signal-card {
    background: linear-gradient(180deg, #101522 0%, #0c0f16 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45) !important;
    padding: 18px !important;
}

.active-signal-card.signal-card-buy {
    border-color: rgba(16, 185, 129, 0.3) !important;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45), 0 0 20px rgba(16, 185, 129, 0.06) !important;
}

.active-signal-card.signal-card-sell {
    border-color: rgba(244, 63, 94, 0.3) !important;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45), 0 0 20px rgba(244, 63, 94, 0.06) !important;
}

.signal-pair-name {
    font-size: 1.4rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.01em !important;
    color: #ffffff !important;
}

.badge-direction.signal-buy {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35) !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.05em !important;
    border-radius: 20px !important;
    padding: 4px 13px !important;
}

.badge-direction.signal-sell {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%) !important;
    box-shadow: 0 2px 10px rgba(244, 63, 94, 0.35) !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.05em !important;
    border-radius: 20px !important;
    padding: 4px 13px !important;
}

.signal-hero-live-strip {
    background: rgba(0, 0, 0, 0.28) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 10px !important;
    padding: 9px 12px !important;
}

.active-signal-live-price {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    font-family: var(--font-mono) !important;
    font-variant-numeric: tabular-nums !important;
    color: #ffffff !important;
}

.signal-level-card {
    border-radius: 10px !important;
    padding: 9px 11px !important;
    box-shadow: none !important;
    transition: all 0.18s ease !important;
}

.signal-level-entry {
    background: rgba(226, 195, 116, 0.04) !important;
    border: 1px solid rgba(226, 195, 116, 0.22) !important;
}
.signal-level-entry:hover {
    background: rgba(226, 195, 116, 0.08) !important;
    border-color: rgba(226, 195, 116, 0.45) !important;
}

.signal-level-sl {
    background: rgba(244, 63, 94, 0.04) !important;
    border: 1px solid rgba(244, 63, 94, 0.22) !important;
}
.signal-level-sl:hover {
    background: rgba(244, 63, 94, 0.08) !important;
    border-color: rgba(244, 63, 94, 0.45) !important;
}

.signal-level-tp1,
.signal-level-tp2,
.signal-level-tp3 {
    background: rgba(16, 185, 129, 0.04) !important;
    border: 1px solid rgba(16, 185, 129, 0.2) !important;
}
.signal-level-tp1:hover,
.signal-level-tp2:hover,
.signal-level-tp3:hover {
    background: rgba(16, 185, 129, 0.08) !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
}

.level-price {
    font-size: 0.98rem !important;
    font-weight: 800 !important;
    font-family: var(--font-mono) !important;
    font-variant-numeric: tabular-nums !important;
    color: #ffffff !important;
}

.signal-recap > div {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 9px !important;
    padding: 8px 6px !important;
    box-shadow: none !important;
}
.signal-recap > div:hover {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    transform: translateY(-1px) !important;
}

.signal-recap strong {
    font-size: 1.02rem !important;
    font-family: var(--font-mono) !important;
    font-variant-numeric: tabular-nums !important;
}

/* 7. Market Sentiment & Brief Analysis */
.sentiment-tf-bar {
    background: rgba(10, 13, 20, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 10px !important;
    padding: 3px !important;
}

.btn-sentiment-tf {
    padding: 6px 13px !important;
    font-size: 0.8rem !important;
    border-radius: 7px !important;
    color: #94a3b8 !important;
}

.btn-sentiment-tf.active {
    background: #1c2333 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

#sentiment-pair {
    background: #0d111a !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 7px !important;
    color: #ffffff !important;
    font-size: 0.84rem !important;
    padding: 6px 10px !important;
}

.brief-direction-panel {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 12px !important;
}

.brief-panel-bullish {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.06) 0%, transparent 100%) !important;
    border-color: rgba(16, 185, 129, 0.2) !important;
}

.brief-panel-bearish {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.06) 0%, transparent 100%) !important;
    border-color: rgba(244, 63, 94, 0.2) !important;
}

/* 8. Trading Tool Selector (Alat Bantu Trading) */
#trading-tool-selector,
.tool-selector-v3,
.trading-tool-picker-v2 {
    background: linear-gradient(180deg, #0e121b 0%, #090c13 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

.tool-selector-card,
.tool-card-btn {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 14px !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.tool-selector-card:hover,
.tool-card-btn:hover {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(56, 189, 248, 0.4) !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.08) !important;
}

/* 9. Form Inputs & Interactive Buttons */
.form-group input,
.form-group select,
.form-group textarea,
.risk-reward-grid input {
    background: #090c13 !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    border-radius: 9px !important;
    color: #ffffff !important;
    font-size: 0.92rem !important;
    padding: 11px 13px !important;
    transition: all 0.2s ease !important;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.risk-reward-grid input:focus {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15) !important;
    background: #0b101a !important;
}

.btn-primary {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #000000 !important;
    border-radius: 9px !important;
    font-weight: 800 !important;
    font-size: 0.96rem !important;
    letter-spacing: 0.01em !important;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.28) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #ea580c 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 22px rgba(245, 158, 11, 0.4) !important;
}

.calc-result {
    background: rgba(245, 158, 11, 0.08) !important;
    border: 1px dashed rgba(245, 158, 11, 0.4) !important;
    border-radius: 10px !important;
    color: #f59e0b !important;
}

/* 10. Data Tables (Jurnal & Calendar) */
.journal-table th,
.ff-authentic-table thead th {
    background: #0d111a !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #94a3b8 !important;
    font-weight: 700 !important;
    font-size: 0.8rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
}

.journal-table td,
.ff-authentic-table tbody td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.journal-table tr:hover td {
    background: rgba(255, 255, 255, 0.025) !important;
}

/* 11. Outlook Market / XAUUSD Engine Controls */
#rhfx-engine-wrapper {
    background: #090c13 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5) !important;
}

.btn-rhfx-pair {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #94a3b8 !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

.btn-rhfx-pair:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

.btn-rhfx-pair.active {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #000000 !important;
    font-weight: 800 !important;
    border-color: transparent !important;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.35) !important;
}

/* 12. Mobile Polish */
@media (max-width: 768px) {
    .topbar {
        background: rgba(8, 10, 15, 0.95) !important;
        backdrop-filter: blur(18px) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    }
    .sidebar {
        background: #090c12 !important;
        border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    }
    .pages-wrapper {
        padding: 16px 12px 32px !important;
    }
    .card, .home-market-card, .home-signal-card {
        padding: 16px !important;
        border-radius: 12px !important;
    }
}

/* ==========================================================================
   🚫 UNIVERSAL REMOVAL OF ALL TOP GRADIENT ACCENT STRIPES / LINES ON CARDS
   ========================================================================== */
.card::before,
.tall-card::before,
.home-market-card::before,
.home-signal-card::before,
.active-signal-card::before,
.active-signal-card.signal-card-buy::before,
.active-signal-card.signal-card-sell::before,
.home-brief-card::before,
.trading-tool-picker::before,
.trading-tool-picker-v2::before,
.tool-selector-card::before,
.tool-selector-v3::before,
.tool-card-btn::before,
.news-analysis-map::before,
.anticipation-card::before,
#rhfx-anticipation-card::before,
.live-market-card::before,
.ticker-card::before,
.calc-card::before,
.journal-form-card::before,
.journal-stats-card::before {
    display: none !important;
    content: none !important;
    height: 0 !important;
    width: 0 !important;
    background: none !important;
    box-shadow: none !important;
    border: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* ==========================================================================
   ☀️ RHFX LIGHT MODE DESIGN SYSTEM (MODE TERANG RESMI)
   Clean, high-contrast, institutional fintech aesthetics
   ========================================================================== */
html[data-theme="light"],
body.theme-light {
    background-color: #f8fafc !important;
    background-image: 
        radial-gradient(ellipse 90% 40% at 50% 0%, rgba(14, 165, 233, 0.04) 0%, transparent 60%),
        radial-gradient(circle at 100% 10%, rgba(217, 119, 6, 0.035) 0%, transparent 40%),
        radial-gradient(circle at 0% 90%, rgba(16, 185, 129, 0.03) 0%, transparent 40%) !important;
    background-attachment: fixed !important;
    color: #0f172a !important;
}

/* 1. Sidebar in Light Mode */
body.theme-light .sidebar {
    background: #ffffff !important;
    border-right: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 4px 0 24px rgba(15, 23, 42, 0.04) !important;
}

body.theme-light .sidebar-header {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
}

body.theme-light .sidebar-brand-title {
    color: #0f172a !important;
}

body.theme-light .sidebar-brand-sub {
    color: #64748b !important;
}

body.theme-light .sidebar-logo {
    background: #ffffff !important;
    border: 1.5px solid #d97706 !important;
    box-shadow: 0 0 10px rgba(217, 119, 6, 0.2) !important;
}

body.theme-light .nav-item {
    color: #475569 !important;
    border-color: transparent !important;
}

body.theme-light .nav-item svg {
    stroke: #64748b !important;
}

body.theme-light .nav-item:hover {
    color: #0f172a !important;
    background: #f1f5f9 !important;
    border-color: rgba(15, 23, 42, 0.06) !important;
}

body.theme-light .nav-item:hover svg {
    stroke: #0f172a !important;
}

body.theme-light .nav-item.active {
    background: linear-gradient(90deg, rgba(217, 119, 6, 0.12) 0%, rgba(217, 119, 6, 0.02) 100%) !important;
    color: #b45309 !important;
    border: 1px solid rgba(217, 119, 6, 0.25) !important;
    border-left: 3px solid #d97706 !important;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.08) !important;
    font-weight: 700 !important;
}

body.theme-light .nav-item.active svg {
    stroke: #d97706 !important;
    filter: drop-shadow(0 0 4px rgba(217, 119, 6, 0.3)) !important;
}

body.theme-light .sidebar-footer {
    border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
}

/* 2. Topbar & User Profile in Light Mode */
body.theme-light .topbar {
    background: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 2px 14px rgba(15, 23, 42, 0.03) !important;
}

body.theme-light .mobile-brand-title {
    color: #0f172a !important;
}

body.theme-light .btn-icon {
    color: #0f172a !important;
    background: #f1f5f9 !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
}

body.theme-light .btn-theme-toggle {
    background: #f1f5f9 !important;
    border-color: rgba(15, 23, 42, 0.1) !important;
    color: #0f172a !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

body.theme-light .btn-theme-toggle:hover {
    background: #e2e8f0 !important;
    border-color: rgba(217, 119, 6, 0.4) !important;
    color: #b45309 !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
}

body.theme-light .theme-toggle-indicator svg {
    stroke: #d97706 !important;
}

body.theme-light .theme-icon-moon {
    display: none !important;
}

body.theme-light .theme-icon-sun {
    display: inline-block !important;
}

body.theme-light .user-profile {
    background: #f8fafc !important;
    border: 1px solid rgba(15, 23, 42, 0.1) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
}

body.theme-light .user-profile:hover,
body.theme-light .user-profile.active {
    background: #f1f5f9 !important;
    border-color: rgba(217, 119, 6, 0.4) !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08) !important;
}

body.theme-light .avatar-img {
    border-color: #d97706 !important;
}

body.theme-light .user-name {
    color: #0f172a !important;
}

body.theme-light .user-status {
    color: #059669 !important;
}

body.theme-light .profile-dropdown-arrow {
    stroke: #64748b !important;
}

body.theme-light .user-profile-dropdown {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.1) !important;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.14) !important;
}

body.theme-light .dropdown-header-card {
    background: #f8fafc !important;
    border: 1px solid rgba(15, 23, 42, 0.06) !important;
}

body.theme-light .dropdown-title {
    color: #0f172a !important;
}

body.theme-light .dropdown-divider {
    border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
}

body.theme-light .dropdown-item {
    color: #334155 !important;
}

body.theme-light .dropdown-item:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

body.theme-light .dropdown-item svg {
    stroke: #64748b !important;
}

body.theme-light .dropdown-item:hover svg {
    stroke: #0f172a !important;
}

/* 3. Cards, Panels & Headings in Light Mode */
body.theme-light .card,
body.theme-light .tall-card,
body.theme-light .home-market-card,
body.theme-light .home-signal-card,
body.theme-light .home-brief-card,
body.theme-light .anticipation-card,
body.theme-light #rhfx-anticipation-card,
body.theme-light .live-market-card,
body.theme-light .calc-card,
body.theme-light .journal-form-card,
body.theme-light .journal-stats-card,
body.theme-light .news-analysis-map {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03), 0 6px 18px rgba(15, 23, 42, 0.025) !important;
    color: #0f172a !important;
}

body.theme-light .card:hover,
body.theme-light .tall-card:hover {
    border-color: rgba(15, 23, 42, 0.14) !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06) !important;
}

body.theme-light .card h3,
body.theme-light .home-card-heading h3,
body.theme-light .home-market-title,
body.theme-light .anticipation-title,
body.theme-light .signal-recap-title,
body.theme-light .modal-title {
    color: #0f172a !important;
}

body.theme-light .heading-gold-accent {
    color: #b45309 !important;
    text-shadow: none !important;
}

body.theme-light .card p,
body.theme-light .home-card-heading p,
body.theme-light .home-market-subtitle {
    color: #64748b !important;
}

/* 4. Sesi Pasar Dunia in Light Mode */
body.theme-light .session-box,
body.theme-light #home-session-grid > div {
    background: #f8fafc !important;
    border: 1px solid rgba(15, 23, 42, 0.07) !important;
    color: #0f172a !important;
}

body.theme-light .session-box:hover,
body.theme-light #home-session-grid > div:hover {
    background: #f1f5f9 !important;
    border-color: rgba(15, 23, 42, 0.14) !important;
}

body.theme-light .session-name,
body.theme-light .home-session-item-name {
    color: #0f172a !important;
}

body.theme-light .session-time,
body.theme-light .home-session-item-time {
    color: #64748b !important;
}

body.theme-light .session-telemetry-tile,
body.theme-light .home-market-card > div[style*="repeat(3, 1fr)"] > div {
    background: #f1f5f9 !important;
    border: 1px solid rgba(15, 23, 42, 0.06) !important;
}

body.theme-light .home-world-clocks strong {
    color: #0f172a !important;
}

body.theme-light .home-world-clocks div {
    color: #64748b !important;
}

body.theme-light .home-countdown-bar,
body.theme-light #home-session-countdown {
    background: rgba(2, 132, 199, 0.08) !important;
    border: 1px solid rgba(2, 132, 199, 0.25) !important;
    color: #0284c7 !important;
}

body.theme-light .home-session-insight-card,
body.theme-light #home-session-insight-card {
    background: #f8fafc !important;
    border: 1px solid rgba(15, 23, 42, 0.07) !important;
    border-left: 3px solid #d97706 !important;
}

body.theme-light .home-session-tip-title,
body.theme-light #home-session-tip-title {
    color: #b45309 !important;
}

body.theme-light .home-session-primetime,
body.theme-light #home-session-primetime {
    color: #b45309 !important;
    background: rgba(217, 119, 6, 0.1) !important;
    border: 1px solid rgba(217, 119, 6, 0.25) !important;
}

/* 5. Signals & Live Telemetry in Light Mode */
body.theme-light .active-signal-card {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.09) !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04) !important;
}

body.theme-light .active-signal-card.signal-card-buy {
    border-color: rgba(16, 185, 129, 0.35) !important;
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.07) !important;
}

body.theme-light .active-signal-card.signal-card-sell {
    border-color: rgba(239, 68, 68, 0.35) !important;
    box-shadow: 0 4px 18px rgba(239, 68, 68, 0.07) !important;
}

body.theme-light .signal-pair-symbol,
body.theme-light .signal-head-pair {
    color: #0f172a !important;
}

body.theme-light .signal-badge-time {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
}

body.theme-light .signal-level-row,
body.theme-light .level-box {
    background: #f8fafc !important;
    border: 1px solid rgba(15, 23, 42, 0.06) !important;
}

body.theme-light .level-price {
    color: #0f172a !important;
}

body.theme-light .level-label {
    color: #64748b !important;
}

body.theme-light .anticipation-live-price-box {
    background: #f1f5f9 !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
}

body.theme-light .anticipation-live-price-label {
    color: #64748b !important;
}

body.theme-light .anticipation-live-price-num {
    color: #0f172a !important;
}

body.theme-light .anticipation-zone-row {
    background: #f8fafc !important;
    border: 1px solid rgba(15, 23, 42, 0.06) !important;
}

body.theme-light .anticipation-zone-name {
    color: #64748b !important;
}

body.theme-light .anticipation-zone-val {
    color: #0f172a !important;
}

body.theme-light .signal-recap {
    background: #f8fafc !important;
    border: 1px solid rgba(15, 23, 42, 0.07) !important;
    color: #334155 !important;
}

body.theme-light .brief-metrics-box {
    background: #f8fafc !important;
    border: 1px solid rgba(15, 23, 42, 0.06) !important;
}

body.theme-light .brief-metrics-label {
    color: #64748b !important;
}

body.theme-light .brief-metrics-val,
body.theme-light .brief-current-price,
body.theme-light .brief-bias-main {
    color: #0f172a !important;
}

/* 6. Trading Tools & Engine Controls in Light Mode */
body.theme-light .trading-tool-picker,
body.theme-light .tool-selector-v3 {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
}

body.theme-light .tool-card-btn {
    background: #f8fafc !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    color: #0f172a !important;
}

body.theme-light .tool-card-btn:hover {
    background: #f1f5f9 !important;
    border-color: #d97706 !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06) !important;
}

body.theme-light .tool-card-btn.active {
    background: #ffffff !important;
    border: 1.5px solid #d97706 !important;
    box-shadow: 0 4px 16px rgba(217, 119, 6, 0.15) !important;
}

body.theme-light .tool-card-title {
    color: #0f172a !important;
}

body.theme-light .tool-card-desc {
    color: #64748b !important;
}

body.theme-light #rhfx-engine-wrapper {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04) !important;
}

body.theme-light .btn-rhfx-pair {
    background: #f1f5f9 !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    color: #475569 !important;
}

body.theme-light .btn-rhfx-pair:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

body.theme-light .btn-rhfx-pair.active {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(217, 119, 6, 0.25) !important;
}

body.theme-light .form-group label {
    color: #334155 !important;
}

body.theme-light .form-group input,
body.theme-light .form-group select,
body.theme-light .form-group textarea,
body.theme-light .risk-reward-grid input {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.16) !important;
    color: #0f172a !important;
}

body.theme-light .form-group input:focus,
body.theme-light .form-group select:focus,
body.theme-light .form-group textarea:focus,
body.theme-light .risk-reward-grid input:focus {
    border-color: #0284c7 !important;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
    background: #ffffff !important;
}

body.theme-light .btn-primary {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.25) !important;
}

body.theme-light .btn-primary:hover {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%) !important;
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.35) !important;
}

body.theme-light .calc-result {
    background: rgba(217, 119, 6, 0.06) !important;
    border: 1px dashed rgba(217, 119, 6, 0.35) !important;
    color: #b45309 !important;
}

/* 7. Tables, Modals & Economic Calendar in Light Mode */
body.theme-light .journal-table th,
body.theme-light .ff-authentic-table thead th {
    background: #f1f5f9 !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.1) !important;
    color: #475569 !important;
}

body.theme-light .journal-table td,
body.theme-light .ff-authentic-table tbody td {
    border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
    color: #1e293b !important;
}

body.theme-light .journal-table tr:hover td {
    background: #f8fafc !important;
}

body.theme-light .modal-content,
body.theme-light .pwa-install-card {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.1) !important;
    color: #0f172a !important;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.15) !important;
}

body.theme-light .modal-header {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
}

body.theme-light .modal-footer {
    border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
}

body.theme-light #menu-calendar .calendar-scroll-wrapper,
body.theme-light #menu-calendar .calendar-iframe-wrapper {
    background: #ffffff !important;
}

body.theme-light #menu-calendar .calendar-frame-scaler iframe {
    filter: none !important;
}

/* 8. Comprehensive Typography, Article & Edukasi Light Mode */
body.theme-light h1,
body.theme-light h2,
body.theme-light h3,
body.theme-light h4,
body.theme-light h5,
body.theme-light h6 {
    color: #0f172a !important;
}

body.theme-light p,
body.theme-light article,
body.theme-light article p,
body.theme-light .sub-module p,
body.theme-light .module-content p {
    color: #334155 !important;
}

body.theme-light article strong,
body.theme-light p strong,
body.theme-light li strong {
    color: #0f172a !important;
}

body.theme-light article em,
body.theme-light p em {
    color: #1e293b !important;
}

body.theme-light li {
    color: #334155 !important;
}

body.theme-light .page-header h1 {
    color: #0f172a !important;
}

body.theme-light .page-header p {
    color: #64748b !important;
}

/* Edukasi Module Links in Light Mode */
body.theme-light #menu-education .card {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
}

body.theme-light #menu-education a.card {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
}

body.theme-light #menu-education a.card:hover {
    background: #f8fafc !important;
    border-color: #d97706 !important;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.1) !important;
}

body.theme-light #menu-education a.card span:last-child,
body.theme-light .edu-module-title,
body.theme-light [id^="edu-card-"] h2 {
    color: #0f172a !important;
}

body.theme-light [id^="edu-card-"] p {
    color: #64748b !important;
}

body.theme-light .module-content h3 {
    color: #b45309 !important;
    border-bottom-color: rgba(15, 23, 42, 0.08) !important;
}

body.theme-light .module-content hr {
    border-color: rgba(15, 23, 42, 0.08) !important;
}

/* 9. Tool Selector & Featured Panels in Light Mode */
body.theme-light .tool-selector-card {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04) !important;
}

body.theme-light .tool-selector-card:hover {
    background: #ffffff !important;
    border-color: #d97706 !important;
    box-shadow: 0 12px 30px rgba(217, 119, 6, 0.12) !important;
}

body.theme-light .tool-selector-card div:last-child {
    color: #0f172a !important;
}

body.theme-light #active-tool-header > div {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
}

body.theme-light #active-tool-header button {
    background: #f1f5f9 !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
    color: #475569 !important;
}

body.theme-light #active-tool-header button.active {
    background: #ffffff !important;
    border-color: #d97706 !important;
    color: #b45309 !important;
}

body.theme-light .trading-tool-panel {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.04) !important;
}

body.theme-light #tool-panel-ai-analyst {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
}

body.theme-light .ai-nav-tab-btn {
    background: #f1f5f9 !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
    color: #475569 !important;
}

body.theme-light .ai-nav-tab-btn.active {
    background: rgba(217, 119, 6, 0.12) !important;
    border-color: #d97706 !important;
    color: #b45309 !important;
}

body.theme-light .ai-market-btn {
    background: #f8fafc !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
    color: #475569 !important;
}

body.theme-light .ai-market-btn:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

body.theme-light .ai-market-btn.active {
    background: rgba(217, 119, 6, 0.12) !important;
    border-color: #d97706 !important;
    color: #b45309 !important;
}

body.theme-light #ai-instrument-input {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.16) !important;
    color: #0f172a !important;
}

body.theme-light #ai-instrument-input::placeholder {
    color: #94a3b8 !important;
}

body.theme-light #ai-pair-search-dropdown {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
}

body.theme-light .ai-style-card {
    background: #f8fafc !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
}

body.theme-light .ai-style-card strong {
    color: #0f172a !important;
}

body.theme-light .ai-style-card:hover {
    background: #f1f5f9 !important;
    border-color: rgba(15, 23, 42, 0.15) !important;
}

body.theme-light .ai-style-card.active {
    background: rgba(217, 119, 6, 0.08) !important;
    border-color: #d97706 !important;
}

/* Fibonacci Panel in Light Mode */
body.theme-light #tool-panel-fibonacci {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
}

body.theme-light #tool-panel-fibonacci h2,
body.theme-light #tool-panel-fibonacci table th,
body.theme-light #tool-panel-fibonacci table td {
    color: #0f172a !important;
}

body.theme-light #fib-diagram-box {
    background: #f8fafc !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
}

body.theme-light .fib-main-grid > div {
    background: #f8fafc !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
}

body.theme-light #fib-ret-tbody td,
body.theme-light #fib-ext-tbody td {
    color: #0f172a !important;
}

/* 10. Outlook Market & Real-time Charts Overrides */
body.theme-light #menu-xauusd-engine .card {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
}

body.theme-light #menu-xauusd-engine .card:hover {
    border-color: #d97706 !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06) !important;
}

body.theme-light #menu-xauusd-engine .card h2 {
    color: #0f172a !important;
}

body.theme-light #menu-xauusd-engine .card button {
    background: #f1f5f9 !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
    color: #0f172a !important;
}

body.theme-light #mt5-live-dashboard-screen {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.04) !important;
}

body.theme-light .btn-tv-pair {
    background: #f1f5f9 !important;
    color: #475569 !important;
}

body.theme-light .btn-tv-pair.active {
    background: #d97706 !important;
    color: #ffffff !important;
}

body.theme-light #tv-timeframe-bar {
    background: #f1f5f9 !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
}

body.theme-light .btn-tv-tf {
    color: #475569 !important;
}

body.theme-light .btn-tv-tf.active {
    background: #d97706 !important;
    color: #ffffff !important;
}

body.theme-light #tv-chart-wrapper {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
}

/* 11. Sentiment Dropdown & Options in Light Mode */
body.theme-light #sentiment-pair {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.15) !important;
    color: #0f172a !important;
}

body.theme-light #sentiment-pair option,
body.theme-light #sentiment-pair optgroup {
    background: #ffffff !important;
    color: #0f172a !important;
}

/* 12. Overview Market, Sessions & Signals Overrides */
body.theme-light .session-city,
body.theme-light #home-session-grid strong,
body.theme-light .session-telemetry-tile strong,
body.theme-light .home-market-card > div[style*="repeat(3, 1fr)"] strong {
    color: #0f172a !important;
}

body.theme-light .signal-recap strong,
body.theme-light .signal-pair-name,
body.theme-light .active-signal-live-price,
body.theme-light .level-price,
body.theme-light .anticipation-title,
body.theme-light .anticipation-live-price-num,
body.theme-light .anticipation-range,
body.theme-light .brief-metrics strong {
    color: #0f172a !important;
}

body.theme-light .btn-sentiment-tf {
    background: #f1f5f9 !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
    color: #475569 !important;
}

body.theme-light .btn-sentiment-tf.active {
    background: #d97706 !important;
    color: #ffffff !important;
}

/* 13. News & Jurnal Tables Overrides (Institutional Fintech Redesign) */
#news-category-bar.news-filter-dashboard-bar {
    position: -webkit-sticky;
    position: sticky;
    top: 70px;
    z-index: 95;
    background: rgba(13, 17, 26, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 12px 16px;
    margin-bottom: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
    transition: background 0.2s ease, border-color 0.2s ease;
}

body.theme-light #news-category-bar.news-filter-dashboard-bar {
    background: rgba(255, 255, 255, 0.94) !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
}

.news-filter-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    flex-wrap: wrap;
}

.news-type-segmented-control {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 3px;
    gap: 3px;
    flex-shrink: 0;
}

body.theme-light .news-type-segmented-control {
    background: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
}

.news-type-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 7px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    line-height: 1.2;
}

.news-type-tab:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.04);
}

body.theme-light .news-type-tab:hover {
    color: #0f172a !important;
    background: rgba(0, 0, 0, 0.03) !important;
}

.news-type-tab.active {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18) 0%, rgba(245, 158, 11, 0.06) 100%);
    border-color: rgba(245, 158, 11, 0.4);
    color: var(--primary);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

body.theme-light .news-type-tab.active {
    background: #ffffff !important;
    border-color: rgba(217, 119, 6, 0.35) !important;
    color: #b45309 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
}

.news-type-tab svg {
    flex-shrink: 0;
    stroke-width: 2;
    transition: transform 0.2s ease;
}

.news-type-tab:hover svg {
    transform: scale(1.08);
}

.news-filter-telemetry {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 5px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}

body.theme-light .news-filter-telemetry {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #64748b !important;
}

.news-pulse-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    display: inline-block;
}

.news-feed-name {
    font-family: var(--font-mono);
    color: #10b981;
    font-weight: 700;
}

.news-feed-separator {
    opacity: 0.35;
}

.news-feed-active-title {
    color: var(--text-main);
    font-weight: 600;
}

body.theme-light .news-feed-active-title {
    color: #1e293b !important;
}

.news-chips-scroll-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
}

.news-chips-track {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 1px;
    scroll-behavior: smooth;
    flex-grow: 1;
    width: 100%;
}

.news-chips-track::-webkit-scrollbar {
    display: none;
}

.news-chips-nav-btn {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.news-chips-nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border-color: rgba(245, 158, 11, 0.35);
}

body.theme-light .news-chips-nav-btn {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #64748b !important;
}

body.theme-light .news-chips-nav-btn:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border-color: rgba(217, 119, 6, 0.35) !important;
}

.news-cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    border-radius: 9px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.035);
    color: var(--text-muted);
    font-size: 0.81rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1;
    flex-shrink: 0;
}

.news-cat-chip:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-main);
    transform: translateY(-1px);
}

.news-cat-chip.active {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18) 0%, rgba(245, 158, 11, 0.06) 100%) !important;
    border-color: rgba(245, 158, 11, 0.5) !important;
    color: var(--primary) !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.14) !important;
}

body.theme-light .news-cat-chip {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
    color: #475569 !important;
}

body.theme-light .news-cat-chip:hover {
    background: #f8fafc !important;
    border-color: rgba(15, 23, 42, 0.15) !important;
    color: #0f172a !important;
}

body.theme-light .news-cat-chip.active {
    background: #fffbeb !important;
    border-color: rgba(217, 119, 6, 0.45) !important;
    color: #b45309 !important;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.12) !important;
}

.news-flags-pair {
    display: inline-flex;
    align-items: center;
    position: relative;
    width: 25px;
    height: 15px;
    vertical-align: middle;
    flex-shrink: 0;
}

.news-flag-img {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-block;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    border: 1.5px solid rgba(13, 17, 26, 0.9);
}

body.theme-light .news-flag-img {
    border-color: #ffffff !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) !important;
}

.news-flag-first {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
}

.news-flag-second {
    position: absolute;
    left: 10px;
    top: 0;
    z-index: 2;
}

.news-single-flag {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    flex-shrink: 0;
}

.news-single-flag .news-flag-img {
    width: 15px;
    height: 15px;
}

@media (max-width: 768px) {
    #news-category-bar.news-filter-dashboard-bar {
        position: relative !important;
        top: 0 !important;
        padding: 10px 12px !important;
        border-radius: 12px !important;
        margin-bottom: 16px !important;
        gap: 10px !important;
    }
    .news-filter-topbar {
        justify-content: space-between !important;
    }
    .news-filter-telemetry {
        display: none !important;
    }
    .news-type-segmented-control {
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
    }
    .news-type-tab {
        flex: 1 !important;
        justify-content: center !important;
        padding: 7px 8px !important;
        font-size: 0.76rem !important;
        gap: 5px !important;
    }
    .news-chips-nav-btn {
        display: none !important;
    }
    .news-chips-track {
        -webkit-overflow-scrolling: touch;
        padding: 2px 0;
    }
    .news-cat-chip {
        padding: 6px 12px !important;
        font-size: 0.78rem !important;
    }
}

body.theme-light #news-article-content {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
}

body.theme-light .news-article-body {
    color: #1e293b !important;
}

body.theme-light .news-article-body p,
body.theme-light .news-article-body li {
    color: #334155 !important;
}

body.theme-light .news-article-body blockquote {
    background: #f8fafc !important;
    color: #1e293b !important;
    border-left-color: #d97706 !important;
}

body.theme-light .news-article-body table {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
}

body.theme-light .news-article-body th {
    background: #f1f5f9 !important;
    color: #475569 !important;
}

body.theme-light .news-article-body td {
    color: #1e293b !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
}

body.theme-light .news-article-body tr:nth-child(even) {
    background: #f8fafc !important;
}

/* 14. Universal Wildcard Override for any residual inline white text in Light Mode */
body.theme-light [style*="color: #fff"]:not(.btn-primary):not([style*="background: #25D366"]):not([style*="background:#25D366"]):not([style*="background: #007bff"]):not([style*="background:#007bff"]):not([style*="background: #6f42c1"]):not([style*="background:#6f42c1"]):not([style*="background: #dc3545"]):not([style*="background:#dc3545"]):not([style*="background: #10b981"]):not([style*="background:#10b981"]):not(.badge-direction):not(.badge-open):not(.btn-tv-pair.active):not(.btn-tv-tf.active):not(.btn-sentiment-tf.active):not(.btn-notifications):not(.btn-install-app),
body.theme-light [style*="color:#fff"]:not(.btn-primary):not([style*="background: #25D366"]):not([style*="background:#25D366"]):not([style*="background: #007bff"]):not([style*="background:#007bff"]):not([style*="background: #6f42c1"]):not([style*="background:#6f42c1"]):not([style*="background: #dc3545"]):not([style*="background:#dc3545"]):not([style*="background: #10b981"]):not([style*="background:#10b981"]):not(.badge-direction):not(.badge-open):not(.btn-tv-pair.active):not(.btn-tv-tf.active):not(.btn-sentiment-tf.active):not(.btn-notifications):not(.btn-install-app),
body.theme-light [style*="color: #ffffff"]:not(.btn-primary):not([style*="background: #25D366"]):not([style*="background:#25D366"]):not([style*="background: #007bff"]):not([style*="background:#007bff"]):not([style*="background: #6f42c1"]):not([style*="background:#6f42c1"]):not([style*="background: #dc3545"]):not([style*="background:#dc3545"]):not([style*="background: #10b981"]):not([style*="background:#10b981"]):not(.badge-direction):not(.badge-open):not(.btn-tv-pair.active):not(.btn-tv-tf.active):not(.btn-sentiment-tf.active):not(.btn-notifications):not(.btn-install-app),
body.theme-light [style*="color:#ffffff"]:not(.btn-primary):not([style*="background: #25D366"]):not([style*="background:#25D366"]):not([style*="background: #007bff"]):not([style*="background:#007bff"]):not([style*="background: #6f42c1"]):not([style*="background:#6f42c1"]):not([style*="background: #dc3545"]):not([style*="background:#dc3545"]):not([style*="background: #10b981"]):not([style*="background:#10b981"]):not(.badge-direction):not(.badge-open):not(.btn-tv-pair.active):not(.btn-tv-tf.active):not(.btn-sentiment-tf.active):not(.btn-notifications):not(.btn-install-app),
body.theme-light [style*="color: #f1f5f9"],
body.theme-light [style*="color:#f1f5f9"],
body.theme-light [style*="color: #f8fafc"],
body.theme-light [style*="color:#f8fafc"],
body.theme-light [style*="color: #f5f7fa"],
body.theme-light [style*="color:#f5f7fa"] {
    color: #0f172a !important;
}

/* 15. Mobile Responsiveness for Light Mode */
@media (max-width: 768px) {
    body.theme-light .topbar {
        background: rgba(255, 255, 255, 0.96) !important;
        border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
    }
    body.theme-light .sidebar {
        background: #ffffff !important;
        border-right: 1px solid rgba(15, 23, 42, 0.08) !important;
    }
}

/* 16. Opaque Solid Background for Chart Time Scale (Never see-through, crosshair-safe) */
#rhfx_webchart_container table tr:last-child,
#rhfx_webchart_container table tr:last-child td {
    background: #0c0e15 !important;
    position: relative !important;
    z-index: 10 !important;
}

#rhfx_webchart_container table tr:last-child td {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.theme-light #rhfx_webchart_container table tr:last-child,
body.theme-light #rhfx_webchart_container table tr:last-child td {
    background: #ffffff !important;
}

body.theme-light #rhfx_webchart_container table tr:last-child td {
    border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
}


/* Trading library refresh: searchable resource catalog with clear platform and format metadata. */
#menu-resources { --resource-button-ink: #17253b; }
html[data-theme="light"] #menu-resources,
body.theme-light #menu-resources { --resource-button-ink: #ffffff; }
#menu-resources .resource-page-header { margin-bottom: 22px; }
#menu-resources .resource-library { display: flex; flex-direction: column; gap: 28px; }
#menu-resources .resource-library [hidden] { display: none !important; }
#menu-resources .resource-library-toolbar {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 12px; border: 1px solid var(--border-color); border-radius: 14px;
    background: var(--bg-card); box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}
#menu-resources .resource-search {
    min-width: 220px; max-width: 420px; flex: 1; display: flex; align-items: center; gap: 10px;
    padding: 0 13px; height: 44px; color: var(--text-muted); border: 1px solid var(--border-color);
    border-radius: 10px; background: var(--bg-card-hover);
}
#menu-resources .resource-search svg { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
#menu-resources .resource-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text-main); font: inherit; font-size: .86rem; }
#menu-resources .resource-search input::placeholder { color: var(--text-muted); opacity: .85; }
#menu-resources .resource-filters { display: flex; align-items: center; gap: 6px; padding: 4px; border: 1px solid var(--border-color); border-radius: 11px; background: var(--bg-card-hover); }
#menu-resources .resource-filter { min-height: 34px; padding: 7px 12px; border: 1px solid transparent; border-radius: 8px; color: var(--text-muted); background: transparent; font: inherit; font-size: .78rem; font-weight: 700; white-space: nowrap; cursor: pointer; transition: color .18s ease, background .18s ease, border-color .18s ease; }
#menu-resources .resource-filter:hover { color: var(--text-main); }
#menu-resources .resource-filter.is-active { color: var(--primary); background: var(--bg-card); border-color: var(--border-color); box-shadow: 0 2px 6px rgba(15, 23, 42, .06); }
#menu-resources .resource-group { min-width: 0; }
#menu-resources .resource-group-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
#menu-resources .resource-group-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
#menu-resources .resource-group-icon { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; color: var(--primary); background: color-mix(in srgb, var(--primary) 11%, var(--bg-card)); border: 1px solid color-mix(in srgb, var(--primary) 23%, var(--border-color)); border-radius: 11px; }
#menu-resources .resource-group-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#menu-resources .resource-eyebrow { display: block; margin-bottom: 3px; color: var(--text-muted); font-size: .62rem; font-weight: 800; letter-spacing: .13em; }
#menu-resources .resource-group-heading h2 { margin: 0; color: var(--text-main); font-family: var(--font-heading, inherit); font-size: 1.08rem; line-height: 1.3; }
#menu-resources .resource-count { color: var(--text-muted); font-size: .75rem; font-weight: 700; white-space: nowrap; }
#menu-resources .resource-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
#menu-resources .resource-card { min-width: 0; min-height: 246px; display: flex; flex-direction: column; padding: 18px; border: 1px solid var(--border-color); border-radius: 14px; background: var(--bg-card); box-shadow: 0 8px 24px rgba(15, 23, 42, .035); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
#menu-resources .resource-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--primary) 46%, var(--border-color)); box-shadow: 0 12px 28px rgba(15, 23, 42, .09); }
#menu-resources .resource-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 15px; }
#menu-resources .resource-product-icon { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; color: var(--primary); border-radius: 10px; background: color-mix(in srgb, var(--primary) 10%, var(--bg-card)); }
#menu-resources .resource-product-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#menu-resources .resource-tag { padding: 5px 8px; border: 1px solid var(--border-color); border-radius: 999px; color: var(--text-muted); background: var(--bg-card-hover); font-size: .59rem; font-weight: 800; letter-spacing: .06em; text-align: right; }
#menu-resources .resource-card h3 { margin: 0 0 7px; color: var(--text-main); font-family: var(--font-heading, inherit); font-size: 1rem; line-height: 1.35; }
#menu-resources .resource-card p { flex: 1; margin: 0 0 14px; color: var(--text-muted); font-size: .81rem; line-height: 1.6; }
#menu-resources .resource-card-meta { display: flex; align-items: center; justify-content: space-between; padding: 9px 0 12px; margin-top: auto; border-top: 1px solid var(--border-color); color: var(--text-muted); font-size: .72rem; }
#menu-resources .resource-card-meta strong { color: var(--text-main); font-family: var(--font-mono, monospace); font-size: .7rem; letter-spacing: .05em; }
#menu-resources .resource-download-btn { min-height: 40px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 12px; border: 1px solid color-mix(in srgb, var(--primary) 35%, transparent); border-radius: 9px; color: var(--resource-button-ink); background: var(--primary); font: inherit; font-size: .78rem; font-weight: 800; cursor: pointer; transition: transform .18s ease, filter .18s ease, box-shadow .18s ease; }
#menu-resources .resource-download-btn:hover { transform: translateY(-1px); filter: brightness(1.04); box-shadow: 0 5px 14px color-mix(in srgb, var(--primary) 26%, transparent); }
#menu-resources .resource-download-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
#menu-resources .resource-download-secondary { color: var(--text-main); background: var(--bg-card-hover); border-color: var(--border-color); }
#menu-resources .resource-empty-state { margin: 0; padding: 26px 18px; border: 1px dashed var(--border-color); border-radius: 12px; color: var(--text-muted); text-align: center; font-size: .88rem; }
@media (max-width: 1100px) {
    #menu-resources .resource-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    #menu-resources .resource-library { gap: 23px; }
    #menu-resources .resource-library-toolbar { align-items: stretch; flex-direction: column; gap: 10px; padding: 10px; }
    #menu-resources .resource-search { width: auto; max-width: none; min-width: 0; }
    #menu-resources .resource-filters { display: grid; grid-template-columns: .8fr 1.2fr 1.25fr; gap: 3px; }
    #menu-resources .resource-filter { padding: 7px 5px; font-size: .68rem; }
    #menu-resources .resource-group-heading { align-items: center; }
    #menu-resources .resource-group-icon { width: 36px; height: 36px; }
    #menu-resources .resource-group-heading h2 { font-size: .98rem; }
    #menu-resources .resource-eyebrow { font-size: .55rem; }
    #menu-resources .resource-count { font-size: .67rem; }
    #menu-resources .resource-card-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    #menu-resources .resource-card { min-height: 0; padding: 15px; }
}
@media (prefers-reduced-motion: reduce) {
    #menu-resources .resource-card, #menu-resources .resource-filter, #menu-resources .resource-download-btn { transition: none; }
}


/* Official support channels: direct, clearly labeled contact destinations. */
#menu-support #support-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
#menu-support .support-channel-card { --support-accent: var(--primary); min-width: 0; display: flex; flex-direction: column; align-items: flex-start; padding: 22px; border: 1px solid var(--border-color); border-top: 3px solid var(--support-accent); border-radius: 15px; background: var(--bg-card); box-shadow: 0 8px 24px rgba(15, 23, 42, .045); }
#menu-support .support-whatsapp { --support-accent: #16a765; }
#menu-support .support-telegram { --support-accent: #168ac7; }
#menu-support .support-tiktok { --support-accent: var(--text-main); }
#menu-support .support-channel-top { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
#menu-support .support-channel-icon { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; color: var(--support-accent); background: color-mix(in srgb, var(--support-accent) 12%, var(--bg-card)); border: 1px solid color-mix(in srgb, var(--support-accent) 22%, var(--border-color)); border-radius: 12px; }
#menu-support .support-channel-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#menu-support .support-channel-label { color: var(--text-muted); font-size: .64rem; font-weight: 800; letter-spacing: .11em; text-align: right; }
#menu-support .support-channel-card h2 { margin: 0 0 7px; color: var(--text-main); font-family: var(--font-display, inherit); font-size: 1.08rem; line-height: 1.35; }
#menu-support .support-channel-card p { flex: 1; margin: 0 0 18px; color: var(--text-muted); font-size: .84rem; line-height: 1.65; }
#menu-support .support-channel-link { width: 100%; min-height: 42px; display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 13px; border: 1px solid color-mix(in srgb, var(--support-accent) 34%, var(--border-color)); border-radius: 10px; color: var(--text-main); background: color-mix(in srgb, var(--support-accent) 8%, var(--bg-card)); font-size: .8rem; font-weight: 800; text-decoration: none; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
#menu-support .support-channel-link:hover { transform: translateY(-1px); border-color: var(--support-accent); background: color-mix(in srgb, var(--support-accent) 15%, var(--bg-card)); }
#menu-support .support-channel-link:focus-visible { outline: 3px solid color-mix(in srgb, var(--support-accent) 50%, transparent); outline-offset: 2px; }
#menu-support .support-channel-link svg { width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: var(--support-accent); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 700px) {
    #menu-support #support-card-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    #menu-support .support-channel-card { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    #menu-support .support-channel-link { transition: none; }
}


/* Support hub art direction: one personal-contact feature with compact social channel cards. */
#menu-support #support-card-grid.support-hub { display: flex; flex-direction: column; gap: 18px; margin-top: 22px; }
#menu-support .support-hero-card { position: relative; isolation: isolate; min-height: 286px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(210px, .75fr); align-items: center; overflow: hidden; padding: 30px 34px; border: 1px solid #2b3b53; border-radius: 20px; color: #f5f7fc; background: radial-gradient(ellipse at 88% 12%, rgba(34, 158, 217, .17), transparent 34%), linear-gradient(125deg, #111b2b 0%, #17243a 58%, #132238 100%); box-shadow: 0 18px 42px rgba(13, 24, 42, .16); }
#menu-support .support-hero-card::before { position: absolute; z-index: -1; inset: 0 0 auto; height: 3px; content: ''; background: linear-gradient(90deg, #ff8a3d 0%, #ff8a3d 32%, #229ed9 78%, transparent 100%); }
#menu-support .support-hero-copy { position: relative; z-index: 2; max-width: 520px; }
#menu-support .support-hero-kicker { display: flex; align-items: center; gap: 8px; color: #b9c8dc; font-size: .66rem; font-weight: 800; letter-spacing: .13em; }
#menu-support .support-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #31c48d; box-shadow: 0 0 0 4px rgba(49, 196, 141, .13); }
#menu-support .support-kicker-divider { color: #60718a; }
#menu-support .support-hero-card h2 { max-width: 480px; margin: 14px 0 9px; color: #f7f9fc; font-family: var(--font-display, inherit); font-size: clamp(1.55rem, 2.7vw, 2.15rem); font-weight: 800; line-height: 1.16; letter-spacing: -.035em; }
#menu-support .support-hero-card h2 span { color: #74c8f0; }
#menu-support .support-hero-card p { max-width: 450px; margin: 0 0 19px; color: #b5c1d2; font-size: .88rem; line-height: 1.65; }
#menu-support .support-hero-link { width: fit-content; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 11px 16px; border: 1px solid #2c80aa; border-radius: 10px; color: #fff; background: #12618b; font-size: .82rem; font-weight: 800; text-decoration: none; box-shadow: 0 7px 18px rgba(5, 21, 36, .22); transition: transform .18s ease, background .18s ease, border-color .18s ease; }
#menu-support .support-hero-link:hover { transform: translateY(-1px); border-color: #5db9e8; background: #1677a8; }
#menu-support .support-hero-link svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#menu-support .support-username-note { display: block; margin-top: 11px; color: #91a1b7; font-size: .72rem; }
#menu-support .support-username-note strong { margin-left: 4px; color: #d9e3f1; font-family: var(--font-mono, monospace); font-size: .7rem; }
#menu-support .support-hero-art { position: relative; width: 100%; height: 230px; display: grid; place-items: center; }
#menu-support .support-orbit { position: absolute; aspect-ratio: 1; border: 1px solid rgba(128, 188, 223, .16); border-radius: 50%; transform: rotate(-22deg); }
#menu-support .support-orbit-one { width: 210px; }
#menu-support .support-orbit-two { width: 158px; border-style: dashed; border-color: rgba(128, 188, 223, .23); }
#menu-support .support-telegram-mark { position: relative; z-index: 1; width: 88px; height: 88px; display: grid; place-items: center; border: 1px solid rgba(131, 204, 239, .45); border-radius: 27px; color: #f7fbff; background: linear-gradient(145deg, #38aee3, #1478b2); box-shadow: 0 16px 35px rgba(19, 125, 182, .34), inset 0 1px 0 rgba(255,255,255,.28); transform: rotate(-8deg); }
#menu-support .support-telegram-mark svg { width: 43px; height: 43px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
#menu-support .support-art-caption { position: absolute; right: 2px; bottom: 3px; color: #7f94ae; font-size: .55rem; line-height: 1.7; letter-spacing: .16em; text-align: right; }
#menu-support .support-art-caption strong { color: #c2d2e5; font-size: .6rem; }
#menu-support .support-secondary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
#menu-support .support-mini-card { --support-accent: var(--primary); min-width: 0; min-height: 208px; display: flex; flex-direction: column; padding: 17px; border: 1px solid var(--border-color); border-radius: 14px; background: var(--bg-card); box-shadow: 0 7px 20px rgba(15, 23, 42, .035); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
#menu-support .support-mini-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--support-accent) 44%, var(--border-color)); box-shadow: 0 12px 24px rgba(15, 23, 42, .08); }
#menu-support .support-mini-card.support-whatsapp { --support-accent: #159b62; }
#menu-support .support-mini-card.support-tiktok { --support-accent: var(--text-main); }
#menu-support .support-mini-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 13px; }
#menu-support .support-mini-icon { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid color-mix(in srgb, var(--support-accent) 23%, var(--border-color)); border-radius: 10px; color: var(--support-accent); background: color-mix(in srgb, var(--support-accent) 9%, var(--bg-card)); }
#menu-support .support-mini-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#menu-support .support-mini-label { color: var(--text-muted); font-size: .56rem; font-weight: 800; letter-spacing: .09em; text-align: right; }
#menu-support .support-mini-card h2 { margin: 0 0 6px; color: var(--text-main); font-family: var(--font-display, inherit); font-size: .94rem; line-height: 1.35; }
#menu-support .support-mini-card p { flex: 1; margin: 0 0 14px; color: var(--text-muted); font-size: .74rem; line-height: 1.55; }
#menu-support .support-mini-link { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 10px; border: 1px solid color-mix(in srgb, var(--support-accent) 30%, var(--border-color)); border-radius: 9px; color: var(--text-main); background: color-mix(in srgb, var(--support-accent) 7%, var(--bg-card)); font-size: .72rem; font-weight: 800; text-decoration: none; transition: background .18s ease, border-color .18s ease; }
#menu-support .support-mini-link:hover { border-color: var(--support-accent); background: color-mix(in srgb, var(--support-accent) 13%, var(--bg-card)); }
#menu-support .support-mini-link svg { width: 15px; height: 15px; flex: 0 0 auto; fill: none; stroke: var(--support-accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#menu-support .support-hero-link:focus-visible, #menu-support .support-mini-link:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 48%, transparent); outline-offset: 3px; }
html[data-theme="light"] #menu-support .support-hero-card,
body.theme-light #menu-support .support-hero-card { border-color: #d7dfeb; color: #17253b; background: radial-gradient(ellipse at 88% 12%, rgba(34, 158, 217, .13), transparent 34%), linear-gradient(125deg, #fff 0%, #f5f8fc 58%, #eef5fa 100%); box-shadow: 0 14px 34px rgba(34, 56, 86, .08); }
html[data-theme="light"] #menu-support .support-hero-card h2,
body.theme-light #menu-support .support-hero-card h2 { color: #17253b; }
html[data-theme="light"] #menu-support .support-hero-card p,
body.theme-light #menu-support .support-hero-card p { color: #53647e; }
html[data-theme="light"] #menu-support .support-hero-kicker,
body.theme-light #menu-support .support-hero-kicker { color: #53647e; }
html[data-theme="light"] #menu-support .support-username-note,
body.theme-light #menu-support .support-username-note { color: #64748b; }
html[data-theme="light"] #menu-support .support-username-note strong,
body.theme-light #menu-support .support-username-note strong { color: #30425c; }
html[data-theme="light"] #menu-support .support-orbit,
body.theme-light #menu-support .support-orbit { border-color: rgba(34, 91, 143, .16); }
html[data-theme="light"] #menu-support .support-orbit-two,
body.theme-light #menu-support .support-orbit-two { border-color: rgba(34, 91, 143, .22); }
html[data-theme="light"] #menu-support .support-art-caption,
body.theme-light #menu-support .support-art-caption { color: #64748b; }
html[data-theme="light"] #menu-support .support-art-caption strong,
body.theme-light #menu-support .support-art-caption strong { color: #334155; }
@media (max-width: 1100px) { #menu-support .support-secondary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
    #menu-support #support-card-grid.support-hub { gap: 13px; margin-top: 18px; }
    #menu-support .support-hero-card { min-height: 0; grid-template-columns: minmax(0, 1fr); padding: 22px 19px; border-radius: 16px; }
    #menu-support .support-hero-card h2 { max-width: 340px; font-size: 1.6rem; }
    #menu-support .support-hero-card p { font-size: .81rem; }
    #menu-support .support-hero-art { display: none; }
    #menu-support .support-secondary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    #menu-support .support-mini-card { min-height: 196px; padding: 13px; }
    #menu-support .support-mini-top { align-items: flex-start; flex-direction: column; gap: 7px; }
    #menu-support .support-mini-label { text-align: left; }
    #menu-support .support-mini-card h2 { font-size: .86rem; }
    #menu-support .support-mini-card p { font-size: .7rem; }
    #menu-support .support-mini-link { padding: 8px; font-size: .67rem; }
}
@media (max-width: 380px) { #menu-support .support-secondary-grid { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { #menu-support .support-mini-card, #menu-support .support-mini-link, #menu-support .support-hero-link { transition: none; } }


/* WhatsApp is the primary one-to-one support channel; Telegram is secondary. */
#menu-support .support-hero-card { background: radial-gradient(ellipse at 88% 12%, rgba(37, 211, 102, .16), transparent 34%), linear-gradient(125deg, #111b2b 0%, #17243a 58%, #132238 100%); }
#menu-support .support-hero-card::before { background: linear-gradient(90deg, #ff8a3d 0%, #ff8a3d 28%, #25d366 78%, transparent 100%); }
#menu-support .support-hero-card h2 span { color: #62dc91; }
#menu-support .support-hero-link { border-color: #23834f; background: #0d7043; }
#menu-support .support-hero-link:hover { border-color: #63d58c; background: #0e8750; }
#menu-support .support-telegram-mark.support-whatsapp-mark { border-color: rgba(142, 239, 181, .5); background: linear-gradient(145deg, #38c878, #0c8150); box-shadow: 0 16px 35px rgba(20, 160, 88, .32), inset 0 1px 0 rgba(255,255,255,.28); }
#menu-support .support-mini-card.support-telegram { --support-accent: #168ac7; }
html[data-theme="light"] #menu-support .support-hero-card,
body.theme-light #menu-support .support-hero-card { background: radial-gradient(ellipse at 88% 12%, rgba(37, 211, 102, .13), transparent 34%), linear-gradient(125deg, #fff 0%, #f5f8fc 58%, #f0f8f3 100%); }
html[data-theme="light"] #menu-support .support-hero-card h2 span,
body.theme-light #menu-support .support-hero-card h2 span { color: #16824b; }
/* Akademi Trading: editorial learning hub, independent from the legacy course menu. */
#menu-academy { --academy-bg:#0b111c; --academy-panel:#111b29; --academy-panel-soft:#152236; --academy-border:#2b3a50; --academy-text:#f2f5fb; --academy-muted:#9aaac0; --academy-accent:#ff8a3d; --academy-blue:#60a5fa; --academy-green:#5cc89a; color:var(--academy-text); }
#menu-academy .academy-app { max-width:1360px; margin:0 auto; padding:6px 4px 34px; }
#menu-academy .academy-loading { padding:28px; color:var(--academy-muted); }
#menu-academy .academy-live-dot, #menu-academy .academy-eyebrow i { display:inline-block; width:7px; height:7px; margin-right:8px; border-radius:50%; background:#57c99a; box-shadow:0 0 0 4px rgba(87,201,154,.12); }
#menu-academy .academy-topline { display:flex; align-items:center; justify-content:flex-start; gap:16px; margin:0 0 16px; color:var(--academy-text); font-size:.72rem; letter-spacing:.1em; }
#menu-academy .academy-eyebrow { color:#e2e8f0; font-weight:800; }
html[data-theme="light"] #menu-academy .academy-eyebrow, body.theme-light #menu-academy .academy-eyebrow { color:#334155; }
#menu-academy .academy-eyebrow i { width:6px; height:6px; margin-right:9px; }
#menu-academy .academy-safe-note { letter-spacing:.02em; }
#menu-academy .academy-hero { position:relative; min-height:300px; display:grid; grid-template-columns:minmax(0,1.12fr) minmax(300px,.88fr); gap:28px; align-items:center; overflow:hidden; padding:30px clamp(24px,4vw,52px); border:1px solid #314158; border-radius:19px; color:#f4f6fb; background:radial-gradient(ellipse at 80% 18%,rgba(54,112,162,.18),transparent 34%),linear-gradient(125deg,#101a29 0%,#142237 58%,#111a28 100%); box-shadow:0 18px 45px rgba(5,11,20,.13); }
#menu-academy .academy-hero::before { position:absolute; inset:0 0 auto; height:3px; content:''; background:linear-gradient(90deg,#ff8a3d,#ffb169 35%,#5ba5d8 72%,transparent); }
#menu-academy .academy-hero-copy { position:relative; z-index:1; max-width:590px; }
#menu-academy .academy-overline, #menu-academy .academy-section-kicker { color:#ff985b; font-size:.62rem; font-weight:900; letter-spacing:.14em; }
#menu-academy .academy-hero h1 { margin:15px 0 12px; color:#f6f7fb; font-size:clamp(2.3rem,5vw,4.2rem); line-height:.98; letter-spacing:-.055em; }
#menu-academy .academy-hero h1 em { color:#ff9954; font-style:normal; }
#menu-academy .academy-hero-copy>p { max-width:540px; margin:0; color:#b3c0d1; font-size:.93rem; line-height:1.7; }
#menu-academy .academy-hero-actions { display:flex; flex-wrap:wrap; align-items:center; gap:15px; margin-top:22px; }
#menu-academy .academy-primary-btn, #menu-academy .academy-complete-btn, #menu-academy .academy-secondary-btn, #menu-academy .academy-back-btn { min-height:42px; display:inline-flex; align-items:center; justify-content:center; gap:10px; padding:10px 16px; border:1px solid transparent; border-radius:10px; font:inherit; font-size:.77rem; font-weight:800; cursor:pointer; transition:transform .16s ease,background .16s ease,border-color .16s ease; }
#menu-academy .academy-primary-btn { color:#111827; background:#ff9148; box-shadow:0 7px 18px rgba(255,145,72,.17); }
#menu-academy .academy-primary-btn:hover { transform:translateY(-1px); background:#ffa361; }
#menu-academy .academy-estimate { color:#aab9cc; font-size:.72rem; }
#menu-academy .academy-hero-visual { min-width:0; align-self:stretch; display:flex; flex-direction:column; justify-content:center; padding:13px 4px 8px 20px; border-left:1px solid rgba(160,180,206,.16); }
#menu-academy .academy-visual-label, #menu-academy .academy-visual-footer { display:flex; align-items:center; justify-content:space-between; color:#91a3ba; font-size:.55rem; font-weight:800; letter-spacing:.12em; }
#menu-academy .academy-visual-label span { color:#ff9954; }
#menu-academy .academy-hero-visual svg { width:100%; max-height:190px; margin:10px 0; overflow:visible; }
#menu-academy .academy-chart-grid { fill:none; stroke:rgba(173,192,216,.14); stroke-width:1; }
#menu-academy .academy-chart-line { fill:none; stroke:#67b2e4; stroke-width:2.2; }
#menu-academy .academy-chart-candles { fill:#18283c; stroke:#ff9954; stroke-width:2; }
#menu-academy .academy-chart-dot { fill:#ff9954; stroke:#ffe0c7; stroke-width:2; }
#menu-academy .academy-hero-index { position:absolute; right:17px; bottom:12px; color:rgba(189,205,226,.42); font:700 .52rem/1 monospace; letter-spacing:.15em; }
#menu-academy .academy-progress-strip { display:grid; grid-template-columns:auto minmax(80px,1fr) 42px; align-items:center; gap:17px; margin:16px 0 36px; padding:13px 18px; border:1px solid var(--academy-border); border-radius:12px; background:var(--academy-panel); }
#menu-academy .academy-progress-strip>div:first-child { display:flex; flex-direction:column; gap:3px; }
#menu-academy .academy-progress-kicker { color:var(--academy-muted); font-size:.55rem; font-weight:800; letter-spacing:.12em; }
#menu-academy .academy-progress-strip strong { font:700 .85rem/1.2 var(--font-mono,monospace); }
#menu-academy .academy-progress-strip strong small { color:var(--academy-muted); font-size:.65rem; font-weight:500; line-height:1.2; }
#menu-academy .academy-progress-track { height:5px; overflow:hidden; border-radius:10px; background:var(--academy-panel-soft); }
#menu-academy .academy-progress-track span { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,#ff8a3d,#69b7df); transition:width .25s ease; }
#menu-academy .academy-progress-strip>b { color:var(--academy-accent); font:700 .72rem/1 var(--font-mono,monospace); text-align:right; }
#menu-academy .academy-course-section { margin-bottom:23px; }
#menu-academy .academy-section-head { display:flex; align-items:end; justify-content:space-between; gap:20px; margin-bottom:15px; }
#menu-academy .academy-section-head h2, #menu-academy .academy-path-heading h2 { margin:6px 0 0; font-size:1.35rem; letter-spacing:-.035em; }
#menu-academy .academy-section-head>p { max-width:330px; margin:0; color:var(--academy-muted); font-size:.73rem; line-height:1.5; text-align:right; }
#menu-academy .academy-track-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
#menu-academy .academy-track-card { --track-color:#ff9a59; position:relative; min-width:0; min-height:204px; display:flex; flex-direction:column; align-items:flex-start; padding:17px; overflow:hidden; border:1px solid var(--academy-border); border-radius:14px; color:var(--academy-text); background:var(--academy-panel); text-align:left; cursor:pointer; transition:transform .17s ease,border-color .17s ease,background .17s ease; }
#menu-academy .academy-track-card:hover { transform:translateY(-2px); border-color:var(--track-color); }
#menu-academy .academy-track-card.is-selected { border-color:color-mix(in srgb,var(--track-color) 72%,var(--academy-border)); background:linear-gradient(145deg,color-mix(in srgb,var(--track-color) 10%,var(--academy-panel)),var(--academy-panel) 68%); box-shadow:inset 0 2px var(--track-color); }
#menu-academy .academy-track-card.blue { --track-color:#65ace4; } #menu-academy .academy-track-card.violet { --track-color:#ac99ed; } #menu-academy .academy-track-card.green { --track-color:#59c495; }
#menu-academy .academy-track-index { width:33px; height:33px; display:grid; place-items:center; margin-bottom:15px; border:1px solid color-mix(in srgb,var(--track-color) 42%,transparent); border-radius:10px; color:var(--track-color); background:color-mix(in srgb,var(--track-color) 9%,var(--academy-panel)); font:700 .69rem/1 var(--font-mono,monospace); }
#menu-academy .academy-track-meta { width:100%; display:flex; justify-content:space-between; gap:5px; color:var(--academy-muted); font-size:.51rem; font-weight:800; letter-spacing:.09em; }
#menu-academy .academy-track-meta b { color:var(--track-color); font:700 .56rem/1.2 var(--font-mono,monospace); letter-spacing:0; }
#menu-academy .academy-track-card>strong { margin-top:7px; font-size:1.05rem; }
#menu-academy .academy-track-card>p { flex:1; margin:7px 0 12px; color:var(--academy-muted); font-size:.68rem; line-height:1.55; }
#menu-academy .academy-track-foot { width:100%; display:flex; justify-content:space-between; padding-top:10px; border-top:1px solid var(--academy-border); color:var(--track-color); font-size:.62rem; font-weight:800; }
#menu-academy .academy-track-foot i { font-size:.9rem; font-style:normal; }
#menu-academy .academy-detail-grid { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(245px,.65fr); gap:14px; }
#menu-academy .academy-path-panel, #menu-academy .academy-method-panel { min-width:0; padding:21px; border:1px solid var(--academy-border); border-radius:15px; background:var(--academy-panel); }
#menu-academy .academy-path-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding-bottom:16px; border-bottom:1px solid var(--academy-border); }
#menu-academy .academy-path-heading h2 { font-size:1.28rem; }
#menu-academy .academy-path-heading p { margin:6px 0 0; color:var(--academy-muted); font-size:.7rem; line-height:1.5; }
#menu-academy .academy-path-count { flex:0 0 auto; padding:7px 9px; border:1px solid var(--academy-border); border-radius:8px; color:var(--academy-accent); font:700 .65rem/1 var(--font-mono,monospace); }
#menu-academy .academy-lesson-list { display:flex; flex-direction:column; }
#menu-academy .academy-lesson-row { width:100%; min-width:0; display:grid; grid-template-columns:36px minmax(0,1fr) 28px; align-items:center; gap:11px; padding:13px 4px; border:0; border-bottom:1px solid color-mix(in srgb,var(--academy-border) 72%,transparent); color:var(--academy-text); background:transparent; text-align:left; cursor:pointer; }
#menu-academy .academy-lesson-row:last-child { border-bottom:0; }
#menu-academy .academy-lesson-row:hover .academy-lesson-copy strong { color:var(--academy-accent); }
#menu-academy .academy-lesson-number { color:var(--academy-accent); font:700 .69rem/1 var(--font-mono,monospace); }
#menu-academy .academy-lesson-copy { min-width:0; display:flex; flex-direction:column; gap:4px; }
#menu-academy .academy-lesson-copy strong { font-size:.77rem; transition:color .15s ease; }
#menu-academy .academy-lesson-copy small { overflow:hidden; color:var(--academy-muted); font-size:.63rem; line-height:1.45; text-overflow:ellipsis; }
#menu-academy .academy-lesson-status { width:25px; height:25px; display:grid; place-items:center; border:1px solid var(--academy-border); border-radius:50%; color:var(--academy-muted); font-size:.7rem; }
#menu-academy .academy-lesson-status.is-done { border-color:#328a68; color:#70d2a8; background:rgba(54,162,118,.12); }
#menu-academy .academy-method-panel { position:relative; overflow:hidden; background:radial-gradient(ellipse at top right,rgba(255,138,61,.12),transparent 40%),var(--academy-panel); }
#menu-academy .academy-method-icon { width:44px; height:44px; display:grid; place-items:center; margin-bottom:20px; border:1px solid #724d36; border-radius:13px; color:#ffad73; background:rgba(255,138,61,.1); font:800 .68rem/1 var(--font-mono,monospace); }
#menu-academy .academy-method-panel h3 { max-width:260px; margin:9px 0; font-size:1.12rem; line-height:1.25; letter-spacing:-.025em; }
#menu-academy .academy-method-panel p, #menu-academy .academy-method-panel li { color:var(--academy-muted); font-size:.69rem; line-height:1.6; }
#menu-academy .academy-method-panel ul { display:grid; gap:7px; margin:14px 0 18px; padding-left:17px; }
#menu-academy .academy-method-foot { padding-top:12px; border-top:1px solid var(--academy-border); color:#ffad73; font:700 .51rem/1.4 var(--font-mono,monospace); letter-spacing:.07em; }
#menu-academy .academy-disclaimer { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:13px; margin-top:14px; padding:13px 15px; border:1px solid var(--academy-border); border-radius:11px; color:var(--academy-muted); background:color-mix(in srgb,var(--academy-panel) 75%,transparent); font-size:.62rem; line-height:1.5; }
#menu-academy .academy-disclaimer strong { color:var(--academy-text); font-size:.65rem; }
#menu-academy .academy-disclaimer a { color:#7eb5ea; font-weight:800; text-decoration:none; white-space:nowrap; }
#menu-academy .academy-disclaimer a:hover { text-decoration:underline; }

/* Lesson reader */
#menu-academy .academy-reader-top { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:14px; margin-bottom:18px; }
#menu-academy .academy-back-btn { justify-self:start; min-height:35px; padding:7px 10px; border-color:var(--academy-border); color:var(--academy-text); background:var(--academy-panel); }
#menu-academy .academy-back-btn:hover, #menu-academy .academy-secondary-btn:hover:not(:disabled) { border-color:#68809d; background:var(--academy-panel-soft); }
#menu-academy .academy-breadcrumb { color:var(--academy-muted); font-size:.55rem; font-weight:800; letter-spacing:.09em; text-align:center; }
#menu-academy .academy-breadcrumb i { padding:0 6px; color:#52627a; font-style:normal; }
#menu-academy .academy-breadcrumb b { color:var(--academy-accent); }
#menu-academy .academy-reader-progress { justify-self:end; color:var(--academy-muted); font:600 .62rem/1 var(--font-mono,monospace); }
#menu-academy .academy-lesson { max-width:980px; margin:0 auto; padding:clamp(22px,4vw,46px); border:1px solid var(--academy-border); border-radius:17px; background:var(--academy-panel); box-shadow:0 14px 38px rgba(4,10,18,.09); }
#menu-academy .academy-lesson-header { max-width:790px; margin:0 auto 25px; }
#menu-academy .academy-lesson-header h1 { margin:10px 0 9px; font-size:clamp(1.7rem,4vw,2.7rem); line-height:1.08; letter-spacing:-.045em; }
#menu-academy .academy-lesson-header>p { margin:0; color:var(--academy-muted); font-size:.85rem; line-height:1.7; }
#menu-academy .academy-figure { max-width:790px; margin:0 auto 33px; overflow:hidden; border:1px solid var(--academy-border); border-radius:13px; background:linear-gradient(135deg,#101a29,#142235); }
#menu-academy .academy-diagram { display:block; width:100%; min-height:165px; max-height:300px; padding:12px; }
#menu-academy .academy-diagram .grid { fill:none; stroke:rgba(171,190,215,.13); stroke-width:1; }
#menu-academy .academy-diagram .axis { fill:none; stroke:#52657e; stroke-width:1.5; }
#menu-academy .academy-diagram text { fill:#dce6f3; font:700 12px var(--font-mono,monospace); letter-spacing:.04em; }
#menu-academy .academy-diagram .diagram-note { fill:#9eafc4; font:500 11px var(--font-mono,monospace); }
#menu-academy .academy-diagram .diagram-tag { fill:#ffab73; }
#menu-academy .academy-diagram .diagram-tag.secondary { fill:#7eb8e8; }
#menu-academy .academy-diagram .pair-box rect, #menu-academy .academy-diagram .bar-outline { fill:#17283d; stroke:#52718f; stroke-width:1.5; }
#menu-academy .academy-diagram .pair-box text:first-of-type, #menu-academy .academy-diagram .diagram-label { fill:#ffab73; }
#menu-academy .academy-diagram .pair-box path, #menu-academy .academy-diagram .measure { fill:none; stroke:#f5a064; stroke-width:2; }
#menu-academy .academy-diagram .price-line { fill:none; stroke:#70b8e6; stroke-width:2.5; }
#menu-academy .academy-diagram .dot, #menu-academy .academy-diagram .event-dot { fill:#ff9954; stroke:#192a3e; stroke-width:3; }
#menu-academy .academy-diagram .zone { fill:rgba(255,153,84,.10); stroke:rgba(255,153,84,.55); stroke-dasharray:5 5; }
#menu-academy .academy-diagram .candle-up { fill:#22523f; stroke:#57c99a; stroke-width:2; }
#menu-academy .academy-diagram .candle-down { fill:#5a3038; stroke:#fb7185; stroke-width:2; }
#menu-academy .academy-diagram .event-line { stroke:#ff9954; stroke-width:2; stroke-dasharray:4 5; }
#menu-academy .academy-diagram .timeframe { fill:#1a2c40; stroke:#52718f; }
#menu-academy .academy-figure figcaption { display:flex; align-items:center; gap:10px; padding:10px 15px; border-top:1px solid var(--academy-border); color:#b6c4d5; font-size:.62rem; }
#menu-academy .academy-figure figcaption span { color:#ff9954; font:800 .61rem/1 var(--font-mono,monospace); }
#menu-academy .academy-figure figcaption i { margin-left:auto; color:#7d90a8; font-size:.51rem; font-style:normal; letter-spacing:.08em; }
#menu-academy .academy-lesson-body { max-width:790px; margin:0 auto; }
#menu-academy .academy-reading-section { display:grid; grid-template-columns:42px minmax(0,1fr); gap:13px; padding:22px 0; border-top:1px solid var(--academy-border); }
#menu-academy .academy-reading-index { padding-top:4px; color:#ff9954; font:700 .66rem/1 var(--font-mono,monospace); }
#menu-academy .academy-reading-section h2, #menu-academy .academy-quiz h2 { margin:0 0 10px; font-size:1.05rem; letter-spacing:-.02em; }
#menu-academy .academy-reading-section p { margin:0 0 9px; color:#b7c3d2; font-size:.78rem; line-height:1.75; }
#menu-academy .academy-reading-section p:last-child { margin-bottom:0; }
#menu-academy .academy-example { margin:18px 0; padding:18px 20px; border:1px solid #59412f; border-radius:12px; background:linear-gradient(125deg,rgba(255,138,61,.09),rgba(255,138,61,.025)); }
#menu-academy .academy-example p { margin:9px 0 7px; color:var(--academy-text); font-size:.8rem; line-height:1.7; }
#menu-academy .academy-example small { color:var(--academy-muted); font-size:.64rem; }
#menu-academy .academy-quiz { margin-top:23px; padding:20px; border:1px solid var(--academy-border); border-radius:13px; background:var(--academy-panel-soft); }
#menu-academy .academy-quiz h2 { margin:8px 0 15px; font-size:.97rem; line-height:1.45; }
#menu-academy .academy-quiz-options { display:grid; gap:8px; }
#menu-academy .academy-quiz-option { display:flex; align-items:center; gap:12px; padding:11px 13px; border:1px solid var(--academy-border); border-radius:9px; color:#c4cedb; background:var(--academy-panel); text-align:left; font:inherit; font-size:.72rem; cursor:pointer; }
#menu-academy .academy-quiz-option:hover { border-color:#778da7; }
#menu-academy .academy-quiz-option.is-correct { border-color:#3b9d75; color:#81ddb3; background:rgba(37,136,92,.12); }
#menu-academy .academy-quiz-option:first-letter { color:var(--academy-accent); font-weight:900; }
#menu-academy .academy-quiz-feedback { margin-top:12px; padding:10px 12px; border-radius:8px; color:#fac48f; background:rgba(255,153,84,.1); font-size:.7rem; line-height:1.5; }
#menu-academy .academy-quiz-feedback.is-correct { color:#8adbb7; background:rgba(37,136,92,.12); }
#menu-academy .academy-reader-footer { display:flex; justify-content:space-between; gap:10px; max-width:790px; margin:25px auto 0; padding-top:17px; border-top:1px solid var(--academy-border); }
#menu-academy .academy-secondary-btn { border-color:var(--academy-border); color:var(--academy-text); background:transparent; }
#menu-academy .academy-secondary-btn:disabled { opacity:.4; cursor:not-allowed; }
#menu-academy .academy-complete-btn { border-color:#368361; color:#92d9b7; background:rgba(49,151,105,.12); }
#menu-academy button:focus-visible { outline:3px solid rgba(96,165,250,.58); outline-offset:3px; }
body.theme-light #menu-academy { --academy-bg:#f2f5f9; --academy-panel:#fff; --academy-panel-soft:#f2f6fb; --academy-border:#d6dfeb; --academy-text:#16243a; --academy-muted:#667890; --academy-accent:#c75c1b; --academy-blue:#2878bd; --academy-green:#20845d; }
body.theme-light #menu-academy .academy-hero { border-color:#d9e2ed; color:#17243a; background:radial-gradient(ellipse at 80% 18%,rgba(54,112,162,.12),transparent 34%),linear-gradient(125deg,#fff 0%,#f4f7fb 58%,#f1f6f8 100%); box-shadow:0 16px 36px rgba(24,43,69,.08); }
body.theme-light #menu-academy .academy-hero h1 { color:#17243a; }
body.theme-light #menu-academy .academy-hero h1 em, body.theme-light #menu-academy .academy-overline, body.theme-light #menu-academy .academy-section-kicker { color:#ad4717; }
body.theme-light #menu-academy .academy-hero-copy>p { color:#5f7088; }
body.theme-light #menu-academy .academy-hero-visual { border-left-color:rgba(74,99,133,.17); }
body.theme-light #menu-academy .academy-chart-grid { stroke:rgba(74,99,133,.16); }
body.theme-light #menu-academy .academy-figure { background:linear-gradient(135deg,#f4f8fc,#eaf1f8); }
body.theme-light #menu-academy .academy-diagram text { fill:#263b57; }
body.theme-light #menu-academy .academy-diagram .diagram-note { fill:#536984; }
body.theme-light #menu-academy .academy-diagram .pair-box rect, body.theme-light #menu-academy .academy-diagram .bar-outline { fill:#fff; stroke:#9eb4cc; }
body.theme-light #menu-academy .academy-diagram .timeframe { fill:#fff; stroke:#9eb4cc; }
body.theme-light #menu-academy .academy-reading-section p, body.theme-light #menu-academy .academy-quiz-option { color:#52647c; }
body.theme-light #menu-academy .academy-example p { color:#293b53; }
body.theme-light #menu-academy .academy-figure figcaption span, body.theme-light #menu-academy .academy-reading-index { color:#ad4717; }
body.theme-light #menu-academy .academy-quiz-feedback { color:#8a451c; background:#fff1e5; }
body.theme-light #menu-academy .academy-quiz-feedback.is-correct { color:#176642; background:#e7f6ed; }
body.theme-light #menu-academy .academy-quiz-option.is-correct { color:#176642; background:#e7f6ed; }
body.theme-light #menu-academy .academy-method-panel { background:radial-gradient(ellipse at top right,rgba(255,138,61,.10),transparent 40%),#fff; }
@media (max-width:1100px) { #menu-academy .academy-track-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } #menu-academy .academy-detail-grid { grid-template-columns:minmax(0,1.3fr) minmax(220px,.7fr); } }
@media (max-width:760px) { #menu-academy .academy-app { padding:0 0 24px; } #menu-academy .academy-topline { align-items:flex-start; font-size:.55rem; } #menu-academy .academy-hero { grid-template-columns:minmax(0,1fr); gap:15px; min-height:unset; padding:25px 21px 24px; } #menu-academy .academy-hero h1 { font-size:clamp(2.5rem,11vw,3.8rem); } #menu-academy .academy-hero-visual { min-height:168px; padding:13px 0 3px; border-top:1px solid rgba(160,180,206,.16); border-left:0; } #menu-academy .academy-hero-visual svg { max-height:150px; } #menu-academy .academy-progress-strip { grid-template-columns:1fr auto; gap:10px; margin:13px 0 27px; padding:12px 13px; } #menu-academy .academy-progress-track { grid-column:1; grid-row:2; } #menu-academy .academy-progress-strip>b { grid-column:2; grid-row:1 / span 2; } #menu-academy .academy-section-head { align-items:flex-start; flex-direction:column; gap:7px; } #menu-academy .academy-section-head>p { text-align:left; } #menu-academy .academy-track-grid { gap:9px; } #menu-academy .academy-track-card { min-height:195px; padding:13px; } #menu-academy .academy-track-card>p { font-size:.64rem; } #menu-academy .academy-detail-grid { grid-template-columns:1fr; } #menu-academy .academy-path-panel, #menu-academy .academy-method-panel { padding:16px; } #menu-academy .academy-disclaimer { grid-template-columns:1fr; gap:5px; } #menu-academy .academy-disclaimer a { margin-top:4px; } #menu-academy .academy-reader-top { grid-template-columns:auto 1fr; } #menu-academy .academy-breadcrumb { grid-column:1 / -1; grid-row:2; text-align:left; } #menu-academy .academy-reader-progress { grid-column:2; grid-row:1; } #menu-academy .academy-lesson { padding:22px 17px; } #menu-academy .academy-diagram { min-height:130px; padding:6px; } #menu-academy .academy-reading-section { grid-template-columns:28px minmax(0,1fr); gap:8px; } #menu-academy .academy-reader-footer { flex-wrap:wrap; } #menu-academy .academy-reader-footer .academy-primary-btn { order:3; width:100%; } }
@media (max-width:390px) { #menu-academy .academy-track-grid { grid-template-columns:1fr; } #menu-academy .academy-track-card { min-height:170px; } #menu-academy .academy-hero-actions { align-items:flex-start; flex-direction:column; } #menu-academy .academy-reader-footer { display:grid; grid-template-columns:1fr 1fr; } #menu-academy .academy-reader-footer .academy-primary-btn { grid-column:1 / -1; } }
@media (prefers-reduced-motion:reduce) { #menu-academy *,#menu-academy *::before,#menu-academy *::after { scroll-behavior:auto!important; transition:none!important; } }

/* Expanded course notes and side-by-side XAUUSD teaching examples. */
#menu-academy .academy-deep-dive { margin:23px 0 6px; padding:18px 20px; border:1px solid #34465c; border-left:3px solid #76add2; border-radius:11px; background:linear-gradient(110deg,rgba(72,132,178,.12),rgba(72,132,178,.025)); }
#menu-academy .academy-deep-dive p { margin:9px 0 0; color:#bfcbda; font-size:.78rem; line-height:1.8; }
#menu-academy .academy-deep-summary { margin:11px 0 15px; padding:0 0 14px; border-bottom:1px solid rgba(142,165,192,.22); }
#menu-academy .academy-deep-summary>strong { color:#91b8d7; font-size:.58rem; letter-spacing:.11em; }
#menu-academy .academy-deep-summary p { margin-top:6px; }
#menu-academy .academy-deep-steps { display:grid; gap:13px; }
#menu-academy .academy-deep-step { display:grid; grid-template-columns:28px minmax(0,1fr); gap:10px; align-items:start; }
#menu-academy .academy-deep-step>span { display:grid; width:25px; height:25px; place-items:center; border:1px solid rgba(117,173,210,.38); border-radius:8px; color:#9ec8e8; font:700 .62rem var(--font-mono,monospace); }
#menu-academy .academy-deep-step h3 { margin:1px 0 0; color:var(--academy-text); font-size:.8rem; }
#menu-academy .academy-deep-step p { margin-top:4px; }
#menu-academy .academy-comparison { margin:27px 0 19px; }
#menu-academy .academy-comparison-head { margin-bottom:13px; }
#menu-academy .academy-comparison-head h2 { margin:7px 0 5px; font-size:1.05rem; letter-spacing:-.02em; }
#menu-academy .academy-comparison-head p { margin:0; color:var(--academy-muted); font-size:.68rem; line-height:1.55; }
#menu-academy .academy-comparison-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px; }
#menu-academy .academy-compare-card { min-width:0; overflow:hidden; border:1px solid var(--academy-border); border-radius:12px; background:var(--academy-panel-soft); }
#menu-academy .academy-compare-card.is-good { border-color:color-mix(in srgb,#4fb985 45%,var(--academy-border)); }
#menu-academy .academy-compare-card.is-bad { border-color:color-mix(in srgb,#e06d76 40%,var(--academy-border)); }
#menu-academy .academy-compare-art { padding:8px 7px 3px; background:linear-gradient(145deg,rgba(24,43,61,.85),rgba(15,25,38,.92)); }
#menu-academy .academy-compare-svg { display:block; width:100%; height:auto; }
#menu-academy .academy-compare-svg text { fill:#bdcadd; font:700 8px var(--font-mono,monospace); letter-spacing:.02em; }
#menu-academy .academy-compare-svg .gold-symbol { fill:#ffb17b; font-size:9px; }
#menu-academy .academy-compare-svg .gold-grid { fill:none; stroke:rgba(171,190,215,.12); stroke-width:1; }
#menu-academy .academy-compare-svg .gold-axis { fill:none; stroke:#53667f; stroke-width:1; }
#menu-academy .academy-compare-svg .gold-candles { fill:#1b3f37; stroke:#55bd8c; stroke-width:1.6; }
#menu-academy .academy-compare-svg .gold-candles-bad { fill:#5b2932; stroke:#f17b83; }
#menu-academy .academy-compare-svg .gold-zone { fill:rgba(71,179,128,.14); stroke:#5cc89a; stroke-dasharray:4 3; }
#menu-academy .academy-compare-svg .gold-stop { fill:none; stroke:#fb7185; stroke-dasharray:4 3; stroke-width:1.5; }
#menu-academy .academy-compare-svg .gold-entry { fill:none; stroke:#5cc89a; stroke-width:2; }
#menu-academy .academy-compare-svg .gold-error, #menu-academy .academy-compare-svg .gold-error-line { fill:none; stroke:#fb7185; stroke-width:2; }
#menu-academy .academy-compare-caption { padding:12px 14px 15px; }
#menu-academy .academy-compare-caption>span { color:#76d2a8; font-size:.55rem; font-weight:900; letter-spacing:.11em; }
#menu-academy .academy-compare-card.is-bad .academy-compare-caption>span { color:#f0939b; }
#menu-academy .academy-compare-caption p { margin:6px 0 0; color:#b8c5d5; font-size:.68rem; line-height:1.65; }
body.theme-light #menu-academy .academy-deep-dive { border-color:#d4e0ed; border-left-color:#3984bd; background:linear-gradient(110deg,#edf5fb,#f8fafc); }
body.theme-light #menu-academy .academy-deep-dive p { color:#435871; }
body.theme-light #menu-academy .academy-deep-summary { border-bottom-color:#d5e0eb; }
body.theme-light #menu-academy .academy-deep-summary>strong { color:#396f98; }
body.theme-light #menu-academy .academy-deep-step>span { border-color:#b9d1e4; color:#356e98; background:#f0f6fb; }
body.theme-light #menu-academy .academy-deep-step h3 { color:#1b2a40; }
body.theme-light #menu-academy .academy-compare-art { background:linear-gradient(145deg,#edf3f8,#e2ebf4); }
body.theme-light #menu-academy .academy-compare-svg text { fill:#32465e; }
body.theme-light #menu-academy .academy-compare-svg .gold-symbol { fill:#98400f; }
body.theme-light #menu-academy .academy-compare-svg .gold-grid { stroke:rgba(60,83,112,.15); }
body.theme-light #menu-academy .academy-compare-svg .gold-axis { stroke:#8395aa; }
body.theme-light #menu-academy .academy-compare-svg .gold-candles { fill:#e3f5ec; stroke:#22845d; }
body.theme-light #menu-academy .academy-compare-svg .gold-candles-bad { fill:#fde8e9; stroke:#bb3946; }
body.theme-light #menu-academy .academy-compare-svg .gold-zone { fill:rgba(45,157,105,.12); stroke:#22845d; }
body.theme-light #menu-academy .academy-compare-caption>span { color:#176642; }
body.theme-light #menu-academy .academy-compare-card.is-bad .academy-compare-caption>span { color:#a62e3b; }
body.theme-light #menu-academy .academy-compare-caption p { color:#465a73; }
@media (max-width:760px) { #menu-academy .academy-comparison-grid { grid-template-columns:1fr; } #menu-academy .academy-compare-art { padding:12px 10px 3px; } }
/* Academy casebook: theme-aware diagrams and worked examples. */
#academy-app .ak-convention{padding:22px;border-left:3px solid #e98232;background:var(--bg-card);margin:24px 0;color:var(--text-main)}
#academy-app .ak-convention>span,#academy-app .ak-convention>strong{display:block;margin-bottom:10px}#academy-app .ak-convention>span{font-size:11px;letter-spacing:1px;color:var(--text-muted)}#academy-app .ak-convention>strong{font-size:24px}
#academy-app .ak-topic,#academy-app .ak-case,#academy-app .ak-comparison,#academy-app .ak-assignment{margin:40px 0;padding-top:24px;border-top:1px solid var(--border-color)}
#academy-app .ak-topic p,#academy-app .ak-case p,#academy-app .ak-comparison p,#academy-app .ak-assignment p,#academy-app .ak-calculator p,#academy-app .ak-convention p{line-height:1.85;font-size:15px;color:var(--text-main);max-width:85ch}
#academy-app .ak-figure{margin:22px 0;background:var(--bg-card);border:1px solid var(--border-color);border-radius:14px;overflow:hidden}#academy-app .ak-figure figcaption{padding:12px 16px;font-size:12px;line-height:1.6;color:var(--text-muted);border-top:1px solid var(--border-color)}
#academy-app .ak-visual{display:block;width:100%;height:auto;font-family:inherit}#academy-app .ak-visual text{fill:var(--text-main)}#academy-app .ak-svg-kicker{fill:var(--text-muted);font-weight:700;letter-spacing:.6px}#academy-app .ak-svg-value{font-weight:700}#academy-app .ak-node{fill:var(--bg-dark);stroke:var(--border-color)}#academy-app .ak-connector,#academy-app .ak-level-line{stroke:#d77629;stroke-width:2;fill:none}#academy-app .ak-grid-line{stroke:var(--border-color);stroke-width:1}#academy-app .ak-cross{stroke:#e64b63;stroke-width:3;fill:none}#academy-app .ak-bull{fill:#18a67b;stroke:#18a67b;stroke-width:2}#academy-app .ak-bear{fill:#df4967;stroke:#df4967;stroke-width:2}#academy-app .ak-bar-track{fill:var(--bg-dark)}#academy-app .ak-bar{fill:#229eaa}#academy-app .ak-bar-negative{fill:#df4967}#academy-app .ak-point-dot{fill:#e98232}
#academy-app .ak-worked-steps{list-style:none;padding:0}#academy-app .ak-worked-steps>li{display:grid;grid-template-columns:32px minmax(0,1fr);gap:12px;margin:28px 0}#academy-app .ak-worked-steps>li>span{color:#db7b30;font-weight:700;padding-top:5px}
#academy-app .ak-compare-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}#academy-app .ak-compare-grid article{min-width:0;border-top:3px solid #18a67b;padding-top:18px}#academy-app .ak-compare-grid .ak-bad{border-color:#df4967}#academy-app .ak-compare-grid header>span{font-size:12px;font-weight:700;letter-spacing:1px}#academy-app .ak-compare-grid .ak-figure{margin:16px 0}
#academy-app details summary{cursor:pointer;line-height:1.6;font-weight:700;padding:12px 0}#academy-app details summary:focus-visible{outline:2px solid #e98232;outline-offset:4px}#academy-app .ak-calculator{border:1px solid var(--border-color);padding:18px 24px;border-radius:14px;margin:32px 0}#academy-app .ak-calc-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}#academy-app .ak-calc-grid label{font-size:12px;line-height:1.6}#academy-app .ak-calc-grid input,#academy-app .ak-calc-grid select{display:block;box-sizing:border-box;width:100%;min-width:0;padding:12px;margin-top:7px;background:var(--bg-card);color:var(--text-main);border:1px solid var(--border-color);border-radius:8px}#academy-app .ak-calc-output{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:20px}#academy-app .ak-calc-output strong,#academy-app .ak-calc-output small{display:block;overflow-wrap:anywhere}#academy-app .ak-calc-output strong{font-size:20px;margin-top:8px}
@media(max-width:760px){#academy-app .ak-compare-grid{grid-template-columns:1fr}#academy-app .ak-calc-grid,#academy-app .ak-calc-output{grid-template-columns:repeat(2,minmax(0,1fr))}#academy-app .ak-calculator{padding:14px}#academy-app .ak-worked-steps>li{grid-template-columns:minmax(0,1fr)}#academy-app .ak-convention{padding:16px}#academy-app .ak-topic p,#academy-app .ak-case p{font-size:14px}}
/* Editorial Academy: readable chapters, contextual examples, matched chart scales. */
#academy-app .ae-introduction,#academy-app .ae-reading,#academy-app .ae-case,#academy-app .ae-understanding{margin:32px 0;padding:0;min-width:0}
#academy-app .ae-reading,#academy-app .ae-case,#academy-app .ae-understanding{border-top:1px solid var(--border-color);padding-top:32px}
#academy-app .ae-introduction p,#academy-app .ae-reading p,#academy-app .ae-case p,#academy-app .ae-understanding p,#academy-app .ae-analogy p{font-size:15px;line-height:1.95;color:var(--text-main);max-width:82ch;margin:12px 0 22px}
#academy-app .ae-reading h2{margin:30px 0 12px;font-size:23px}#academy-app .ae-reading h3,#academy-app .ae-explanation h3{margin:26px 0 10px;font-size:18px}
#academy-app .ae-analogy{margin:28px 0;padding:22px 26px;background:var(--bg-dark);border-left:3px solid var(--primary);border-radius:0 12px 12px 0}#academy-app .ae-analogy h3{margin:12px 0;font-size:21px}#academy-app .ae-analogy p:last-child{margin-bottom:0}
#academy-app .ae-assumptions,#academy-app .ae-source{font-size:12px!important;line-height:1.75!important;color:var(--text-muted)!important}
#academy-app .ae-chart-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin:26px 0}#academy-app .ae-chart-pair figure{margin:0;min-width:0}#academy-app .ae-chart-pair h3{font-size:17px;line-height:1.5;min-height:52px;margin:0 0 12px}#academy-app .ae-chart-pair figcaption{font-size:13px;line-height:1.8;color:var(--text-main);padding:15px 0}
#academy-app .ae-chart{width:100%;height:auto;display:block;background:var(--bg-dark);border:1px solid var(--border-color);border-radius:12px}#academy-app .ae-chart text{fill:var(--text-main);font-family:var(--font-body)}#academy-app .ae-axis{font-size:13px}#academy-app .ae-kicker{font-size:12px;font-weight:700;letter-spacing:.4px}#academy-app .ae-value{font-size:14px;font-weight:700}#academy-app .ae-grid{stroke:var(--border-color);fill:none}#academy-app .ae-reference{stroke:var(--primary);stroke-width:1.7;stroke-dasharray:5 5;fill:none}#academy-app .ae-up{fill:#14a67c;stroke:#14a67c;stroke-width:2}#academy-app .ae-down{fill:#e24c6e;stroke:#e24c6e;stroke-width:2}#academy-app .ae-zone{fill:#329dac;fill-opacity:.12}#academy-app .ae-line{stroke:#139e8a;stroke-width:3;fill:none}#academy-app .ae-line-bad{stroke:#dc5c75;stroke-width:3;fill:none}#academy-app .ae-price-dot{fill:var(--text-main)}#academy-app .ae-outside{fill:#dc5c75;fill-opacity:.15}
#academy-app .ae-reasoning{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px;margin-top:30px}#academy-app .ae-reasoning article{border-top:2px solid #139e8a;padding-top:18px;min-width:0}#academy-app .ae-reasoning .ae-mistake{border-color:#dc5c75}#academy-app .ae-verdict{font-size:11px;letter-spacing:1px;font-weight:700}#academy-app .ae-reasoning h3{font-size:18px;line-height:1.5;margin:12px 0}#academy-app .ae-evidence{margin:18px 0}#academy-app .ae-evidence>div{display:grid;grid-template-columns:1fr 1.2fr;gap:12px;padding:12px 0;border-bottom:1px solid var(--border-color)}#academy-app .ae-evidence dt{font-size:12px;color:var(--text-muted);line-height:1.6}#academy-app .ae-evidence dd{font-size:14px;line-height:1.6;font-weight:650;margin:0;overflow-wrap:anywhere}
#academy-app .ae-reading-notes{border-left:2px solid var(--border-color);padding-left:20px;margin:24px 0}#academy-app .ae-understanding details,#academy-app .ak-assignment details{padding:4px 18px;background:var(--bg-dark);border-radius:10px}#academy-app .ae-source a{color:var(--text-main);text-decoration:underline;text-underline-offset:3px}
@media(max-width:900px){#academy-app .ae-chart-pair{grid-template-columns:1fr}#academy-app .ae-chart-pair h3{min-height:0}}
@media(max-width:640px){#academy-app .ae-reasoning{grid-template-columns:1fr}#academy-app .ae-analogy{padding:18px}#academy-app .ae-introduction p,#academy-app .ae-reading p,#academy-app .ae-case p,#academy-app .ae-understanding p,#academy-app .ae-analogy p{font-size:14px;line-height:1.9}#academy-app .ae-reading h2{font-size:21px}}
