/* GLTech — Cyber-Luxury Gaming */

:root {
    /* Colors */
    --violet-deep: #6025E1;
    --violet-bright: #7A13D2;
    --cyan: #00FFFF;
    --green: #4ade80;
    --orange: #fb923c;
    --red: #f87171;
    --violet-light: #a78bfa;

    /* Backgrounds */
    --bg: #0a0a0f;
    --bg-card: rgba(18, 18, 26, 0.85);

    /* Text */
    --text: #fff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);

    /* Borders */
    --border: rgba(255, 255, 255, 0.08);
    --border-violet: rgba(122, 19, 210, 0.3);
    --border-cyan: rgba(0, 255, 255, 0.3);

    /* Spacing */
    --s1: 0.25rem; --s2: 0.5rem; --s3: 1rem; --s4: 1.5rem; --s5: 2rem; --s6: 3rem;

    /* Typography */
    --font-display: 'Oxanium', sans-serif;
    --font-body: 'Exo 2', sans-serif;

    /* Effects */
    --glow-cyan: 0 0 20px rgba(0, 255, 255, 0.4), 0 0 40px rgba(0, 255, 255, 0.2);
    --glow-violet: 0 0 20px rgba(122, 19, 210, 0.4), 0 0 40px rgba(96, 37, 225, 0.2);
    --blur: blur(20px);
    --transition: 0.2s ease;

    /* Gradients */
    --gradient-brand: linear-gradient(90deg, transparent, var(--violet-bright), var(--cyan), var(--violet-bright), transparent);
    --gradient-violet: linear-gradient(135deg, var(--violet-deep), var(--violet-bright));
    --gradient-text: linear-gradient(135deg, var(--violet-deep), var(--violet-bright), var(--cyan));
}

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

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Atmosphere */
.noise-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: -1;
    animation: float 20s ease-in-out infinite;
}
.glow-orb-1 { width: 600px; height: 600px; background: radial-gradient(circle, var(--violet-bright) 0%, transparent 70%); top: -200px; right: -100px; opacity: 0.3; }
.glow-orb-2 { width: 500px; height: 500px; background: radial-gradient(circle, var(--cyan) 0%, transparent 70%); bottom: -150px; left: -100px; opacity: 0.15; animation-delay: -10s; }

/* Animations */
@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
}
@keyframes appear {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 currentColor; }
    50% { box-shadow: 0 0 15px 2px currentColor; }
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25%, 75% { transform: translateX(-5px); } 50% { transform: translateX(5px); } }
@keyframes shine { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }

/* Header */
.header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--s3) var(--s5);
    background: linear-gradient(to bottom, var(--bg), transparent);
    backdrop-filter: blur(10px);
}
.logo-link { display: flex; text-decoration: none; transition: transform var(--transition); }
.logo-link:hover { transform: scale(1.02); }
.logo { height: 100px; }

.nav { display: flex; align-items: center; gap: var(--s4); }
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: var(--s2);
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    padding: var(--s2) var(--s3);
    border-radius: 8px;
    transition: all var(--transition);
}
.nav-link:hover { color: var(--text); }
.nav-link-accent {
    color: var(--cyan);
    background: rgba(0, 255, 255, 0.08);
    border: 1px solid var(--border-cyan);
}
.nav-link-accent:hover { background: rgba(0, 255, 255, 0.15); box-shadow: var(--glow-cyan); }

/* Main */
.main { flex: 1; display: flex; flex-direction: column; padding-top: 80px; }
.page-centered { justify-content: center; align-items: center; padding: 20px; }

/* Card (shared base for deposit-card, deposit-container) */
.card, .deposit-card, .deposit-container {
    position: relative;
    width: 100%;
    max-width: 480px;
    padding: var(--s5);
    background: var(--bg-card);
    border: 1px solid var(--border-violet);
    border-radius: 20px;
    backdrop-filter: var(--blur);
    animation: appear 0.6s ease-out;
    overflow: hidden;
}
.card::before, .deposit-card::before, .deposit-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-brand);
}

/* Hero */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    padding: var(--s6) var(--s5);
    text-align: center;
}
.hero-logo {
    width: 180px;
    margin-bottom: var(--s6);
    animation: appear 1s ease-out;
    filter: drop-shadow(0 0 30px rgba(122, 19, 210, 0.5));
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: var(--s3);
}
.hero-title-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: var(--s6);
}

/* Deposit Card extras */
.deposit-card-header { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s4); }
.deposit-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-violet);
    border-radius: 12px;
    color: var(--text);
}
.deposit-card-title, .deposit-header h1 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.deposit-card-content { padding: var(--s5) 0; text-align: center; }
.deposit-header { text-align: center; margin-bottom: 24px; }
.deposit-header h1 { color: var(--text-secondary); margin-bottom: 12px; }
.deposit-header-logo { height: 40px; margin-bottom: 16px; opacity: 0.8; }

