:root {
    /* High-Tech VIP Gold Luxury Theme */
    --bg-main: #0a0a09;
    /* Deep Obsidian Black */
    --panel-bg: rgba(15, 12, 5, 0.85);
    /* Dark tint with a hint of gold */
    --panel-border: rgba(212, 175, 55, 0.4);
    /* Metallic Gold */
    --glass-shimmer: rgba(255, 235, 160, 0.08);

    --neon-cyan: #d4af37;
    /* Re-mapped to Primary Gold */
    --neon-cyan-glow: rgba(212, 175, 55, 0.6);
    --neon-pink: #cc9933;
    /* Re-mapped to Secondary Dark Gold */
    --neon-pink-glow: rgba(204, 153, 51, 0.6);
    --neon-green: #f5d44f;
    /* Bright Champagne Gold */
    --neon-green-glow: rgba(245, 212, 79, 0.6);
    --gold: #ffdf00;
    /* Brilliant Gold */
    --gold-glow: rgba(255, 223, 0, 0.6);

    /* Original Baccarat colors kept for clarity, glowing variants added */
    --p-color: #3b82f6;
    /* Bright Royal Blue */
    --p-glow: rgba(59, 130, 246, 0.6);
    --t-color: #10b981;
    /* Bright Emerald Green */
    --t-glow: rgba(16, 185, 129, 0.6);
    --b-color: #ef4444;
    /* Bright Ruby Red */
    --b-glow: rgba(239, 68, 68, 0.6);

    --text-primary: #fdfbf7;
    --text-secondary: #c2b59b;
}

/* GLOBAL SECURITY STYLES */
* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

input,
textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* CUSTOM SECURITY MASK (Bypasses Chrome Password Scanner) */
.security-input {
    -webkit-text-security: disc !important;
    font-family: 'Montserrat', sans-serif !important;
}

.hide-element {
    display: none !important;
}

/* When revealed, remove the mask */
.security-input.revealed {
    -webkit-text-security: none !important;
}

.security-input::placeholder {
    -webkit-text-security: none !important;
    /* Keep placeholder readable */
}

body {
    font-family: 'Noto Sans Thai', 'Montserrat', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-x: hidden;
    position: relative;
    padding: 20px;
}

.tech-font {
    font-family: 'Orbitron', 'Montserrat', sans-serif;
    letter-spacing: 1px;
}

/* Abstract Tech Backgrounds */
.cyber-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 15% 50%, rgba(212, 175, 55, 0.08), transparent 45%),
        radial-gradient(circle at 85% 30%, rgba(204, 153, 51, 0.08), transparent 45%);
    z-index: -2;
    pointer-events: none;
}

.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(212, 175, 55, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    perspective: 500px;
    transform: rotateX(60deg) translateY(-100px) scale(2);
    transform-origin: top center;
    opacity: 0.4;
    pointer-events: none;
}

.text-neon-cyan {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan-glow);
}

.text-neon-pink {
    color: var(--neon-pink);
    text-shadow: 0 0 10px var(--neon-pink-glow);
}

.text-gold {
    color: var(--gold);
    text-shadow: 0 0 10px var(--gold-glow);
}

.text-win {
    color: var(--neon-green);
}

.text-lose {
    color: var(--neon-pink);
}

.text-p {
    color: var(--p-color);
    text-shadow: 0 0 5px var(--p-glow);
}

.text-b {
    color: var(--b-color);
    text-shadow: 0 0 5px var(--b-glow);
}

.text-secondary {
    color: var(--text-secondary);
}

/* Glassmorphism Panels */
.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--panel-border);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), inset 0 0 0 1px var(--glass-shimmer);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseDot {
    0% {
        opacity: 0.3;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
        box-shadow: 0 0 10px var(--neon-cyan);
    }

    100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
}

.pulsing-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--neon-cyan);
    border-radius: 50%;
    margin-right: 8px;
    animation: pulseDot 2s infinite ease-in-out;
}

/* Pages & Views */
.page-view {
    display: none;
    width: 100%;
}

.page-view.active {
    display: flex;
    animation: fadeIn 0.4s ease-out;
}

