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

body {
    background-color: #000000;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Фон: классический официальный синий с мелкозернистой текстурой - В 2 РАЗА ТЕМНЕЕ */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: 
        /* Зернистая текстура (film grain) - очень тонкая */
        url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E"),
        /* Мягкие световые акценты - классический синий (темнее) */
        radial-gradient(ellipse 3000px 2500px at 30% 40%, rgba(15, 30, 60, 0.12) 0%, rgba(12, 25, 50, 0.08) 50%, transparent 75%),
        radial-gradient(ellipse 2800px 2200px at 70% 60%, rgba(20, 35, 65, 0.1) 0%, rgba(15, 30, 55, 0.06) 55%, transparent 80%),
        /* Базовый градиент: классический темно-синий (официальный) - В 2 РАЗА ТЕМНЕЕ */
        radial-gradient(ellipse at 50% 50%, #050a14 0%, #060d17 20%, #0a101a 40%, #0d121f 60%, #0f1525 80%, #121828 100%),
        linear-gradient(135deg, #050a14 0%, #060d17 15%, #0a101a 30%, #0d121f 50%, #0f1525 70%, #121828 100%);
    background-size: 
        100px 100px,
        100% 100%,
        100% 100%,
        100% 100%,
        100% 100%;
    background-position: 
        0 0,
        center center,
        center center,
        center center,
        0 0;
    background-attachment: fixed, fixed, fixed, fixed, fixed;
    background-repeat: repeat, no-repeat, no-repeat, no-repeat, no-repeat;
    z-index: 0;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
}

.page {
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.content {
    min-height: 100vh;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: calc(50vh - 200px - 1cm);
}

/* Crypto 101 Header */
.crypto-101-wrapper {
    margin: 0;
    padding: 20px;
    font-family: 'Space Grotesk', 'Rajdhani', sans-serif;
    background-color: transparent;
    text-align: center;
    opacity: 1 !important;
    visibility: visible !important;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crypto-101-container {
    display: inline-block;
    opacity: 1 !important;
    visibility: visible !important;
    animation: none !important;
    transform: none !important;
    position: static !important;
}

.crypto-101-wrapper h1 {
    font-size: 175px;
    color: #ffffff !important;
    opacity: 1 !important;
    margin: 0;
    font-family: 'Space Grotesk', 'Rajdhani', sans-serif;
    font-weight: 700;
    text-align: center;
    letter-spacing: 3px;
    text-transform: none;
    text-shadow: 0 0 30px rgba(100, 150, 255, 0.4), 0 0 60px rgba(100, 150, 255, 0.2);
    line-height: 1.2;
}

.crypto-101-wrapper .italic {
    font-style: italic;
}

@keyframes squareMove101 {
    0% {
        transform: translate(0, 0);
        opacity: 1;
    }
    25% {
        transform: translate(38px, 0);
        opacity: 1;
    }
    50% {
        transform: translate(38px, 38px);
        opacity: 1;
    }
    75% {
        transform: translate(0, 38px);
        opacity: 1;
    }
    100% {
        transform: translate(0, 0);
        opacity: 1;
    }
}

/* Crypto Basics Text Block - 10cm below title */
.crypto-basics-wrapper {
    background: transparent;
    margin: 0;
    padding: 20px;
    margin-top: 10cm;
    font-family: 'Space Grotesk', 'Rajdhani', sans-serif;
    opacity: 1 !important;
    visibility: visible !important;
    width: 100%;
    display: flex;
    justify-content: center;
}

.overlay-text {
    font-size: 67px;
    color: #FFFFFF !important;
    font-weight: 700;
    font-family: 'Space Grotesk', 'Rajdhani', sans-serif;
    line-height: 1.4;
    text-align: left;
    max-width: 80%;
    opacity: 1 !important;
    visibility: visible !important;
    animation: pulseGlowSoft 10s ease-in-out infinite;
}

@keyframes pulseGlowSoft {
    0% {
        text-shadow: 0 0 4px rgba(140, 216, 226, 0.3), 0 0 6px rgba(140, 216, 226, 0.2);
        opacity: 1;
        color: #FFFFFF;
    }
    50% {
        text-shadow: 0 0 8px rgba(140, 216, 226, 0.5), 0 0 12px rgba(140, 216, 226, 0.4), 0 0 16px rgba(140, 216, 226, 0.3);
        opacity: 1;
        color: #FFFFFF;
    }
    100% {
        text-shadow: 0 0 4px rgba(140, 216, 226, 0.3), 0 0 6px rgba(140, 216, 226, 0.2);
        opacity: 1;
        color: #FFFFFF;
    }
}

/* ============================================
   UNIQUE CRYPTO LEARNING BACKGROUND ELEMENTS
   Completely new, unique effects for Crypto Basics
   ============================================ */

.crypto-learning-elements {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Floating geometric shapes with crypto symbols */
.floating-shape {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 3px solid rgba(100, 150, 255, 0.4);
    background: rgba(10, 20, 40, 0.15);
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
    animation: shapeFloat 30s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(100, 150, 255, 0.3), inset 0 0 20px rgba(100, 150, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.shape-content {
    font-size: 40px;
    color: rgba(100, 150, 255, 0.6);
    font-weight: 700;
    animation: shapeContentPulse 4s ease-in-out infinite;
}

.floating-shape.shape-1 {
    top: 10%;
    left: 8%;
    animation-delay: 0s;
}

.floating-shape.shape-2 {
    top: 20%;
    right: 10%;
    animation-delay: 10s;
}

.floating-shape.shape-3 {
    bottom: 25%;
    left: 12%;
    animation-delay: 20s;
}

@keyframes shapeFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.4;
    }
    25% {
        transform: translate(40px, -30px) rotate(90deg) scale(1.1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-30px, 40px) rotate(180deg) scale(0.9);
        opacity: 0.5;
    }
    75% {
        transform: translate(35px, 35px) rotate(270deg) scale(1.05);
        opacity: 0.55;
    }
}

@keyframes shapeContentPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* Data waves (knowledge flow) */
.data-wave {
    position: absolute;
    width: 300px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(100, 150, 255, 0.5), transparent);
    animation: waveFlow 20s linear infinite;
    box-shadow: 0 0 10px rgba(100, 150, 255, 0.4);
}

.data-wave::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(100, 150, 255, 0.3), transparent);
    animation: waveGlow 3s ease-in-out infinite;
}

.data-wave.wave-1 {
    top: 30%;
    left: -300px;
    animation-delay: 0s;
    transform: rotate(15deg);
}

.data-wave.wave-2 {
    top: 60%;
    right: -300px;
    animation-delay: 7s;
    transform: rotate(-20deg);
}

.data-wave.wave-3 {
    bottom: 30%;
    left: -300px;
    animation-delay: 14s;
    transform: rotate(10deg);
}

@keyframes waveFlow {
    0% {
        transform: translateX(0) rotate(15deg);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateX(calc(100vw + 300px)) rotate(15deg);
        opacity: 0;
    }
}

@keyframes waveGlow {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.7;
    }
}

/* Knowledge network nodes */
.knowledge-node {
    position: absolute;
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, rgba(100, 150, 255, 0.8), rgba(100, 150, 255, 0.2));
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(100, 150, 255, 0.6), 0 0 40px rgba(100, 150, 255, 0.3);
    animation: nodePulse 3s ease-in-out infinite;
}

