:root {
    --kiosk-brand: #e85d04;
    --kiosk-brand-dark: #dc2f02;
    --kiosk-ink: #1f2937;
    --kiosk-muted: #6b7280;
    --kiosk-surface: #f8fafc;
    --kiosk-radius: 18px;
    --kiosk-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --kiosk-safe-top: env(safe-area-inset-top, 0px);
    --kiosk-safe-bottom: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body.kiosk-app {
    margin: 0;
    background: linear-gradient(160deg, #f3f4f6 0%, #e5e7eb 100%);
    font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--kiosk-ink);
    overflow-x: hidden;
}

.kiosk-wrap {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(14px + var(--kiosk-safe-top)) 14px calc(14px + var(--kiosk-safe-bottom));
}

.kiosk-card {
    width: 100%;
    max-width: 1040px;
    min-height: min(95vh, 95dvh);
    border-radius: var(--kiosk-radius);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--kiosk-shadow);
    display: flex;
    flex-direction: column;
}

.kiosk-header {
    padding: 14px 18px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 20;
}

.logo-img {
    max-height: 52px;
    width: auto;
}

.header-title {
    margin: 0;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 700;
    line-height: 1.2;
}

.header-sub {
    margin: 0;
    font-size: clamp(0.78rem, 2vw, 0.95rem);
    color: var(--kiosk-muted);
    line-height: 1.3;
    word-break: break-word;
}

.kiosk-body {
    flex: 1;
    display: flex;
    gap: 14px;
    padding: 14px;
    overflow: auto;
    min-height: 0;
}

.left-area,
.right-area {
    border-radius: 16px;
    padding: 14px;
    min-width: 0;
}

.left-area {
    flex: 1.35;
    background: var(--kiosk-surface);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.right-area {
    flex: 0.85;
    background: #fff;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: space-between;
}

.select-area {
    flex: 1;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: clamp(14px, 2.5vw, 28px);
    overflow: auto;
    min-height: 0;
}

.kiosk-announcement {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    margin: 0 clamp(14px, 2.5vw, 28px) 0;
    padding: 14px 16px 8px;
    border-radius: 14px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
    font-size: var(--announcement-fs-desktop, 14px);
    line-height: 1.45;
    font-weight: 600;
}

.kiosk-announcement-main {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.kiosk-announcement-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-style: normal;
    font-size: 1rem;
    font-weight: 800;
    margin-top: 2px;
}

.kiosk-announcement-text {
    flex: 1;
    min-width: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
}

.kiosk-announcement.is-expanded .kiosk-announcement-text {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
}

.kiosk-announcement-toggle {
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #2563eb;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    border-radius: 8px;
}

.kiosk-announcement-toggle:hover,
.kiosk-announcement-toggle:focus-visible {
    background: rgba(37, 99, 235, 0.1);
    outline: none;
}

.kiosk-announcement-chevron {
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-top: -4px;
    transition: transform 0.15s ease;
}

.kiosk-announcement.is-expanded .kiosk-announcement-chevron {
    transform: rotate(-135deg);
    margin-top: 4px;
}

.kiosk-announcement-toggle[hidden] {
    display: none !important;
}

.kiosk-card--wide .kiosk-announcement {
    margin-bottom: 4px;
}

.kiosk-card--wide:has(.kiosk-announcement) .select-area {
    padding-top: clamp(10px, 1.5vw, 16px);
}

.kiosk-card--wide {
    max-width: min(1280px, 100%);
}

.select-layout.select-layout--home {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 22px);
    align-items: stretch;
    min-height: min(560px, calc(100dvh - 180px));
}

