/* -------------------------------------------------------------
   NEON GATES - PREMIUM DESIGN SYSTEM & CUSTOM GLASSMORPHISM CSS
   ------------------------------------------------------------- */

/* Custom Variables */
:root {
    --bg-dark: #070913;
    --bg-card: rgba(18, 22, 45, 0.45);
    --border-glass: rgba(255, 255, 255, 0.08);
    --text-primary: #f1f3f9;
    --text-secondary: #8c9ba5;
    --text-muted: #576575;
    
    /* Neon glow colors */
    --neon-cyan: #00f0ff;
    --neon-cyan-glow: rgba(0, 240, 255, 0.35);
    --neon-green: #39ff14;
    --neon-green-glow: rgba(57, 255, 20, 0.35);
    --neon-purple: #bd00ff;
    --neon-purple-glow: rgba(189, 0, 255, 0.35);
    --neon-red: #ff0055;
    --neon-red-glow: rgba(255, 0, 85, 0.35);
    
    /* Fonts */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: 'Orbitron', 'Courier New', Courier, monospace;
}

/* Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #030409;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.5;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Hidden Class Utility */
.hidden {
    display: none !important;
}

/* Layout Framework */
.app-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 1100px;
    height: 900px;
    padding: 20px;
    gap: 30px;
}

/* Telegram Mobile Shell Simulation (Desktop) */
.tg-shell {
    width: 390px;
    height: 100%;
    background-color: var(--bg-dark);
    border-radius: 40px;
    border: 6px solid #1a1e36;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 
                0 0 40px rgba(189, 0, 255, 0.15);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Expanded state (no shell wrapper visible) */
.tg-shell.expanded {
    width: 100%;
    max-width: 500px;
    border-radius: 0;
    border: none;
}

/* TG Header Mock Styles */
.tg-header {
    background-color: #0f1225;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    user-select: none;
}

.tg-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tg-back-btn {
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.tg-back-btn:hover {
    color: var(--text-primary);
}

.tg-bot-info {
    display: flex;
    flex-direction: column;
}

.tg-bot-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.tg-bot-status {
    font-size: 11px;
    color: var(--text-muted);
}

.tg-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tg-menu-dots {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 4px;
}

.tg-menu-dots span {
    width: 4px;
    height: 4px;
    background-color: var(--text-secondary);
    border-radius: 50%;
}

.tg-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

/* Mini App Main Screen Screen View */
.tg-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    background: radial-gradient(circle at top, #181436 0%, #060812 85%);
}

.tg-screen::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: 
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 32px 32px;
    background-position: center;
    transform: perspective(600px) rotateX(60deg) translateY(0);
    animation: cyberGridMove 20s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes cyberGridMove {
    0% { transform: perspective(600px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(600px) rotateX(60deg) translateY(32px); }
}

.tg-screen.glitch-shake {
    animation: glitchShake 0.45s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes glitchShake {
    0%, 100% { transform: translate3d(0, 0, 0); filter: none; }
    15% { transform: translate3d(-8px, 4px, 0); filter: hue-rotate(90deg) brightness(1.4); }
    30% { transform: translate3d(8px, -4px, 0); filter: hue-rotate(-90deg) brightness(0.8); }
    45% { transform: translate3d(-6px, -2px, 0); filter: contrast(1.5) saturate(2); }
    60% { transform: translate3d(6px, 2px, 0); filter: none; }
    75% { transform: translate3d(-3px, 1px, 0); }
}

/* App Header styling */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    z-index: 5;
    background: linear-gradient(to bottom, rgba(7, 9, 19, 0.7), rgba(7, 9, 19, 0));
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar-glow {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-purple) 100%);
    padding: 2px;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #0b0c16;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text-primary);
    font-size: 14px;
}

.user-meta {
    display: flex;
    flex-direction: column;
}

.username {
    font-weight: 600;
    font-size: 13px;
}

.user-status {
    font-size: 11px;
    color: var(--text-secondary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sound-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.sound-btn:hover {
    color: var(--text-primary);
    border-color: var(--neon-cyan);
}

.sound-btn.active-sound {
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.35);
    background: rgba(0, 240, 255, 0.1);
}

.balance-pill {
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: 20px;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.05);
    transition: all 0.2s ease;
}

.balance-pill:active {
    transform: scale(0.95);
}

/* Toast Notifications styling */
.toast-banner {
    position: absolute;
    top: 65px;
    left: 16px;
    right: 16px;
    background: rgba(255, 0, 85, 0.15);
    border: 1px solid rgba(255, 0, 85, 0.4);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 500;
    color: #ff94b3;
    z-index: 100;
    display: flex;
    align-items: center;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    animation: slideDown 0.3s ease-out;
}

.toast-banner.success {
    background: rgba(57, 255, 20, 0.12);
    border-color: rgba(57, 255, 20, 0.35);
    color: #a4ff94;
}

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

/* Scrollable Container */
.app-main-content {
    flex: 1;
    overflow-y: auto;
    padding: 8px 16px 24px 16px;
    scrollbar-width: none; /* Hide scrollbar for clean look */
}

.app-main-content::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

/* Navigation tabs footer */
.app-nav-bar {
    height: 64px;
    background-color: #090a14;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-bottom: 4px;
    z-index: 10;
}

.nav-item {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 500;
    width: 25%;
    transition: all 0.2s ease;
}

.nav-item.active {
    color: var(--neon-cyan);
}

.nav-item.active .nav-icon {
    filter: drop-shadow(0 0 5px var(--neon-cyan));
}

.nav-item:active {
    transform: scale(0.92);
}

/* Tabs content switcher */
.tab-pane {
    display: none;
    flex-direction: column;
    gap: 16px;
    animation: fadeIn 0.25s ease-out;
}

.tab-pane.active {
    display: flex;
}

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

/* -------------------------------------------------------------
   TAB: GAMEPLAY STYLING
   ------------------------------------------------------------- */

/* Progress Multiplier Ladder */
.multiplier-ladder {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    margin-top: 5px;
    margin-bottom: 5px;
}

.ladder-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 6px 2px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.ladder-step::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    transition: all 0.3s ease;
}

.ladder-step.active {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
    background: rgba(0, 240, 255, 0.05);
}

.ladder-step.active::before {
    background: var(--neon-cyan);
    box-shadow: 0 0 6px var(--neon-cyan);
}

.ladder-step.won {
    border-color: var(--neon-green);
    background: rgba(57, 255, 20, 0.03);
}

.ladder-step.won::before {
    background: var(--neon-green);
    box-shadow: 0 0 6px var(--neon-green);
}

.ladder-step.won .step-val {
    color: var(--neon-green);
}

.step-num {
    font-size: 9px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 2px;
}

.step-val {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
}

.ladder-step.active .step-val {
    color: var(--neon-cyan);
    font-weight: 700;
}

/* Status Console Console Bar */
.status-console {
    background: rgba(7, 9, 19, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--text-secondary);
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.5);
    user-select: none;
}