.knowledge-node.node-1 {
    top: 25%;
    left: 20%;
    animation-delay: 0s;
}

.knowledge-node.node-2 {
    top: 45%;
    right: 25%;
    animation-delay: 0.6s;
}

.knowledge-node.node-3 {
    bottom: 35%;
    left: 30%;
    animation-delay: 1.2s;
}

.knowledge-node.node-4 {
    top: 60%;
    left: 15%;
    animation-delay: 1.8s;
}

.knowledge-node.node-5 {
    bottom: 25%;
    right: 20%;
    animation-delay: 2.4s;
}

@keyframes nodePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

/* Connection lines between nodes */
.knowledge-connection {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(100, 150, 255, 0.3), transparent);
    animation: connectionPulse 4s ease-in-out infinite;
}

.knowledge-connection.conn-1 {
    top: 25%;
    left: 20%;
    width: 200px;
    transform: rotate(25deg);
    animation-delay: 0s;
}

.knowledge-connection.conn-2 {
    top: 45%;
    right: 25%;
    width: 180px;
    transform: rotate(-30deg);
    animation-delay: 1.3s;
}

.knowledge-connection.conn-3 {
    bottom: 30%;
    left: 20%;
    width: 220px;
    transform: rotate(15deg);
    animation-delay: 2.6s;
}