.content-view {
    display: none;
    /* Sub-views within dashboard */
    width: 100%;
    animation: fadeIn 0.4s ease-out;
}

.content-view.active-view {
    display: grid;
    /* or flex, depending on layout */
}

/* LOGIN PAGE */

#login-page {
    /* Removed display: flex; so it can be hidden by .page-view when .active is removed */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Center the stacked content horizontally */
    padding-top: 5vh;
    padding-bottom: 5vh;
    min-height: 90vh;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.auth-box {
    padding: 50px 40px;
    width: 100%;
    max-width: 480px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    z-index: 10;
}

.logo-box {
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.creator-img,
.creator-icon {
    border-radius: 50%;
    border: 2px solid var(--neon-cyan);
    box-shadow: 0 0 20px var(--neon-cyan-glow);
    object-fit: cover;
}

.creator-img {
    width: 90px;
    height: 90px;
}

.creator-icon {
    width: 50px;
    height: 50px;
    margin-right: 15px;
}

.creator-tag {
    font-size: 0.75rem;
    color: var(--neon-cyan);
    margin-top: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.auth-logo h1 {
    font-size: 2.2rem;
    margin-bottom: 5px;
}

.auth-tagline {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.auth-tabs {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 12px 5px;
    /* Less side padding to prevent wrap */
    color: var(--text-secondary);
    font-family: 'Orbitron', 'Noto Sans Thai', sans-serif;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    white-space: nowrap;
    /* Prevent wrapping completely */
}

.tab-btn.active {
    color: var(--neon-cyan);
    border-bottom: 2px solid var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan-glow);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.input-grp {
    position: relative;
    display: flex;
    align-items: center;
}

.input-grp .icon {
    position: absolute;
    left: 16px;
    font-size: 1.1rem;
    filter: grayscale(1);
    opacity: 0.6;
}

.input-grp input {
    width: 100%;
    padding: 16px 16px 16px 45px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--neon-cyan);
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.input-grp input:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 238, 255, 0.2);
    background: rgba(0, 0, 0, 0.6);
}

.btn-primary {
    padding: 18px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #d4af37 0%, #a67c00 100%);
    color: #0a0a09;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0 5px 20px var(--neon-cyan-glow);
    transition: 0.2s;
    letter-spacing: 1.5px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--neon-cyan-glow);
    filter: brightness(1.2);
}


.demo-notice {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 10px;
}

/* MAIN APP WRAPPER */
.app-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

/* HEADER & NAV */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    border-radius: 16px;
    gap: 20px;
    /* Thinner gap to fit laptop screens */
    width: 100%;
    box-sizing: border-box;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    flex: 1;
    /* Left pillar */
    justify-content: flex-start;
}

.title-wrap h1 {
    font-size: 1.5rem;
    line-height: 1.1;
    margin-bottom: 3px;
}

.subtitle {
    font-size: 0.65rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
}

.top-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2x2 Grid for 4 buttons */
    gap: 12px;
    background: transparent;
    /* Remove the outer wrap background */
    padding: 0;
    border: none;
    /* Remove the outer border */
    flex: auto;
    /* Center main content */
}

.nav-link {
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    padding: 12px 20px;
    border-radius: 12px;
    font-family: 'Noto Sans Thai', sans-serif;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    white-space: nowrap;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link.active {
    background: rgba(0, 238, 255, 0.08);
    color: var(--neon-cyan);
    border-color: rgba(0, 238, 255, 0.5);
    box-shadow: 0 0 15px rgba(0, 238, 255, 0.15), inset 0 0 10px rgba(0, 238, 255, 0.05);
    text-shadow: 0 0 8px var(--neon-cyan-glow);
    transform: translateY(-2px);
}

.btn-outline-cyan {
    background: transparent;
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
}

.btn-outline-cyan:hover {
    background: var(--neon-cyan);
    color: #0a0a09;
    box-shadow: 0 0 15px var(--neon-cyan-glow);
}

/* Header VIP Profile */
.top-right-profile {
    position: absolute;
    top: 25px;
    right: 35px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    background: transparent;
    border: none;
    transition: 0.3s;
    z-index: 1000;
}

.top-right-profile:hover {
    transform: translateY(-2px);
    text-shadow: 0 0 10px var(--neon-cyan-glow);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    /* Right pillar */
    justify-content: flex-end;
}

/* Header Expiration Box */
.header-expiry-box {
    display: flex;
    align-items: center;
    justify-content: center;
    /* keep centered in fixed space */
    gap: 6px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--neon-cyan);
    padding: 8px 15px;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0, 238, 255, 0.2);
    transition: 0.3s;
    width: 200px;
    /* STRICT WIDTH MUST NOT JITTER */
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