.status-console.active-game {
    color: var(--neon-cyan);
    border-color: rgba(0, 240, 255, 0.15);
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

.status-console.won-game {
    color: var(--neon-green);
    border-color: rgba(57, 255, 20, 0.15);
    text-shadow: 0 0 8px rgba(57, 255, 20, 0.4);
}

.status-console.lost-game {
    color: var(--neon-red);
    border-color: rgba(255, 0, 85, 0.15);
    text-shadow: 0 0 8px rgba(255, 0, 85, 0.4);
}

/* Interactive Neon Portals Container */
.gates-container {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.portal-gate {
    flex: 1;
    aspect-ratio: 0.75;
    background: linear-gradient(180deg, rgba(18, 22, 45, 0.4) 0%, rgba(10, 12, 26, 0.7) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    user-select: none;
}

.portal-gate.disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.portal-core {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}

.portal-core::before {
    content: '';
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(189, 0, 255, 0.45) 0%, rgba(138, 43, 226, 0.25) 60%, transparent 80%);
    filter: blur(4px);
    animation: vortexPulse 3s infinite ease-in-out;
    z-index: 1;
}

@keyframes vortexPulse {
    0%, 100% { transform: scale(0.9) rotate(0deg); opacity: 0.6; }
    50% { transform: scale(1.3) rotate(180deg); opacity: 1; }
}

.portal-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.portal-glyph {
    color: var(--text-secondary);
    transition: all 0.3s ease;
    z-index: 2;
}

.portal-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 1px;
    font-family: var(--font-mono);
    transition: all 0.3s ease;
}

/* Portals Hover & Active Glowing States */
.portal-gate:not(.disabled):hover {
    border-color: rgba(189, 0, 255, 0.45);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4), 
                0 0 18px rgba(189, 0, 255, 0.25);
    transform: translateY(-4px);
}

.portal-gate:not(.disabled):hover .portal-ring {
    border-color: var(--neon-purple);
    animation: rotateRing 8s linear infinite;
    box-shadow: 0 0 12px var(--neon-purple-glow);
}

