/* Portal SATU — Landing & auth */

:root {
    --ja-green: #198754;
    --ja-green-dark: #0f5132;
    --ja-gold: #ffd700;
    --portal-bg: #0b120d;
}

*, *::before, *::after { box-sizing: border-box; }

body.portal-body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Poppins', system-ui, sans-serif;
    background: var(--portal-bg);
    background-image:
        radial-gradient(circle at 20% 20%, rgba(32, 201, 151, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 80% 80%, rgba(15, 81, 50, 0.2) 0%, transparent 50%);
    color: #f8f9fa;
}

.portal-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.portal-card {
    background: rgba(255, 255, 255, 0.98);
    color: #212529;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.portal-logo {
    height: 56px;
    width: auto;
}

.portal-landing-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.portal-landing-lead {
    font-size: 0.95rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

.badge-join {
    background: rgba(25, 135, 84, 0.12);
    color: var(--ja-green-dark);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.btn-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    background: #fff;
    color: #3c4043;
    border: 1px solid #dadce0;
    border-radius: 999px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: box-shadow 0.2s, transform 0.2s;
}

.btn-google:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
    color: #202124;
}

.btn-google img {
    width: 20px;
    height: 20px;
}

.status-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid #e9ecef;
}

[data-bs-theme="dark"] .portal-card,
body.dark-mode .portal-card {
    background: #1e1e1e;
    color: #f8f9fa;
    border-color: #3a403c;
}

[data-bs-theme="dark"] .status-box,
body.dark-mode .status-box {
    background: #252a27;
    border-color: #3a403c;
}

.auth-theme-toggle .theme-toggle-btn {
    color: #ffd700;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
}

/* Dashboard form */
.portal-logo-sm {
    height: 44px;
    width: auto;
}

.portal-form .form-control,
.portal-form .input-group-text {
    border-radius: 10px;
    font-size: 0.9rem;
}

.portal-form .input-group-text {
    background: #f8f9fa;
    color: #198754;
    border-color: #dee2e6;
}

.portal-form .form-control:focus {
    border-color: #198754;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.15);
}

.complete-banner {
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.08) 0%, rgba(25, 135, 84, 0.02) 100%);
    border-radius: 14px;
    border: 1px solid rgba(25, 135, 84, 0.15);
}

.complete-icon i {
    font-size: 3rem;
}

.summary-list dd {
    margin-bottom: 0.65rem;
}

.payment-notice {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.12) 0%, rgba(255, 193, 7, 0.04) 100%);
    border: 1px solid rgba(255, 193, 7, 0.35);
    border-radius: 14px;
    padding: 1.25rem;
}

.payment-notice-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 193, 7, 0.2);
    color: #856404;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.waiting-banner {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.08) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: 14px;
    border: 1px dashed rgba(255, 193, 7, 0.45);
}

.waiting-icon i {
    font-size: 2.75rem;
}

.bukti-preview {
    max-height: 180px;
    max-width: 100%;
    object-fit: contain;
}

.bukti-thumb {
    max-height: 72px;
    max-width: 120px;
    object-fit: cover;
    cursor: pointer;
}

.admin-verifikasi {
    max-width: 1200px;
    margin: 0 auto;
}

.admin-table th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c757d;
}

.admin-table td {
    font-size: 0.9rem;
}

.letter-spacing-pin {
    letter-spacing: 0.35em;
}

/* Audition Pass / Kartu Identitas Peserta */
.audition-pass-preview {
    background: #f3f6f4;
    border-radius: 16px;
    padding: 1rem;
}

.audition-pass {
    background: #fff;
    border: 2px solid #198754;
    border-radius: 16px;
    overflow: hidden;
    color: #212529;
    max-width: 720px;
    margin: 0 auto;
}

.audition-pass-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #198754 0%, #0f5132 100%);
    color: #fff;
}

.audition-pass-eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
}

.audition-pass-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0.15rem 0 0;
}

.audition-pass-pin {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    padding: 0.35rem 0.75rem;
    line-height: 1.1;
}

.audition-pass-body {
    display: grid;
    grid-template-columns: 110px 1fr 150px;
    gap: 1rem;
    padding: 1.25rem;
    align-items: start;
}

