.kiosk-wrap {
    min-height: calc(100vh - 120px);
    background: linear-gradient(180deg, #050d18 0%, #0a1628 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.kiosk-device-frame {
    position: relative;
    padding: 14px;
    background: linear-gradient(145deg, #2a2a2a, #111);
    border-radius: 20px;
    box-shadow: 0 32px 80px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.08);
}
.kiosk-device-frame::before {
    content: 'SOT KIOSK';
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    font-size: .7rem;
    letter-spacing: .15em;
    color: rgba(255,255,255,.45);
}
.kiosk-screen {
    width: min(960px, 92vw);
    aspect-ratio: 1280 / 1024;
    max-height: 78vh;
    background: linear-gradient(180deg, #0f2847 0%, #0a1a30 100%);
    border-radius: 12px;
    border: 3px solid #1e5a9e;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
    color: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.kiosk-v2 { width: min(960px, 92vw); }
.kiosk-top {
    background: linear-gradient(90deg, #0d47a1, #1565c0);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.kiosk-brand { display: flex; align-items: center; gap: .75rem; }
.kiosk-logo {
    background: #fff;
    color: #0d47a1;
    font-weight: 800;
    padding: .4rem .65rem;
    border-radius: 8px;
    font-size: .9rem;
}
.kiosk-top h1 { font-size: 1.15rem; margin: 0; font-weight: 700; }
.kiosk-top small { opacity: .85; font-size: .75rem; }
.kiosk-clock { font-size: .85rem; opacity: .9; font-variant-numeric: tabular-nums; }

.kiosk-step-bar {
    display: flex;
    gap: .25rem;
    padding: .75rem 1rem;
    background: rgba(0,0,0,.25);
    overflow-x: auto;
}
.kiosk-step {
    flex: 1;
    min-width: 64px;
    text-align: center;
    font-size: .68rem;
    opacity: .45;
    white-space: nowrap;
}
.kiosk-step span {
    display: block;
    width: 26px;
    height: 26px;
    line-height: 26px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    margin: 0 auto .25rem;
    font-weight: 700;
    font-size: .75rem;
}
.kiosk-step.active { opacity: 1; }
.kiosk-step.active span { background: #29b6f6; color: #051525; }
.kiosk-step.done span { background: #43a047; color: #fff; }

.kiosk-body { padding: 1.5rem; flex: 1; overflow-y: auto; min-height: 280px; }
.kiosk-body h2 { font-size: 1.4rem; margin-bottom: .5rem; font-weight: 700; }
.kiosk-hint { color: rgba(255,255,255,.6); font-size: .9rem; margin-bottom: 1rem; }

.kiosk-display {
    background: rgba(0,0,0,.4);
    border: 2px solid #29b6f6;
    border-radius: 12px;
    padding: 1rem;
    font-size: 1.5rem;
    letter-spacing: .06em;
    text-align: center;
    min-height: 56px;
    font-family: ui-monospace, monospace;
    box-shadow: inset 0 2px 8px rgba(0,0,0,.3);
}
.kiosk-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem;
    max-width: 300px;
    margin: 1.25rem auto;
}
.kiosk-key {
    background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.05));
    border: 1px solid rgba(255,255,255,.18);
    color: #fff;
    font-size: 1.35rem;
    padding: 1rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
}
.kiosk-key:active { transform: scale(.96); background: rgba(41,182,246,.35); }

.kiosk-actions {
    display: flex;
    gap: .75rem;
    margin-top: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}
.kiosk-btn {
    min-width: 130px;
    padding: .85rem 1.75rem;
    border-radius: 999px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
}
.kiosk-btn-lg { min-width: 180px; padding: 1rem 2rem; font-size: 1.05rem; }
.kiosk-btn-primary { background: linear-gradient(180deg, #4fc3f7, #29b6f6); color: #051525; box-shadow: 0 4px 12px rgba(41,182,246,.4); }
.kiosk-btn-secondary { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.25); }

.kiosk-info {
    background: rgba(255,255,255,.06);
    border-radius: 14px;
    padding: 1.25rem;
    border: 1px solid rgba(255,255,255,.1);
}
.kiosk-info p { margin-bottom: .5rem; font-size: 1.05rem; }

.kiosk-receipt {
    background: #fff;
    color: #222;
    border-radius: 4px;
    max-width: 280px;
    margin: 0 auto;
    padding: 1rem;
    font-family: monospace;
    font-size: .82rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.receipt-head { text-align: center; font-weight: 700; border-bottom: 1px dashed #999; padding-bottom: .5rem; margin-bottom: .5rem; }
.receipt-total { font-weight: 700; margin-top: .5rem; }

.kiosk-print-anim { text-align: center; margin-top: 1rem; opacity: .5; }
.kiosk-print-anim.is-printing { opacity: 1; animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .6; } }

.kiosk-ticket-out { display: flex; flex-direction: column; gap: .75rem; align-items: center; perspective: 800px; }
.ticket-slip {
    background: linear-gradient(180deg, #fff 0%, #f5f9ff 100%);
    color: #0d47a1;
    width: min(280px, 90%);
    padding: 1rem .75rem;
    border-radius: 10px;
    text-align: center;
    border: 2px dashed #1565c0;
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
    animation: ticketEject .6s ease-out forwards;
    transform-origin: top center;
}
@keyframes ticketEject {
    from { transform: translateY(-20px) rotateX(-15deg); opacity: 0; }
    to { transform: translateY(0) rotateX(0); opacity: 1; }
}
.slip-head { font-weight: 700; font-size: .85rem; }
.slip-no { font-size: .75rem; margin-top: .25rem; font-family: monospace; }

.kiosk-success { text-align: center; padding: 1.5rem 1rem; }
.kiosk-success .icon { font-size: 3.5rem; color: #43a047; margin-bottom: .5rem; }
.kiosk-entry-guide {
    background: rgba(67,160,71,.2);
    border: 1px solid #43a047;
    border-radius: 12px;
    padding: 1rem;
    margin: 1rem auto;
    max-width: 320px;
}

.kiosk-footer-bar {
    background: rgba(0,0,0,.35);
    text-align: center;
    padding: .5rem;
    font-size: .72rem;
    opacity: .7;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .kiosk-device-frame { padding: 8px; border-radius: 16px; }
    .kiosk-screen {
        width: min(420px, 96vw);
        aspect-ratio: 1080 / 1920;
        max-height: 85vh;
    }
    .kiosk-key { padding: .85rem; font-size: 1.2rem; }
    .kiosk-btn-lg { min-width: 140px; }
}