.portal-gate:not(.disabled):hover .portal-glyph {
    color: var(--neon-purple);
    filter: drop-shadow(0 0 6px var(--neon-purple-glow));
}

/* Play state active neon pulse (Glows rich purple at start of game instead of blue) */
.portal-gate.active-play {
    border-color: rgba(189, 0, 255, 0.45);
    box-shadow: 0 0 15px rgba(189, 0, 255, 0.2);
}

.portal-gate.active-play .portal-ring {
    border-color: var(--neon-purple);
    border-style: solid;
    animation: pulseRing 2s infinite ease-in-out, rotateRing 12s linear infinite;
    box-shadow: 0 0 12px var(--neon-purple-glow);
}

.portal-gate.active-play .portal-glyph {
    color: var(--neon-purple);
    filter: drop-shadow(0 0 8px var(--neon-purple-glow));
}

.portal-gate.active-play .portal-label {
    color: var(--neon-purple);
    text-shadow: 0 0 6px var(--neon-purple-glow);
}

/* Correct Guess State */
.portal-gate.state-correct {
    border-color: var(--neon-green) !important;
    background: radial-gradient(circle at center, rgba(57, 255, 20, 0.08) 0%, rgba(10, 12, 26, 0.7) 100%) !important;
    box-shadow: 0 0 25px rgba(57, 255, 20, 0.2) !important;
}

.portal-gate.state-correct .portal-ring {
    border-color: var(--neon-green) !important;
    border-style: solid;
    animation: none;
    transform: scale(1.1);
    box-shadow: 0 0 12px var(--neon-green-glow);
}

.portal-gate.state-correct .portal-glyph {
    color: var(--neon-green) !important;
    transform: scale(1.2);
    filter: drop-shadow(0 0 8px var(--neon-green-glow));
}

.portal-gate.state-correct .portal-label {
    color: var(--neon-green) !important;
    font-weight: 700;
}

/* Incorrect Guess State */
.portal-gate.state-incorrect {
    border-color: var(--neon-red) !important;
    background: radial-gradient(circle at center, rgba(255, 0, 85, 0.08) 0%, rgba(10, 12, 26, 0.7) 100%) !important;
    animation: shakePortal 0.4s ease-in-out;
}

.portal-gate.state-incorrect .portal-ring {
    border-color: var(--neon-red) !important;
    border-style: solid;
    animation: none;
    transform: scale(0.9);
    box-shadow: 0 0 12px var(--neon-red-glow);
}

.portal-gate.state-incorrect .portal-glyph {
    color: var(--neon-red) !important;
    filter: drop-shadow(0 0 8px var(--neon-red-glow));
}

.portal-gate.state-incorrect .portal-label {
    color: var(--neon-red) !important;
}

/* Revealed Correct Gate State (if user guessed wrong) */
.portal-gate.state-revealed {
    border-color: rgba(57, 255, 20, 0.4) !important;
    opacity: 0.8;
}

.portal-gate.state-revealed .portal-ring {
    border-color: rgba(57, 255, 20, 0.5) !important;
}

.portal-gate.state-revealed .portal-glyph {
    color: rgba(57, 255, 20, 0.7) !important;
}