#header-val-expiry,
#profile-val-expiry {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

.header-expiry-box:hover {
    box-shadow: 0 0 15px var(--neon-cyan-glow);
    background: rgba(0, 238, 255, 0.05);
}

.auth-box {
    background: rgba(10, 10, 15, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    padding: 40px 30px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.15), inset 0 0 20px rgba(212, 175, 55, 0.05);
    backdrop-filter: blur(10px);
    transition: 0.3s;
    position: relative;
    z-index: 50;
}

.btn-logout-premium {
    background: linear-gradient(135deg, rgba(30, 0, 10, 0.8) 0%, rgba(0, 0, 0, 0.8) 100%);
    border: 1px solid rgba(255, 50, 80, 0.5);
    color: #ffb3c1;
    padding: 8px 15px;
    border-radius: 20px;
    font-family: 'Noto Sans Thai', sans-serif;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 0 10px rgba(255, 50, 80, 0.2), inset 0 0 15px rgba(0, 0, 0, 0.9);
    white-space: nowrap;
    width: 200px;
    flex-shrink: 0;
    box-sizing: border-box;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-logout-premium:hover {
    background: linear-gradient(135deg, rgba(255, 50, 80, 0.2) 0%, rgba(40, 0, 15, 0.8) 100%);
    border-color: #ff3250;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 50, 80, 0.6), inset 0 0 10px rgba(255, 50, 80, 0.2);
    transform: translateY(-2px);
}

/* RESPONSIVE HEADER LAYOUT */
@media (max-width: 1200px) {
    .app-header {
        flex-direction: column;
        justify-content: center;
        gap: 20px;
        text-align: center;
    }

    .logo {
        justify-content: center;
    }

    .header-controls {
        margin-left: 0;
        justify-content: center;
        width: 100%;
        flex-wrap: wrap;
    }

    .header-expiry-box,
    .btn-logout-premium {
        padding: 6px 12px;
        font-size: 0.8rem;
        width: 180px !important;
        /* Force strict width on mobile too */
        min-width: 180px !important;
        flex-shrink: 0;
        box-sizing: border-box;
    }
}

.header-profile-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 15px 5px 5px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    transition: 0.3s;
}

.header-profile-info:hover {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 15px var(--neon-cyan-glow);
    border-color: var(--neon-cyan);
}

.header-avatar-img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid var(--neon-cyan);
    object-fit: cover;
}

