:root {
    --ink: #0b1624;
    --muted: #5c6775;
    --panel: #ffffff;
    --accent: #18a76c;
    --accent-dark: #0f7a55;
    --soft: #f2f6fb;
    --shadow: 0 24px 60px rgba(8, 20, 35, 0.38);
    --radius: 24px;
}

body {
    /* background: radial-gradient(circle at 12% 8%, #e8f1ff 0%, #f6faff 45%, #eef7f3 100%); */
    min-height: 100vh;
    color: var(--ink);
}

.exit-pass-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px 36px;
    position: relative;
    overflow: hidden;
}

.exit-pass-page::before,
.exit-pass-page::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(24, 167, 108, 0.18), rgba(24, 167, 108, 0));
    z-index: 0;
}

.exit-pass-page::before {
    top: -140px;
    right: -120px;
}

.exit-pass-page::after {
    bottom: -180px;
    left: -120px;
    background: radial-gradient(circle, rgba(27, 95, 168, 0.16), rgba(27, 95, 168, 0));
}

.exit-pass-card {
    position: relative;
    width: 100%;
    max-width: 560px;
    min-height: min(88vh, 700px);
    background: var(--panel);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.exit-pass-header {
    padding: 18px 22px 32px;
    background: linear-gradient(140deg, #0b1a2a 0%, #1b3c64 50%, #0b1a2a 100%);
    color: #fff;
    text-align: center;
    position: relative;
    z-index: 9999;
}

.exit-pass-header::after {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: -22px;
    height: 46px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.35), rgba(24, 167, 108, 0.25));
    filter: blur(4px);
    opacity: 0.9;
}

.exit-pass-title {
    letter-spacing: 0.4px;
    font-size: clamp(1.1rem, 2.5vw, 1.45rem);
    margin: 0;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.35);
}

.exit-pass-subtitle {
    color: #d7e6f5;
    font-size: clamp(0.85rem, 2.2vw, 0.98rem);
    margin: 6px 0 0;
}

.exit-pass-brand img {
    max-width: 140px;
    height: auto;
    margin-top: 10px;
}

.exit-pass-body {
    padding: 18px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1 1 auto;
}

.exit-pass-body .step-one,
.exit-pass-body .step-two {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1 1 auto;
}

.exit-pass-body.step-one {
    flex: 0 0 auto;
    justify-content: center;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: auto 0;
}

.info-grid.info-grid-compact {
    gap: 8px;
    margin: 0;
}

.info-grid.info-grid-compact .info-tile {
    min-height: 54px;
    padding: 8px 10px;
}

.info-grid.info-grid-compact .info-label {
    font-size: 0.72rem;
}

.info-grid.info-grid-compact .info-value {
    font-size: 0.9rem;
}

.info-tile {
    border: 1px solid #e1e7f0;
    border-radius: 16px;
    padding: 10px 12px;
    background: #f7f9fc;
    min-height: 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-label {
    color: var(--muted);
    font-size: 0.76rem;
    margin-bottom: 4px;
}

.info-value {
    font-weight: 700;
    font-size: 0.98rem;
}

.approval-stamp {
    align-self: center;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: none;
    background: #5ab53b;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 24px rgba(24, 167, 108, 0.22);
    transform: scale(1);
    opacity: 1;
    animation: stamp-grow 2s ease-in-out 1 forwards;
}

.approval-stamp.lock-stamp {
    background: #7bc6b5;
    box-shadow: 0 12px 24px rgba(86, 158, 144, 0.28);
}

.approval-stamp.gif-stamp {
    background: transparent;
    box-shadow: none;
}

.approval-stamp.gif-stamp img {
    width: 140px;
    height: auto;
    display: block;
}

.breath-effect {
    animation: breath 5s infinite ease-in-out;
}

@keyframes breath {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.9);
    }
}

.approval-stamp svg {
    width: 84px;
    height: 84px;
}

