@keyframes flashUp {
    0%   { color: #00ff88; text-shadow: 0 0 8px #00ff88; }
    100% { color: #FFD700; text-shadow: none; }
}
@keyframes flashDown {
    0%   { color: #ff4d4d; text-shadow: 0 0 8px #ff4d4d; }
    100% { color: #FFD700; text-shadow: none; }
}
.price-flash-up   { animation: flashUp   0.8s ease-out forwards; }
.price-flash-down { animation: flashDown 0.8s ease-out forwards; }

:root {
    --bg-dark: #0a0b10;
    --card-bg: rgba(255, 255, 255, 0.05);
    --accent-blue: #00d2ff;
    --accent-purple: #9d50bb;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --success: #00ff88;
    --danger: #ff4d4d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

html {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    background: transparent;
    color: #ffffff;
    overflow-x: hidden;
    max-width: 100vw;
    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: 4px;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 110px);
}

.hidden {
    display: none !important;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    gap: 8px;
}

.header-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.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(255, 255, 255, 0.05);
    color: #ccc;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.1);
    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(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    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(255, 255, 255, 0.05);
    transition: background 0.2s, color 0.2s;
}

.lang-item:last-child {
    border-bottom: none;
}

.lang-item:hover,
.lang-item.active {
    background: rgba(255, 255, 255, 0.05);
    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(255, 255, 255, 0.05);
    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(255, 255, 255, 0.05);
    transition: background 0.2s, color 0.2s;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:active,
.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.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(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    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(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    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(255, 255, 255, 0.08);
}

.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;
    margin-right: -6px;
}

.asset-icon-wrapper.single {
    width: 26px;
}

.asset-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.asset-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
}

.asset-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.asset-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #E2E8F0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.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;
    flex-shrink: 0;
    max-width: 110px;
    min-width: 70px;
}

.asset-price {
    font-size: 0.88rem;
    font-weight: 700;
    color: #FFD700;
    white-space: nowrap;
    flex-shrink: 0;
}

.asset-change {
    font-size: 0.7rem;
}

.asset-change.up {
    color: #00FF88;
}

.asset-change.down {
    color: #FF4444;
}

.asset-payout {
    font-size: 0.75rem;
    font-weight: 700;
    color: #C084FC;
    margin-left: 4px;
}

.asset-winrate {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 6px;
    flex-shrink: 0;
}
.wr-good  { background: rgba(0,230,118,0.18); color: #00e676; }
.wr-ok    { background: rgba(255,215,0,0.15);  color: #FFD700; }
.wr-bad   { background: rgba(255,68,68,0.15);  color: #FF4444; }

.asset-item {
    position: relative;
}

.fav-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    background: none;
    border: none;
    font-size: 1.1rem;
    color: #444;
    cursor: pointer;
    padding: 2px 4px;
    line-height: 1;
    transition: color 0.2s, transform 0.15s;
    z-index: 2;
}
.fav-btn:active { transform: scale(1.3); }
.fav-btn.fav-active { color: #FFD700; }

/* Animations */
@keyframes pulse-green {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px #00FF88);
    }

    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 15px #00FF88);
    }

    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px #00FF88);
    }
}

@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: #00FF88;
    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 4px;
}

#asset-search {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 12px 15px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: 0.3s;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

#asset-search:focus {
    border-color: #FFD700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

/* ── Signal Auto-Flow Scanning View ── */
.signal-auto-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px 16px;
    gap: 16px;
}
.signal-auto-flow.hidden { display: none; }

/* When auto-flow is active — hide expiration picker and init button via CSS */
.signal-card.auto-flow-mode .timeframe-selection { display: none !important; }
.signal-card.auto-flow-mode #signal-init-view { display: none !important; }

.signal-scan-rings {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.scan-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(0, 220, 150, 0.5);
    animation: scanPulse 2s ease-out infinite;
}
.scan-ring-1 { width: 80px; height: 80px; animation-delay: 0s; }
.scan-ring-2 { width: 56px; height: 56px; animation-delay: 0.5s; }
@keyframes scanPulse {
    0%   { transform: scale(0.6); opacity: 0.8; }
    100% { transform: scale(1.2); opacity: 0; }
}
.scan-icon {
    font-size: 1.8rem;
    z-index: 1;
    animation: scanBounce 1.5s ease-in-out infinite;
}
@keyframes scanBounce {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.15); }
}
.signal-scan-status {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
}
.signal-exp-reveal {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0,220,150,0.08);
    border: 1px solid rgba(0,220,150,0.3);
    border-radius: 12px;
    padding: 12px 24px;
    animation: expFadeIn 0.5s ease-out;
}
.signal-exp-reveal.hidden { display: none; }
@keyframes expFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.signal-exp-label {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.signal-exp-val {
    font-size: 1.6rem;
    font-weight: 900;
    color: #00dc96;
    letter-spacing: 0.05em;
}

/* Main Action Button */
.main-get-signal-btn {
    display: block;
    width: calc(100% - 24px);
    margin: auto 12px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1.5px solid rgba(255,255,255,0.15);
    color: #FFD700;
    padding: 14px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform 0.15s, opacity 0.15s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.main-get-signal-btn:active {
    transform: scale(0.97);
    opacity: 0.9;
}

.main-get-signal-btn.analyzing {
    cursor: not-allowed;
    pointer-events: none;
    animation: btn-analyzing-pulse 1s ease-in-out infinite;
    color: #aaa;
    border-color: rgba(255,255,255,0.1);
}

@keyframes btn-analyzing-pulse {
    0%   { opacity: 1;    transform: scale(1); }
    50%  { opacity: 0.55; transform: scale(0.98); }
    100% { opacity: 1;    transform: scale(1); }
}

/* ── Asset Ticker ─────────────────────────────────────────────── */
.asset-ticker-wrap {
    overflow: hidden;
    width: 100%;
    margin: 4px 0 4px;
    border-top: 1px solid rgba(255,255,255,0.07);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    background: rgba(0,0,0,0.2);
    height: 58px;
    display: flex;
    align-items: center;
}

.asset-ticker {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    gap: 0;
    animation: ticker-scroll 120s linear infinite;
    will-change: transform;
    cursor: pointer;
    min-width: max-content;
}

.asset-ticker:hover {
    animation-play-state: paused;
}

@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    white-space: nowrap;
    flex-shrink: 0;
    margin: 4px 8px;
    border-radius: 10px;
    border: 1.5px solid #9d50bb;
    cursor: pointer;
    animation: ticker-glow 2s ease-in-out infinite;
}

@keyframes ticker-glow {
    0%, 100% {
        border-color: #7a28b0;
        box-shadow: 0 0 4px rgba(157, 80, 187, 0.5),
                    inset 0 0 4px rgba(157, 80, 187, 0.08);
    }
    50% {
        border-color: #e040fb;
        box-shadow: 0 0 10px rgba(224, 64, 251, 0.9),
                    0 0 20px rgba(157, 80, 187, 0.5),
                    inset 0 0 8px rgba(224, 64, 251, 0.12);
    }
}

.ticker-item:hover {
    border-color: #ff80ff;
    box-shadow: 0 0 14px rgba(255, 128, 255, 1), 0 0 28px rgba(157, 80, 187, 0.6);
}

.ticker-icon-wrap {
    display: flex;
    position: relative;
    flex-shrink: 0;
    width: 28px;
    height: 18px;
}

.ticker-icon-wrap.single {
    width: 20px;
    justify-content: center;
    align-items: center;
}

.ticker-asset-img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(0,0,0,0.3);
    position: absolute;
    flex-shrink: 0;
}

