:root {
    --bg-dark: #120408;
    --card-bg: rgba(45, 8, 14, 0.55);
    --accent-blue: #c9a227;
    --accent-purple: #8b1528;
    --text-primary: #ffffff;
    --text-secondary: #c4b8a8;
    --success: #d4af37;
    --danger: #ff4d4d;
    --gold: #c9a227;
    --gold-light: #e8d48b;
    --crimson: #9b1b2e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background: transparent;
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
}

body.signal-active .app-container {
    opacity: 0;
    pointer-events: none;
}

body.signal-active #robot-assistant-container {
    opacity: 0;
    pointer-events: none;
}

.app-container {
    padding: 10px;
    /* Reduced padding for wider feel */
    max-width: 100%;
    /* Allow full width */
    margin: 0 auto;
}

.hidden {
    display: none !important;
}

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

.logo {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.logo-gold {
    color: #FFD700;
    margin-right: 2px;
}

.logo-white {
    color: #fff;
}

.badge {
    background: rgba(80, 12, 20, 0.45);
    color: #ccc;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    border: 1px solid rgba(201, 162, 39, 0.18);
    letter-spacing: 0.5px;
}

.badge.vip {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #B8860B 100%);
    color: #000;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5), inset 0 0 5px rgba(255, 255, 255, 0.5);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: gold-pulse 2s infinite alternate;
}

@keyframes gold-pulse {
    from { box-shadow: 0 0 10px rgba(255, 215, 0, 0.3); }
    to { box-shadow: 0 0 25px rgba(255, 215, 0, 0.6); }
}

/* User Controls & Language Selector */
.user-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.lang-selector-container {
    position: relative;
    z-index: 60;
}

.lang-toggle-btn {
    background: rgba(80, 12, 20, 0.45);
    border: 1px solid rgba(201, 162, 39, 0.18);
    color: #fff;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: #111;
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.2s ease;
    min-width: 120px;
}

.lang-selector-container.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-item {
    background: transparent;
    border: none;
    color: #ccc;
    padding: 10px 15px;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 1px solid rgba(80, 12, 20, 0.45);
    transition: background 0.2s, color 0.2s;
}

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

.lang-item:hover,
.lang-item.active {
    background: rgba(80, 12, 20, 0.45);
    color: #FFD700;
}

/* Category Dropdown */
.category-dropdown-container {
    position: relative;
    margin-bottom: 15px;
    padding: 0 20px;
    z-index: 50;
}

.category-toggle-btn {
    width: 100%;
    background: rgba(80, 12, 20, 0.45);
    border: 1px solid rgba(255, 215, 0, 0.5);
    color: #fff;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.category-toggle-btn:active {
    transform: scale(0.98);
}

.dropdown-arrow {
    font-size: 0.8rem;
    color: #FFD700;
    transition: transform 0.3s ease;
}

.category-dropdown-container.open .dropdown-arrow {
    transform: rotate(180deg);
}

.category-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 20px;
    right: 20px;
    background: #111;
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

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

.dropdown-item {
    background: transparent;
    border: none;
    color: #ccc;
    padding: 12px 16px;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 1px solid rgba(80, 12, 20, 0.45);
    transition: background 0.2s, color 0.2s;
}

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

.dropdown-item:active,
.dropdown-item:hover {
    background: rgba(80, 12, 20, 0.45);
}

.dropdown-item.active {
    color: #FFD700;
    background: rgba(255, 215, 0, 0.1);
}

/* Timeframes Selection */
.timeframes {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
    margin: 15px 0;
}

.tf-btn {
    background: rgba(80, 12, 20, 0.45);
    border: 1px solid rgba(201, 162, 39, 0.18);
    color: #ccc;
    padding: 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    cursor: pointer;
}

.tf-btn.active {
    border-color: #FFD700;
    background: rgba(255, 193, 7, 0.1);
    color: #FFD700;
}

/* Asset Item Enhancements */
.asset-item {
    background: rgba(60, 8, 14, 0.5);
    border: 1px solid rgba(80, 12, 20, 0.45);
    border-radius: 16px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(15px);
    transition: transform 0.2s, background 0.2s;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 8px;
}

.asset-item:active {
    transform: scale(0.98);
    background: rgba(201, 162, 39, 0.12);
}

.asset-icon-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
    /* Small distance between icons per user request */
    margin-right: 12px;
    background: none !important;
    /* Force removal of any boxes */
}

