.kiosk-mode {
    --kiosk-bg: #0f172a;
    --kiosk-surface: #1e293b;
    --kiosk-text: #f8fafc;
    --kiosk-border: #334155;
    --kiosk-primary: var(--color-primary, #E53935);
}

/* ─── Animated Setup Wrapper ─── */
.kiosk-setup-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    background: radial-gradient(ellipse at 60% 30%, #3b0d0d 0%, #0f172a 60%, #0a0f1e 100%);
}

/* Animated glowing orbs */
.kiosk-bg-anim {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.kiosk-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    animation: kiosk-orb-float 8s ease-in-out infinite alternate;
}

.kiosk-orb-1 {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, #e53935 0%, transparent 70%);
    top: -100px;
    left: -120px;
    animation-duration: 9s;
}

.kiosk-orb-2 {
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, #b71c1c 0%, transparent 70%);
    bottom: -80px;
    right: -80px;
    animation-duration: 11s;
    animation-delay: -3s;
}

.kiosk-orb-3 {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, #ef5350 0%, transparent 70%);
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    animation-duration: 7s;
    animation-delay: -5s;
    opacity: 0.25;
}

@keyframes kiosk-orb-float {
    0%   { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(30px, -40px) scale(1.05); }
    66%  { transform: translate(-20px, 25px) scale(0.97); }
    100% { transform: translate(10px, -15px) scale(1.03); }
}

/* Setup card sits above orbs */
.kiosk-setup-wrapper .kiosk-setup {
    position: relative;
    z-index: 2;
    background: rgba(30, 41, 59, 0.85);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(229, 57, 53, 0.25);
    box-shadow: 0 0 60px rgba(229, 57, 53, 0.12), 0 25px 50px rgba(0,0,0,0.5);
}

.kiosk-setup-logo {
    max-height: 90px;
    max-width: 200px;
    margin: 0 auto 1.5rem;
    display: block;
    object-fit: contain;
    filter: brightness(0) invert(1);
}


.kiosk-mode {
    background-color: var(--kiosk-bg);
    color: var(--kiosk-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    font-family: 'Inter', system-ui, sans-serif;
    width: 100%;
    box-sizing: border-box;
}

.kiosk-header {
    text-align: center;
    margin-bottom: 3rem;
}

.kiosk-header img {
    max-height: 80px;
    margin: 0 auto 1rem;
    display: block;
}

.kiosk-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.kiosk-setup {
    background: var(--kiosk-surface);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.kiosk-setup img {
    max-height: 90px;
    margin: 0 auto 1.5rem;
    display: block;
}

.kiosk-setup input {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    border: 2px solid var(--kiosk-border);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    background: var(--kiosk-bg);
    color: var(--kiosk-text);
}

.kiosk-setup button {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    background: var(--kiosk-primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
}

.kiosk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    width: 100%;
    max-width: 1200px;
}

.kiosk-btn {
    background: var(--kiosk-surface);
    color: var(--kiosk-text);
    border: 2px solid var(--kiosk-border);
    border-radius: 1rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 150px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.kiosk-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    border-color: currentColor;
}

.kiosk-btn:active {
    transform: translateY(0);
}

.kiosk-btn i {
    font-size: 3rem;
}

.kiosk-btn span {
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
}

.kiosk-scanner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    color: white;
}

#reader {
    width: 100%;
    max-width: 500px;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    margin: 2rem 0;
}

.kiosk-message {
    font-size: 1.5rem;
    text-align: center;
    max-width: 600px;
    padding: 2rem;
    border-radius: 1rem;
    background: var(--kiosk-surface);
    color: var(--kiosk-text);
}

.kiosk-message.success {
    border: 4px solid #10b981;
}

.kiosk-message.error {
    border: 4px solid #ef4444;
}

.kiosk-message i {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.kiosk-message.success i {
    color: #10b981;
}

.kiosk-message.error i {
    color: #ef4444;
}

.kiosk-message h2 {
    font-size: 2.5rem;
    margin: 0.5rem 0;
}

/* ─── Mobile Styles ─── */
@media (max-width: 640px) {
    .kiosk-mode {
        padding: 1rem;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .kiosk-header h1 {
        font-size: 1.5rem;
    }

    .kiosk-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .kiosk-btn {
        padding: 1.25rem 0.5rem;
        min-height: 120px;
        gap: 0.5rem;
        border-radius: 0.75rem;
    }

    .kiosk-btn i {
        font-size: 2.25rem;
    }

    .kiosk-btn span {
        font-size: 0.85rem;
    }
}