.select-panel {
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.select-panel--instagram .instagram-promo {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.select-panel--instagram .instagram-promo__card {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.select-panel--instagram .instagram-promo__inner {
    flex: 1;
    justify-content: center;
    gap: clamp(14px, 2.5vh, 22px);
    padding: clamp(18px, 3vw, 28px);
}

.select-panel--instagram .instagram-promo__qr-wrap {
    width: min(240px, 72%);
    flex-shrink: 0;
}

.select-panel--actions {
    margin: 0;
    order: 2;
}

.select-panel--instagram-desktop {
    order: 1;
}

.select-panel--instagram-mobile {
    display: none;
    order: 3;
}

.select-panel--actions .select-stack {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 2vw, 20px);
    width: 100%;
    min-height: 0;
}

.select-layout.select-layout--home .select-btn {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.select-actions {
    width: 100%;
}

.select-stack {
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 2vw, 16px);
    width: 100%;
}

.select-layout {
    width: min(960px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
    gap: clamp(16px, 3vw, 28px);
    align-items: stretch;
}

.select-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.select-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(12px, 2vw, 18px);
}

.select-btn {
    border: none;
    border-radius: 22px;
    font-size: clamp(1.35rem, 3.5vw, 1.85rem);
    font-weight: 800;
    min-height: clamp(88px, 14vh, 130px);
    width: 100%;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    touch-action: manipulation;
}

.select-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
}

.select-btn:active {
    transform: scale(0.98);
}

.phone-input,
.otp-input {
    font-size: clamp(1.45rem, 4.5vw, 2rem);
    padding: 14px;
    text-align: center;
    border-radius: 14px;
    border: 2px solid #e5e7eb;
    background: #fff;
    letter-spacing: 1px;
    font-weight: 800;
    width: 100%;
}

.otp-input {
    letter-spacing: 0.35em;
}

.helper-text {
    font-size: 0.92rem;
    color: var(--kiosk-muted);
    text-align: center;
    margin-top: 6px;
}

.keypad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(8px, 1.5vw, 10px);
    flex: 1;
}

.key-btn {
    border: none;
    background: #fff;
    border-radius: 16px;
    font-size: clamp(1.45rem, 4vw, 2rem);
    font-weight: 800;
    min-height: clamp(64px, 12vw, 95px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
    transition: transform 0.08s ease, background 0.12s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.key-btn:hover {
    background: #f9fafb;
}

.key-btn:active {
    transform: scale(0.97);
}

.key-danger {
    background: #ef4444;
    color: #fff;
    font-size: 1rem;
}

.key-warn {
    background: #f59e0b;
    color: #fff;
    font-size: 1rem;
}

.panel-btn {
    width: 100%;
    border-radius: 14px;
    padding: clamp(12px, 2vw, 14px);
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    font-weight: 800;
    min-height: 48px;
    touch-action: manipulation;
}

.mini-note {
    font-size: 0.94rem;
    color: var(--kiosk-muted);
    padding: 10px 12px;
    background: #f9fafb;
    border-radius: 14px;
    border: 1px solid #eee;
    line-height: 1.45;
}

.mobile-action-bar {
    display: none;
}

.keypad-grid[hidden] {
    display: none !important;
}

/* Instagram QR promo */
.instagram-promo {
    position: relative;
    width: 100%;
}

.instagram-promo__glow {
    position: absolute;
    inset: 8% 5%;
    background: radial-gradient(circle at 30% 20%, rgba(253, 89, 73, 0.35), transparent 55%),
        radial-gradient(circle at 70% 80%, rgba(131, 58, 180, 0.3), transparent 50%);
    filter: blur(18px);
    animation: kiosk-glow-pulse 4s ease-in-out infinite;
    pointer-events: none;
}

.instagram-promo__card {
    position: relative;
    border-radius: 22px;
    padding: 3px;
    background: linear-gradient(135deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
    background-size: 300% 300%;
    animation: kiosk-insta-gradient 8s ease infinite;
    box-shadow: 0 12px 32px rgba(214, 41, 118, 0.22);
}

.instagram-promo__inner {
    position: relative;
    z-index: 1;
    border-radius: 19px;
    background: #fff;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.instagram-promo__badge,
.instagram-promo__qr-wrap,
.instagram-promo__text {
    position: relative;
}

.instagram-promo__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, #fdf497, #fd5949, #d6249f);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(214, 36, 159, 0.25);
}

.instagram-promo__icon {
    display: inline-flex;
}

.instagram-promo__qr-wrap {
    position: relative;
    width: min(168px, 42vw);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
}

.instagram-promo__ring {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    border: 2px solid rgba(214, 36, 159, 0.45);
    animation: kiosk-qr-ring 2.4s ease-out infinite;
}

.instagram-promo__ring--2 {
    animation-delay: 1.2s;
}

.instagram-promo__qr-frame {
    width: 78%;
    aspect-ratio: 1;
    background: #fff;
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    animation: kiosk-qr-float 3.2s ease-in-out infinite;
}

.instagram-promo__qr {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
    display: block;
}

.instagram-promo__text {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.instagram-promo__text strong {
    font-size: 1rem;
    color: var(--kiosk-ink);
}

.instagram-promo__text span {
    font-size: 0.86rem;
    color: var(--kiosk-muted);
}

.instagram-promo--wide {
    width: 100%;
}

.instagram-promo--wide .instagram-promo__inner {
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: clamp(16px, 4vw, 32px);
    padding: clamp(18px, 3vw, 28px);
}

.instagram-promo--wide .instagram-promo__qr-wrap {
    width: min(220px, 72%);
}

.instagram-promo--wide .instagram-promo__text {
    flex: 0 1 auto;
    max-width: 100%;
    text-align: center;
    align-items: center;
}

.instagram-promo--compact .instagram-promo__inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    text-align: left;
    gap: 14px;
    padding: 14px;
}

.instagram-promo--compact .instagram-promo__qr-wrap {
    width: 96px;
}

.instagram-promo--compact .instagram-promo__text {
    flex: 1 1 140px;
    text-align: left;
    align-items: flex-start;
}

.instagram-promo--sidebar {
    height: 100%;
}

.instagram-promo--sidebar .instagram-promo__inner {
    height: 100%;
    justify-content: center;
}

.instagram-mobile-btn {
    position: relative;
    display: block;
    width: 100%;
    text-decoration: none;
    color: inherit;
    border-radius: 20px;
    padding: 3px;
    background: linear-gradient(135deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
    background-size: 300% 300%;
    animation: kiosk-insta-gradient 8s ease infinite;
    box-shadow: 0 10px 28px rgba(214, 41, 118, 0.2);
    touch-action: manipulation;
}

.instagram-mobile-btn__glow {
    position: absolute;
    inset: 10%;
    border-radius: 18px;
    background: radial-gradient(circle at 30% 20%, rgba(253, 89, 73, 0.35), transparent 55%);
    filter: blur(14px);
    pointer-events: none;
}

.instagram-mobile-btn__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 72px;
    padding: 16px 18px;
    border-radius: 17px;
    background: #fff;
}

.instagram-mobile-btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #fdf497, #fd5949, #d6249f);
    flex-shrink: 0;
}

.instagram-mobile-btn__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    flex: 1;
    min-width: 0;
    text-align: left;
}

.instagram-mobile-btn__copy strong {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--kiosk-ink);
    line-height: 1.2;
}