/* Animations declarations */
@keyframes rotateRing {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulseRing {
    0%, 100% { transform: scale(1.0); opacity: 0.8; }
    50% { transform: scale(1.08); opacity: 1; }
}

@keyframes shakePortal {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

/* Control Dashboard and Inputs styling */
.control-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    backdrop-filter: blur(10px);
}

.bet-input-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bet-label-row {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 600;
}

.bet-input-title {
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.bet-credits-lbl {
    color: var(--text-muted);
}

.input-controls {
    display: flex;
    gap: 6px;
}

.input-controls input {
    flex: 1;
    background: rgba(7, 9, 19, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 10px 12px;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 600;
    outline: none;
    transition: all 0.2s ease;
}

.input-controls input:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 8px var(--neon-cyan-glow);
}

/* Remove spin buttons from number input */
.input-controls input::-webkit-outer-spin-button,
.input-controls input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.bet-shortcut {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    border-radius: 10px;
    width: 48px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bet-shortcut:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

.bet-shortcut:active {
    transform: scale(0.95);
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Premium Buttons Styling */
.primary-btn {
    width: 100%;
    background: linear-gradient(135deg, #a700ff 0%, #00f0ff 100%);
    border: none;
    border-radius: 12px;
    padding: 14px;
    color: #fff;
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(189, 0, 255, 0.25);
    position: relative;
    overflow: hidden;
}

.primary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.primary-btn:hover::before {
    left: 100%;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 240, 255, 0.35);
}

.primary-btn:active {
    transform: translateY(1px);
}

.primary-btn.pulse-glow {
    animation: buttonPulse 2.2s infinite ease-in-out;
    border: 1px solid rgba(0, 240, 255, 0.4);
}

@keyframes buttonPulse {
    0% { transform: scale(1); box-shadow: 0 0 12px rgba(189, 0, 255, 0.4), 0 0 4px rgba(0, 240, 255, 0.2); }
    50% { transform: scale(1.025); box-shadow: 0 0 25px rgba(0, 240, 255, 0.7), 0 0 10px rgba(189, 0, 255, 0.5); border-color: #00f0ff; }
    100% { transform: scale(1); box-shadow: 0 0 12px rgba(189, 0, 255, 0.4), 0 0 4px rgba(0, 240, 255, 0.2); }
}

.secondary-btn {
    width: 100%;
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    border: none;
    border-radius: 12px;
    padding: 10px;
    color: #fff;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 114, 255, 0.25);
}

.secondary-btn:hover {
    box-shadow: 0 6px 16px rgba(0, 114, 255, 0.45);
    transform: translateY(-2px);
}

.secondary-btn:active {
    transform: translateY(1px);
}

.btn-subtext {
    font-size: 9px;
    font-weight: 700;
    opacity: 0.8;
    letter-spacing: 1px;
}

.btn-maintext {
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 800;
}

.primary-btn:disabled, .secondary-btn:disabled {
    background: #1f233a !important;
    color: var(--text-muted) !important;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Public hash display box styling */
.hash-display-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px dashed rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hash-title {
    color: var(--text-muted);
    font-weight: 600;
}

.hash-value-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.hash-value-row code {
    font-family: monospace;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-break: break-all;
    flex: 1;
}

.icon-btn-copy {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.icon-btn-copy:hover {
    color: var(--neon-cyan);
    background: rgba(255,255,255,0.03);
}

/* -------------------------------------------------------------
   TAB PANES: CARDS & FORMS STYLING (PROVABLY FAIR, REFERRALS, WALLET)
   ------------------------------------------------------------- */
.pane-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.pane-card h3 {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(to right, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.card-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin: 16px 0;
}

.verification-algorithm {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 8px;
}

.verification-algorithm h4 {
    font-size: 11px;
    color: var(--neon-cyan);
    margin-bottom: 6px;
}

.verification-algorithm code {
    font-family: monospace;
    font-size: 11px;
    color: #e5c07b;
    display: block;
    word-break: break-all;
    background: #090a14;
    padding: 8px;
    border-radius: 6px;
    margin-bottom: 6px;
}

.small-info {
    font-size: 10px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Form Styles */
.verifier-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.form-group label {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
}

.verifier-form input, .verifier-form select {
    background: rgba(7, 9, 19, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 10px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 13px;
    outline: none;
    width: 100%;
}

.verifier-form input:focus, .verifier-form select:focus {
    border-color: var(--neon-cyan);
}

.verifier-form select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 8px center;
}

.form-row {
    display: flex;
    gap: 10px;
}

.verify-feedback {
    border-radius: 8px;
    padding: 12px;
    font-size: 11px;
    line-height: 1.4;
}

.verify-feedback.success {
    background: rgba(57, 255, 20, 0.08);
    border: 1px solid rgba(57, 255, 20, 0.25);
    color: #a4ff94;
}

.verify-feedback.error {
    background: rgba(255, 0, 85, 0.08);
    border: 1px solid rgba(255, 0, 85, 0.25);
    color: #ff94b3;
}

/* -------------------------------------------------------------
   TAB: REFERRALS STYLING
   ------------------------------------------------------------- */
.stats-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.stat-box {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
}

.stat-lbl {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.stat-val {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 700;
    color: var(--neon-cyan);
}

.stat-unit {
    font-size: 10px;
    color: var(--text-secondary);
    display: block;
}

.invite-link-section {
    margin-top: 16px;
}

.invite-link-section h4, .friends-list-section h4 {
    font-size: 12px;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 600;
}

.link-copy-row {
    display: flex;
    gap: 6px;
}

.link-copy-row input {
    flex: 1;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 8px 10px;
    color: var(--text-secondary);
    font-size: 12px;
    outline: none;
}

.btn-copy-action {
    background: var(--bg-dark);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: var(--neon-cyan);
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    padding: 0 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-copy-action:hover {
    background: rgba(0, 240, 255, 0.1);
}

.friends-list-section {
    margin-top: 16px;
}

.friends-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 150px;
    overflow-y: auto;
}

.friend-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,0.02);
}

.friend-user {
    font-size: 12px;
    font-weight: 500;
}

.friend-joined {
    font-size: 9px;
    color: var(--text-muted);
    display: block;
}

.friend-bonus {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--neon-green);
}

/* -------------------------------------------------------------
   TAB: WALLET (TON CONNECT SIMULATOR) STYLING
   ------------------------------------------------------------- */
.wallet-auth-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 0 0 0;
}

.wallet-icon-glow {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(0, 152, 234, 0.1);
    border: 2px solid rgba(0, 152, 234, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #0098ea;
    margin-bottom: 14px;
    filter: drop-shadow(0 0 10px rgba(0, 152, 234, 0.2));
}

.text-center {
    text-align: center;
}

.small-text {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 16px;
}

.ton-btn {
    background: #0098ea !important;
    box-shadow: 0 4px 14px rgba(0, 152, 234, 0.3) !important;
}

.ton-btn:hover {
    box-shadow: 0 6px 18px rgba(0, 152, 234, 0.5) !important;
}

/* Connected wallet info */
.wallet-connected-info {
    width: 100%;
    background: rgba(0, 152, 234, 0.08);
    border: 1px solid rgba(0, 152, 234, 0.25);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.ton-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--neon-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--neon-green);
    animation: dotPulse 1.5s infinite;
}

@keyframes dotPulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
    100% { transform: scale(1); opacity: 1; }
}

.ton-symbol {
    font-size: 11px;
    font-weight: 700;
    color: #0098ea;
}

.wallet-connected-info code {
    font-family: monospace;
    font-size: 11px;
    color: var(--text-secondary);
}

.wallet-operations {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.op-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 12px;
    padding: 12px;
}

.op-card h4 {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
}

.input-action-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 4px;
}

.input-action-row input {
    flex: 1;
    background: rgba(7, 9, 19, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 8px;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 14px;
    outline: none;
}

.input-suffix {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
}

.op-btn {
    background: #1c213a;
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.op-btn:hover {
    background: #0098ea;
    border-color: #0098ea;
}

.conversion-hint {
    font-size: 9px;
    color: var(--text-muted);
}

.text-danger-btn {
    background: none;
    border: none;
    color: var(--neon-red);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.text-danger-btn:hover {
    text-shadow: 0 0 5px var(--neon-red-glow);
}

/* -------------------------------------------------------------
   MODAL DIALOG (TON CONNECT WALLETS SELECTION)
   ------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.2s ease-out;
}

.modal-card {
    background: #0f1225;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 100%;
    max-width: 340px;
    padding: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

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

.modal-header h3 {
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-sans);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
}

.modal-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.wallet-options-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wallet-opt-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
}

.wallet-opt-item:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(0, 152, 234, 0.4);
}

.wallet-opt-logo {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background-size: cover;
}

/* Wallet logo placeholders using neat styling */
.wallet-opt-logo.tk {
    background-color: #0098ea;
    position: relative;
}
.wallet-opt-logo.tk::after {
    content: 'K';
    position: absolute;
    color: white;
    font-weight: 800;
    font-size: 12px;
    left: 7px;
    top: 3px;
}
.wallet-opt-logo.mtw {
    background-color: #31a4f0;
    position: relative;
}
.wallet-opt-logo.mtw::after {
    content: 'W';
    position: absolute;
    color: white;
    font-weight: 800;
    font-size: 12px;
    left: 5px;
    top: 3px;
}
.wallet-opt-logo.tg-wallet {
    background-color: #0076b4;
    position: relative;
}
.wallet-opt-logo.tg-wallet::after {
    content: 'TG';
    position: absolute;
    color: white;
    font-weight: 800;
    font-size: 9px;
    left: 4px;
    top: 5px;
}

/* -------------------------------------------------------------
   DEVELOPER Debug PANEL STYLING (PC DESKTOP ONLY)
   ------------------------------------------------------------- */
.dev-panel {
    flex: 1;
    background: rgba(10, 12, 26, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 500px;
    backdrop-filter: blur(16px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.dev-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dev-panel-header h2 {
    font-size: 18px;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--neon-cyan);
}

.badge {
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
}

.dev-info {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.dev-actions {
    display: flex;
    gap: 10px;
}

.dev-btn {
    flex: 1;
    border: none;
    border-radius: 10px;
    padding: 10px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dev-btn.danger {
    background: rgba(255, 0, 85, 0.12);
    border: 1px solid rgba(255, 0, 85, 0.3);
    color: var(--neon-red);
}

.dev-btn.danger:hover {
    background: rgba(255, 0, 85, 0.2);
}

.dev-btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
}

.dev-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dev-stats h3, .dev-log h3 {
    font-size: 12px;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-left: 2px solid var(--neon-purple);
    padding-left: 8px;
}

.dev-stats ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
}

.dev-stats li {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed rgba(255,255,255,0.03);
    padding-bottom: 4px;
}

.dev-stats strong {
    color: var(--text-secondary);
    font-weight: 500;
}

.dev-log {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.log-output {
    flex: 1;
    background: #04050d;
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 12px;
    padding: 12px;
    font-family: monospace;
    font-size: 11px;
    color: #4af626;
    overflow-y: auto;
    max-height: 250px;
    white-space: pre-wrap;
    line-height: 1.4;
}

/* -------------------------------------------------------------
   RESPONSIVENESS AND TELEGRAM EMBEDDING
   ------------------------------------------------------------- */
@media (max-width: 900px) {
    /* Hide dev panel on actual small devices */
    .dev-panel {
        display: none;
    }
    
    .app-container {
        padding: 0;
        height: 100vh;
        justify-content: center;
    }

    .tg-shell {
        width: 100%;
        height: 100vh;
        border-radius: 0;
        border: none;
    }
}

/* -------------------------------------------------------------
   PARTICLE CANVAS STYLING
   ------------------------------------------------------------- */
#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 99;
}

/* -------------------------------------------------------------
   LIVE CHALLENGES SCROLLING FEED STYLING
   ------------------------------------------------------------- */
.live-challenges-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 12px;
    margin-top: 10px;
    backdrop-filter: blur(10px);
}

.live-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.live-header h4 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.pulse-dot-cyan {
    width: 6px;
    height: 6px;
    background-color: var(--neon-cyan);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--neon-cyan);
    animation: cyanPulse 1.2s infinite;
}

@keyframes cyanPulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

.live-feed-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 80px;
    overflow-y: hidden;
    position: relative;
}

.live-feed-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.02);
    font-size: 11px;
    animation: slideInFeed 0.3s ease-out;
}

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

.feed-user {
    font-weight: 600;
    color: var(--text-primary);
}

.feed-action {
    color: var(--text-secondary);
    margin: 0 4px;
}

.feed-gate {
    color: var(--neon-purple);
    font-weight: 600;
}

.feed-result-win {
    color: var(--neon-green);
    font-weight: 700;
    text-shadow: 0 0 5px rgba(57, 255, 20, 0.2);
}

.feed-result-lose {
    color: var(--neon-red);
    font-weight: 600;
}

/* -------------------------------------------------------------
   ROUND HISTORY LIST STYLING
   ------------------------------------------------------------- */
.history-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 12px;
    margin-top: 10px;
    backdrop-filter: blur(10px);
}

.history-card h4 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.history-table-wrapper {
    overflow-x: auto;
    width: 100%;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.history-table th {
    color: var(--text-muted);
    text-align: left;
    font-weight: 600;
    padding: 6px 8px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.history-table td {
    padding: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.02);
    color: var(--text-secondary);
}

.history-badge-win {
    color: var(--neon-green);
    font-weight: 700;
}

.history-badge-lose {
    color: var(--neon-red);
    font-weight: 500;
}

.history-verify-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    border-radius: 4px;
    padding: 2px 6px;
    cursor: pointer;
    font-size: 9px;
    transition: all 0.2s ease;
}

.history-verify-btn:hover {
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    background: rgba(0, 240, 255, 0.05);
}

/* -------------------------------------------------------------
   INTERACTIVE PARALLAX TILT EFFECT
   ------------------------------------------------------------- */
.portal-gate {
    transform-style: preserve-3d;
    perspective: 500px;
}

.portal-gate .portal-core {
    transform: translateZ(20px);
    transition: transform 0.2s ease;
}

.portal-gate:hover .portal-core {
    transform: translateZ(30px);
}

/* -------------------------------------------------------------
   HOT MODE BANNER STYLING
   ------------------------------------------------------------- */
.hot-mode-banner {
    background: linear-gradient(90deg, #ff3c00 0%, #a700ff 50%, #ff3c00 100%);
    background-size: 200% auto;
    border-bottom: 1px solid rgba(255, 60, 0, 0.3);
    padding: 6px 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    z-index: 8;
    box-shadow: 0 4px 15px rgba(255, 60, 0, 0.25);
    animation: hotFlow 3s linear infinite, slideDown 0.3s ease-out;
}

.hot-title {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.hot-flame {
    font-size: 13px;
    animation: flameFlicker 0.6s ease-in-out infinite alternate;
}

@keyframes hotFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes flameFlicker {
    0% { transform: scale(1) rotate(-3deg); }
    100% { transform: scale(1.15) rotate(3deg); }
}

/* Hot Mode Screen BG Override */
.tg-screen.hot-mode-active {
    background: radial-gradient(circle at top, #300c02 0%, #06050f 80%) !important;
}

.tg-screen.hot-mode-active .portal-gate.active-play {
    border-color: rgba(255, 60, 0, 0.35) !important;
}
.tg-screen.hot-mode-active .portal-gate.active-play .portal-ring {
    border-color: #ff5100 !important;
    box-shadow: 0 0 8px rgba(255, 81, 0, 0.35) !important;
}
.tg-screen.hot-mode-active .portal-gate.active-play .portal-glyph {
    color: #ff5100 !important;
}
.tg-screen.hot-mode-active .portal-gate.active-play .portal-label {
    color: #ff5100 !important;
}


/* (Old shield toggle switch CSS removed — replaced by shield button) */

/* 🛡️ Protected Portal glow effect */
.portal-gate.shield-protected {
    border-color: rgba(0, 240, 255, 0.45) !important;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.15) !important;
}

/* -------------------------------------------------------------
   GOLDEN PORTAL OVERLAY STYLING
   ------------------------------------------------------------- */
.portal-gate.state-golden {
    border-color: #ffd700 !important;
    background: radial-gradient(circle at center, rgba(255, 215, 0, 0.12) 0%, rgba(10, 12, 26, 0.75) 100%) !important;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.25) !important;
    animation: goldPulse 2s infinite ease-in-out;
}

.portal-gate.state-golden .portal-ring {
    border-color: #ffd700 !important;
    border-style: solid;
    animation: rotateRing 8s linear infinite, pulseRing 2s infinite ease-in-out;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3) !important;
}

.portal-gate.state-golden .portal-glyph {
    color: #ffd700 !important;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.4)) !important;
}

.portal-gate.state-golden .portal-label {
    color: #ffd700 !important;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

@keyframes goldPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.15); }
    50% { box-shadow: 0 0 35px rgba(255, 215, 0, 0.35); }
}

/* -------------------------------------------------------------
   INTERACTIVE CYBER EYE PORTAL STYLING
   ------------------------------------------------------------- */
.eye-svg {
    transition: all 0.3s ease;
}

.eye-open-path {
    stroke-dasharray: 80;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.3s ease, opacity 0.2s ease;
}

.eye-closed-path {
    display: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

/* Helper to handle hidden class on SVG paths */
.eye-closed-path.hidden {
    display: none !important;
}

/* Look around animation for pupils */
.eye-pupil-group {
    animation: pupilLookAround 6s infinite ease-in-out;
    transform-origin: 12px 12px;
    transition: transform 0.2s ease-out, opacity 0.2s ease;
}

@keyframes pupilLookAround {
    0%, 100% { transform: translate(0, 0); }
    12% { transform: translate(-2px, -1px); }
    24% { transform: translate(2.5px, 0.5px); }
    36% { transform: translate(0, -2.5px); }
    48% { transform: translate(-2.5px, 2px); }
    60% { transform: translate(2px, -2px); }
    72% { transform: translate(-1.5px, -1.5px); }
    84% { transform: translate(1.5px, 2px); }
}

/* 👁️ State: Closed Eye */
.portal-gate.eye-closed .eye-open-path {
    display: none !important;
}

.portal-gate.eye-closed .eye-closed-path {
    display: block !important;
}

.portal-gate.eye-closed .eye-pupil-group {
    display: none !important;
}

.portal-gate.eye-closed {
    border-color: rgba(255, 255, 255, 0.05) !important;
    background: rgba(0, 0, 0, 0.15) !important;
    box-shadow: none !important;
}

/* 👁️ State: Correct / Happy Eye */
.portal-gate.eye-happy {
    border-color: var(--neon-green) !important;
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.25) !important;
}

.portal-gate.eye-happy .portal-ring {
    border-color: var(--neon-green) !important;
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.3) !important;
}