.header-username-txt {
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* PANELS */
.custom-panel {
    border-radius: 16px;
    padding: 30px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

#dashboard-view {
    grid-template-columns: 280px 1fr 280px;
    gap: 25px;
    align-items: stretch;
}

@media (max-width: 1024px) {
    #dashboard-view {
        grid-template-columns: 300px 1fr;
    }

    .panel-left {
        grid-column: 1 / 2;
    }

    .panel-mid {
        grid-column: 2 / -1;
    }

    .panel-right {
        grid-column: 1 / -1;
    }

    .app-header {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 768px) {

    html,
    body {
        overflow-x: hidden;
        width: 100%;
    }

    .custom-panel {
        padding: 10px 15px;
    }

    .panel-left {
        display: flex;
        flex-direction: column;
    }

    .panel-right {
        width: 100% !important;
        max-width: 100% !important;
    }

    .auth-box {
        padding: 30px 20px;
        /* Reduce padding on mobile so forms fit better */
    }

    .section-title {
        display: none;
    }

    #dashboard-view.active-view {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .app-header {
        padding: 10px;
        gap: 10px;
    }

    .logo {
        transform: scale(0.85);
        margin-bottom: 5px;
        gap: 15px;
        /* Force gap on mobile so text doesn't overlap avatar */
        justify-content: center;
    }

    .creator-icon {
        margin-right: 0 !important;
        /* We use gap instead */
    }

    .title-wrap .subtitle {
        display: none;
    }

    .top-nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        width: 100%;
        position: relative;
        z-index: 100;
        pointer-events: auto;
    }

    .nav-link {
        justify-content: center;
        padding: 8px 5px;
        font-size: 0.75rem;
        position: relative;
        z-index: 101;
        border-radius: 8px;
        gap: 6px;
    }

    .strategy-selector {
        order: 0;
        flex-direction: row;
        gap: 5px;
        margin-bottom: 5px;
    }

    .btn-strategy-mode {
        flex: 1;
        flex-direction: column;
        text-align: center;
        padding: 5px;
        justify-content: center;
        border-radius: 8px;
    }

    .btn-strategy-mode .mode-icon {
        font-size: 1rem;
        margin-bottom: 0px;
    }

    .recommendation-badge {
        order: 1;
        padding: 5px;
        font-size: 0.7rem;
        margin-top: 0px;
        margin-bottom: 10px;
    }

    .btn-strategy-mode .str-info span {
        white-space: normal;
        font-size: 0.75rem;
    }

    .btn-strategy-mode .str-info small {
        display: none;
    }

    .prediction-module {
        order: 2;
        margin: 15px auto 20px auto !important;
        width: 100px;
        height: 100px;
    }

    .wood-tracker {
        order: 3;
        margin: 10px auto 5px auto;
        text-align: center;
        width: 100%;
    }

    .prediction-circle {
        width: 80px;
        height: 80px;
        font-size: 1rem;
    }

    .hologram-ring {
        width: 100px;
        height: 100px;
    }

    .header-controls {
        flex-direction: row;
        /* Keep timer and logout side-by-side on mobile */
        justify-content: center;
        gap: 8px;
        width: 100%;
        margin-top: 5px;
    }

    .top-right-profile {
        display: none !important;
    }

    .header-username-txt {
        display: none;
    }

    .panel-header {
        margin-bottom: 5px;
    }

    .input-buttons {
        gap: 8px;
        margin-bottom: 10px;
    }

    .btn-input {
        padding: 10px 0;
        font-size: 0.75rem;
    }

    .btn-input .lg {
        font-size: 1.5rem;
    }

    .mid-bottom-row {
        flex-direction: column !important;
        flex-wrap: nowrap !important;
    }

    .history-layer {
        justify-content: flex-start;
        overflow-x: auto;
        padding: 5px;
        -webkit-overflow-scrolling: touch;
    }

    .history-grid {
        grid-template-rows: repeat(6, 26px);
        grid-auto-columns: 26px;
        gap: 5px;
        min-height: 181px;
        padding: 5px;
    }

    .r-circle {
        width: 26px;
        height: 26px;
        font-size: 0.70rem;
    }

    .alert-terminal.vertical-log {
        width: 100% !important;
        height: 250px !important;
        min-height: 181px !important;
        max-height: 250px !important;
        /* Forces container to keep a fixed size on mobile, stopping the stretch bug */
    }
}

/* HELPER CLASSES */
.hide-element {
    display: none !important;
}

/* LEFT PANEL: Strategies */
.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    margin-bottom: 25px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
}