/* Amount display */
.amount-display { display: flex; align-items: baseline; justify-content: center; gap: 8px; }
.amount {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.currency { font-family: var(--font-display); font-size: 1.25rem; color: var(--text-muted); }

/* Coming Soon Badge */
.coming-soon-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--s2);
    padding: var(--s2) var(--s4);
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid var(--border-cyan);
    border-radius: 100px;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: var(--s4);
    animation: pulse 3s ease-in-out infinite;
}
.coming-soon-dot { width: 8px; height: 8px; background: var(--cyan); border-radius: 50%; animation: blink 1.5s ease-in-out infinite; }
.coming-soon-text { color: var(--text-muted); font-size: 0.9375rem; line-height: 1.7; }

/* Progress */
.progress-container { margin: 24px 0; }
.progress-bar { height: 6px; background: rgba(255, 255, 255, 0.1); border-radius: 3px; overflow: hidden; }
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--violet-deep), var(--violet-bright), var(--cyan));
    border-radius: 3px;
    transition: width 0.5s ease;
    position: relative;
}
.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4));
    animation: shine 1.5s ease-in-out infinite;
}

/* Status badges */
.status-badge-container { text-align: center; margin-top: 12px; }
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 100px;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid;
}
.status-pending { background: rgba(255, 255, 255, 0.1); color: var(--text-secondary); border-color: rgba(255, 255, 255, 0.2); }
.status-synced, .status-validating { background: rgba(96, 37, 225, 0.2); color: var(--violet-light); border-color: rgba(96, 37, 225, 0.4); }
.status-needsattention { background: rgba(251, 146, 60, 0.15); color: var(--orange); border-color: rgba(251, 146, 60, 0.4); animation: pulse 2s infinite; }
.status-depositing { background: rgba(0, 255, 255, 0.1); color: var(--cyan); border-color: var(--border-cyan); animation: pulse 2s infinite; }
.status-completed { background: rgba(34, 197, 94, 0.15); color: var(--green); border-color: rgba(34, 197, 94, 0.4); }
.status-failed { background: rgba(239, 68, 68, 0.15); color: var(--red); border-color: rgba(239, 68, 68, 0.4); }
.status-text { text-align: center; margin: 16px 0; font-size: 0.9375rem; color: var(--text-muted); }
.status-text.attention { color: var(--orange); font-weight: 500; }

/* Label (shared) */
.label, .order-info-label, .steam-login-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

/* Order info */
.order-info-section { margin-top: 24px; padding: 16px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); border-radius: 12px; }
.order-info-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; }
.order-info-row:not(:last-child) { border-bottom: 1px solid var(--border); }
.order-info-value { font-family: var(--font-display); font-size: 0.875rem; color: var(--text); font-weight: 500; }

/* Steam login */
.steam-login-section { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); }
.steam-login-label { margin-bottom: 8px; }
.steam-login-value { font-family: var(--font-display); font-size: 1.125rem; color: var(--cyan); font-weight: 500; word-break: break-all; }

/* Form */
.edit-form { margin-top: 16px; display: none; }
.edit-form.visible { display: block; animation: appear 0.3s ease; }
.edit-form input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-violet);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    margin-bottom: 12px;
    transition: all var(--transition);
}
.edit-form input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.1); }
.edit-form input::placeholder { color: var(--text-muted); }

.login-hint { font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 16px; line-height: 1.5; }
.login-hint a { color: var(--cyan); text-decoration: none; }
.login-hint a:hover { opacity: 0.8; text-decoration: underline; }

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}
.btn-primary { background: var(--gradient-violet); color: var(--text); }
.btn-primary:hover { box-shadow: var(--glow-violet); transform: translateY(-1px); }
.btn-secondary { background: rgba(255, 255, 255, 0.1); color: var(--text-secondary); margin-left: 8px; }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.15); }
.btn-edit { background: transparent; border: 1px solid var(--border-cyan); color: var(--cyan); padding: 10px 18px; margin-top: 12px; }
.btn-edit:hover { background: rgba(0, 255, 255, 0.1); box-shadow: var(--glow-cyan); }

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    padding: 20px;
}
.modal.hidden { display: none; }
.modal-content {
    background: #12121a;
    border: 1px solid var(--border-violet);
    border-radius: 16px;
    max-width: 480px;
    width: 100%;
    overflow: hidden;
    animation: appear 0.3s ease;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
}
.modal-header span { font-family: var(--font-display); font-size: 1rem; font-weight: 600; }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 24px; cursor: pointer; }
.modal-close:hover { color: var(--text); }
.modal-body { padding: 24px; color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.7; }
.modal-body p { margin: 0 0 12px; }
.modal-body ol { margin: 0 0 16px; padding-left: 20px; }
.modal-body li { margin-bottom: 8px; }
.modal-body strong { color: var(--cyan); }
.help-image { width: 100%; border-radius: 10px; margin-top: 12px; border: 1px solid var(--border); }