.instagram-mobile-btn__copy span {
    font-size: 0.9rem;
    color: var(--kiosk-muted);
}

.instagram-mobile-btn__arrow {
    font-size: 1.35rem;
    font-weight: 800;
    color: #d62976;
    flex-shrink: 0;
}

.instagram-mobile-btn:active .instagram-mobile-btn__inner {
    transform: scale(0.99);
}

@keyframes kiosk-insta-gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes kiosk-qr-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

@keyframes kiosk-qr-ring {
    0% { transform: scale(0.92); opacity: 0.75; }
    100% { transform: scale(1.18); opacity: 0; }
}

@keyframes kiosk-glow-pulse {
    0%, 100% { opacity: 0.55; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
    .instagram-promo__card,
    .instagram-promo__qr-frame,
    .instagram-promo__ring,
    .instagram-promo__glow {
        animation: none !important;
    }
}

/* Verify-specific */
.details-scroll {
    flex: 1;
    overflow-y: auto;
    padding-right: 6px;
    -webkit-overflow-scrolling: touch;
}

.details-scroll .form-control,
.details-scroll .form-select {
    border-radius: 14px;
    padding: 12px;
    font-size: 1.05rem;
    min-height: 48px;
}

.details-scroll .form-control.is-keypad-active {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.kiosk-text-keypad {
    flex-shrink: 0;
    display: grid;
    gap: 6px;
    padding-top: 10px;
    margin-top: 8px;
    border-top: 1px solid #e5e7eb;
}

.kiosk-text-keypad[hidden] {
    display: none !important;
}

.kiosk-text-keypad__row {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
}

.kiosk-text-keypad__row--actions {
    margin-top: 2px;
}

.kiosk-text-key {
    border: none;
    border-radius: 12px;
    min-width: 2.35rem;
    min-height: 2.65rem;
    padding: 0 0.45rem;
    background: #fff;
    color: var(--kiosk-ink);
    font-size: 1rem;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    touch-action: manipulation;
}

.kiosk-text-key:active {
    transform: scale(0.98);
}

.kiosk-text-key--wide {
    min-width: 5.5rem;
    font-size: 0.92rem;
    font-weight: 700;
}

.gender-option,
.consent-option {
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    padding: 12px 14px;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.15s ease, background 0.15s ease;
    touch-action: manipulation;
}

.gender-option:active,
.consent-option:active {
    transform: scale(0.99);
}

.gender-option.active,
.consent-option.active {
    border-color: #0d6efd;
    background: #eef5ff;
}

.consent-option {
    padding: 14px;
}

.consent-option input {
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.15rem;
}

.modal-content {
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
}

/* Tablet */
@media (max-width: 992px) {
    .select-layout {
        grid-template-columns: 1fr;
    }

    .select-grid {
        grid-template-columns: 1fr;
    }

    .kiosk-body {
        flex-direction: column;
    }

    .left-area,
    .right-area {
        flex: none;
        width: 100%;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .kiosk-wrap {
        align-items: flex-start;
        padding-left: 10px;
        padding-right: 10px;
    }

    .kiosk-announcement {
        font-size: var(--announcement-fs-mobile, 13px);
        padding: 10px 12px;
        gap: 8px;
    }

    .kiosk-announcement-icon {
        width: 22px;
        height: 22px;
        font-size: 0.8rem;
    }

    .kiosk-card {
        min-height: calc(100dvh - var(--kiosk-safe-top) - var(--kiosk-safe-bottom) - 20px);
        border-radius: 14px;
    }

    .kiosk-header {
        padding: 12px 14px;
        flex-wrap: wrap;
    }

    .kiosk-header .btn {
        padding: 8px 12px;
        font-size: 0.88rem;
        border-radius: 12px !important;
    }

    .logo-img {
        max-height: 40px;
    }

    .kiosk-body {
        padding: 10px;
        padding-bottom: calc(10px + var(--kiosk-safe-bottom));
    }

    .right-area .panel-btn:not(.mobile-action-bar .panel-btn) {
        display: none;
    }

    .mobile-action-bar {
        display: grid;
        gap: 8px;
        position: sticky;
        bottom: 0;
        padding: 10px 0 calc(6px + var(--kiosk-safe-bottom));
        background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 24%);
        z-index: 15;
    }

    .instagram-promo--sidebar {
        order: -1;
    }

    .select-layout.select-layout--home {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        min-height: auto;
        gap: 14px;
    }

    .select-panel--instagram-desktop {
        display: none;
    }

    .select-panel--instagram-mobile {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }

    .select-panel--actions {
        order: 1;
    }

    .select-panel--instagram-mobile {
        order: 2;
    }

    .select-layout.select-layout--home .select-btn {
        min-height: clamp(72px, 18vw, 96px);
    }

    .select-panel--actions .select-stack {
        flex: 0 1 auto;
    }

    .instagram-promo--hero .instagram-promo__inner {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        padding: 12px;
    }

    .instagram-promo--hero .instagram-promo__qr-wrap {
        width: 100px;
    }

    .instagram-promo--hero .instagram-promo__text {
        flex: 1 1 160px;
        text-align: left;
        align-items: flex-start;
    }
}

@media (max-width: 380px) {
    .key-btn {
        min-height: 58px;
        font-size: 1.35rem;
    }

    .phone-input,
    .otp-input {
        font-size: 1.35rem;
        letter-spacing: 0.15em;
    }
}

/* Feedback modals */
.kiosk-feedback-modal__dialog {
    max-width: min(420px, calc(100vw - 28px));
}

.kiosk-feedback-modal__content {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.kiosk-feedback-modal__body {
    padding: clamp(24px, 5vw, 34px) clamp(20px, 4vw, 28px) clamp(20px, 4vw, 26px);
    text-align: center;
}

.kiosk-feedback-icon {
    position: relative;
    width: 96px;
    height: 96px;
    margin: 0 auto 18px;
}

.kiosk-feedback-icon__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    opacity: 0.35;
    animation: kiosk-feedback-ring 2.2s ease-out infinite;
}

.kiosk-feedback-icon__core {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
    animation: kiosk-feedback-pop 0.55s cubic-bezier(0.2, 0.9, 0.25, 1.2) both;
}

.kiosk-feedback-icon__svg {
    width: 58px;
    height: 58px;
}

.kiosk-feedback-icon--success {
    color: #059669;
}

.kiosk-feedback-icon--success .kiosk-feedback-icon__ring {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.35) 0%, rgba(16, 185, 129, 0) 72%);
}