@keyframes connectionPulse {
    0%, 100% {
        opacity: 0.2;
    }
    50% {
        opacity: 0.5;
    }
}

/* Floating numbers and formulas */
.floating-number {
    position: absolute;
    font-size: 24px;
    color: rgba(100, 150, 255, 0.3);
    font-family: 'Space Grotesk', 'Rajdhani', monospace;
    font-weight: 700;
    animation: numberFloat 25s ease-in-out infinite;
    text-shadow: 0 0 8px rgba(100, 150, 255, 0.4);
}

.floating-number.num-1 {
    top: 35%;
    left: 5%;
    animation-delay: 0s;
}

.floating-number.num-2 {
    top: 55%;
    right: 8%;
    animation-delay: 8s;
}

.floating-number.num-3 {
    bottom: 40%;
    left: 8%;
    animation-delay: 16s;
}

@keyframes numberFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.3;
    }
    33% {
        transform: translate(25px, -20px) rotate(5deg);
        opacity: 0.4;
    }
    66% {
        transform: translate(-20px, 25px) rotate(-5deg);
        opacity: 0.35;
    }
}

/* Holographic crypto symbols */
.hologram-symbol {
    position: absolute;
    font-size: 18px;
    color: rgba(100, 150, 255, 0.25);
    font-family: 'Space Grotesk', 'Rajdhani', sans-serif;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: hologramFlicker 6s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(100, 150, 255, 0.5), 0 0 20px rgba(100, 150, 255, 0.3);
}

.hologram-symbol.holo-1 {
    top: 15%;
    right: 15%;
    animation-delay: 0s;
}

.hologram-symbol.holo-2 {
    bottom: 20%;
    right: 12%;
    animation-delay: 3s;
}

@keyframes hologramFlicker {
    0%, 100% {
        opacity: 0.25;
        transform: translateY(0);
    }
    25% {
        opacity: 0.4;
        transform: translateY(-5px);
    }
    50% {
        opacity: 0.3;
        transform: translateY(0);
    }
    75% {
        opacity: 0.35;
        transform: translateY(5px);
    }
}

/* Chat Widget - СИНХРОНИЗИРОВАНО С ГЛАВНОЙ СТРАНИЦЕЙ */
.chat-widget {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    top: auto !important;
    left: auto !important;
    z-index: 2147483647 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    will-change: auto !important;
    contain: none !important;
}

.chat-button {
    width: 62px !important;
    height: 62px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%) !important;
    border: 2px solid #3a3a3a !important;
    cursor: pointer !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    animation: chat-float 3s ease-in-out infinite !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

@keyframes chat-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.chat-button:hover {
    transform: scale(1.15) translateY(-5px) !important;
    box-shadow: 0 6px 25px rgba(255, 255, 255, 0.2) !important;
    border-color: #4a4a4a !important;
}

.chat-button:active {
    transform: scale(0.95) !important;
}

.chat-button svg {
    width: 31px !important;
    height: 31px !important;
    fill: #FFFFFF !important;
}

.chat-button::before {
    content: '';
    position: absolute;
    top: -5px;
    right: -5px;
    width: 12px;
    height: 12px;
    background: #888888;
    border-radius: 50%;
    border: 2px solid #1a1a1a;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.6;
    }
}

.chat-container {
    position: fixed !important;
    bottom: 90px !important;
    right: 20px !important;
    width: 420px !important;
    height: 600px !important;
    background: #1a1a1a !important;
    border: 1px solid #2a2a2a !important;
    border-radius: 15px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8) !important;
    display: none !important;
    flex-direction: column !important;
    overflow: hidden !important;
    animation: chat-slide-up 0.3s ease !important;
    z-index: 10001 !important;
    pointer-events: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
}

