@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Fira+Code:wght@400;500&family=Rajdhani:wght@400;700&display=swap');

/* RESET & HUD BASE */
#dokany-form-container {
    all: initial !important; 
    position: relative !important; min-height: 850px !important; 
    background: var(--tg-bg) !important; color: var(--tg-text) !important;
    display: flex !important; align-items: center !important; justify-content: center !important; 
    overflow-x: hidden !important; overflow-y: auto !important; padding: 60px 20px !important;
    font-family: var(--tg-font-body) !important;
}

.tg-bg-grid {
    position: absolute; inset: 0; opacity: 0.2;
    background-image: linear-gradient(var(--tg-primary) 1px, transparent 1px), linear-gradient(90deg, var(--tg-primary) 1px, transparent 1px);
    background-size: 50px 50px; transform: perspective(500px) rotateX(60deg); transform-origin: top;
    animation: tg-grid-move 20s linear infinite; pointer-events: none;
}
@keyframes tg-grid-move { 0% { background-position: 0 0; } 100% { background-position: 0 50px; } }

.tg-perspective-wrap { perspective: 1500px; width: 100%; max-width: 800px; z-index: 10; position: relative; }
.tg-panel {
    background: rgba(2, 2, 4, 0.95) !important;
    backdrop-filter: blur(20px); border: 2px solid var(--tg-primary) !important;
    padding: 50px; transform: rotateY(-5deg);
    box-shadow: 0 0 50px rgba(0, 243, 255, 0.2); border-radius: 0;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.tg-title { font-family: var(--tg-font-heading) !important; color: var(--tg-primary) !important; font-size: 38px !important; font-weight: 900 !important; text-transform: uppercase !important; margin: 0 0 10px 0 !important; text-shadow: 0 0 15px var(--tg-primary) !important; }
.tg-description-box { font-family: 'Fira Code', monospace !important; color: rgba(255,255,255,0.6) !important; font-size: 11px !important; border-left: 2px solid var(--tg-secondary); padding-left: 20px; margin-bottom: 40px; line-height: 1.6; }

.tg-field-group { margin-bottom: 30px !important; }
.tg-label { display: block !important; color: var(--tg-primary) !important; font-family: var(--tg-font-heading) !important; font-size: 11px !important; letter-spacing: 2px !important; margin-bottom: 15px !important; text-transform: uppercase !important; }
.tg-input-field { width: 100% !important; background: rgba(255,255,255,0.05) !important; border: 1px solid rgba(13,243,255,0.3) !important; color: #fff !important; padding: 18px !important; font-family: 'Fira Code', monospace !important; border-radius: 0 !important; box-sizing: border-box !important; }

.tg-nav-btn, .tg-submit-cyber {
    padding: 22px 45px !important; font-family: var(--tg-font-heading) !important; font-weight: 900 !important;
    background: var(--tg-primary) !important; color: #000 !important; border: none !important; cursor: pointer !important;
    clip-path: polygon(15% 0, 100% 0, 100% 70%, 85% 100%, 0 100%, 0 30%) !important; 
    text-transform: uppercase !important; letter-spacing: 2px !important; transition: 0.3s !important;
}

.tg-step { display: none; }
.tg-step.active { display: block; animation: tg-power-on 0.6s ease-out; }
@keyframes tg-power-on { 0% { opacity: 0; transform: translateY(30px); } 100% { opacity: 1; transform: translateY(0); } }

.tg-log-box { font-family: 'Fira Code' !important; font-size: 10px !important; color: var(--tg-secondary) !important; margin-top: 30px; border-top: 1px solid rgba(255,0,255,0.2); padding-top: 15px; }
.field-error { border-color: var(--tg-secondary) !important; box-shadow: 0 0 10px var(--tg-secondary) !important; }
.tg-loading { opacity: 0.5; pointer-events: none; filter: blur(2px); }

/* RADIO SYSTEM */
.tg-radio-item input:checked + .tg-radio-box {
    border-color: var(--tg-primary) !important;
    background: rgba(0, 243, 255, 0.15) !important;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
    color: var(--tg-primary);
}
.tg-radio-box:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

/* 📱 RESPONSIVE HUD MOTOR */
@media (max-width: 768px) {
    #dokany-form-container {
        padding: 30px 10px !important;
        min-height: 100vh !important;
    }
    
    .tg-panel {
        padding: 30px 20px !important;
        transform: none !important; /* On retire la 3D sur mobile pour la lisibilité */
        border-width: 1px !important;
    }

    .tg-title {
        font-size: 26px !important;
    }

    .tg-description-box {
        font-size: 10px !important;
        padding-left: 10px;
    }

    .tg-nav-btn, .tg-submit-cyber {
        width: 100% !important;
        padding: 18px 20px !important;
        font-size: 14px !important;
        margin-bottom: 10px;
    }

    .tg-step > div:last-child {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .tg-radio-group {
        grid-template-columns: 1fr !important; /* Une seule colonne sur petit écran */
    }
}

/* SUCCESS SCREEN CYBERPUNK */
.tg-success-box {
    text-align: center;
    animation: tg-power-on 0.8s cubic-bezier(0.2, 0, 0, 1);
}

.tg-glitch-title {
    font-family: var(--tg-font-heading);
    font-size: 42px;
    font-weight: 900;
    color: var(--tg-primary);
    text-transform: uppercase;
    position: relative;
    text-shadow: 0 0 15px var(--tg-primary);
    margin-bottom: 5px;
}

.tg-success-subtitle {
    font-family: 'Fira Code', monospace;
    font-size: 12px;
    color: var(--tg-secondary);
    letter-spacing: 3px;
    margin-bottom: 40px;
    opacity: 0.8;
}

.tg-main-msg {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 40px;
    color: rgba(255,255,255,0.8);
}

.tg-qr-notice, .tg-cash-notice {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(0,243,255,0.15);
    padding: 25px;
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
    text-align: left;
    transition: 0.3s;
}

.tg-qr-notice:hover { background: rgba(0,243,255,0.05); border-color: var(--tg-primary); }

.tg-notice-icon { font-size: 32px; filter: drop-shadow(0 0 10px var(--tg-primary)); }
.tg-notice-content strong { display: block; font-family: var(--tg-font-heading); font-size: 12px; color: var(--tg-primary); margin-bottom: 8px; letter-spacing: 1px; }
.tg-notice-content p { margin: 0; font-size: 12px; opacity: 0.7; line-height: 1.5; }

.tg-cash-notice { border-color: rgba(255,0,255,0.25); background: rgba(255,0,255,0.02); }
.tg-cash-notice .tg-notice-icon { filter: drop-shadow(0 0 10px var(--tg-secondary)); }
.tg-cash-notice strong { color: var(--tg-secondary); }

.tg-final-btn {
    display: inline-block;
    margin-top: 30px;
    padding: 20px 50px;
    background: var(--tg-primary);
    color: #000;
    text-decoration: none;
    font-family: var(--tg-font-heading);
    font-weight: 900;
    letter-spacing: 2px;
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
    transition: 0.3s;
}

.tg-footer-note {
    margin-top: 30px;
    font-size: 10px;
    font-family: 'Fira Code';
    opacity: 0.4;
    text-transform: uppercase;
}

.hidden { display: none !important; }

