/* ── AI Section ── */
.ai {
    padding: 140px 8%;
    background: var(--ai-bg, #F8FAFC);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 80px;
    position: relative;
    overflow: hidden;
    color: var(--ai-text, #05295E);
    transition: background 0.5s ease, color 0.5s ease;
}

body.light .ai {
    --ai-bg: #F8FAFC;
    --ai-text: #05295E;
}

/* ── Background Glows ── */
.ai-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(13, 86, 169, 0.08);
    filter: blur(180px);
    border-radius: 50%;
    right: -150px;
    top: -120px;
    pointer-events: none;
    animation: glowPulse 6s ease-in-out infinite;
}

.ai-glow-2 {
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(184, 152, 87, 0.06);
    filter: blur(150px);
    border-radius: 50%;
    left: -100px;
    bottom: -100px;
    pointer-events: none;
    animation: glowPulse 8s ease-in-out infinite reverse;
}

@keyframes glowPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.15); }
}

body.light .ai-glow {
    background: rgba(13, 86, 169, 0.06);
}

body.light .ai-glow-2 {
    background: rgba(184, 152, 87, 0.04);
}

/* ── Left Content ── */
.ai-left {
    flex: 1;
    position: relative;
    z-index: 2;
}

.ai-left .section-tag {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(13, 86, 169, 0.06);
    border: 1px solid rgba(13, 86, 169, 0.12);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--ai-accent, #0D56A9);
    transition: all 0.5s ease;
}

body.light .ai-left .section-tag {
    background: rgba(13, 86, 169, 0.06);
    border-color: rgba(13, 86, 169, 0.12);
}

.ai h2 {
    font-size: 55px;
    font-weight: 800;
    line-height: 1.15;
    margin: 24px 0;
    letter-spacing: -1.5px;
    color: var(--ai-text, #05295E);
    transition: color 0.5s ease;
}

.ai-left > p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--ai-dim, #5F6B7A);
    max-width: 480px;
    transition: color 0.5s ease;
}

body.light .ai-left > p {
    --ai-dim: #5F6B7A;
}

/* ── Buttons ── */
.ai-buttons {
    margin-top: 40px;
    display: flex;
    gap: 16px;
}