.asset-icon {
    width: 26px;
    height: 26px;
    object-fit: cover;
    border-radius: 50%;
    background: transparent;
    display: block;
    border: none !important;
    /* No borders per user request */
}

.asset-icon-wrapper.multi {
    width: auto;
}

.asset-icon-wrapper.single {
    width: 26px;
}

.asset-info {
    flex: 1;
}

.asset-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
}

.asset-category {
    font-size: 0.65rem;
    color: var(--tg-theme-hint-color, #999);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.asset-price-box {
    text-align: right;
}

.asset-price {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: #FFD700;
}

.asset-change {
    font-size: 0.7rem;
}

.asset-change.up {
    color: #d4af37;
}

.asset-change.down {
    color: #FF4444;
}

/* Animations */
@keyframes pulse-green {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px #d4af37);
    }

    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 15px #d4af37);
    }

    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px #d4af37);
    }
}

@keyframes pulse-red {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px #FF4444);
    }

    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 15px #FF4444);
    }

    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px #FF4444);
    }
}

.direction.call {
    color: #d4af37;
    animation: pulse-green 1.5s infinite ease-in-out;
}

.direction.put {
    color: #FF4444;
    animation: pulse-red 1.5s infinite ease-in-out;
}

.badge.vip {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.neural-loader {
    text-align: center;
    padding: 30px 0;
}

.brain-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: url('https://img.icons8.com/ios/100/FFD700/brain.png') no-repeat center;
    background-size: contain;
    filter: drop-shadow(0 0 8px #FFD700);
    animation: rotate 3s infinite linear;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Search Bar */
.search-container {
    padding: 0 20px 15px;
}

#asset-search {
    width: 100%;
    background: rgba(80, 12, 20, 0.45);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 10px;
    padding: 12px 15px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: 0.3s;
    backdrop-filter: blur(10px);
}

#asset-search:focus {
    border-color: #FFD700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

/* Main Action Button */
.main-get-signal-btn {
    width: 100%;
    background: rgba(201, 162, 39, 0.12);
    /* slightly filled, not fully transparent */
    border: 1px solid rgba(255, 255, 255, 0.15);
    /* light border for glass effect */
    color: #fff;
    padding: 18px 20px;
    border-radius: 16px;
    font-size: 1.15rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: transform 0.2s, background 0.2s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.main-get-signal-btn:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.12);
}

/* Asset Grid Optimization */
.asset-grid {
    flex: 1;
    overflow-y: auto;
    padding: 0 5px 20px;
    /* Reduced side padding for more width */
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    /* Slightly smaller gap */
}

/* Consolidated above v42 */

/* Asset Detail View (Overlay) */
.asset-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 25px;
    gap: 12px;
}

.signal-asset-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    /* Larger gap for the big detailed overlay */
    margin-bottom: 20px;
    background: none !important;
}

.signal-asset-icon-wrapper .asset-icon {
    position: static;
    width: 68px;
    height: 44px;
    /* Rectangular ratio for "flags" */
    border-radius: 8px;
    /* Slightly rounded edges as requested */
    object-fit: cover;
    border: none !important;
    background: transparent;
}

.signal-asset-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
    border-radius: 8px;
    position: absolute;
    left: 0;
    z-index: 2;
    border: 2px solid rgba(255, 215, 0, 0.2);
}