/* Alerts */
.error-message {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--red);
    padding: 12px 16px;
    border-radius: 10px;
    margin-top: 16px;
    font-size: 0.875rem;
    display: none;
}
.error-message.visible { display: block; animation: shake 0.4s ease; }

/* Loading */
.loading { text-align: center; padding: 60px 20px; }
.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}
.loading-text { font-family: var(--font-display); font-size: 0.875rem; color: var(--text-muted); letter-spacing: 0.05em; }

/* Footer */
.footer { padding: var(--s5); border-top: 1px solid var(--border); }
.footer-content { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; flex-wrap: wrap; gap: var(--s3); }
.footer-brand { display: flex; align-items: center; gap: var(--s3); }
.footer-logo { height: 32px; opacity: 0.6; }
.footer-copy { font-size: 0.875rem; color: var(--text-muted); }
.footer-links { display: flex; align-items: center; gap: var(--s3); }
.footer-link { font-size: 0.875rem; color: var(--text-muted); text-decoration: none; }
.footer-link:hover { color: var(--cyan); }
.footer-divider { color: var(--text-muted); opacity: 0.3; }

.page-footer { margin-top: 24px; text-align: center; }
.page-footer a { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; color: var(--text-muted); text-decoration: none; }
.page-footer a:hover { color: var(--cyan); }

/* Legal */
.legal-page { max-width: 800px; margin: 0 auto; padding: var(--s6) var(--s5); }
.legal-header { margin-bottom: var(--s6); padding-bottom: var(--s5); border-bottom: 1px solid var(--border); }
.legal-title { font-family: var(--font-display); font-size: 2rem; font-weight: 700; margin-bottom: var(--s2); }
.legal-updated { font-size: 0.875rem; color: var(--text-muted); }
.legal-content { color: var(--text-secondary); line-height: 1.8; }
.legal-content h2 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--text); margin-top: var(--s6); margin-bottom: var(--s3); }
.legal-content p { margin-bottom: var(--s3); }
.legal-content ul, .legal-content ol { margin-bottom: var(--s3); padding-left: var(--s5); }
.legal-content li { margin-bottom: var(--s2); }
.legal-content a { color: var(--cyan); text-decoration: none; }
.legal-content a:hover { text-decoration: underline; }

/* Coming Soon Page */
.coming-soon-page { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: calc(100vh - 200px); padding: var(--s6) var(--s5); text-align: center; }
.coming-soon-icon { width: 100px; height: 100px; display: flex; align-items: center; justify-content: center; background: var(--gradient-violet); border-radius: 24px; margin-bottom: var(--s6); }
.coming-soon-icon svg { width: 48px; height: 48px; color: var(--text); }
.coming-soon-title { font-family: var(--font-display); font-size: clamp(1.5rem, 4vw, 2.5rem); font-weight: 700; margin-bottom: var(--s3); }
.coming-soon-description { color: var(--text-secondary); max-width: 400px; margin-bottom: var(--s6); }
.back-link { display: inline-flex; align-items: center; gap: var(--s2); font-family: var(--font-display); font-size: 0.875rem; color: var(--cyan); text-decoration: none; padding: var(--s2) var(--s4); border: 1px solid var(--border-cyan); border-radius: 8px; }
.back-link:hover { background: rgba(0, 255, 255, 0.08); box-shadow: var(--glow-cyan); }

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

/* Responsive */
@media (max-width: 768px) {
    .header { padding: var(--s3); }
    .logo { height: 90px; }
    .nav-link { font-size: 0.8125rem; padding: var(--s1) var(--s2); }
    .hero { padding: var(--s5) var(--s3); }
    .hero-logo { width: 120px; }
    .deposit-card, .card { padding: var(--s4); margin: 0 var(--s3); }
    .footer-content { flex-direction: column; text-align: center; }
    .glow-orb-1 { width: 300px; height: 300px; top: -100px; right: -50px; }
    .glow-orb-2 { width: 250px; height: 250px; bottom: -100px; left: -50px; }
}

@media (max-width: 480px) {
    .nav-link { font-size: 0; gap: 0; }
    .nav-link .nav-link-icon { font-size: 1rem; }
    .footer-links { flex-direction: column; gap: var(--s2); }
    .footer-divider { display: none; }
    .deposit-container { padding: 24px 20px; border-radius: 16px; }
    .amount { font-size: 2rem; }
}