.ai-primary {
    padding: 16px 36px;
    border: none;
    border-radius: 50px;
    background: var(--ai-accent, #0D56A9);
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

body.light .ai-primary {
    --ai-accent: #05295E;
}

.ai-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.ai-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(13, 86, 169, 0.3);
}

body.light .ai-primary:hover {
    box-shadow: 0 12px 35px rgba(5, 41, 94, 0.2);
}

.ai-primary:hover::before {
    opacity: 1;
}

.ai-primary:active {
    transform: translateY(-1px);
    transition-duration: 0.1s;
}

.ai-secondary {
    padding: 16px 36px;
    border-radius: 50px;
    background: transparent;
    border: 1px solid var(--ai-border, #E5E7EB);
    color: var(--ai-text, #05295E);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.35s ease;
}

body.light .ai-secondary {
    --ai-border: #E5E7EB;
}

.ai-secondary:hover {
    border-color: var(--ai-accent, #0D56A9);
    color: var(--ai-accent, #0D56A9);
    background: #EFF6FF;
    transform: translateY(-3px);
}

body.light .ai-secondary:hover {
    background: #EFF6FF;
}

.ai-secondary:active {
    transform: translateY(-1px);
    transition-duration: 0.1s;
}

/* ── Stats ── */
.ai-stats {
    margin-top: 50px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-size: 24px;
    font-weight: 800;
    color: var(--ai-text, #05295E);
    transition: color 0.5s ease;
}

.stat-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--ai-dim, #8A94A6);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.5s ease;
}

body.light .stat-label {
    --ai-dim: #8A94A6;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--ai-border, #E5E7EB);
    transition: background 0.5s ease;
}

body.light .stat-divider {
    --ai-border: #E5E7EB;
}

/* ── Right Content ── */
.ai-right {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}

/* ── AI Card ── */
.ai-card {
    width: 360px;
    padding: 32px;
    backdrop-filter: blur(25px);
    border: 1px solid var(--ai-card-border, rgba(13, 86, 169, 0.1));
    border-radius: 28px;
    position: relative;
    overflow: hidden;
    animation: floatAI 5s ease-in-out infinite;
    transition: background 0.5s ease, border-color 0.5s ease;
}

body.light .ai-card {
    --ai-card-bg: #FFFFFF;
    --ai-card-border: #E5E7EB;
}

.ai-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(184, 152, 87, 0.06), transparent 50%);
    pointer-events: none;
}

body.light .ai-card-glow {
    background: radial-gradient(circle at 30% 30%, rgba(184, 152, 87, 0.04), transparent 50%);
}

/* ── Card Header ── */
.ai-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--status-bg, rgba(184, 152, 87, 0.08));
    border: 1px solid var(--status-border, rgba(184, 152, 87, 0.15));
    border-radius: 40px;
    font-size: 11px;
    font-weight: 700;
    color: var(--status-color, #B89857);
    transition: all 0.5s ease;
}

body.light .status {
    --status-bg: rgba(184, 152, 87, 0.08);
    --status-border: rgba(184, 152, 87, 0.15);
    --status-color: #B89857;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #B89857;
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}

body.light .status-dot {
    background: #B89857;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(184, 152, 87, 0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(184, 152, 87, 0); }
}

.ai-card-time {
    font-size: 11px;
    font-weight: 600;
    color: var(--ai-dim, #8A94A6);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.5s ease;
}

body.light .ai-card-time {
    --ai-dim: #8A94A6;
}

/* ── Coin Info ── */
.ai-card-coin {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.coin-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #f7931a, #f7931acc);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
}

.coin-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.coin-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--ai-text, #05295E);
    transition: color 0.5s ease;
}

.coin-ticker {
    font-size: 12px;
    color: var(--ai-dim, #8A94A6);
    transition: color 0.5s ease;
}

body.light .coin-ticker {
    --ai-dim: #8A94A6;
}

/* ── Prediction ── */
.ai-card h3 {
    font-size: 14px;
    font-weight: 500;
    color: var(--ai-dim, #8A94A6);
    margin-bottom: 12px;
    transition: color 0.5s ease;
}

body.light .ai-card h3 {
    --ai-dim: #8A94A6;
}

.prediction-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: var(--buy-bg, rgba(184, 152, 87, 0.08));
    border: 1px solid var(--buy-border, rgba(184, 152, 87, 0.15));
    border-radius: 14px;
    font-size: 28px;
    font-weight: 800;
    color: var(--buy-color, #B89857);
    margin-bottom: 20px;
    transition: all 0.5s ease;
}

body.light .prediction-badge {
    --buy-bg: rgba(184, 152, 87, 0.08);
    --buy-border: rgba(184, 152, 87, 0.15);
    --buy-color: #B89857;
}

.prediction-badge svg {
    color: #B89857;
    width: 22px;
    height: 22px;
}

body.light .prediction-badge svg {
    color: #B89857;
}

/* ── Confidence Bar ── */
.confidence-bar {
    width: 100%;
    height: 6px;
    background: var(--bar-bg, rgba(13, 86, 169, 0.06));
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    transition: background 0.5s ease;
}

body.light .confidence-bar {
    --bar-bg: rgba(13, 86, 169, 0.06);
}

.confidence-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #B89857, #E2D292);
    border-radius: 10px;
    animation: fillBar 2s ease-out 0.5s forwards;
}

@keyframes fillBar {
    to { width: 96%; }
}

/* ── Card Footer ── */
.ai-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.confidence-info,
.price-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.confidence-info span,
.price-info span {
    font-size: 11px;
    color: var(--ai-dim, #8A94A6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.5s ease;
}

body.light .confidence-info span,
body.light .price-info span {
    --ai-dim: #8A94A6;
}

.confidence-info strong {
    font-size: 20px;
    font-weight: 800;
    color: var(--ai-text, #05295E);
    transition: color 0.5s ease;
}

.price-info strong {
    font-size: 16px;
    font-weight: 700;
}

.price-up {
    color: #B89857;
}

body.light .price-up {
    color: #B89857;
}

/* ── Float Animation ── */
@keyframes floatAI {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-18px); }
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .ai {
        flex-direction: column;
        text-align: center;
        padding: 100px 6%;
        gap: 60px;
    }

    .ai h2 {
        font-size: 42px;
    }

    .ai-left > p {
        max-width: 100%;
    }

    .ai-buttons {
        justify-content: center;
    }

    .ai-stats {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .ai {
        padding: 80px 5%;
        gap: 50px;
    }

    .ai h2 {
        font-size: 32px;
        letter-spacing: -0.5px;
    }

    .ai-left > p {
        font-size: 14px;
    }

    .ai-buttons {
        flex-direction: column;
        align-items: center;
    }

    .ai-primary,
    .ai-secondary {
        width: 100%;
        max-width: 280px;
        padding: 14px 28px;
    }

    .ai-stats {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .stat-number {
        font-size: 20px;
    }

    .ai-card {
        width: 100%;
        max-width: 320px;
        padding: 24px;
    }

    .prediction-badge {
        font-size: 22px;
        padding: 8px 20px;
    }

    .confidence-info strong {
        font-size: 18px;
    }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
    .ai-card {
        animation: none !important;
    }

    .confidence-fill {
        width: 96% !important;
        animation: none !important;
    }

    .status-dot {
        animation: none !important;
    }

    .ai-glow,
    .ai-glow-2 {
        animation: none !important;
    }
}





/* ── Right Content (Video variant) ── */
.ai-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* ── Video Wrapper ── */
.ai-video-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
    border-radius: 28px;
    overflow: hidden;
    animation: floatAI 5s ease-in-out infinite;
}

/* ── Video Glow (behind video) ── */
.ai-video-glow {
    position: absolute;
    inset: -40px;
    background: radial-gradient(circle at center, rgba(13, 86, 169, 0.1), transparent 70%);
    filter: blur(40px);
    z-index: -1;
    animation: glowPulse 6s ease-in-out infinite;
}

body.light .ai-video-glow {
    background: radial-gradient(circle at center, rgba(13, 86, 169, 0.06), transparent 70%);
}

/* ── Video Border (animated gradient) ── */
.ai-video-wrapper:hover .ai-video-border {
    opacity: 1;
}

/* ── Video Element ── */
.ai-video {
    width: 100%;
    height: auto;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
    border-radius: 28px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.ai-video.loaded {
    opacity: 1;
}

.ai-video.error {
    display: none;
}

/* ── Video Click Blocker ── */
.ai-video-blocker {
    position: absolute;
    inset: 0;
    z-index: 2;
    cursor: default;
    background: transparent;
    border-radius: 28px;
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .ai {
        flex-direction: column;
        text-align: center;
        padding: 100px 6%;
        gap: 60px;
    }

    .ai h2 {
        font-size: 42px;
    }

    .ai-left > p {
        max-width: 100%;
    }

    .ai-buttons {
        justify-content: center;
    }

    .ai-stats {
        justify-content: center;
    }

    .ai-video-wrapper {
        max-width: 500px;
    }
}

@media (max-width: 640px) {
    .ai {
        padding: 80px 5%;
        gap: 50px;
    }

    .ai h2 {
        font-size: 32px;
        letter-spacing: -0.5px;
    }

    .ai-left > p {
        font-size: 14px;
    }

    .ai-buttons {
        flex-direction: column;
        align-items: center;
    }

    .ai-primary,
    .ai-secondary {
        width: 100%;
        max-width: 280px;
        padding: 14px 28px;
    }

    .ai-stats {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .stat-number {
        font-size: 20px;
    }

    .ai-video-wrapper {
        max-width: 100%;
        border-radius: 20px;
    }

    .ai-video {
        border-radius: 20px;
    }

    .ai-video-border {
        border-radius: 20px;
    }

    .ai-video-blocker {
        border-radius: 20px;
    }
}