.signal-asset-icon.secondary {
    left: 40px;
    /* Much less overlap for clarity */
    z-index: 1;
    opacity: 0.9;
}

.signal-asset-icon-wrapper.single {
    width: 64px;
}

.signal-asset-icon-wrapper.single .signal-asset-icon {
    position: static;
}

.section-label {
    font-size: 11px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-align: center;
}

.timeframe-selection {
    margin-bottom: 30px;
}

/* Neural Loader Pulse Animation */
.neural-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    gap: 20px;
}

.pulse-ring {
    width: 80px;
    height: 80px;
    border: 3px solid #FFD700;
    border-radius: 50%;
    position: relative;
    animation: pulse-ring 1.2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

.pulse-ring::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid #FFD700;
    border-radius: 50%;
    animation: pulse-ring-inner 1.2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.5);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

@keyframes pulse-ring-inner {
    0% {
        transform: scale(0.2);
        opacity: 1;
    }

    80% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

#status-text {
    font-size: 13px;
    font-weight: 600;
    color: #FFD700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-height: 1.2em;
}

/* The original .assets-grid and .asset-card rules are kept as they seem to be for a different component */
.assets-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.asset-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(201, 162, 39, 0.18);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.asset-card:active {
    transform: scale(0.98);
}

.asset-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin-right: 15px;
    background: rgba(80, 12, 20, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.asset-info {
    flex-grow: 1;
}

.asset-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.asset-category {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.asset-price-box {
    text-align: right;
}

.asset-price {
    font-weight: 800;
    font-size: 1.1rem;
}

.asset-change {
    font-size: 0.8rem;
    font-weight: 600;
}

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

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

/* PocketAI Plus Animation Overlay */
.signal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Center the card */
    z-index: 100;
    opacity: 0;
    overflow-x: hidden;
    backdrop-filter: none !important;
    transition: opacity 0.3s ease;
}

.signal-card {
    background: rgba(10, 11, 16, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(201, 162, 39, 0.18);
    border-radius: 24px;
    padding: 30px 20px;
    width: 90%;
    max-width: 400px;
    margin: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
    position: relative;
    z-index: 101;
}

/* Removed tv-chart-bg as we are using a cleaner dark theme for PO fidelity */

.signal-overlay.active {
    display: flex;
    opacity: 1;
    pointer-events: all;
}

.signal-stats-grid,
.stat-block {
    display: none;
}

/* Advanced Signal Overlay (v40) */
.signal-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 0;
}

.stat-block {
    background: rgba(80, 12, 20, 0.45);
    border: 1px solid rgba(201, 162, 39, 0.18);
    border-radius: 16px;
    padding: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-block .stat-label {
    font-size: 0.65rem;
    color: #888;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.stat-block .stat-value {
    font-size: 1.4rem;
    font-weight: 900;
    color: #fff;
}

.signal-main-result {
    text-align: center;
    margin: 30px 0;
}

.direction-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.8rem;
    font-weight: 900;
    padding: 30px 20px;
    border-radius: 20px;
    width: 100%;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.direction-marker.call {
    color: #fff;
    background: linear-gradient(135deg, #00c853, #00e676);
    box-shadow: 0 10px 30px rgba(0, 200, 83, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.direction-marker.put {
    color: #fff;
    background: linear-gradient(135deg, #d50000, #ff1744);
    box-shadow: 0 10px 30px rgba(213, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#signal-direction-icon {
    font-size: 3rem;
    line-height: 1;
}

.asset-name-large {
    color: #fff;
    letter-spacing: -0.5px;
}

.signal-info-rows {
    background: rgba(60, 8, 14, 0.5);
    border: 1px solid rgba(201, 162, 39, 0.12);
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 25px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 14px 18px;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(80, 12, 20, 0.45);
    background: rgba(255, 255, 255, 0.01);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.info-value {
    color: #fff;
    font-weight: 800;
}

.info-row.highlight {
    background: rgba(50, 6, 12, 0.45);
}

.timer-progress-container {
    height: 5px;
    background: rgba(80, 12, 20, 0.45);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 30px;
}

.timer-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #c9a227, #8b1528);
    width: 100%;
    transition: width 1s linear;
}

.signal-footer-btns {
    display: flex;
    justify-content: center;
    /* Center them relative to the clock */
    gap: 146px;
    /* 140px robot width + 3px gap on each side */
    margin-top: 20px;
}

.btn-footer-repeat,
.btn-footer-back {
    /* Removed flex: 1 to prevent stretching away from the clock */
    min-width: 100px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(201, 162, 39, 0.18);
    color: #fff;
    padding: 14px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-footer-repeat:active,
.btn-footer-back:active {
    transform: scale(0.96);
    background: rgba(255, 255, 255, 0.12);
}

.price-info {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.btn-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #666;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

.btn-primary {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    cursor: pointer;
}

.empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    text-align: center;
}

/* ── Education Button ── */
.education-toggle-btn {
    width: 100%;
    background: rgba(70, 10, 18, 0.4);
    border: 1px solid rgba(0, 220, 150, 0.25);
    color: #d4af37;
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
    text-align: left;
    margin-top: 10px;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.education-toggle-btn:hover,
.education-toggle-btn.active {
    background: rgba(0, 220, 150, 0.1);
    border-color: rgba(0, 220, 150, 0.5);
}

/* ── Education Panel ── */
.education-panel {
    margin-top: 10px;
}

.education-panel.hidden,
.assets-panel.hidden,
.calc-panel.hidden,
.news-panel.hidden {
    display: none;
}

/* ── News Toggle Button (Indigo/Blue) ── */
.news-toggle-btn {
    width: 100%;
    background: rgba(70, 10, 18, 0.4);
    border: 1px solid rgba(130, 80, 255, 0.25);
    color: #9d80ff;
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
    text-align: left;
    margin-top: 10px;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-toggle-btn:hover,
.news-toggle-btn.active {
    background: rgba(130, 80, 255, 0.1);
    border-color: rgba(130, 80, 255, 0.5);
}

.news-panel {
    background: rgba(50, 6, 12, 0.45);
    border: 1px solid rgba(80, 12, 20, 0.45);
    border-radius: 18px;
    padding: 18px;
    margin-top: 5px;
}

/* News Filters */
.news-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.filter-group label {
    display: block;
    font-size: 0.7rem;
    color: #888;
    margin-bottom: 6px;
    font-weight: 600;
}

.filter-group select {
    width: 100%;
    background: rgba(80, 12, 20, 0.45);
    border: 1px solid rgba(201, 162, 39, 0.18);
    border-radius: 10px;
    color: #fff;
    padding: 10px;
    font-size: 0.85rem;
    outline: none;
}

/* News Cards */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-card {
    background: rgba(70, 10, 18, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 14px;
    border-left: 3px solid #666;
    /* Default gray impact */
}

.news-card.impact-high {
    border-left-color: #f44336;
}

.news-card.impact-med {
    border-left-color: #ff9800;
}

.news-card.impact-low {
    border-left-color: #4caf50;
}

.news-card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.news-time {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
}

.news-currency {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #888;
}

.news-event-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ddd;
    line-height: 1.4;
    margin-bottom: 12px;
}

.news-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px;
    border-radius: 8px;
}

.news-val-item {
    text-align: center;
}

.news-val-label {
    display: block;
    font-size: 0.6rem;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.news-val-num {
    font-size: 0.75rem;
    font-weight: 700;
    color: #bbb;
}

.news-importance {
    margin-top: 10px;
    font-size: 0.7rem;
    color: #ffa000;
    letter-spacing: 2px;
}

.news-update-status {
    margin-top: 20px;
    text-align: center;
    font-size: 0.65rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Calculator Toggle Button (Orange/Amber) ── */
.calc-toggle-btn {
    width: 100%;
    background: rgba(70, 10, 18, 0.4);
    border: 1px solid rgba(255, 160, 0, 0.25);
    color: #ffa000;
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
    text-align: left;
    margin-top: 10px;
    margin-bottom: 5px;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.calc-toggle-btn:hover,
.calc-toggle-btn.active {
    background: rgba(255, 160, 0, 0.1);
    border-color: rgba(255, 160, 0, 0.5);
}

.calc-panel {
    background: rgba(50, 6, 12, 0.45);
    border: 1px solid rgba(80, 12, 20, 0.45);
    border-radius: 18px;
    padding: 18px;
    margin-top: 5px;
}

.calc-section-title {
    font-size: 0.8rem;
    font-weight: 800;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 20px 0 12px 0;
}

/* Inputs Grid */
.calc-inputs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.input-group label {
    display: block;
    font-size: 0.7rem;
    color: #aaa;
    margin-bottom: 6px;
    font-weight: 600;
}

.input-group input {
    width: 100%;
    background: rgba(80, 12, 20, 0.45);
    border: 1px solid rgba(201, 162, 39, 0.18);
    border-radius: 10px;
    color: #fff;
    padding: 10px;
    font-size: 0.9rem;
    outline: none;
}

.input-group input:focus {
    border-color: #ffa000;
}

/* Stats Cards */
.calc-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 18px;
}

.stat-card {
    background: rgba(70, 10, 18, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.6rem;
    color: #888;
    margin-bottom: 4px;
}

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

.stat-card.warning .stat-value {
    color: #ff9800;
}

.stat-card.danger .stat-value {
    color: #f44336;
}

.stat-value.highlight {
    color: #d4af37;
    font-size: 1.2rem;
}

/* Table Styling */
.calc-table-wrapper {
    overflow-x: auto;
}

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

.calc-table th {
    text-align: left;
    color: #666;
    padding: 8px;
    border-bottom: 1px solid rgba(80, 12, 20, 0.45);
}

.calc-table td {
    padding: 10px 8px;
    border-bottom: 1px solid rgba(60, 8, 14, 0.5);
}

/* Simulation & Alerts */
.calc-alert {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
    padding: 12px;
    border-radius: 10px;
    font-size: 0.8rem;
    margin-top: 15px;
    text-align: center;
    border-left: 3px solid #f44336;
}

.simulation-controls {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.sim-btn {
    background: #ffa000;
    color: #000;
    border: none;
    border-radius: 10px;
    padding: 10px 15px;
    font-weight: 800;
    font-size: 0.8rem;
    cursor: pointer;
}

.sim-results {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.sim-chip {
    background: rgba(80, 12, 20, 0.45);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: #ccc;
}

.sim-chip span {
    color: #ffa000;
    font-weight: 700;
}

.chart-container {
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 10px;
}

/* ── Assets Toggle Button (Blue/Purple Accent) ── */
.assets-toggle-btn {
    width: 100%;
    background: rgba(70, 10, 18, 0.4);
    border: 1px solid rgba(130, 80, 255, 0.25);
    color: #9d80ff;
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
    text-align: left;
    margin-top: 5px;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.assets-toggle-btn:hover,
.assets-toggle-btn.active {
    background: rgba(130, 80, 255, 0.1);
    border-color: rgba(130, 80, 255, 0.5);
}

.assets-panel {
    margin-top: 10px;
}

.assets-toggle-btn .dropdown-arrow,
.education-toggle-btn .dropdown-arrow,
.indicators-toggle-btn .dropdown-arrow {
    transition: transform 0.3s ease;
    font-size: 0.7rem;
    margin-left: 10px;
    opacity: 0.8;
    display: inline-block;
}

.assets-toggle-btn.active .dropdown-arrow,
.education-toggle-btn.active .dropdown-arrow,
.indicators-toggle-btn.active .dropdown-arrow {
    transform: rotate(180deg);
}

.lesson-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ── Lesson Card ── */
.lesson-card {
    background: rgba(80, 12, 20, 0.45);
    border: 1px solid rgba(201, 162, 39, 0.12);
    border-radius: 16px;
    padding: 14px;
    display: flex;
    gap: 14px;
    align-items: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.lesson-card:hover {
    background: rgba(201, 162, 39, 0.12);
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-1px);
}

.lesson-card-icon {
    font-size: 2rem;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(255, 215, 0, 0.07);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lesson-card-info {
    flex: 1;
}

.lesson-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.lesson-card-desc {
    font-size: 0.75rem;
    color: #888;
    line-height: 1.4;
}

.lesson-card-arrow {
    color: #FFD700;
    font-size: 1rem;
    flex-shrink: 0;
}

/* ── Lesson Detail Modal ── */
.lesson-detail-card {
    max-height: 85vh;
    overflow-y: auto;
}

.lesson-detail-body {
    font-size: 0.85rem;
    color: #ccc;
    line-height: 1.7;
    white-space: pre-wrap;
    margin-top: 12px;
}

.lesson-detail-body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 15px auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* ── Education Sub-Tabs ── */
.edu-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.edu-tab {
    flex: 1;
    padding: 10px 6px;
    border-radius: 12px;
    border: 1px solid rgba(201, 162, 39, 0.18);
    background: rgba(70, 10, 18, 0.4);
    color: #aaa;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.edu-tab.active {
    background: rgba(0, 200, 130, 0.12);
    border-color: rgba(0, 200, 130, 0.45);
    color: #d4af37;
}

/* ── Book Card ── */
.book-card {
    background: rgba(70, 10, 18, 0.4);
    border: 1px solid rgba(0, 160, 220, 0.18);
    border-radius: 16px;
    padding: 14px;
    display: flex;
    gap: 12px;
    align-items: center;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.book-card:hover {
    background: rgba(0, 160, 220, 0.08);
    border-color: rgba(0, 160, 220, 0.4);
    transform: translateY(-1px);
}

.book-card-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: rgba(0, 160, 220, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-card-info {
    flex: 1;
    min-width: 0;
}

.book-card-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.book-card-size {
    font-size: 0.7rem;
    color: #666;
}

.book-card-arrow {
    color: #00aadd;
    font-size: 1rem;
    flex-shrink: 0;
}

/* ── Indicators Toggle Button (Standard Style) ── */
.indicators-toggle-btn {
    width: 100%;
    background: rgba(70, 10, 18, 0.4);
    border: 1px solid rgba(201, 162, 39, 0.18);
    color: #fff;
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
    text-align: left;
    margin-top: 10px;
    margin-bottom: 5px;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    text-transform: uppercase;
}

.indicators-toggle-btn .dropdown-arrow {
    font-size: 0.7rem;
    opacity: 0.8;
}

.indicators-toggle-btn:hover,
.indicators-toggle-btn.active {
    background: rgba(201, 162, 39, 0.12);
    border-color: rgba(255, 215, 0, 0.3);
}

.indicators-toggle-btn.active {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.5);
    color: #ffd700;
}

.indicators-toggle-btn.active .dropdown-arrow {
    transform: rotate(180deg);
}

.indicators-panel {
    margin-top: 5px;
}

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

.indicators-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ── Indicator Card (Matches Lesson Card) ── */
.indicator-card {
    background: rgba(80, 12, 20, 0.45);
    border: 1px solid rgba(201, 162, 39, 0.12);
    border-radius: 16px;
    padding: 14px;
    display: flex;
    gap: 14px;
    align-items: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.indicator-card:hover {
    background: rgba(201, 162, 39, 0.12);
    border-color: rgba(0, 220, 150, 0.3);
    transform: translateY(-1px);
}

.indicator-card-info {
    flex: 1;
}

.indicator-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.indicator-card-desc {
    font-size: 0.8rem;
    color: #999;
    line-height: 1.4;
}

.indicator-card-arrow {
    color: #d4af37;
    font-size: 1.2rem;
    opacity: 0.6;
}

.indicator-card-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(0, 220, 150, 0.07);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lesson-detail-body {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #e0e0e0;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin-top: 15px;
}

.lesson-detail-body b {
    color: #FFD700;
    font-weight: 700;
}

.signal-no-signal {
    margin: 14px 0 16px;
    padding: 16px 15px;
    border-radius: 14px;
    background: rgba(255, 176, 32, 0.08);
    border: 1px solid rgba(255, 176, 32, 0.24);
    text-align: center;
}
.signal-no-signal-title {
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 7px;
}
.signal-no-signal-text {
    font-size: 0.82rem;
    line-height: 1.45;
    opacity: 0.88;
}


/* === BAU red-gold theme polish (2026-10-01) === */
body {
    background: radial-gradient(ellipse at 50% -10%, #5a101c 0%, #1a0508 40%, #0a0204 100%) !important;
}
.card, .stat-card, .safe-bet-card, .signal-card,
.calc-table-wrapper, .news-panel, .indicators-panel {
    border: 1px solid rgba(201, 162, 39, 0.22) !important;
    box-shadow: 0 0 24px rgba(139, 21, 40, 0.22) !important;
}


/* === iOS liquid glass buttons (clear glass + strong edge) === */
.main-get-signal-btn,
.btn-primary,
.education-toggle-btn,
.news-toggle-btn,
.indicators-toggle-btn,
.calc-toggle-btn,
.category-toggle-btn,
.assets-toggle-btn,
.lang-toggle-btn,
.btn-footer-repeat,
.btn-footer-back,
.tf-btn,
.edu-tab,
.sim-chip {
    background: rgba(255, 255, 255, 0.07) !important;
    backdrop-filter: blur(20px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(140%) !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    border-top-color: rgba(255, 255, 255, 0.42) !important;
    border-bottom-color: rgba(201, 162, 39, 0.22) !important;
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.28),
        0 1px 0 rgba(255, 255, 255, 0.22) inset,
        0 -1px 0 rgba(0, 0, 0, 0.12) inset !important;
    color: rgba(255, 255, 255, 0.95) !important;
    border-radius: 16px !important;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease !important;
}

.main-get-signal-btn,
.btn-primary {
    background: rgba(201, 162, 39, 0.12) !important;
    border: 1px solid rgba(232, 212, 139, 0.45) !important;
    border-top-color: rgba(255, 255, 255, 0.5) !important;
    color: #f5efd8 !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em;
    box-shadow:
        0 8px 26px rgba(0, 0, 0, 0.3),
        0 1px 0 rgba(255, 255, 255, 0.25) inset,
        0 0 16px rgba(201, 162, 39, 0.1) !important;
}

.main-get-signal-btn:active,
.btn-primary:active,
.education-toggle-btn:active,
.news-toggle-btn:active,
.indicators-toggle-btn:active,
.calc-toggle-btn:active,
.category-toggle-btn:active,
.assets-toggle-btn:active,
.lang-toggle-btn:active,
.btn-footer-repeat:active,
.btn-footer-back:active,
.tf-btn:active,
.edu-tab:active {
    transform: scale(0.98) !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.tf-btn.active,
.edu-tab.active,
.education-toggle-btn.active {
    background: rgba(201, 162, 39, 0.14) !important;
    border-color: rgba(232, 212, 139, 0.5) !important;
    border-top-color: rgba(255, 255, 255, 0.45) !important;
    color: #e8d48b !important;
    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.25),
        0 1px 0 rgba(255, 255, 255, 0.2) inset !important;
}

.tf-btn {
    border-radius: 10px !important;
    padding: 8px 4px !important;
}