.strategy-selector {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.btn-strategy-mode {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
}

.btn-strategy-mode .str-info span {
    display: block;
    font-weight: bold;
    font-size: 0.85rem;
    /* Reduced to prevent wrapping */
    margin-bottom: 3px;
    white-space: nowrap;
}

.btn-strategy-mode .str-info small {
    font-size: 0.65rem;
    opacity: 0.7;
}

.btn-strategy-mode .mode-icon {
    font-size: 1.8rem;
    filter: grayscale(1);
    transition: 0.3s;
}

/* Glow variants based on target color */
@keyframes cyberPulse {
    0% {
        box-shadow: 0 0 10px var(--neon-cyan-glow), inset 0 0 15px rgba(0, 238, 255, 0.2);
    }

    50% {
        box-shadow: 0 0 25px var(--neon-cyan-glow), inset 0 0 25px rgba(0, 238, 255, 0.4);
    }

    100% {
        box-shadow: 0 0 10px var(--neon-cyan-glow), inset 0 0 15px rgba(0, 238, 255, 0.2);
    }
}

@keyframes goldDarkPulse {
    0% {
        box-shadow: 0 0 10px rgba(204, 153, 51, 0.4), inset 0 0 15px rgba(204, 153, 51, 0.2);
    }

    50% {
        box-shadow: 0 0 25px rgba(204, 153, 51, 0.6), inset 0 0 25px rgba(204, 153, 51, 0.3);
    }

    100% {
        box-shadow: 0 0 10px rgba(204, 153, 51, 0.4), inset 0 0 15px rgba(204, 153, 51, 0.2);
    }
}

.btn-strategy-mode.active {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--neon-cyan);
    color: white;
    animation: cyberPulse 2s infinite;
}

.btn-strategy-mode.active .mode-icon {
    filter: none;
    text-shadow: 0 0 15px var(--neon-cyan);
    transform: scale(1.1);
    color: var(--neon-cyan);
}

.btn-strategy-mode.active .str-info span {
    color: var(--neon-cyan);
}

.btn-strategy-mode.glow-pink.active {
    background: rgba(204, 153, 51, 0.1);
    border-color: var(--neon-pink);
    animation: goldDarkPulse 2s infinite;
}

.btn-strategy-mode.glow-pink.active .str-info span {
    color: var(--neon-cyan);
}

.btn-strategy-mode.glow-pink.active .mode-icon {
    filter: none;
    text-shadow: 0 0 15px var(--neon-pink);
    color: var(--neon-pink);
}

/* Prediction Hologram */
.prediction-module {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hologram-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.05);
    /* Solid instead of dashed for a cleaner luxury look to match the screenshot */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    animation: pulseRing 4s infinite alternate;
}

@keyframes pulseRing {
    0% {
        transform: scale(0.95);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.05);
        opacity: 1;
        border-color: rgba(255, 255, 255, 0.15);
    }
}

.prediction-circle {
    width: 160px;
    /* Made slightly larger */
    height: 160px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 3px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy high-tech transition */
    position: relative;
    z-index: 2;
}

.prediction-circle.B {
    border-color: var(--b-color);
    box-shadow: 0 0 50px var(--b-glow), inset 0 0 20px rgba(239, 68, 68, 0.3);
}

.prediction-circle.P {
    border-color: var(--p-color);
    box-shadow: 0 0 50px var(--p-glow), inset 0 0 20px rgba(59, 130, 246, 0.3);
}

.pred-symbol {
    font-size: 2.5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.1);
    letter-spacing: 2px;
}

.prediction-circle.B .pred-symbol {
    color: #ff6b6b;
    /* Brighter, cleaner red */
    text-shadow: 0 0 20px var(--b-color), 0 0 40px var(--b-glow);
    font-size: 5rem;
}

.prediction-circle.P .pred-symbol {
    color: #60a5fa;
    /* Brighter, cleaner blue */
    text-shadow: 0 0 20px var(--p-color), 0 0 40px var(--p-glow);
    font-size: 5rem;
}

.pred-percentage {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 5px;
}

