/* ============================================================
   AMBIENT UI — Gemini Neural Expressive üslubu
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap&subset=latin,latin-ext');

:root {
    --bg:            #060f1c;
    --surface:       rgba(255,255,255,0.04);
    --surface-2:     rgba(255,255,255,0.07);
    --border:        rgba(255,255,255,0.10);
    --border-bright: rgba(120,180,255,0.30);
    --text:          #eef3fb;
    --text-dim:      #a6bcd6;
    --text-faint:    #6a82a0;

    /* Mavi tonlu gradient nüvə rəngləri */
    --g-blue:   #1565c0;   /* dərin mavi */
    --g-violet: #2196f3;   /* parlaq mavi */
    --g-magenta:#6fc3ff;   /* açıq mavi */
    --g-cyan:   #00b8d4;   /* mavi-teal */

    --radius:   24px;
    --radius-sm:16px;
    --radius-pill: 999px;
    --font-display: 'Poppins', 'Segoe UI', 'Roboto', sans-serif;
    --font-body:    'Poppins', 'Segoe UI', 'Roboto', sans-serif;
    --shadow: 0 20px 60px -20px rgba(0,0,0,0.7);
}

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

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

/* ---------- AMBIENT FON (yüngül, statik) ---------- */
.aurora {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    /* Animasiyasız, blursuz statik gradient — performans üçün */
    background:
        radial-gradient(60vw 60vw at 12% 110%, rgba(21,101,192,0.30), transparent 60%),
        radial-gradient(55vw 55vw at 88% 115%, rgba(111,195,255,0.20), transparent 60%),
        radial-gradient(45vw 45vw at 50% 120%, rgba(33,150,243,0.18), transparent 60%);
}
.aurora-extra { display: none; }
.aurora-noise { display: none; }

/* ---------- LAYOUT ---------- */
.wrap {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
}
.card {
    width: 100%;
    max-width: 560px;
    background: rgba(12, 30, 22, 0.72);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 36px;
    box-shadow: var(--shadow);
    animation: rise 0.5s ease both;
}
@keyframes rise { from{opacity:0; transform:translateY(16px)} to{opacity:1; transform:translateY(0)} }

/* ---------- BAŞLIQ ---------- */