.ticker-icon-wrap.multi .ticker-asset-img:first-child { left: 0; top: 0; z-index: 2; }
.ticker-icon-wrap.multi .ticker-asset-img:last-child  { left: 10px; top: 0; z-index: 1; }
.ticker-icon-wrap.single .ticker-asset-img.solo       { position: static; }

.ticker-name {
    font-size: 0.68rem;
    font-weight: 700;
    color: #E2E8F0;
}

.ticker-price {
    font-size: 0.68rem;
    color: #FFD700;
    font-weight: 600;
}

.ticker-payout {
    font-size: 0.65rem;
    color: #00e676;
    font-weight: 700;
}

/* 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: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: none !important;
    background: transparent;
}

.signal-asset-icon-wrapper .asset-icon.flag-icon {
    border-radius: 6px;
    height: 38px;
    width: 56px;
    object-fit: cover;
}

.signal-asset-icon-wrapper .asset-icon.local-icon {
    border-radius: 14px;
    width: 72px;
    height: 72px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.07);
    padding: 6px;
}

.signal-asset-icon {
    width: 64px;
    height: 64px;
    object-fit: cover;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
    border-radius: 50%;
    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: 80px;
    height: 80px;
}

.signal-asset-icon-wrapper.single .signal-asset-icon {
    position: static;
}

.signal-asset-icon-wrapper.single .asset-icon {
    width: 80px !important;
    height: 80px !important;
    object-fit: contain !important;
    border-radius: 50%;
}

.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(255, 255, 255, 0.1);
    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(255, 255, 255, 0.05);
    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;
    flex-shrink: 0;
    max-width: 110px;
    min-width: 70px;
}

.asset-price {
    font-weight: 800;
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.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(255, 255, 255, 0.1);
    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;
    overflow: hidden;
}

.modal-bg-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border-radius: 24px;
    z-index: 0;
    pointer-events: none;
    opacity: 0.45;
}

.signal-card > *:not(.modal-bg-canvas) {
    position: relative;
    z-index: 1;
}

.signal-meta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: -8px 0 12px;
}

.signal-meta-price {
    font-size: 1rem;
    font-weight: 700;
    color: #FFD700;
}

.signal-meta-payout {
    font-size: 1rem;
    font-weight: 700;
    color: #C084FC;
}

/* 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(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    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 {
    position: relative;
    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;
    overflow: hidden;
}

.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;
}

.sig-canv {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    opacity: 0.35;
    pointer-events: none;
}

#signal-direction-text {
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.95);
    paint-order: stroke fill;
    animation: direction-shimmer 1.6s ease-in-out infinite;
}

@keyframes direction-shimmer {
    0%, 100% {
        -webkit-text-stroke-color: rgba(255, 255, 255, 0.95);
        opacity: 1;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.6), 0 0 20px rgba(255, 255, 255, 0.3);
    }
    50% {
        -webkit-text-stroke-color: rgba(255, 255, 255, 0.3);
        opacity: 0.75;
        text-shadow: none;
    }
}

.asset-name-large {
    color: #fff;
    letter-spacing: -0.5px;
}

.signal-info-rows {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 25px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 18px;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.01);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: #C084FC;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.info-value {
    color: #FFD700;
    font-weight: 800;
}

.info-row.highlight {
    background: rgba(255, 255, 255, 0.02);
}

.timer-progress-container {
    height: 5px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 30px;
}

.timer-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d2ff, #9d50bb);
    width: 100%;
    transition: width 1s linear;
}

.signal-trade-btns {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.btn-trade-call,
.btn-trade-put {
    flex: 1;
    padding: 16px;
    border-radius: 14px;
    font-weight: 900;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.18s ease;
    letter-spacing: 0.5px;
}

.btn-trade-call {
    background: linear-gradient(135deg, #00c851, #007e33);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0,200,81,0.35);
}

.btn-trade-put {
    background: linear-gradient(135deg, #ff3547, #cc0000);
    color: #fff;
    box-shadow: 0 4px 16px rgba(255,53,71,0.35);
}

.btn-trade-call:active { transform: scale(0.96); opacity: 0.9; }
.btn-trade-put:active  { transform: scale(0.96); opacity: 0.9; }

/* === Signal Analysis Block === */
.signal-analysis {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 16px;
    padding: 13px 15px;
    margin-bottom: 14px;
}
.sig-pressure-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 7px;
    font-size: 0.86rem;
    font-weight: 700;
}
.bull-side { color: #00e676; }
.bear-side { color: #ff4d4d; }
.pressure-label {
    color: #999;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}
.pressure-track {
    height: 6px;
    background: rgba(255, 60, 60, 0.35);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 13px;
}
.pressure-bull-fill {
    height: 100%;
    background: linear-gradient(90deg, #00c853, #00e676);
    border-radius: 3px;
    transition: width 0.9s cubic-bezier(.4,0,.2,1);
}
.sig-inds {
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 12px;
}
.sig-ind-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}
.sig-ind-val {
    font-size: 1.05rem;
    font-weight: 800;
    color: #FFD700;
    line-height: 1;
}
.sig-ind-key {
    font-size: 0.62rem;
    color: #C084FC;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}
.sig-trend-bars {
    display: flex;
    gap: 3px;
    align-items: flex-end;
    height: 22px;
}
.sig-trend-bars .tbar {
    display: inline-block;
    width: 6px;
    background: rgba(255,255,255,0.13);
    border-radius: 2px;
    transition: background 0.5s ease, height 0.4s ease;
}
.sig-trend-bars .tbar:nth-child(1) { height: 8px; }
.sig-trend-bars .tbar:nth-child(2) { height: 12px; }
.sig-trend-bars .tbar:nth-child(3) { height: 16px; }
.sig-trend-bars .tbar:nth-child(4) { height: 20px; }
.sig-trend-bars .tbar:nth-child(5) { height: 22px; }
.sig-trend-bars .tbar.active { background: #00e676; }
.sig-trend-bars.down .tbar.active { background: #ff4d4d; }
.sig-confirms {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
}
.sig-cf {
    font-size: 0.68rem;
    font-weight: 700;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 20px;
    padding: 3px 10px;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
/* ================================= */

.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;
}

.market-closed-block {
    text-align: center;
    padding: 24px 16px;
}
.market-closed-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
}
.market-closed-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #EF4444;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.market-closed-sub {
    font-size: 0.85rem;
    color: #94A3B8;
}

.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(255, 255, 255, 0.1);
    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 !important;
    top: 20px !important;
    right: 20px !important;
    left: auto !important;
    background: none;
    border: none;
    color: #ff4444;
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    opacity: 0.85;
    z-index: 200 !important;
    pointer-events: all !important;
}
.btn-close:active {
    opacity: 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(255, 255, 255, 0.04);
    border: 1px solid rgba(0, 220, 150, 0.25);
    color: #00dc96;
    padding: 13px 18px;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
    text-align: left;
    margin-top: 6px;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-height: 48px;
}

.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 (Red) ── */
.news-toggle-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 60, 60, 0.25);
    color: #ff5555;
    padding: 13px 18px;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
    text-align: left;
    margin-top: 6px;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
}

.news-toggle-btn:hover,
.news-toggle-btn.active {
    background: rgba(255, 60, 60, 0.1);
    border-color: rgba(255, 60, 60, 0.5);
}

.news-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    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(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    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(255, 255, 255, 0.04);
    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(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 160, 0, 0.25);
    color: #ffa000;
    padding: 13px 18px;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
    text-align: left;
    margin-top: 6px;
    margin-bottom: 0;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
}

.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(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    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(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    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(255, 255, 255, 0.04);
    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: #00dc96;
    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(255, 255, 255, 0.05);
}

.calc-table td {
    padding: 10px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

/* 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(255, 255, 255, 0.05);
    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(255, 255, 255, 0.04);
    border: 1px solid rgba(130, 80, 255, 0.25);
    color: #9d80ff;
    padding: 13px 18px;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
    text-align: left;
    margin-top: 4px;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-height: 48px;
}

.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(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 14px;
    display: flex;
    gap: 14px;
    align-items: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.lesson-card:hover {
    background: rgba(255, 255, 255, 0.08);
    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(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    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: #00dc96;
}

/* ── Book Card ── */
.book-card {
    background: rgba(255, 255, 255, 0.04);
    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(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 13px 18px;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
    text-align: left;
    margin-top: 6px;
    margin-bottom: 0;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    text-transform: uppercase;
    min-height: 48px;
}

.indicators-toggle-btn .dropdown-arrow {
    font-size: 0.7rem;
    opacity: 0.8;
}

.indicators-toggle-btn:hover,
.indicators-toggle-btn.active {
    background: rgba(255, 255, 255, 0.08);
    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(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 14px;
    display: flex;
    gap: 14px;
    align-items: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.indicator-card:hover {
    background: rgba(255, 255, 255, 0.08);
    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: #00dc96;
    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;
}