/* RESET & BASE STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
}

/* SINGLE PAGE FIXED LAYOUT */
html, body {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    background: #050505;
    color: #ffffff;
}

body {
    position: relative;
    display: flex;
    flex-direction: column;
}

/* BACKGROUND ANIMATION */
.stars {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, .12) 1px, transparent 1px),
        radial-gradient(circle, rgba(255, 255, 255, .06) 1.5px, transparent 1.5px);
    background-size: 550px 550px, 350px 350px;
    background-position: 0 0, 40px 60px;
    animation: twinkle 6s linear infinite;
    z-index: 1;
}

/* MAIN WRAPPER */
.wrapper {
    width: 100%; 
    max-width: 440px;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    padding: 24px 20px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    animation: fadeInStep 0.4s ease-out;
}

/* KONTEN UTAMA */
.main-content {
    width: 100%;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* BRAND TITLE */
.title {
    font-size: clamp(38px, 8.5vw, 52px);
    font-weight: 900;
    letter-spacing: 3px;
    line-height: 1;
    background: linear-gradient(90deg, #ff7e5f, #feb47b, #ff3333, #ff7e5f);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: neonBreath 3s ease-in-out infinite, gradientMove 8s linear infinite;
    margin-bottom: 6px;
    text-align: center;
    -webkit-font-smoothing: antialiased;
    will-change: background-position, transform;
    transform: translateZ(0);
}

.sub-title-head {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    margin-bottom: 8px;
    text-align: center;
}

/* CONTACT INFO SUB */
.contact-info-sub {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 24px;
    text-align: center;
    letter-spacing: 0.5px;
}

.contact-info-sub a {
    color: #ff7e5f;
    text-decoration: none;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.contact-info-sub a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* GLASSMORPHISM NOTE BOX */
.note-glass-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 16px 18px;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 18px auto;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.3px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.note-glass-box:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.22);
}

.note-glass-box strong {
    color: #ffffff;
    font-weight: 800;
}

.note-glass-box .highlight-orange {
    color: #ff7e5f;
    font-weight: 800;
}

/* MENU CARDS & STACK (1x1 VERTICAL) */
.cards-stack {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.menu-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 14px 16px;
    width: 100%;
    text-align: left;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.25s ease, background 0.25s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none !important;
    color: #ffffff !important;
}

.menu-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 126, 95, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

.menu-card:active {
    transform: translateY(0) scale(0.98);
}

.menu-card-icon {
    font-size: 20px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.menu-card-text {
    display: flex;
    flex-direction: column;
}

.menu-card-title {
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.menu-card-desc {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
    line-height: 1.3;
}

/* BUTTON ACTION BACK (Disesuaikan agar seragam dengan tombol/card lain) */
.btn-action-back {
    background: transparent;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 8px; /* Diubah dari 20px ke 8px agar lebih seragam */
    cursor: pointer;
    margin-top: 18px;
    transition: all 0.2s ease;
}

.btn-action-back:hover {
    color: #ff7e5f;
    border-color: #ff7e5f;
    background: rgba(255, 126, 95, 0.05);
}

/* INFO CARD CONTAINER */
.info-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 18px 20px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto 18px auto;
    text-align: left;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.22);
}

.info-item {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
}

.info-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.info-label {
    color: rgba(255, 255, 255, 0.45);
    font-size: 12px;
    font-weight: 500;
}

.info-value {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    text-align: right;
}

/* FORM BOX & INPUT FIELD */
.form-box {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

/* KONDISI TERTUTUP (REGISTRATION CLOSED) */
.form-box.registration-closed {
    display: none !important;
}

.closed-badge-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 18px 16px;
    text-align: center;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    animation: pulseBadge 3s ease-in-out infinite;
}

.closed-badge-title {
    color: #ff7e5f; 
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.closed-badge-desc {
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    line-height: 1.6;
}

.closed-badge-desc a {
    color: #ff7e5f;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.closed-badge-desc a:hover {
    opacity: 0.8;
}

.input-group {
    text-align: left;
    margin-bottom: 14px;
    width: 100%;
}

.input-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    padding-left: 2px;
    text-align: left !important;
}

/* BASE INPUT STYLING */
.input-glow {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #fff;
    font-size: 13.5px;
    text-align: left;
    outline: none;
    transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

/* UNTUK DIGIT (OTP & PIN) */
.input-glow.digit-input {
    letter-spacing: 4px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
}

.input-glow::placeholder {
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: normal;
    font-size: 13px;
    font-weight: 400;
}

.input-glow:focus {
    border-color: #ff7e5f;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 14px rgba(255, 126, 95, 0.25);
    transform: translateY(-1px);
}

.input-glow[readonly] {
    background: rgba(255, 255, 255, 0.02) !important;
    color: rgba(255, 255, 255, 0.5) !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
    cursor: not-allowed;
    box-shadow: none !important;
    transform: none !important;
}

/* KOTAK PIN 6 DIGIT TERPISAH */
.pin-box-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 300px;
    gap: 6px;
    margin: 0 auto;
}

.pin-digit {
    flex: 1;
    width: 0;
    height: 44px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    outline: none;
    transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.pin-digit:focus {
    border-color: #ff7e5f;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 12px rgba(255, 126, 95, 0.25);
    transform: scale(1.04);
}

/* WIDGET TURNSTILE */
.ts-center {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 300px;
    max-width: 300px;
    margin: 14px auto 16px auto;
    min-height: 65px;
}

/* TAHAP STEP FORM */
.step-section {
    display: none;
}

.step-section.active {
    display: block;
    animation: fadeInStep 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* TOMBOL SUBMIT UTAMA */
.btn-submit-badmin {
    width: 100%;
    max-width: 300px;
    display: block;
    margin: 0 auto;
    padding: 13px 0;
    font-size: 13.5px;
    font-weight: 800;
    border: none;
    border-radius: 8px;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.15s ease, box-shadow 0.25s ease, opacity 0.2s ease;
}

.btn-submit-badmin:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-submit-badmin:active:not(:disabled) {
    transform: translateY(1px) scale(0.98) !important;
}

.btn-orange-theme {
    background: linear-gradient(135deg, #d97706, #b45309) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.3);
}

.btn-orange-theme:hover:not(:disabled) {
    background: linear-gradient(135deg, #b45309, #92400e) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(217, 119, 6, 0.45);
}

.btn-join-green {
    background: #00c853 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(0, 200, 83, 0.3);
}

.btn-join-green:hover:not(:disabled) {
    background: #00b048 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 200, 83, 0.45);
}

/* ERROR MESSAGE & TEXT UTILITIES */
.error-msg-text {
    color: #ff4757;
    font-size: 12px;
    font-weight: 600;
    margin-top: 10px;
    text-align: center;
    animation: fadeInStep 0.3s ease;
}

.text-success {
    color: #2ecc71 !important;
}

.text-ended {
    color: #ff4757 !important;
    font-weight: 700;
}

/* SPINNER & LOADING INDICATOR */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    gap: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.spinner-ring {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #ff7e5f;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner-ring-lg {
    width: 42px;
    height: 42px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #ff7e5f;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 12px;
}

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

/* LOCK NOTICE BOX */
.lock-notice-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 71, 87, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    font-size: 12.5px;
    font-weight: 700;
    color: #ff4757;
    margin-top: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    animation: shakePop 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* GLOBAL OVERLAY LOADING CARD */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.loading-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.loading-card {
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 28px 24px;
    width: 100%;
    max-width: 320px;
    text-align: center;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.loading-card-title {
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.loading-card-sub {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    line-height: 1.5;
}

/* FOOTER */
.copyright-container {
    text-align: center;
    padding-top: 20px;
    width: 100%;
}

.parent-brand {
    font-size: 17.5px;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: 0.65px;
}

.parent-brand a {
    color: rgba(255, 255, 255, 0.65) !important; 
    text-decoration: none;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.parent-brand a:hover {
    opacity: 0.8;
}

.legal-brand {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: 0.65px;
    color: rgba(255, 255, 255, 0.65) !important; 
    margin-top: 4px;
}

/* ANIMASI KEYFRAMES */
@keyframes twinkle {
    0% { opacity: .7; transform: translateY(0); }
    50% { opacity: .35; }
    100% { opacity: .7; transform: translateY(-12px); }
}

@keyframes neonBreath {
    0%, 100% { opacity: 0.9; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.01); }
}

@keyframes gradientMove {
    0% { background-position: 0% center; }
    100% { background-position: 300% center; }
}

@keyframes shakePop {
    0% { transform: scale(0.95); opacity: 0; }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes pulseBadge {
    0%, 100% { border-color: rgba(255, 255, 255, 0.12); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); }
    50% { border-color: rgba(255, 126, 95, 0.3); box-shadow: 0 8px 28px rgba(255, 126, 95, 0.15); }
}

/* STATUS WARNA SLOT DINAMIS */
.slot-status {
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.slot-green, .info-success {
    color: #2ecc71 !important;
}

.slot-orange {
    color: #f39c12 !important;
}

.slot-red, .info-error {
    color: #ff4757 !important;
}

/* LINK REDIRECT BAWAH */
.login-redirect-link {
    margin-top: 18px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
}

.login-redirect-link a {
    color: #ff7e5f;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.login-redirect-link a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.menu-card:active {
    transform: scale(0.98);
    border-color: rgba(255, 120, 80, 0.5); /* Aksen warna oranye WAVES */
}

/* Aktifkan animasi perpindahan halaman otomatis ala SPA */
@view-transition {
  navigation: auto;
}