.recommendation-badge {
    background: rgba(0, 0, 0, 0.5);
    padding: 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: bold;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.recommendation-badge.B {
    color: var(--b-color);
    border-color: rgba(255, 0, 85, 0.3);
    background: rgba(255, 0, 85, 0.1);
}

.recommendation-badge.P {
    color: var(--p-color);
    border-color: rgba(0, 238, 255, 0.3);
    background: rgba(0, 238, 255, 0.1);
}

.wood-tracker {
    text-align: center;
    margin-top: 15px;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

/* MID PANEL: Controls */
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.panel-header-btns {
    display: flex;
    gap: 10px;
}

.btn-sm {
    background: transparent;
    border: 1px solid var(--text-secondary);
    color: var(--text-secondary);
    padding: 6px 15px;
    border-radius: 6px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    cursor: pointer;
    transition: 0.2s;
}

.btn-sm.btn-danger {
    border-color: var(--neon-pink);
    color: var(--neon-pink);
}

.btn-sm:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-sm.btn-danger:hover {
    background: rgba(255, 0, 85, 0.1);
    box-shadow: 0 0 10px var(--neon-pink-glow);
}

.input-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.btn-input {
    padding: 25px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: white;
    font-weight: bold;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.btn-input::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.btn-input::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
    opacity: 0;
    transition: 0.3s;
    pointer-events: none;
}

.btn-input:hover::after {
    opacity: 1;
}

.btn-input:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.btn-input .lg {
    display: block;
    font-size: 2.5rem;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.btn-input:active {
    transform: translateY(2px) scale(0.95);
}

.btn-player {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.8), rgba(29, 78, 216, 0.9));
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2), inset 0 0 10px rgba(255, 255, 255, 0.1);
    border-color: rgba(96, 165, 250, 0.5);
    color: #fff;
}

.btn-tie {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.8), rgba(4, 120, 87, 0.9));
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2), inset 0 0 10px rgba(255, 255, 255, 0.1);
    border-color: rgba(52, 211, 153, 0.5);
    color: #fff;
}

.btn-banker {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.8), rgba(185, 28, 28, 0.9));
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.2), inset 0 0 10px rgba(255, 255, 255, 0.1);
    border-color: rgba(248, 113, 113, 0.5);
    color: #fff;
}

.mid-bottom-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: stretch;
    flex: 1;
}

.history-layer {
    flex: 2;
    min-width: 250px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.history-grid {
    display: grid;
    grid-template-rows: repeat(6, 32px);
    grid-auto-flow: column;
    grid-auto-columns: 32px;
    gap: 8px;
    min-height: 232px;
    min-width: max-content;
    padding: 15px;
}

.history-grid::-webkit-scrollbar {
    display: none;
}

.r-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.85rem;
    font-weight: bold;
    color: white;
}

.r-circle.P {
    background: var(--p-color);
    box-shadow: 0 0 15px var(--p-glow);
    color: #fff;
}

.r-circle.B {
    background: var(--b-color);
    box-shadow: 0 0 15px var(--b-glow);
    color: #fff;
}

.r-circle.T {
    background: var(--t-color);
    box-shadow: 0 0 15px var(--t-glow);
    color: #fff;
}

.alert-terminal.vertical-log {
    width: 220px;
    height: 282px;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 238, 255, 0.1);
    border-radius: 12px;
    padding: 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: 'Orbitron', 'Noto Sans Thai', sans-serif;
    font-size: 0.75rem;
    scrollbar-width: none;
    /* Hide scrollbar for cleaner look */
}

.alert-terminal.vertical-log::-webkit-scrollbar {
    display: none;
}

.log-entry {
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.03);
    border-left: 2px solid var(--text-secondary);
}

.log-entry.sys {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

.log-entry.win {
    border-color: var(--neon-green);
    background: rgba(0, 255, 136, 0.1);
    color: var(--neon-green);
    text-shadow: 0 0 5px var(--neon-green-glow);
}

.log-entry.lose {
    border-color: var(--neon-pink);
    background: rgba(255, 0, 85, 0.1);
    color: var(--neon-pink);
    text-shadow: 0 0 5px var(--neon-pink-glow);
}

.log-entry.warn {
    border-color: var(--gold);
    color: var(--gold);
}

/* RIGHT PANEL: ledger */
.stats-mini {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-box .lbl {
    font-size: 0.65rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.stat-box .val {
    font-size: 1.5rem;
    font-weight: bold;
}

.prediction-history-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 440px;
    overflow-y: auto;
    padding-right: 5px;
    scrollbar-width: thin;
    scrollbar-color: var(--neon-cyan) transparent;
}

.hist-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.hist-card.win-card {
    border-left: 3px solid var(--neon-green);
}

.hist-card.lose-card {
    border-left: 3px solid var(--neon-pink);
}

.hist-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hist-info .round {
    font-size: 0.65rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

/* LEARNING & MONEY PAGES */
.edu-container {
    padding: 40px;
    border-radius: 16px;
}

.edu-title {
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.edu-subtitle {
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 1rem;
}

.edu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 900px) {
    .edu-grid {
        grid-template-columns: 1fr;
    }
}

.edu-card {
    background: rgba(0, 0, 0, 0.5);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.edu-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--neon-cyan);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(212, 175, 55, 0.1);
}

.edu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 80%, rgba(212, 175, 55, 0.05));
    pointer-events: none;
}