.chat-container.active {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

@keyframes chat-slide-up {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.chat-header {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    color: #cccccc;
    padding: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #3a3a3a;
}

.chat-header h3 {
    font-size: 1.3em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-header-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    background: #f59e0b;
    border-radius: 6px;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='black' stroke-width='2'/%3E%3Cline x1='5' y1='5' x2='19' y2='19' stroke='black' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center;
    mask-size: 14px 14px;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='black' stroke-width='2'/%3E%3Cline x1='5' y1='5' x2='19' y2='19' stroke='black' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center;
    -webkit-mask-size: 14px 14px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #888888;
    border-radius: 50%;
    animation: chat-pulse 2s infinite;
}

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

.close-chat {
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 26px;
    cursor: pointer;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.close-chat:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chat-subscription-section {
    padding: 15px 20px;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.chat-subscription-section.hidden {
    display: none;
}

.chat-timer-display {
    font-size: 20px;
    font-weight: 700;
    color: #FFFFFF;
    font-family: 'Raleway', sans-serif;
    letter-spacing: 2px;
    margin: 0;
    text-align: center;
    width: 100%;
}

/* Chat Expired Overlay - Black screen inside chat */
.chat-expired-overlay {
    pointer-events: none; /* Allow clicks to pass through to chat */
    position: absolute;
    inset: 0;
    background: #000000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 10;
    padding: 40px 20px 40px;
    padding-top: 127px;
}

.chat-expired-overlay.hidden {
    display: none;
}

.chat-expired-content {
    text-align: center;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 0 20px;
    pointer-events: auto !important; /* Allow clicks on payment buttons */
    position: relative;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin-top: 0;
}

.chat-expired-text {
    font-size: 22px;
    font-weight: 700;
    color: #FFFFFF;
    font-family: 'Raleway', sans-serif;
    margin-bottom: 40px;
    line-height: 1.5;
    text-align: center;
    width: 100%;
}

.chat-expired-btn {
    padding: 12px 28px;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Raleway', sans-serif;
    cursor: pointer;
    background: #2a2a2a;
    color: #FFFFFF;
    border: 1px solid #3a3a3a;
    transition: all 0.2s ease;
    width: 100%;
    max-width: 300px;
}

.chat-expired-btn:hover {
    background: #3a3a3a;
    border-color: #4a4a4a;
    transform: translateY(-2px);
}

.chat-expired-btn:active {
    transform: translateY(0);
}

.chat-expired-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.payment-method-buttons {
    display: flex;
    flex-direction: column;
    gap: 35px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    align-items: center;
    justify-content: center;
}

.payment-method-btn {
    padding: 12px 28px;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    font-weight: 700;
    pointer-events: auto !important;
    cursor: pointer !important;
    font-family: 'Raleway', sans-serif;
    cursor: pointer;
    pointer-events: auto !important;
    position: relative;
    z-index: 10004;
    background: #2a2a2a;
    color: #FFFFFF;
    border: 1px solid #3a3a3a;
    transition: all 0.2s ease;
    width: 100%;
}

.payment-method-btn:hover:not(:disabled) {
    background: #3a3a3a;
    border-color: #4a4a4a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.payment-method-btn:active:not(:disabled) {
    transform: translateY(0);
}

.payment-method-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.chat-messages {
    flex: 1;
    padding: 22px;
    overflow-y: auto;
    background: #0a0a0a;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    box-sizing: border-box;
}

.message {
    margin-bottom: 16px;
    display: flex !important;
    gap: 9px;
    animation: chat-fade-in 0.3s ease;
    align-items: flex-start;
    width: 100% !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
}

@keyframes chat-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.bot {
    flex-direction: row;
    justify-content: flex-start;
}

.message.user {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.message-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    background: transparent;
    border: none;
}

.message-content {
    max-width: 70% !important;
    min-width: 0;
    padding: 13px 17px;
    border-radius: 15px;
    line-height: 1.55;
    font-size: 14.5px;
    word-wrap: break-word;
    display: block !important;
    color: #cccccc;
    flex-shrink: 1;
    box-sizing: border-box;
}

.message.bot .message-content {
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-bottom-left-radius: 5px;
}

.message.user .message-content {
    background: #1a1a1a;
    border: 1px solid #3a3a3a;
    border-bottom-right-radius: 5px;
}

.quick-questions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.quick-question-btn {
    padding: 9px 15px;
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 20px;
    font-size: 12.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #888888;
    font-weight: 500;
}

.quick-question-btn:hover {
    background: #3a3a3a;
    color: #cccccc;
    border-color: #4a4a4a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05);
}

.quick-question-btn:active {
    transform: translateY(0);
}

.chat-input-container {
    pointer-events: auto !important;
    z-index: 10003 !important;
    position: relative !important;
    padding: 22px !important;
    background: #1a1a1a !important;
    border-top: 1px solid #3a3a3a !important;
    pointer-events: auto !important;
    z-index: 10002 !important;
    position: relative !important;
}

.chat-input-wrapper {
    display: flex !important;
    gap: 10px !important;
    pointer-events: auto !important;
    z-index: 10002 !important;
    position: relative !important;
}

.chat-input {
    flex: 1 !important;
    padding: 13px 17px !important;
    border: 2px solid #3a3a3a !important;
    border-radius: 25px !important;
    font-size: 14.5px !important;
    outline: none !important;
    background: #0a0a0a !important;
    color: #cccccc !important;
    transition: border-color 0.3s ease !important;
    pointer-events: auto !important;
    z-index: 10003 !important;
    position: relative !important;
    cursor: text !important;
}

.chat-input::placeholder {
    color: #666666;
}

.chat-input:focus {
    border-color: #5a5a5a;
}

.send-button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 2px solid #3a3a3a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.send-button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
    border-color: #4a4a4a;
}

.send-button:active {
    transform: scale(0.95);
}

.send-button svg {
    width: 21px;
    height: 21px;
    fill: #FFFFFF;
}

@media (max-width: 480px) {
    .chat-container {
        width: calc(100vw - 40px);
        height: calc(100vh - 120px);
    }
}

/* ============================================
   CRYPTOCURRENCY COURSE STYLES
   ============================================ */

.course-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 20px;
    color: white;
    font-family: 'Space Grotesk', 'Rajdhani', sans-serif;
    width: 100%;
    margin-top: 5cm;
    position: relative;
    z-index: 0; /* Base layer */
}

.course-title {
    color: white;
    text-align: center;
    margin-bottom: 40px;
    font-size: 67px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-family: 'Space Grotesk', 'Rajdhani', sans-serif;
    font-weight: 700;
    position: relative;
    z-index: 100; /* High z-index to ensure title stays above lesson items */
    pointer-events: none; /* Allow clicks to pass through to elements below */
}

.lesson-item {
    margin-bottom: 20px;
    background: transparent;
    border-radius: 12px;
    overflow: visible; /* Changed from hidden to allow content to be fully visible */
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.06);
    transition: box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    border: 2px solid white;
    position: relative;
    z-index: 1; /* Lower than title to prevent blocking */
    transform: none !important; /* Prevent any transform that could move the block */
    /* Prevent layout shifts when opening/closing */
    will-change: auto;
}

.lesson-item:hover {
    /* No transform at all - only visual effects to prevent blocking the title */
    transform: none !important;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(79, 195, 247, 0.3),
        0 0 40px rgba(33, 150, 243, 0.2);
    border-color: rgba(79, 195, 247, 0.4);
}

.lesson-header {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background: transparent;
    transition: background 0.3s ease;
}

.lesson-header:hover {
    background: rgba(255, 255, 255, 0.1);
}

.lesson-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.2em;
    margin-right: 20px;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.4);
}

