:root {
    --text: #0f172a;
    --muted: #475569;
    --card: #ffffffcc;
    --stroke: #e2e8f0;
    --shadow: 0 18px 60px rgba(2, 6, 23, .14);
    --radius: 22px;

    --yellow: #fbbf24;
    --green: #22c55e;
    --red: #ef4444;
    --blue: #2563eb;
    --purple: #7c3aed;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
    color: var(--text);
    background: linear-gradient(140deg, #f8fafc 0%, #eef2ff 40%, #fdf2f8 100%);
    overflow-x: hidden;
}

/* background blobs */
.bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.blob {
    position: absolute;
    filter: blur(55px);
    opacity: .55;
    border-radius: 999px;
}

.b1 {
    width: 520px;
    height: 520px;
    left: -140px;
    top: -160px;
    background: #60a5fa;
}

.b2 {
    width: 480px;
    height: 480px;
    right: -150px;
    top: 140px;
    background: #f472b6;
}

.b3 {
    width: 520px;
    height: 520px;
    left: 25%;
    bottom: -210px;
    background: #34d399;
}

.wrap {
    position: relative;
    z-index: 1;
    max-width: 860px;
    margin: 0 auto;
    padding: 18px 14px 28px;
}

.top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: white;
    font-weight: 900;
    letter-spacing: .6px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    box-shadow: 0 16px 40px rgba(37, 99, 235, .25);
}

.brandTitle {
    font-weight: 900;
    font-size: 14px;
    line-height: 1
}

.brandSub {
    margin-top: 3px;
    font-size: 13px;
    color: var(--muted)
}

.pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, .75);
    box-shadow: 0 10px 26px rgba(2, 6, 23, .08);
    color: #0f172a;
    font-weight: 800;
}

.shell {
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, .55);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.head {
    padding: 18px 18px 8px;
}

.hTitle {
    margin: 0;
    font-size: 22px;
    letter-spacing: -.2px;
    font-weight: 950;
}

.hDesc {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.45
}

.dots {
    padding: 0 18px 16px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, .12);
    background: rgba(148, 163, 184, .35);
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}

.dot.current {
    background: var(--yellow);
    box-shadow: 0 0 0 5px rgba(251, 191, 36, .25);
    transform: translateY(-1px);
}

.dot.done {
    background: var(--green);
    box-shadow: 0 0 0 5px rgba(34, 197, 94, .18);
}

.card {
    border-top: 1px solid var(--stroke);
    padding: 16px 18px 18px;
}

.loading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.spinner {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 2px solid rgba(15, 23, 42, .18);
    border-top-color: rgba(15, 23, 42, .72);
    animation: spin .8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

.loadingTitle {
    font-weight: 950
}

.loadingSub {
    color: var(--muted);
    font-size: 13px;
    margin-top: 2px
}

.qTop {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 10px;
}

.qCount {
    font-weight: 950;
    color: #0f172a;
    font-size: 13px;
    background: rgba(37, 99, 235, .10);
    border: 1px solid rgba(37, 99, 235, .20);
    padding: 8px 10px;
    border-radius: 999px;
}

.qReq {
    font-weight: 900;
    font-size: 12px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(251, 191, 36, .18);
    border: 1px solid rgba(251, 191, 36, .28);
}

.qText {
    font-size: 16px;
    font-weight: 950;
    letter-spacing: -.2px;
    margin: 6px 0 12px;
}

.opts {
    display: grid;
    gap: 10px;
}

.opt {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 12px;
    border-radius: 16px;
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 8px 22px rgba(2, 6, 23, .06);
    transition: transform .12s ease, box-shadow .12s ease;
}

.opt:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(2, 6, 23, .10);
}

.opt input {
    width: 18px;
    height: 18px
}

.opt label {
    cursor: pointer;
    user-select: none;
    font-weight: 700;
    color: #0f172a;
}

.error {
    margin-top: 12px;
    padding: 12px 12px;
    border-radius: 16px;
    border: 1px solid rgba(239, 68, 68, .28);
    background: rgba(239, 68, 68, .10);
    color: #7f1d1d;
    font-weight: 700;
}

.actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 14px;
}

.spacer {
    flex: 1
}

.btn {
    border: none;
    cursor: pointer;
    font-weight: 950;
    padding: 12px 14px;
    border-radius: 16px;
    transition: transform .12s ease, opacity .12s ease;
}

.btn:active {
    transform: translateY(1px)
}

.btn:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none
}

.btn.primary {
    color: white;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    box-shadow: 0 16px 40px rgba(124, 58, 237, .22);
}

.btn.ghost {
    background: rgba(255, 255, 255, .75);
    border: 1px solid var(--stroke);
    color: #0f172a;
}

.btn.danger {
    color: white;
    background: linear-gradient(135deg, #ef4444, #f97316);
    box-shadow: 0 16px 40px rgba(239, 68, 68, .18);
}

.toast {
    margin-top: 12px;
    padding: 12px 12px;
    border-radius: 16px;
    border: 1px solid rgba(34, 197, 94, .25);
    background: rgba(34, 197, 94, .12);
    color: #065f46;
    font-weight: 800;
}

.foot {
    text-align: center;
    color: rgba(15, 23, 42, .55);
    margin-top: 12px;
    font-size: 12px;
    font-weight: 700;
}

/* =========================
   KIOSK MODE (center + touch)
   ========================= */

html,
body {
    height: 100%;
}

body {
    /* kiosk ekranlarda “tam ortada” görünüm */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* wrap artık ortada sabit dursun */
.wrap {
    width: 100%;
    max-width: 980px;
    /* kiosk için biraz daha geniş */
    padding: 22px 22px 22px;
    /* kenarlardan nefes */
    margin: 0;
    /* ortalamayı body flex yapıyor */
}

/* shell ortalı ve stabil */
.shell {
    width: 100%;
}

/* seçenekleri dokunmatik için büyüt */
.opt {
    padding: 16px 16px;
    border-radius: 18px;
    cursor: pointer;
    /* satırın her yeri tıklanabilir hissi */
}

/* checkbox/radio daha büyük */
.opt input {
    width: 22px;
    height: 22px;
}

/* yazıları biraz büyüt */
.hTitle {
    font-size: 24px;
}

.hDesc {
    font-size: 14px;
}

.qText {
    font-size: 18px;
}

.opt label {
    font-size: 15px;
}

/* butonlar kiosk için daha “dokunmatik” */
.btn {
    padding: 14px 18px;
    border-radius: 18px;
    font-size: 14px;
}

/* dots alanı daha belirgin */
.dots {
    padding-bottom: 18px;
}

/* footer’ı çok aşağı itmesin */
.foot {
    margin-top: 10px;
}

/* Çok kısa ekranlarda taşma olursa scroll ver */
@media (max-height: 720px) {
    body {
        align-items: flex-start;
    }

    .wrap {
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .shell {
        max-height: calc(100vh - 40px);
        overflow: auto;
    }
}