.edu-card .card-title {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.edu-card p {
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 15px;
    color: #cbd5e1;
}

.pattern-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    /* Center beads vertically */
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    /* Back to compact padding */
    border-radius: 12px;
    margin-bottom: 15px;
    min-height: 120px;
    /* Reduced from 180px for a better fit */
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.mini-history-grid {
    display: grid;
    grid-template-rows: repeat(6, auto);
    /* Rows collapse if unused */
    grid-auto-flow: column;
    grid-auto-columns: 32px;
    /* Increased from 24px */
    gap: 3px;
    /* Increased from 4px */
    width: fit-content;
}

.mini-circle {
    width: 32px;
    /* Increased from 24px */
    height: 32px;
    /* Increased from 24px */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 800;
    color: white;
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mini-circle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    height: 40%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    border-radius: 50% 50% 0 0;
    pointer-events: none;
}

.mini-circle.P {
    background: radial-gradient(circle at 30% 30%, var(--p-color) 0%, #002244 100%);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), 0 0 15px var(--p-glow);
}

.mini-circle.B {
    background: radial-gradient(circle at 30% 30%, var(--b-color) 0%, #440000 100%);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), 0 0 15px var(--b-glow);
}

.advice {
    font-size: 0.85rem;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--neon-cyan);
    border-radius: 4px;
    color: var(--text-primary) !important;
    margin-bottom: 0 !important;
}

.warning {
    font-size: 0.85rem;
    padding: 10px;
    background: rgba(255, 0, 85, 0.1);
    border-left: 3px solid var(--neon-pink);
    border-radius: 4px;
    color: var(--neon-pink) !important;
    margin-bottom: 0 !important;
}

.money-steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.step {
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 6px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.step.win-step {
    border-color: rgba(0, 238, 255, 0.3);
    background: rgba(0, 238, 255, 0.05);
}

/* PERSONAL PROFILE VIEW */
.profile-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
    background: rgba(0, 0, 0, 0.3);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.avatar-col {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 30px;
}

.avatar-wrapper {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 3px solid var(--gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    overflow: hidden;
    background: #111;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-upload-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    color: var(--neon-cyan);
    padding: 8px 0;
    text-align: center;
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.3s;
    font-family: 'Inter', sans-serif;
    transform: translateY(100%);
}

.avatar-wrapper:hover .avatar-upload-btn {
    transform: translateY(0);
}

.avatar-upload-btn:hover {
    color: #fff;
    background: rgba(0, 238, 255, 0.2);
}

.info-col {
    flex: 2;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-grp {
    background: rgba(255, 255, 255, 0.02);
    padding: 15px 20px;
    border-radius: 10px;
    border-left: 3px solid var(--neon-cyan);
}

.info-label {
    display: block;
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.info-value-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-text {
    flex: 1;
    font-size: 1.1rem;
    color: #cbd5e1;
    font-family: monospace;
}

.masked-text {
    filter: blur(4px);
    opacity: 0.7;
    transition: filter 0.3s, opacity 0.3s;
    user-select: none;
}

.masked-text.revealed {
    filter: blur(0);
    opacity: 1;
    user-select: auto;
}

.toggle-eye-btn {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
    transition: 0.3s;
    outline: none;
}

.toggle-eye-btn:hover {
    color: var(--neon-cyan);
}

@media (max-width: 768px) {
    .profile-layout {
        flex-direction: column;
        padding: 20px;
    }

    .avatar-col {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-right: 0;
        padding-bottom: 30px;
    }
}

/* CUSTOM MODAL ALERTS */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 999999;
    /* Boosted z-index to guarantee it sits above code-activation-view */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.custom-modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.custom-modal-box {
    width: 90%;
    max-width: 400px;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--gold);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
    transform: translateY(-20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.custom-modal-overlay.show .custom-modal-box {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 10px rgba(255, 0, 85, 0.6));
}

.modal-title {
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.modal-body {
    font-size: 0.95rem;
    color: #cbd5e1;
    margin-bottom: 25px;
    line-height: 1.5;
}

.modal-footer {
    display: flex;
    justify-content: center;
}

#prompt-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--neon-cyan);
    color: white;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Noto Sans Thai', sans-serif;
    outline: none;
    transition: 0.3s;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
}

#prompt-input:focus {
    border-color: var(--neon-pink);
    box-shadow: 0 0 15px rgba(255, 0, 85, 0.3), inset 0 0 10px rgba(0, 0, 0, 0.8);
}

/* --- AI PERFORMANCE LOG TABLE OVERHAUL --- */
.ai-perf-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-family: 'Noto Sans Thai', sans-serif;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-align: center;
}

.ai-perf-table thead th {
    font-family: 'Orbitron', 'Noto Sans Thai', sans-serif;
    padding: 10px;
    color: var(--gold);
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.ai-perf-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
}

.ai-perf-table tbody tr:hover {
    background: rgba(212, 175, 55, 0.05);
}

.ai-perf-table td {
    padding: 12px 10px;
    vertical-align: middle;
}

.ai-perf-table td:first-child {
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.9);
}

.ai-perf-table td:nth-child(2) {
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    color: var(--neon-cyan);
}

/* Win / Lose Result Boxes in Table */
.result-box {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

.result-box.win {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.8), rgba(0, 200, 100, 0.9));
    color: white;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
    border: 1px solid rgba(0, 255, 136, 0.5);
}

.result-box.lose {
    background: linear-gradient(135deg, rgba(255, 0, 85, 0.8), rgba(200, 0, 50, 0.9));
    color: white;
    box-shadow: 0 0 10px rgba(255, 0, 85, 0.3);
    border: 1px solid rgba(255, 0, 85, 0.5);
}

/* ⏳ WAIT State Glow Effects */
/* ⏳ WAIT State Glow Effects (Soft Gold) */
.text-wait {
    color: var(--text-secondary) !important;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.4) !important;
}

#prediction-circle.WAIT {
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, #111 100%) !important;
    background-color: #111 !important;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3), inset 0 0 15px rgba(212, 175, 55, 0.2) !important;
    border: 3px solid rgba(212, 175, 55, 0.6) !important;
    color: var(--text-secondary) !important;
    z-index: 10 !important;
    animation: pulseWait 2.5s infinite ease-in-out !important;
}

#prediction-circle.WAIT .pred-symbol {
    color: rgba(212, 175, 55, 0.9) !important;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.5) !important;
    font-size: 3rem !important; /* Slightly smaller than B/P to fit "WAIT" */
}

.recommendation-badge.WAIT {
    background: rgba(212, 175, 55, 0.1) !important;
    border: 1px solid rgba(212, 175, 55, 0.4) !important;
    color: rgba(212, 175, 55, 0.8);
    text-shadow: 0 0 5px rgba(212, 175, 55, 0.4);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.15), inset 0 0 5px rgba(212, 175, 55, 0.1);
}

@keyframes pulseWait {
    0% {
        box-shadow: 0 0 15px rgba(212, 175, 55, 0.2), inset 0 0 10px rgba(212, 175, 55, 0.1);
    }
    50% {
        box-shadow: 0 0 25px rgba(212, 175, 55, 0.4), inset 0 0 20px rgba(212, 175, 55, 0.3);
        border-color: rgba(212, 175, 55, 0.9);
    }
    100% {
        box-shadow: 0 0 15px rgba(212, 175, 55, 0.2), inset 0 0 10px rgba(212, 175, 55, 0.1);
    }
}