/* Pas foto — rasio tetap 3:4 (cegah gepeng / tertarik) */
.satu-pasfoto,
.audition-pass-photo {
    display: block;
    width: 120px;
    max-width: 100%;
    aspect-ratio: 3 / 4;
    height: auto;
    object-fit: cover;
    object-position: center top;
    border-radius: 8px;
    border: 2px solid #ddd;
    margin: 0 auto;
    background: #f8f9fa;
}

.satu-pasfoto--sm {
    width: 90px;
}

.satu-pasfoto--xs {
    width: 72px;
}

.audition-pass-photo-wrap {
    width: 120px;
    max-width: 100%;
    margin: 0 auto;
}

.audition-pass-photo.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    min-height: 160px;
    color: #adb5bd;
    font-size: 2rem;
}

/* Cropper modal preview */
.satu-crop-stage {
    max-height: min(60vh, 480px);
    background: #111;
}
.satu-crop-stage img {
    display: block;
    max-width: 100%;
}
.satu-pasfoto-preview {
    width: 96px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #198754;
    display: none;
}

.audition-pass-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f5132;
    margin-bottom: 0.75rem;
}

.audition-pass-list {
    display: grid;
    gap: 0.45rem;
    margin: 0;
}

.audition-pass-list > div {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 0.5rem;
    font-size: 0.82rem;
}

.audition-pass-list dt {
    margin: 0;
    color: #6c757d;
    font-weight: 500;
}

.audition-pass-list dd {
    margin: 0;
    font-weight: 600;
}

.audition-pass-qr-wrap {
    text-align: center;
}