.lesson-title-wrapper {
    flex: 1;
}

.lesson-title {
    font-size: 1.3em;
    color: white;
    font-weight: 600;
}

.lesson-badge {
    display: inline-block;
    background: #48bb78;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75em;
    margin-left: 10px;
    font-weight: bold;
}

.lesson-badge.paid {
    background: #ff6b9d;
}

.lesson-arrow {
    font-size: 1.5em;
    color: #667eea;
    transition: transform 0.3s ease;
}

.lesson-content {
    display: none;
    background: transparent;
    border-top: 2px solid white;
    /* Smooth transitions for better UX */
    transition: opacity 0.3s ease, max-height 0.3s ease;
    /* Allow content (videos, games) to be fully visible */
    overflow: visible;
    /* Ensure content doesn't break layout */
    box-sizing: border-box;
    /* Prevent content from being cut off */
    min-height: 0;
}

/* Allow inline styles to override */
.lesson-content[style*="display: block"],
.lesson-content.lesson-content-open,
.lesson-item.lesson-open .lesson-content {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.lesson-content-inner {
    padding: 30px;
    color: white;
    /* Ensure videos, games, and interactive content work properly */
    position: relative;
    /* Prevent content from being cut off */
    overflow: visible;
    /* Allow iframes and videos to display correctly */
    min-height: 100px;
}

.content-section {
    margin-bottom: 30px;
}

.content-section h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.3em;
    font-weight: bold;
    border-left: 4px solid rgba(255, 255, 255, 0.5);
    padding-left: 15px;
}