.portal-gate.eye-happy .eye-pupil-group {
    animation: eyeHappyDance 0.35s ease infinite alternate !important;
}

@keyframes eyeHappyDance {
    0% { transform: scale(1.1) translate(0, 0); }
    100% { transform: scale(1.5) translate(0, -1px); }
}

/* -------------------------------------------------------------
   SHIELD ACTION BUTTON ABOVE PORTALS
   ------------------------------------------------------------- */
.shield-button-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
    z-index: 5;
}

.shield-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 18, 37, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 8px 18px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    color: var(--text-secondary);
}

.shield-action-btn:hover:not(:disabled) {
    border-color: rgba(0, 240, 255, 0.3);
    background: rgba(0, 240, 255, 0.03);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.shield-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Active glowing state for button */
.shield-action-btn.active {
    background: rgba(0, 240, 255, 0.12) !important;
    border-color: var(--neon-cyan) !important;
    color: var(--neon-cyan) !important;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
    animation: shieldGlowPulse 2s infinite alternate;
}

@keyframes shieldGlowPulse {
    0% { box-shadow: 0 0 8px rgba(0, 240, 255, 0.2); }
    100% { box-shadow: 0 0 18px rgba(0, 240, 255, 0.45); }
}

.shield-btn-icon {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.shield-action-btn.active .shield-btn-icon {
    transform: scale(1.15);
    filter: drop-shadow(0 0 4px var(--neon-cyan));
}

.shield-btn-label {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.shield-btn-cost {
    font-size: 8px;
    color: var(--text-muted);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    padding-left: 8px;
}

.shield-action-btn.active .shield-btn-cost {
    color: rgba(0, 240, 255, 0.7);
    border-color: rgba(0, 240, 255, 0.3);
}

/* -------------------------------------------------------------
   SHIELD SHATTER OVERLAY & ANIMATION
   ------------------------------------------------------------- */
.shatter-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 9, 19, 0.4);
    backdrop-filter: blur(2px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 25;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.shatter-shield-container {
    perspective: 800px;
}

.shatter-shield-svg {
    filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.4));
    color: var(--neon-cyan);
    animation: shieldAppear 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* When shattering is triggered */
.shatter-overlay.shattering .shatter-shield-svg {
    animation: shieldShatter 0.7s ease-out forwards;
}

.shatter-overlay.shattering .shield-crack {
    display: block !important;
    animation: crackFlash 0.15s ease-out;
}

@keyframes shieldAppear {
    0% {
        transform: scale(0) rotate(-15deg);
        opacity: 0;
        filter: blur(10px) drop-shadow(0 0 0px rgba(0, 240, 255, 0));
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.85;
        filter: blur(0) drop-shadow(0 0 25px rgba(0, 240, 255, 0.5));
    }
}

@keyframes crackFlash {
    0% { opacity: 0; }
    50% { opacity: 1; filter: brightness(1.5); }
    100% { opacity: 1; }
}

@keyframes shieldShatter {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 0.85;
    }
    15% {
        transform: scale(1.05) translate(0, -3px);
        filter: drop-shadow(0 0 35px rgba(255, 60, 0, 0.6)) brightness(1.2);
        color: #ff3c00;
    }
    30% {
        opacity: 0.85;
    }
    100% {
        transform: scale(0.9) translate(0, 30px);
        opacity: 0;
        filter: blur(5px);
    }
}

/* Animate separate paths splitting apart */
.shatter-overlay.shattering .shield-path-left {
    animation: breakLeft 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.shatter-overlay.shattering .shield-path-right {
    animation: breakRight 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes breakLeft {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-35px, 15px) rotate(-25deg); }
}

@keyframes breakRight {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(35px, 15px) rotate(25deg); }
}

/* -------------------------------------------------------------
   ADVANCED SETTINGS CARD (CLIENT SEED)
   ------------------------------------------------------------- */
.advanced-settings-card {
    background: rgba(15, 18, 37, 0.4);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    margin-top: 15px;
    padding: 10px 14px;
    transition: all 0.3s ease;
}

.advanced-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    color: var(--text-secondary);
    user-select: none;
}

.advanced-header:hover {
    color: var(--text-primary);
}

.advanced-header .chevron-icon {
    width: 14px;
    height: 14px;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    color: var(--text-muted);
}

.advanced-settings-card.expanded {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(15, 18, 37, 0.6);
}

.advanced-settings-card.expanded .chevron-icon {
    transform: rotate(180deg);
    color: var(--text-primary);
}

.advanced-body {
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 10px;
}

.advanced-body.hidden {
    display: none !important;
}




