/* ============================================
   TNK Gate - Style FindX
   Theme: Dark Blue with Cyan/Blue Glow Effects
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=Audiowide&display=swap');

/* CSS Variables */
:root {
    /* Primary Colors */
    --primary: #0EA5E9;
    --primary-dark: #0284C7;
    --accent: #06B6D4;

    /* State Colors */
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;

    /* Background Colors */
    --bg-main: #0F172A;
    --bg-secondary: #1E293B;
    --bg-card: #1E293B;
    --bg-hover: #334155;

    /* Borders */
    --border: #334155;
    --border-light: #475569;

    /* Text Colors */
    --text-primary: #F1F5F9;
    --text-secondary: #CBD5E1;
    --text-muted: #94A3B8;

    /* Grid */
    --grid-color: rgba(148, 163, 184, 0.06);

    /* Glow */
    --glow-blue: rgba(96, 165, 250, 0.8);
    --glow-cyan: rgba(6, 182, 212, 0.8);
}

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

/* Body with Grid Background */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-main);
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}

/* Main Container */
.container {
    text-align: center;
    padding: 2.5rem;
    max-width: 500px;
    width: 95%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5),
                0 0 80px rgba(14, 165, 233, 0.1);
}

/* Screen Transitions */
.screen {
    animation: slideIn 0.4s ease;
}

.hidden {
    display: none !important;
}

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

/* Typography */
h1 {
    font-family: 'Audiowide', cursive;
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: white;
    text-shadow: 0 0 15px var(--glow-blue),
                 0 0 25px rgba(96, 165, 250, 0.6),
                 0 0 35px rgba(96, 165, 250, 0.4);
}

.subtitle {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.subtitle strong {
    color: var(--accent);
    text-shadow: 0 0 10px var(--glow-cyan);
}

/* Primary Button */
.btn-primary {
    font-family: 'JetBrains Mono', monospace;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #000;
    border: none;
    padding: 16px 40px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.5),
                0 0 40px rgba(6, 182, 212, 0.3);
}

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

/* Secondary Button */
.btn-secondary {
    font-family: 'JetBrains Mono', monospace;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 12px 30px;
    font-size: 0.9rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn-secondary:hover {
    color: var(--text-primary);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.2);
}

/* Error Message */
.error-msg {
    color: var(--danger);
    margin-top: 20px;
    font-size: 0.9rem;
    padding: 12px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
}

.error-msg a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.error-msg a:hover {
    text-shadow: 0 0 10px var(--glow-blue);
}

/* Spinner */
.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Status Icons */
.icon-denied {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--danger), #DC2626);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px;
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.4);
    animation: pulse-danger 2s ease-in-out infinite;
}

@keyframes pulse-danger {
    0%, 100% {
        box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(239, 68, 68, 0.6);
    }
}

.icon-success {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--success), #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.4);
    animation: pulse-success 2s ease-in-out infinite;
}

@keyframes pulse-success {
    0%, 100% {
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(16, 185, 129, 0.6);
    }
}

/* Balance Info Box */
.balance-info {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    padding: 12px 24px;
    border-radius: 8px;
    margin: 20px 0;
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
}

.balance-info span {
    color: var(--accent);
    font-weight: 700;
    text-shadow: 0 0 10px var(--glow-cyan);
}

/* Welcome Content Section */
.welcome-content {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
    text-align: left;
}

.welcome-content h2 {
    font-family: 'Audiowide', cursive;
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.2rem;
    text-shadow: 0 0 10px var(--glow-blue);
}

.welcome-content p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Loading Decrypt Text */
.loading-decrypt {
    color: var(--text-muted);
    font-style: italic;
}

/* Version Tag */
p[style*="0.8rem"] {
    font-family: 'JetBrains Mono', monospace;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
        margin: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    .btn-primary {
        padding: 14px 30px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.6rem;
    }

    .subtitle {
        font-size: 0.95rem;
    }

    .btn-primary {
        width: 100%;
        padding: 14px 20px;
    }

    .icon-denied,
    .icon-success {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
}