.approval-stamp path {
    stroke: #ffffff;
    stroke-width: 10;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.approval-stamp.lock-stamp .lock-body {
    fill: #ffffff;
    opacity: 0.95;
}

.approval-stamp.lock-stamp .lock-keyhole,
.approval-stamp.lock-stamp .lock-keyhole-slot {
    fill: #6bb7a5;
}

.approval-stamp.lock-stamp .lock-shackle {
    stroke: #3f3f3f;
    stroke-width: 12;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform-origin: 40px 56px;
    transform-box: fill-box;
    animation: lock-close 2s ease-in-out infinite;
}

.approval-stamp.hourglass-stamp {
    background: #2a7bdc;
    box-shadow: 0 12px 24px rgba(42, 123, 220, 0.28);
}

.approval-stamp.hourglass-stamp .glass-frame {
    stroke: #ffffff;
    stroke-width: 8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.approval-stamp.hourglass-stamp .glass-sand {
    fill: #ffffff;
    opacity: 0.9;
    transform-origin: 60px 60px;
    animation: hourglass-flip 4.8s ease-in-out infinite;
}

@keyframes lock-close {
    0% {
        transform: rotate(-35deg);
        opacity: 0.2;
    }

    40% {
        transform: rotate(-35deg);
        opacity: 1;
    }

    70% {
        transform: rotate(0deg);
        opacity: 1;
    }

    95% {
        transform: rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: rotate(-35deg);
        opacity: 0.2;
    }
}

@keyframes hourglass-flip {
    0% {
        transform: rotate(0deg);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    50% {
        transform: rotate(180deg);
        opacity: 1;
    }

    95% {
        transform: rotate(180deg);
        opacity: 1;
    }

    100% {
        transform: rotate(360deg);
        opacity: 0;
    }
}

@keyframes stamp-grow {
    0% {
        transform: scale(0.6);
        opacity: 0;
    }

    20% {
        transform: scale(1.05);
        opacity: 1;
    }

    70% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.status-pill {
    --pill-bg: #ffffff;
    --pill-border: var(--accent);
    --pill-text: var(--accent-dark);
    --pill-shadow: rgba(24, 167, 108, 0.18);
    --pill-glow: rgba(24, 167, 108, 0.28);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--pill-bg);
    border: 2px solid var(--pill-border);
    font-weight: 700;
    color: var(--pill-text);
    font-size: 0.95rem;
    box-shadow: 0 10px 20px var(--pill-shadow);
    position: relative;
    overflow: hidden;
}

.status-pill.status-confirm {
    --pill-bg: #ffffff;
    --pill-border: #18a76c;
    --pill-text: #0f7a55;
    --pill-shadow: rgba(24, 167, 108, 0.28);
    --pill-glow: rgba(24, 167, 108, 0.42);
}

.status-pill.status-waiting {
    --pill-bg: #f3f8ff;
    --pill-border: #2a7bdc;
    --pill-text: #1f5fa8;
    --pill-shadow: rgba(42, 123, 220, 0.3);
    --pill-glow: rgba(42, 123, 220, 0.45);
}

.status-pill.status-declined {
    --pill-bg: #fff5f5;
    --pill-border: #d64545;
    --pill-text: #b13131;
    --pill-shadow: rgba(214, 69, 69, 0.3);
    --pill-glow: rgba(214, 69, 69, 0.45);
}

.status-pill.status-out {
    --pill-bg: #f4f6f8;
    --pill-border: #4b5b6b;
    --pill-text: #2f3b46;
    --pill-shadow: rgba(75, 91, 107, 0.32);
    --pill-glow: rgba(75, 91, 107, 0.45);
}

.status-pill.status-back {
    --pill-bg: #f4f6f8;
    --pill-border: #4b5b6b;
    --pill-text: #2f3b46;
    --pill-shadow: rgba(75, 91, 107, 0.32);
    --pill-glow: rgba(75, 91, 107, 0.45);
}

.status-pill::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(120deg, transparent, var(--pill-glow), transparent);
    animation: pill-shine 2.8s ease-in-out infinite;
}

.status-dock {
    --dock-glow: rgba(24, 167, 108, 0.5);
    --dock-bg-start: #e4ffef;
    --dock-bg-mid: #c9f6e1;
    --dock-bg-end: #b3efda;
    margin-top: 10px;
    padding: 14px 16px 16px;
    border-radius: 24px;
    background: linear-gradient(120deg, var(--dock-bg-start), var(--dock-bg-mid), var(--dock-bg-end));
    background-size: 200% 200%;
    box-shadow: 0 16px 32px var(--dock-glow);
    position: relative;
    overflow: hidden;
    text-align: center;
    animation: status-shift 10s ease-in-out infinite;
}

.status-dock::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: translateX(-65%);
    animation: status-sweep 3.6s ease-in-out infinite;
    pointer-events: none;
}

.status-dock.status-confirm {
    --dock-glow: rgba(24, 167, 108, 0.5);
    --dock-bg-start: #e4ffef;
    --dock-bg-mid: #c9f6e1;
    --dock-bg-end: #b3efda;
}

.status-dock.status-waiting {
    --dock-glow: rgba(42, 123, 220, 0.5);
    --dock-bg-start: #d9e9ff;
    --dock-bg-mid: #c3dcff;
    --dock-bg-end: #b1d2ff;
}

.status-dock.status-declined {
    --dock-glow: rgba(214, 69, 69, 0.5);
    --dock-bg-start: #ffdcdc;
    --dock-bg-mid: #ffc6c6;
    --dock-bg-end: #ffb3b3;
}

.status-dock.status-out,
.status-dock.status-back {
    --dock-glow: rgba(75, 91, 107, 0.5);
    --dock-bg-start: #e6eaef;
    --dock-bg-mid: #d3dbe3;
    --dock-bg-end: #c2ccd6;
}

.status-handle {
    width: 56px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    margin: 0 auto 10px;
    box-shadow: 0 6px 14px rgba(15, 33, 56, 0.12);
}

.status-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.status-note {
    color: var(--muted);
    font-size: 0.82rem;
}

.status-pill .bi {
    font-size: 1.05rem;
    line-height: 1;
}

.exit-pass-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    width: 100%;
}

