/* ============================================
   ARENA PRO - Premium Dashboard Theme
   Design System: Dark Glass + Gold Accent
   ============================================ */

/* ---------- IMPORTS ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ---------- RESET & BASE ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0e12;
    --bg-secondary: #11181c;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --border-glass: rgba(255, 255, 255, 0.06);
    --border-glass-hover: rgba(255, 255, 255, 0.12);
    
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);
    
    --gold-primary: #f5a623;
    --gold-light: #ffd700;
    --gold-dark: #c47f1a;
    --gold-glow: rgba(245, 166, 35, 0.3);
    
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 60px rgba(245, 166, 35, 0.05);
    
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    background-image: 
        radial-gradient(ellipse at 20% 50%, rgba(245, 166, 35, 0.03) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(245, 166, 35, 0.03) 0%, transparent 60%);
}

/* ---------- GLASS CARD ---------- */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card), var(--shadow-glow);
    padding: 40px;
    width: 100%;
    max-width: 820px;
    transition: var(--transition);
}

.glass-card:hover {
    border-color: var(--border-glass-hover);
    box-shadow: var(--shadow-card), 0 0 80px rgba(245, 166, 35, 0.08);
}

/* ---------- HEADER ---------- */
.header {
    text-align: center;
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border-glass);
    position: relative;
}

.header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.header-icon {
    font-size: 52px;
    display: block;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 30px rgba(245, 166, 35, 0.15));
}

.header h1 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header .subtitle {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 400;
    margin-top: 4px;
    letter-spacing: 0.3px;
}

/* ---------- MODE SELECTION ---------- */
.mode-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 24px 0 32px;
}

.mode-card {
    position: relative;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.mode-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

.mode-content {
    padding: 28px 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1.5px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.mode-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.05), transparent);
    opacity: 0;
    transition: var(--transition);
}

.mode-card input[type="radio"]:checked + .mode-content {
    border-color: var(--gold-primary);
    background: rgba(245, 166, 35, 0.06);
    box-shadow: 0 0 40px rgba(245, 166, 35, 0.06), inset 0 0 40px rgba(245, 166, 35, 0.02);
}

.mode-card input[type="radio"]:checked + .mode-content::before {
    opacity: 1;
}

.mode-card:hover .mode-content {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-2px);
}

.mode-card input[type="radio"]:checked + .mode-content .mode-icon {
    transform: scale(1.1);
}

.mode-icon {
    font-size: 36px;
    display: block;
    margin-bottom: 10px;
    transition: var(--transition);
}

.mode-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}

.mode-content p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    font-weight: 400;
}

/* ---------- BUTTONS ---------- */
.btn-primary {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: #0a0e12;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
    opacity: 0;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(245, 166, 35, 0.3);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary span {
    position: relative;
    z-index: 1;
}

.btn-primary:active {
    transform: scale(0.98);
}

/* ---------- FORM ---------- */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-xs);
    color: var(--text-primary);
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
    box-sizing: border-box;
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--gold-primary);
    background: rgba(255, 255, 255, 0.06);
    outline: none;
    box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.06);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='rgba(255,255,255,0.4)' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

.section-title {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 24px 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-glass);
}

/* ---------- SERVE OPTIONS ---------- */
.serve-options {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.serve-options label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 14px;
}

.serve-options label:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.serve-options input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--gold-primary);
    cursor: pointer;
    margin: 0;
}

.serve-options input[type="radio"]:checked + span {
    color: var(--text-primary);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .glass-card {
        padding: 24px;
        border-radius: var(--radius-md);
    }
    
    .mode-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-row-3 {
        grid-template-columns: 1fr 1fr;
    }
    
    .header h1 {
        font-size: 24px;
    }
    
    .serve-options {
        flex-direction: column;
    }
    
    .serve-options label {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .glass-card {
        padding: 16px;
    }
    
    .form-row-3 {
        grid-template-columns: 1fr;
    }
    
    .header-icon {
        font-size: 40px;
    }
    
    .header h1 {
        font-size: 20px;
    }
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.glass-card {
    animation: fadeInUp 0.6s ease-out;
}

.mode-card {
    animation: fadeInUp 0.6s ease-out both;
}

.mode-card:nth-child(1) { animation-delay: 0.1s; }
.mode-card:nth-child(2) { animation-delay: 0.2s; }

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ---------- NEXT BUTTON SPECIAL ---------- */
.btn-next {
    margin-top: 8px;
    font-size: 18px;
    padding: 18px;
    background: linear-gradient(135deg, var(--gold-primary), #d4891a);
}

.btn-next span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}