.audition-pass-qr {
    display: inline-flex;
    justify-content: center;
    padding: 0.4rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.audition-pass-qr-caption {
    font-size: 0.7rem;
    color: #6c757d;
    margin-top: 0.4rem;
}

.audition-pass-footer {
    border-top: 1px dashed #d1e7dd;
    padding: 0.75rem 1.25rem;
    font-size: 0.75rem;
    color: #6c757d;
    background: #f8fbf9;
}

/* Hanya untuk window.print() — jangan tampil di layar */
@media screen {
    .print-only {
        display: none !important;
        visibility: hidden !important;
        position: absolute !important;
        left: -9999px !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;
    }
}

.print-only {
    display: none;
}

@media (max-width: 700px) {
    .audition-pass-body {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .audition-pass-list > div {
        grid-template-columns: 1fr;
        gap: 0.1rem;
    }

    .audition-pass-header {
        flex-direction: column;
        text-align: center;
    }
}

@media print {
    @page {
        size: A4 portrait;
        margin: 12mm;
    }

    body.portal-body {
        background: #fff !important;
        background-image: none !important;
        color: #000 !important;
    }

    .no-print,
    .satu-sandbox-banner {
        display: none !important;
    }

    .print-only {
        display: block !important;
        visibility: visible !important;
        position: static !important;
        left: auto !important;
        top: auto !important;
        width: auto !important;
        height: auto !important;
        overflow: visible !important;
        clip: auto !important;
        pointer-events: auto !important;
    }

    .audition-pass {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        border: 2px solid #198754 !important;
        border-radius: 10px !important;
        overflow: visible !important;
        box-shadow: none !important;
        page-break-inside: avoid;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .audition-pass-header {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        background: #198754 !important;
        color: #fff !important;
        padding: 0.85rem 1rem !important;
    }

    .audition-pass-pin {
        font-size: 1.35rem !important;
    }

    .audition-pass-body {
        display: table !important;
        width: 100% !important;
        table-layout: fixed !important;
        border-collapse: separate !important;
        border-spacing: 12px 0 !important;
        padding: 1rem !important;
        gap: 0 !important;
        grid-template-columns: none !important;
    }

    .audition-pass-photo-wrap,
    .audition-pass-meta,
    .audition-pass-qr-wrap {
        display: table-cell !important;
        vertical-align: top !important;
    }

    .audition-pass-photo-wrap {
        width: 96px !important;
        max-width: 96px !important;
    }

    .audition-pass-photo {
        width: 90px !important;
        height: auto !important;
        aspect-ratio: 3 / 4 !important;
        object-fit: cover !important;
    }

    .audition-pass-meta {
        width: auto !important;
    }

    .audition-pass-qr-wrap {
        width: 130px !important;
        max-width: 130px !important;
        text-align: center !important;
    }

    .audition-pass-qr {
        width: 120px !important;
        max-width: 120px !important;
        margin: 0 auto !important;
        padding: 0.25rem !important;
        overflow: visible !important;
    }

    .audition-pass-qr img,
    .audition-pass-qr canvas {
        width: 110px !important;
        height: 110px !important;
        max-width: 110px !important;
    }

    .audition-pass-list > div {
        grid-template-columns: 110px 1fr !important;
        font-size: 0.78rem !important;
    }

    .audition-pass-footer {
        font-size: 0.72rem !important;
        padding: 0.65rem 1rem !important;
    }
}

/* Landing: teaser + promo banner */
.satu-promo-banner {
    width: 100%;
    max-width: 100%;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #212529;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.satu-promo-banner-img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    object-position: center;
    background: rgba(0, 0, 0, 0.06);
}

.satu-promo-banner-body {
    padding: 1rem 1.25rem 1.15rem;
}

.satu-promo-badge {
    display: inline-block;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 999px;
    padding: 0.2rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.45rem;
}

.satu-promo-text {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
}

.portal-card--landing {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.satu-teaser-wrap {
    position: relative;
    display: block;
    width: 100% !important;
    max-width: min(100%, 560px) !important;
    margin: 0 auto;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(15, 81, 50, 0.12);
    box-shadow: 0 10px 28px rgba(11, 18, 13, 0.12);
    background: #111;
    line-height: 0;
    isolation: isolate;
    aspect-ratio: 16 / 9;
    height: auto;
    transform: translateZ(0);
}

.satu-teaser-video {
    position: absolute;
    inset: 0;
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    object-fit: contain;
    object-position: center;
    background: #111;
    border: 0;
    border-radius: 0;
}

.satu-teaser-frame {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
    border-radius: 0;
    overflow: hidden;
}

.satu-teaser-frame.ratio {
    --bs-aspect-ratio: 56.25%;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
}

.satu-teaser-frame.ratio::before {
    display: none;
    padding: 0;
}

.satu-teaser-frame iframe {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    border: 0;
    border-radius: 0;
    pointer-events: none;
}

html[data-bs-theme="dark"] .portal-card .satu-teaser-wrap,
body.dark-mode .portal-card .satu-teaser-wrap,
html[data-bs-theme="dark"] .satu-teaser-wrap,
body.dark-mode .satu-teaser-wrap {
    background: #0a0a0a;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

/* Landing: spacing & soft accents inside portal card */
.portal-card .alert {
    border-radius: 14px;
}

.portal-card .text-muted {
    line-height: 1.55;
}

@media (max-width: 575.98px) {
    .portal-card {
        border-radius: 22px;
    }

    .satu-teaser-wrap {
        border-radius: 14px;
        max-width: min(100%, 100%) !important;
    }

    .satu-promo-banner-img {
        max-height: 140px;
    }
}

/* Scanner result panels */
.satu-scan-result {
    border-radius: 16px;
    padding: 1.5rem;
    background: #f1f3f5;
    border: 2px solid #dee2e6;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    min-height: 110px;
}

.satu-scan-result.is-success {
    background: linear-gradient(135deg, #198754 0%, #0f5132 100%);
    border-color: #ffd700;
    box-shadow: 0 0 0 4px rgba(25, 135, 84, 0.2), 0 12px 30px rgba(15, 81, 50, 0.35);
    color: #fff;
}

.satu-scan-result.is-error {
    background: linear-gradient(135deg, #dc3545 0%, #7a121c 100%);
    border-color: #ffc9ce;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.18), 0 12px 30px rgba(122, 18, 28, 0.3);
    color: #fff;
}

.satu-scan-result-label {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.satu-scan-result-message {
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: 0.35rem;
    opacity: 0.95;
}

.satu-qr-reader {
    min-height: 260px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

/* ============================================================
   Layar Ruang Tunggu — Executive Glassmorphism (mode=tunggu)
   ============================================================ */
.ruang-tunggu-body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100vw;
    height: 100vh;
    overflow: hidden !important;
    background: radial-gradient(circle at 15% 20%, #0d5c3a 0%, #052c1a 50%, #02140b 100%) !important;
    color: #ffffff;
    font-family: 'Poppins', Inter, system-ui, sans-serif;
}

.ruang-tunggu-shell {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

.ruang-tunggu-topbar {
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 70px;
}

.ruang-tunggu-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.ruang-tunggu-logos {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}

.ruang-tunggu-uin-badge {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(145deg, #117a4d 0%, #0a4d2e 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.ruang-tunggu-uin-mark {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.ruang-tunggu-uin-sub {
    font-size: 0.55rem;
    font-weight: 600;
    opacity: 0.85;
}

.ruang-tunggu-logo-uin,
#logo-uin-header,
.ruang-tunggu-topbar img.logo-uin {
    height: 48px !important;
    width: auto !important;
    max-height: 52px;
    object-fit: contain !important;
    margin-right: 14px;
    flex-shrink: 0;
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    border-radius: 8px !important;
    padding: 3px 5px !important;
    mix-blend-mode: normal !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

.ruang-tunggu-logo-ja {
    height: 46px;
    width: auto;
    max-width: 54px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 10px;
    padding: 3px;
}

.ruang-tunggu-title-wrap { min-width: 0; }

.ruang-tunggu-eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
}

.ruang-tunggu-title {
    margin: 0;
    font-size: clamp(0.9rem, 1.5vw, 1.15rem);
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.5px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ruang-tunggu-clock {
    text-align: right;
    flex-shrink: 0;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.25);
    border-radius: 12px;
    padding: 0.35rem 0.9rem;
}

.ruang-tunggu-clock-time {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.05em;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.ruang-tunggu-clock-date {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    margin-top: 2px;
}

.ruang-tunggu-main {
    flex: 1 1 auto;
    min-height: 0;
    padding: 20px;
    overflow: hidden;
}

.ruang-tunggu-main > .row { height: 100%; }

.ruang-tunggu-video-panel {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    max-height: calc(100vh - 160px);
    position: relative;
}

.ruang-tunggu-video-16x9 {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ruang-tunggu-video-16x9 iframe {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
    display: block;
    border-radius: 0 !important;
}

.ruang-tunggu-empty {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.8);
}

.ruang-tunggu-empty h2 {
    color: #34d399;
    font-weight: 700;
}

.ruang-tunggu-queue-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    height: 100%;
    max-height: calc(100vh - 160px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
}

.ruang-tunggu-queue-header {
    background: linear-gradient(135deg, #117a4d 0%, #0a4d2e 100%);
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.ruang-tunggu-queue-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
}

.ruang-tunggu-queue-sub {
    color: rgba(165, 243, 252, 0.85);
    font-size: 0.85rem;
    margin-top: 0.35rem;
    font-weight: 500;
}

.ruang-tunggu-queue-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 15px;
    min-height: 0;
}

.ruang-tunggu-queue-body::-webkit-scrollbar { width: 6px; }
.ruang-tunggu-queue-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

.ruang-tunggu-pin-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 4px solid #10b981;
    margin-bottom: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.ruang-tunggu-pin-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(2px);
}

.ruang-tunggu-pin {
    color: #34d399;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(52, 211, 153, 0.35);
    padding-bottom: 1px;
}

.ruang-tunggu-nama {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    text-align: right;
    line-height: 1.3;
}

.ruang-tunggu-empty-queue {
    height: 100%;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    padding: 1.5rem;
}

.ruang-tunggu-queue-footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.ruang-tunggu-tip {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.55rem;
    line-height: 1.4;
}

.ruang-tunggu-stat {
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.ruang-tunggu-stat-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.25);
    border: 1px solid rgba(52, 211, 153, 0.35);
    color: #6ee7b7;
    font-weight: 700;
}

.ruang-tunggu-footer {
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    height: 48px;
    display: flex;
    align-items: center;
    overflow: hidden;
    gap: 0.75rem;
}

.ruang-tunggu-info-badge {
    flex-shrink: 0;
    background: linear-gradient(135deg, #117a4d 0%, #0a4d2e 100%);
    color: #ffffff;
    border-radius: 4px;
    padding: 4px 10px;
    margin-left: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

.ruang-tunggu-ticker {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    min-width: 0;
}

.ruang-tunggu-ticker-track {
    display: inline-flex;
    gap: 4rem;
    white-space: nowrap;
    animation: ruang-tunggu-marquee 40s linear infinite;
    will-change: transform;
}

.ruang-tunggu-ticker-text {
    display: inline-block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    font-weight: 500;
    padding-left: 1rem;
}

@keyframes ruang-tunggu-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.ruang-tunggu-exit {
    position: absolute;
    right: 16px;
    bottom: 56px;
    z-index: 20;
    opacity: 0.3;
    color: #fff;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s ease, background 0.2s ease;
}

.ruang-tunggu-exit:hover {
    opacity: 1;
    color: #fff;
    background: rgba(16, 185, 129, 0.55);
}

.ruang-tunggu-audio-btn {
    position: absolute;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    pointer-events: auto;
}

.ruang-tunggu-audio-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(0, 0, 0, 0.75);
}

.ruang-tunggu-audio-btn.is-unmuted {
    background: rgba(16, 185, 129, 0.8);
    border-color: rgba(110, 231, 183, 0.45);
}

.ruang-tunggu-audio-btn.is-unmuted:hover {
    background: rgba(16, 185, 129, 0.95);
}

.glass-volume-slider {
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 18px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    pointer-events: auto;
}

.glass-volume-slider #vol-icon {
    color: #34d399;
    font-size: 1.2rem;
    line-height: 1;
    transition: color 0.2s ease;
}

.glass-volume-slider #vol-icon.is-mute { color: #f87171; }
.glass-volume-slider #vol-icon.is-low { color: #fbbf24; }
.glass-volume-slider #vol-icon.is-high { color: #34d399; }

.glass-volume-slider #yt-vol-slider {
    width: 120px;
    accent-color: #10b981;
    cursor: pointer;
}

.glass-volume-slider #vol-text {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 35px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* Voice AI calling overlay */
.ruang-tunggu-call-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(2, 18, 12, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.ruang-tunggu-call-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.ruang-tunggu-call-overlay.is-leaving {
    opacity: 0;
}

.ruang-tunggu-call-card {
    width: min(720px, 94vw);
    text-align: center;
    padding: 2.2rem 2rem;
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(16, 185, 129, 0.12));
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    color: #fff;
    transform: scale(0.86);
    animation: ruang-tunggu-call-zoom 10s ease-in-out;
}

.ruang-tunggu-call-overlay.is-visible .ruang-tunggu-call-card {
    animation: ruang-tunggu-call-zoom 10s ease-in-out;
}

@keyframes ruang-tunggu-call-zoom {
    0%   { transform: scale(0.82); opacity: 0.7; }
    8%   { transform: scale(1.04); opacity: 1; }
    16%  { transform: scale(0.98); }
    24%  { transform: scale(1.03); }
    32%  { transform: scale(1); }
    88%  { transform: scale(1); opacity: 1; }
    100% { transform: scale(0.96); opacity: 0.85; }
}

.ruang-tunggu-call-eyebrow {
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #6ee7b7;
    margin-bottom: 0.85rem;
}

.ruang-tunggu-call-pin {
    font-size: clamp(2.4rem, 7vw, 4rem);
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #ffffff;
    text-shadow: 0 0 24px rgba(52, 211, 153, 0.45);
    line-height: 1.1;
    margin-bottom: 0.55rem;
}

.ruang-tunggu-call-name {
    font-size: clamp(1.35rem, 3.5vw, 2rem);
    font-weight: 700;
    color: #ecfdf5;
    margin-bottom: 1.1rem;
}

.ruang-tunggu-call-hint {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
}

@media (max-width: 991.98px) {
    .ruang-tunggu-topbar {
        flex-wrap: wrap;
        padding: 10px 14px;
    }

    .ruang-tunggu-title {
        white-space: normal;
        font-size: 0.88rem;
    }

    .ruang-tunggu-main {
        padding: 12px;
        overflow-y: auto;
    }

    .ruang-tunggu-main > .row {
        height: auto;
        min-height: calc(100vh - 130px);
    }

    .ruang-tunggu-video-panel,
    .ruang-tunggu-queue-panel {
        max-height: none;
        height: auto;
    }

    .ruang-tunggu-video-panel {
        min-height: auto;
    }

    .ruang-tunggu-body {
        overflow-y: auto !important;
        height: auto;
        min-height: 100vh;
    }

    .ruang-tunggu-shell {
        height: auto;
        min-height: 100vh;
    }
}


/* Ruang 2 rekomendasi cards */
.satu-rek-card {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    border: 2px solid #dee2e6;
    border-radius: 14px;
    padding: 0.9rem;
    cursor: pointer;
    background: #fff;
    height: 100%;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.satu-rek-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.satu-rek-card.is-active,
.satu-rek-card:has(input:checked) {
    border-color: #198754;
    background: #f1faf5;
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.12);
}

.satu-rek-emoji {
    font-size: 1.4rem;
    line-height: 1;
}

.satu-rek-label {
    font-weight: 700;
    font-size: 0.88rem;
}

.satu-rek-bobot {
    font-size: 0.75rem;
    color: #6c757d;
}

/* Countdown pengumuman */
.satu-countdown-card {
    background: linear-gradient(135deg, #0f5132 0%, #198754 55%, #146c43 100%);
    color: #fff;
    border-radius: 18px;
    padding: 1.35rem 1.4rem;
    box-shadow: 0 12px 28px rgba(15, 81, 50, 0.28);
    text-align: center;
}

.satu-countdown-label {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.8;
}

.satu-countdown-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0.35rem 0 1rem;
}

.satu-countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.6rem;
}

.satu-countdown-grid > div {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 215, 0, 0.35);
    border-radius: 12px;
    padding: 0.7rem 0.4rem;
}

.satu-countdown-grid span {
    display: block;
    font-size: clamp(1.4rem, 4vw, 2rem);
    font-weight: 800;
    line-height: 1.1;
    color: #ffd700;
}

.satu-countdown-grid small {
    font-size: 0.7rem;
    opacity: 0.85;
}

.satu-lulus-banner {
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.12), rgba(255, 215, 0, 0.12));
}

/* Executive dashboard dark surfaces (mirror satu-dashboard.css) */
body.dark-mode .card,
body.dark-mode .bg-white,
[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .bg-white,
body.dark-mode .satu-kpi-card,
body.dark-mode .satu-chart-card,
[data-bs-theme="dark"] .satu-kpi-card,
[data-bs-theme="dark"] .satu-chart-card {
    background-color: #1e242b !important;
    border: 1px solid #2d353e !important;
    color: #e9ecef !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

/* Dark mode — Scanner Promo & Ruang 1 Check-in */
html[data-bs-theme="dark"] .satu-dashboard .card-white,
html[data-bs-theme="dark"] .admin-verifikasi.card-white,
body.dark-mode .satu-dashboard .card-white,
body.dark-mode .admin-verifikasi.card-white,
html[data-bs-theme="dark"] .card,
html[data-bs-theme="dark"] .bg-white,
html[data-bs-theme="dark"] .bg-light,
html[data-bs-theme="dark"] #qr-reader,
html[data-bs-theme="dark"] #qr-reader-ruang2,
html[data-bs-theme="dark"] .satu-qr-reader,
html[data-bs-theme="dark"] .scanner-container,
html[data-bs-theme="dark"] .list-group-item,
body.dark-mode .card,
body.dark-mode .bg-white,
body.dark-mode .bg-light,
body.dark-mode #reader,
body.dark-mode #qr-reader,
body.dark-mode .satu-qr-reader,
body.dark-mode .scanner-container,
body.dark-mode .list-group-item {
    background-color: #1e242b !important;
    border-color: #2d353e !important;
    color: #e9ecef !important;
}

html[data-bs-theme="dark"] .satu-dashboard .border,
html[data-bs-theme="dark"] .admin-verifikasi .border,
body.dark-mode .admin-verifikasi .border {
    border-color: #2d353e !important;
}

html[data-bs-theme="dark"] .satu-scan-result:not(.is-success):not(.is-error),
body.dark-mode .satu-scan-result:not(.is-success):not(.is-error) {
    background: #161a1f !important;
    border-color: #343a40 !important;
    color: #e9ecef !important;
}

html[data-bs-theme="dark"] .form-control,
html[data-bs-theme="dark"] .form-select,
body.dark-mode .form-control,
body.dark-mode .form-select {
    background-color: #161a1f !important;
    border-color: #343a40 !important;
    color: #fff !important;
}

html[data-bs-theme="dark"] .form-control::placeholder,
body.dark-mode .form-control::placeholder {
    color: #6c757d !important;
}

html[data-bs-theme="dark"] .form-control:focus,
html[data-bs-theme="dark"] .form-select:focus,
body.dark-mode .form-control:focus,
body.dark-mode .form-select:focus {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.25) !important;
    background-color: #161a1f !important;
    color: #fff !important;
}

html[data-bs-theme="dark"] .satu-dashboard .text-muted,
body.dark-mode .text-muted {
    color: #adb5bd !important;
}

html[data-bs-theme="dark"] .satu-dashboard .list-group-item.active,
body.dark-mode .list-group-item.active {
    background-color: #198754 !important;
    border-color: #198754 !important;
    color: #fff !important;
}