.exit-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    padding: 12px 28px;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.1;
    white-space: nowrap;
    min-width: 100%;
    width: 100%;
    max-width: 100%;
}

.otp-card {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    border: 1px solid #e3e9f0;
    box-shadow: 0 18px 40px rgba(11, 26, 42, 0.08);
    margin: auto 0;
}

.otp_div {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.otp_div input[type="number"] {
    font-size: 1.3rem;
    font-weight: 700;
    padding: 10px 0;
    border-radius: 12px;
    border: 1px solid #d6dee9;
    background: #f8fafc;
}

.otp_div input[type="text"] {
    width: 100%;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #d6dee9;
    background: #f8fafc;
}

.pass-footer {
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 24px;
}

@keyframes status-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes status-sweep {
    0% {
        transform: translateX(0);
        opacity: 0;
    }

    20% {
        opacity: 0.9;
    }

    100% {
        transform: translateX(330%);
        opacity: 0;
    }
}

@keyframes pill-shine {
    0% {
        transform: translateX(0);
        opacity: 0;
    }

    25% {
        opacity: 0.9;
    }

    100% {
        transform: translateX(380%);
        opacity: 0;
    }
}


.modal {
    overflow-y: hidden !important;
}

@media (max-width: 768px) {
    .exit-pass-page {
        align-items: flex-start;
        min-height: 100vh;
        min-height: 100dvh;
        padding: calc(env(safe-area-inset-top, 0px) + 8px) 16px 16px !important;
    }

    .exit-pass-card {
        min-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 24px);
    }

    .exit-pass-header {
        padding: 12px 16px 20px;
    }

    .exit-pass-brand img {
        max-width: 112px;
        margin-top: 4px;
    }

    .exit-pass-body {
        padding: 10px 12px 10px;
        gap: 8px;
    }

    .info-grid {
        gap: 8px;
    }

    .info-tile {
        padding: 8px 10px;
    }

    .info-value {
        font-size: 0.92rem;
    }

    .status-dock {
        padding: 10px 12px 12px;
    }

    .exit-action-btn {
        min-width: 100%;
        max-width: 100%;
    }

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