.content-section ul {
    list-style: none;
    padding-left: 0;
}

.content-section li {
    padding: 8px 0 8px 25px;
    position: relative;
    line-height: 1.6;
    color: white;
}

.content-section li:before {
    content: "▸";
    color: rgba(255, 255, 255, 0.7);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.video-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 15px;
}

.video-item {
    background: transparent;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid white;
}

.video-item h4 {
    font-weight: bold;
    color: white;
    margin-bottom: 10px;
}

.video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* Ensure videos and iframes work properly when lesson is opened */
.video-embed iframe,
.lesson-content iframe,
.lesson-content video,
.lesson-content canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Ensure media elements are visible and functional */
    display: block;
    max-width: 100%;
    /* Prevent iframe/video from being cut off */
    border: none;
    border-radius: 8px;
}

.video-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.9em;
}

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

/* Timeline Styles */
.timeline {
    position: relative;
    padding: 20px 0;
    margin-top: 20px;
}

.timeline-line {
    position: absolute;
    top: 30px;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.timeline-events {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.timeline-event {
    text-align: center;
    cursor: pointer;
    flex: 1;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transition: transform 0.3s ease;
    padding: 10px;
    border-radius: 8px;
}

.timeline-event:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.timeline-event:nth-child(1) { animation-delay: 0.1s; }
.timeline-event:nth-child(2) { animation-delay: 0.2s; }
.timeline-event:nth-child(3) { animation-delay: 0.3s; }
.timeline-event:nth-child(4) { animation-delay: 0.4s; }
.timeline-event:nth-child(5) { animation-delay: 0.5s; }
.timeline-event:nth-child(6) { animation-delay: 0.6s; }
.timeline-event:nth-child(7) { animation-delay: 0.7s; }
.timeline-event:nth-child(8) { animation-delay: 0.8s; }
.timeline-event:nth-child(9) { animation-delay: 0.9s; }

.timeline-dot {
    width: 20px;
    height: 20px;
    background: white;
    border: 4px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    margin: 0 auto 10px;
    transition: all 0.3s ease;
}

.timeline-event:hover .timeline-dot {
    transform: scale(1.3);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.timeline-year {
    font-weight: bold;
    color: white;
    margin-bottom: 5px;
    font-size: 1.1em;
}

.timeline-text {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.8);
    max-width: 150px;
    margin: 0 auto;
}

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

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    margin: 10% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.4s ease;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 30px;
    position: relative;
}

.modal-year {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.modal-event-title {
    font-size: 1.5em;
    font-weight: 600;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2em;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: transform 0.2s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.close-modal:hover {
    transform: rotate(90deg);
    background: rgba(255, 255, 255, 0.3);
}

.modal-body {
    padding: 30px;
    font-size: 1.1em;
    line-height: 1.8;
    color: #2d3748;
}

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

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .timeline-events {
        flex-direction: column;
        gap: 30px;
    }

    .timeline-line {
        width: 4px;
        height: 100%;
        left: 50%;
        transform: translateX(-50%);
    }

    .lesson-title {
        font-size: 1.1em;
    }

    .lesson-number {
        width: 40px;
        height: 40px;
        font-size: 1em;
    }

    .modal-content {
        margin: 20% auto;
        width: 95%;
    }

    .modal-year {
        font-size: 2em;
    }

    .modal-event-title {
        font-size: 1.2em;
    }

    .modal-body {
        padding: 20px;
        font-size: 1em;
    }

    .course-title {
        font-size: 40px;
    }
}

/* Lesson Lock Styles */
.lesson-locked {
    position: relative;
    opacity: 0.7;
}

.lesson-locked .lesson-header {
    cursor: pointer !important;
}

.lesson-lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden; /* Ensure lock icon doesn't go outside boundaries */
}

.lesson-lock-overlay:hover {
    background: rgba(0, 0, 0, 0.8);
}

.lesson-lock-overlay .lock-icon {
    font-size: 3em;
    margin: 0; /* No margin since text is removed */
    animation: lockPulse 2s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 100%;
    overflow: hidden; /* Ensure icon doesn't overflow */
}

.lesson-lock-overlay .lock-text {
    color: #4fc3f7;
    font-family: 'Space Grotesk', 'Rajdhani', sans-serif;
    font-size: 1.2em;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(79, 195, 247, 0.5);
}

@keyframes lockPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Subscription Modal Styles */
.subscription-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

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

.subscription-modal-content {
    background: linear-gradient(135deg, rgba(15, 30, 60, 0.95) 0%, rgba(12, 25, 50, 0.95) 100%);
    border: 2px solid rgba(79, 195, 247, 0.4);
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    position: relative;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(79, 195, 247, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: slideUp 0.3s ease;
}

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

.subscription-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 2em;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 1;
}

.subscription-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.subscription-modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.subscription-modal-header h2 {
    color: #ffffff;
    font-family: 'Space Grotesk', 'Rajdhani', sans-serif;
    font-size: 2em;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 0 20px rgba(79, 195, 247, 0.5);
}

.subscription-modal-body {
    text-align: center;
}

.subscription-modal-text {
    color: #ffffff;
    font-family: 'Space Grotesk', 'Rajdhani', sans-serif;
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(79, 195, 247, 0.1);
    border-radius: 12px;
    border-left: 4px solid #4fc3f7;
}

.subscription-modal-text strong {
    color: #4fc3f7;
    font-size: 1.2em;
}

.subscription-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.subscription-pay-btn {
    padding: 18px 30px;
    font-family: 'Space Grotesk', 'Rajdhani', sans-serif;
    font-size: 1.1em;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    position: relative;
    overflow: hidden;
}

.subscription-pay-btn.crypto-btn {
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.9) 0%, rgba(33, 150, 243, 0.9) 100%);
    color: #ffffff;
    border: 2px solid rgba(79, 195, 247, 0.5);
    box-shadow: 0 4px 15px rgba(79, 195, 247, 0.4);
}

.subscription-pay-btn.crypto-btn:hover {
    background: linear-gradient(135deg, rgba(79, 195, 247, 1) 0%, rgba(33, 150, 243, 1) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 195, 247, 0.6);
}

.subscription-pay-btn.card-btn {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.9) 0%, rgba(56, 142, 60, 0.9) 100%);
    color: #ffffff;
    border: 2px solid rgba(76, 175, 80, 0.5);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.subscription-pay-btn.card-btn:hover {
    background: linear-gradient(135deg, rgba(76, 175, 80, 1) 0%, rgba(56, 142, 60, 1) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.6);
}

.subscription-pay-btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .subscription-modal-content {
        padding: 30px 20px;
        width: 95%;
    }
    
    .subscription-modal-header h2 {
        font-size: 1.5em;
    }
    
    .subscription-modal-text {
        font-size: 1em;
        padding: 15px;
    }
    
    .subscription-pay-btn {
        padding: 15px 20px;
        font-size: 1em;
    }
}