.kiosk-feedback-icon--success .kiosk-feedback-icon__core {
    background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);
    border: 2px solid rgba(16, 185, 129, 0.22);
}

.kiosk-feedback-icon--success .kiosk-feedback-icon__circle {
    opacity: 0.35;
}

.kiosk-feedback-icon--success .kiosk-feedback-icon__check {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: kiosk-feedback-check 0.65s ease 0.2s forwards;
}

.kiosk-feedback-icon--danger {
    color: #dc2626;
}

.kiosk-feedback-icon--danger .kiosk-feedback-icon__ring {
    background: radial-gradient(circle, rgba(239, 68, 68, 0.32) 0%, rgba(239, 68, 68, 0) 72%);
}

.kiosk-feedback-icon--danger .kiosk-feedback-icon__core {
    background: linear-gradient(180deg, #fef2f2 0%, #fee2e2 100%);
    border: 2px solid rgba(239, 68, 68, 0.2);
}

.kiosk-feedback-icon--danger .kiosk-feedback-icon__cross {
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: kiosk-feedback-check 0.5s ease 0.15s forwards;
}

.kiosk-feedback-icon--warning {
    color: #d97706;
}

.kiosk-feedback-icon--warning .kiosk-feedback-icon__ring {
    background: radial-gradient(circle, rgba(245, 158, 11, 0.32) 0%, rgba(245, 158, 11, 0) 72%);
}

.kiosk-feedback-icon--warning .kiosk-feedback-icon__core {
    background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
    border: 2px solid rgba(245, 158, 11, 0.22);
}

.kiosk-feedback-icon--info {
    color: #2563eb;
}

.kiosk-feedback-icon--info .kiosk-feedback-icon__ring {
    background: radial-gradient(circle, rgba(37, 99, 235, 0.28) 0%, rgba(37, 99, 235, 0) 72%);
}

.kiosk-feedback-icon--info .kiosk-feedback-icon__core {
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid rgba(37, 99, 235, 0.2);
}

.kiosk-feedback-modal__eyebrow {
    margin: 0 0 6px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.kiosk-feedback-modal__eyebrow--success { color: #059669; }
.kiosk-feedback-modal__eyebrow--danger { color: #dc2626; }
.kiosk-feedback-modal__eyebrow--warning { color: #d97706; }
.kiosk-feedback-modal__eyebrow--info { color: #2563eb; }

.kiosk-feedback-modal__title {
    margin: 0 0 10px;
    font-size: clamp(1.35rem, 4vw, 1.65rem);
    font-weight: 800;
    color: var(--kiosk-ink);
    line-height: 1.2;
}

.kiosk-feedback-modal__message {
    margin: 0 0 22px;
    font-size: clamp(1rem, 2.8vw, 1.12rem);
    line-height: 1.5;
    color: var(--kiosk-muted);
}

.kiosk-feedback-modal__btn {
    border: none;
    border-radius: 16px;
    padding: 14px 18px;
    font-size: 1.08rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--kiosk-brand) 0%, var(--kiosk-brand-dark) 100%);
    box-shadow: 0 10px 24px rgba(232, 93, 4, 0.28);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.kiosk-feedback-modal__btn:hover,
.kiosk-feedback-modal__btn:focus {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(232, 93, 4, 0.34);
}

.kiosk-feedback-modal--success .kiosk-feedback-modal__btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 10px 24px rgba(16, 185, 129, 0.28);
}

@keyframes kiosk-feedback-pop {
    0% { transform: scale(0.55); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes kiosk-feedback-ring {
    0% { transform: scale(0.92); opacity: 0.45; }
    70% { transform: scale(1.18); opacity: 0; }
    100% { transform: scale(1.18); opacity: 0; }
}

    @keyframes kiosk-feedback-check {
        to { stroke-dashoffset: 0; }
    }

/* Bekleme ekrani reklam alani */
.kiosk-idle-overlay {
    position: fixed;
    inset: 0;
    z-index: 25000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 12, 20, 0.92);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    touch-action: manipulation;
}

.kiosk-idle-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.kiosk-idle-frame {
    width: min(96vw, 1200px);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 18px;
}

.kiosk-idle-hint {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.kiosk-idle-media-wrap {
    width: 100%;
    flex: 1;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.kiosk-idle-image,
.kiosk-idle-video {
    width: 100%;
    max-height: 72vh;
    object-fit: contain;
    display: block;
    background: #000;
}

.kiosk-idle-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
}

.kiosk-idle-dots {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.kiosk-idle-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
}

.kiosk-idle-dot.is-active {
    background: #f97316;
    transform: scale(1.15);
}

body.kiosk-idle-open {
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .kiosk-feedback-icon__core,
    .kiosk-feedback-icon__ring,
    .kiosk-feedback-icon__check,
    .kiosk-feedback-icon__cross {
        animation: none !important;
    }

    .kiosk-feedback-icon__check,
    .kiosk-feedback-icon__cross {
        stroke-dashoffset: 0;
    }
}