.greeting {
    text-align: center;
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(26px, 6vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}
.greeting b {
    font-weight: 600;
    background: linear-gradient(110deg, var(--g-blue), var(--g-violet) 40%, var(--g-magenta) 75%, var(--g-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.subtitle {
    text-align: center;
    color: var(--text-dim);
    font-size: 15px;
    margin-bottom: 32px;
    font-weight: 400;
}

/* ---------- STEPPER (mərhələ göstəricisi) ---------- */
.steps {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 28px;
}
.step-dot {
    height: 4px; width: 40px;
    border-radius: 4px;
    background: var(--border);
    transition: .4s;
}
.step-dot.active {
    background: linear-gradient(90deg, var(--g-blue), var(--g-violet));
    width: 56px;
}
.step-dot.done { background: var(--g-cyan); }

/* ---------- FORM ---------- */
.field { margin-bottom: 18px; animation: fade .5s both; }
.field label {
    display: block;
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 8px;
    font-weight: 500;
    letter-spacing: .01em;
}
.field label .req { color: #ffd166; }

input, select {
    width: 100%;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    transition: .25s;
    outline: none;
}
input::placeholder { color: var(--text-faint); }
input:focus, select:focus {
    border-color: var(--g-violet);
    background: rgba(155,108,255,0.08);
    box-shadow: 0 0 0 4px rgba(155,108,255,0.12);
}
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23a3bdb0' stroke-width='2'%3E%3Cpath d='M3 5l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
}
select option { background: #08231a; color: var(--text); }

.row { display: flex; gap: 14px; }
.row .field { flex: 1; }

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    border: none;
    border-radius: var(--radius-pill);
    padding: 16px 24px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: .25s;
    position: relative;
    overflow: hidden;
}
.btn-primary {
    background: linear-gradient(110deg, var(--g-blue), var(--g-violet) 50%, var(--g-magenta));
    background-size: 200% auto;
    color: #fff;
    box-shadow: 0 8px 30px -8px rgba(155,108,255,0.6);
}
.btn-primary:hover { background-position: right center; transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
    background: var(--surface-2);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--border-bright); background: var(--surface); }
.btn-row { display: flex; gap: 12px; margin-top: 26px; }
.btn-row .btn { flex: 1; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- TOGGLE (qonaq var/yox) ---------- */
.toggle-group { display: flex; gap: 12px; margin: 8px 0 4px; }
.toggle-opt {
    flex: 1;
    text-align: center;
    padding: 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface-2);
    cursor: pointer;
    transition: .25s;
    font-weight: 600;
    font-size: 15px;
}
.toggle-opt:hover { border-color: var(--border-bright); }
.toggle-opt.selected {
    border-color: var(--g-violet);
    background: linear-gradient(135deg, rgba(21,101,192,0.30), rgba(33,150,243,0.22));
    box-shadow: 0 0 0 3px rgba(33,150,243,0.25) inset, 0 6px 20px -8px rgba(33,150,243,0.4);
    color: #c8f5d4;
}
.toggle-opt .emoji { font-size: 26px; display:block; margin-bottom: 6px; }

/* ---------- QONAQ KARTLARI ---------- */
.guest-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 18px;
    margin-bottom: 14px;
    position: relative;
    animation: fade .4s both;
}
.guest-card .ghead {
    display:flex; justify-content:space-between; align-items:center;
    margin-bottom: 14px;
}
.guest-card .gnum {
    font-size: 13px; font-weight: 700; color: var(--g-violet);
    letter-spacing: .05em; text-transform: uppercase;
}
.guest-remove {
    background: rgba(255,107,107,0.12);
    border: none; color: #ff8a8a;
    width: 30px; height: 30px; border-radius: 50%;
    cursor: pointer; font-size: 18px; line-height: 1;
    transition: .2s;
}
.guest-remove:hover { background: rgba(255,107,107,0.25); }
.add-guest {
    width:100%; padding:14px; border-radius:var(--radius-sm);
    border: 1px dashed var(--border-bright);
    background: transparent; color: var(--text-dim);
    cursor:pointer; font-family:var(--font-body); font-size:15px; font-weight:500;
    transition:.2s; margin-bottom: 8px;
}
.add-guest:hover { border-color: var(--g-violet); color: var(--text); background: var(--surface-2); }

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

/* ---------- UĞUR / QR EKRANI ---------- */
.success { text-align: center; animation: rise .6s both; }
.success .check {
    width: 84px; height: 84px; margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--g-cyan), var(--g-blue));
    display:flex; align-items:center; justify-content:center;
    box-shadow: 0 0 40px -5px rgba(63,217,212,0.6);
    animation: pop .5s .2s both cubic-bezier(.2,1.5,.4,1);
}
@keyframes pop { from{transform:scale(0)} to{transform:scale(1)} }
.success .check svg { width: 42px; height: 42px; stroke:#fff; }
.qr-box {
    background:#fff; padding:20px; border-radius:var(--radius-sm);
    display:inline-block; margin: 22px auto;
    box-shadow: 0 0 50px -10px rgba(77,141,255,0.5);
}
.qr-box img, .qr-box canvas { display:block; }
.qr-meta { color: var(--text-dim); font-size:14px; margin-top: 6px; }
.qr-name {
    font-family: var(--font-display); font-size: 22px; font-weight:600;
    margin-bottom: 4px;
}

/* ---------- ERROR mesaj ---------- */
.alert {
    background: rgba(255,138,76,0.10);
    border: 1px solid rgba(255,138,76,0.32);
    color: #ffc59b;
    padding: 12px 16px; border-radius: var(--radius-sm);
    font-size: 14px; margin-bottom: 18px;
    display:none;
}
.alert.show { display:block; animation: fade .3s; }

.hidden { display: none !important; }

/* ---------- responsiv ---------- */
@media (max-width: 480px) {
    .card { padding: 30px 22px; }
    .row { flex-direction: column; gap: 0; }
}

/* incə yuxarı brend — LOGO */
.brand {
    position: fixed; top: 18px; left: 24px; z-index: 5;
    display:flex; align-items:center; gap:8px;
}
.brand img { height: 38px; width: auto; display:block; }

/* Kart içi əsas logo */
.card-logo {
    display: block;
    height: 64px;
    width: auto;
    max-width: 78%;
    margin: 0 auto 22px;
    object-fit: contain;
}

/* ---------- FOOTER (copyright) ---------- */
.site-footer {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 34px 20px 40px;
    text-align: center;
}
.site-footer img {
    height: 30px;
    width: auto;
    opacity: 0.85;
    object-fit: contain;
}
.site-footer .copy-text {
    color: var(--text-faint);
    font-size: 12.5px;
    letter-spacing: .02em;
}
@media (max-width: 480px) {
    .brand img { height: 32px; }
    .card-logo { height: 54px; }
}

/* ---------- PERFORMANS: ZƏİF CİHAZ / HƏRƏKƏT AZALTMA ---------- */
/* İstifadəçi sistemində "hərəkəti azalt" seçilibsə, bütün davamlı
   animasiyaları söndürürük — bu, donmanı və batareya yükünü aradan qaldırır. */
@media (prefers-reduced-motion: reduce) {
    .aurora::before,
    .aurora::after,
    .aurora-extra,
    .spark {
        animation: none !important;
    }
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Telefonda kartı bir az daha qatı edirik (oxunaqlılıq üçün) */
@media (max-width: 600px) {
    .card { background: rgba(10, 26, 19, 0.9); }
}

/* ---------- SON QEYDİYYAT TARİXİ QUTUSU ---------- */
.deadline-box {
    display: flex; align-items: center; gap: 14px;
    background: linear-gradient(135deg, rgba(21,101,192,0.14), rgba(33,150,243,0.08));
    border: 1px solid rgba(33,150,243,0.30);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    margin-bottom: 24px;
}
.deadline-box .dl-icon { font-size: 26px; line-height: 1; }
.deadline-box .dl-label {
    font-size: 11.5px; color: var(--text-dim);
    text-transform: uppercase; letter-spacing: 0.08em;
    font-weight: 600;
}
.deadline-box .dl-date {
    font-family: var(--font-display);
    font-size: 20px; font-weight: 700;
    color: #6fc3ff; margin-top: 2px;
}

/* ---------- GÖZLƏMƏ QUTUSU (qeydiyyatdan sonra) ---------- */
.pending-box {
    display: flex; align-items: flex-start; gap: 14px;
    background: linear-gradient(135deg, rgba(242,193,78,0.12), rgba(239,142,74,0.07));
    border: 1px solid rgba(242,193,78,0.30);
    border-radius: var(--radius-sm);
    padding: 18px; margin: 18px 0;
    text-align: left;
}
.pending-box .pending-icon { font-size: 26px; line-height: 1.2; flex-shrink: 0; }
.pending-box p {
    font-size: 14.5px; color: var(--text-dim);
    line-height: 1.6; margin: 0;
}
.pending-box b { color: #f2c14e; font-weight: 600; }

/* ---------- OTURMA YERİ GÖSTƏRİCİSİ (bilet səhifəsi) ---------- */
.seat-display {
    display: inline-flex; flex-direction: column; align-items: center;
    gap: 4px; margin: 16px auto 0;
    padding: 14px 28px;
    background: linear-gradient(135deg, rgba(21,101,192,0.16), rgba(33,150,243,0.10));
    border: 1px solid rgba(33,150,243,0.35);
    border-radius: var(--radius-sm);
}
.seat-display .seat-label {
    font-size: 11px; color: var(--text-dim);
    text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600;
}
.seat-display .seat-value {
    font-family: var(--font-display);
    font-size: 32px; font-weight: 800; color: #6fc3ff;
    letter-spacing: 0.04em;
}

/* ---------- FİN İNFO İŞARƏSİ + POPUP ---------- */
.info-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 18px; height: 18px; margin-left: 6px;
    border-radius: 50%; cursor: pointer;
    background: rgba(33,150,243,0.18);
    color: #6fc3ff; font-size: 12px; font-weight: 700;
    vertical-align: middle; transition: .15s;
    user-select: none;
}
.info-icon:hover { background: rgba(33,150,243,0.35); transform: scale(1.1); }

.fin-modal {
    display: none;
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(5,12,9,0.78);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    align-items: center; justify-content: center;
    padding: 20px;
}
.fin-modal.show { display: flex; animation: finFade .2s ease; }
@keyframes finFade { from{opacity:0} to{opacity:1} }
.fin-modal-box {
    position: relative;
    background: var(--surface-2, #14241b);
    border: 1px solid var(--border, rgba(255,255,255,0.12));
    border-radius: 18px;
    padding: 26px;
    max-width: 480px; width: 100%;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
    animation: finRise .25s cubic-bezier(.2,.8,.2,1);
}
@keyframes finRise { from{transform:translateY(20px);opacity:0} to{transform:translateY(0);opacity:1} }
.fin-modal-box h3 {
    font-family: var(--font-display, sans-serif);
    font-size: 20px; color: var(--text, #fff); margin-bottom: 10px;
}
.fin-modal-box p {
    font-size: 14px; color: var(--text-dim, #b9d4c4);
    line-height: 1.55; margin-bottom: 18px;
}
.fin-modal-img {
    width: 100%; height: auto; border-radius: 12px;
    display: block; border: 1px solid var(--border, rgba(255,255,255,0.1));
}
.fin-modal-close {
    position: absolute; top: 14px; right: 14px;
    width: 32px; height: 32px; border-radius: 50%;
    border: none; cursor: pointer;
    background: rgba(255,255,255,0.08); color: var(--text-dim, #b9d4c4);
    font-size: 15px; transition: .15s;
}
.fin-modal-close:hover { background: rgba(255,255,255,0.16); color: #fff; }

/* ---------- POWERED BY eTICK ---------- */
.powered-by {
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 10px; text-decoration: none;
    opacity: 0.7; transition: opacity .2s;
}
.powered-by:hover { opacity: 1; }
.powered-by span {
    font-size: 11px; color: var(--text-faint);
    letter-spacing: 0.04em;
}
.powered-by img { height: 20px; width: auto; display: block; }
