/* =========================================================
   SATU PINTAR
   SCAN KEHADIRAN
   FULL RESPONSIVE
   LAPTOP / TABLET / HP
========================================================= */

:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --primary-soft: #e0f2fe;

    --success: #16a34a;
    --success-soft: #dcfce7;

    --warning: #d97706;
    --warning-soft: #fef3c7;

    --danger: #dc2626;
    --danger-soft: #fee2e2;

    --dark: #07111c;
    --dark-2: #0b1724;
    --dark-3: #111e2c;

    --text: #172033;
    --muted: #64748b;

    --bg: #f4f9fc;
    --white: #ffffff;

    --border: #e2e8f0;

    --shadow:
        0 20px 50px rgba(15, 23, 42, .09);

    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;

    font-family:
        "Inter",
        "Plus Jakarta Sans",
        Arial,
        sans-serif;

    color: var(--text);
    background:
        radial-gradient(
            circle at top right,
            rgba(14, 165, 233, .10),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            #f8fcff 0%,
            #eef7fc 100%
        );

    overflow-x: hidden;
}

button,
input {
    font: inherit;
}

.page-shell {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


/* =========================================================
   TOPBAR
========================================================= */

.topbar {
    width: 100%;
    min-height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding:
        14px
        clamp(16px, 4vw, 60px);

    background:
        rgba(255,255,255,.94);

    border-bottom: 1px solid rgba(226,232,240,.8);

    box-shadow:
        0 5px 25px rgba(15,23,42,.04);

    position: relative;
    z-index: 10;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-icon {
    width: 44px;
    height: 44px;

    flex: 0 0 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    color: white;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            #0369a1
        );

    box-shadow:
        0 8px 20px rgba(14,165,233,.25);

    font-size: 20px;
}

.brand-text {
    min-width: 0;

    display: flex;
    flex-direction: column;
}

.brand-text strong {
    font-family:
        "Plus Jakarta Sans",
        sans-serif;

    font-size: 16px;
    font-weight: 800;

    letter-spacing: .3px;

    color: #0f172a;
}

.brand-text span {
    margin-top: 2px;

    color: var(--muted);

    font-size: 11px;
    font-weight: 600;
}

.system-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 9px 13px;

    border-radius: 999px;

    background: #ecfdf5;
    color: #15803d;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: .5px;
}

.status-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #22c55e;

    box-shadow:
        0 0 0 4px rgba(34,197,94,.12);

    animation:
        pulse-status 1.8s infinite;
}

@keyframes pulse-status {

    0%,
    100% {
        box-shadow:
            0 0 0 3px rgba(34,197,94,.12);
    }

    50% {
        box-shadow:
            0 0 0 7px rgba(34,197,94,.04);
    }
}


/* =========================================================
   MAIN
========================================================= */

.main-content {
    width: min(1400px, calc(100% - 32px));

    margin:
        0 auto;

    padding:
        34px
        0
        50px;

    flex: 1;
}


/* =========================================================
   HEADING
========================================================= */

.page-heading {
    display: grid;

    grid-template-columns:
        auto
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 18px;

    margin-bottom: 22px;
}

.heading-icon {
    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 18px;

    color: var(--primary-dark);

    background: var(--primary-soft);

    font-size: 24px;
}

.page-heading h1 {
    margin: 0;

    font-family:
        "Plus Jakarta Sans",
        sans-serif;

    font-size:
        clamp(24px, 3vw, 34px);

    line-height: 1.15;

    font-weight: 800;

    color: #0f172a;
}

.page-heading p {
    margin: 7px 0 0;

    color: var(--muted);

    font-size: 14px;

    line-height: 1.6;
}

.date-box {
    min-width: 210px;

    padding: 13px 16px;

    border-radius: 16px;

    background: white;

    border: 1px solid var(--border);

    box-shadow:
        0 8px 25px rgba(15,23,42,.04);

    display: flex;
    flex-direction: column;

    text-align: right;
}

.date-box strong {
    font-size: 12px;
    font-weight: 700;
}

.date-box strong {
    font-size: 14px;
    font-weight: 700;
}

.date-box span {
    margin-top: 4px;

    color: var(--primary-dark);

    font-size: 18px;
    font-weight: 800;
}
/* =========================================================
   MESSAGE
========================================================= */

.message-box {
    width: 100%;

    min-height: 52px;

    padding: 12px 16px;

    display: flex;
    align-items: center;
    gap: 12px;

    border-radius: 15px;

    margin-bottom: 22px;

    font-size: 13px;
    font-weight: 700;

    border: 1px solid transparent;
}

.message-box i {
    font-size: 18px;
    flex: 0 0 auto;
}

.message-box.waiting {
    color: #0369a1;
    background: #e0f2fe;
    border-color: #bae6fd;
}

.message-box.success {
    color: #166534;
    background: var(--success-soft);
    border-color: #bbf7d0;
}

.message-box.warning {
    color: #92400e;
    background: var(--warning-soft);
    border-color: #fde68a;
}

.message-box.error {
    color: #991b1b;
    background: var(--danger-soft);
    border-color: #fecaca;
}


/* =========================================================
   LAYOUT
========================================================= */

.scan-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 24px;

    align-items: stretch;
}


/* =========================================================
   CARDS
========================================================= */

.scanner-card,
.result-card {
    min-width: 0;

    border-radius: var(--radius);

    box-shadow: var(--shadow);

    border: 1px solid rgba(226,232,240,.9);

    overflow: hidden;
}

.scanner-card {
    padding: 26px;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f8fcff 100%
        );
}

.result-card {
    padding: 28px;

    background: white;

    display: flex;
    flex-direction: column;
    justify-content: center;
}


/* =========================================================
   SCANNER HEADER
========================================================= */

.scanner-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 20px;
}

.eyebrow {
    display: inline-block;

    color: var(--primary-dark);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.2px;
}

.scanner-card-header h2 {
    margin: 6px 0 0;

    font-family:
        "Plus Jakarta Sans",
        sans-serif;

    font-size: 22px;

    font-weight: 800;

    color: #0f172a;
}

.usb-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 8px 11px;

    border-radius: 10px;

    color: white;
    background: var(--dark);

    font-size: 10px;
    font-weight: 800;

    white-space: nowrap;
}


/* =========================================================
   BLACK SCANNER DEVICE
   INI YANG DIKEMBALIKAN
========================================================= */

.scanner-device {
    width: 100%;

    min-height: 290px;

    padding: 20px;

    border-radius: 28px;

    background:
        radial-gradient(
            circle at 50% 25%,
            rgba(30,41,59,.75),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            #05080c 0%,
            #0a1017 48%,
            #111b27 100%
        );

    border:
        1px solid rgba(255,255,255,.07);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.06),
        0 20px 35px rgba(2,6,23,.25);

    color: white;

    display: flex;
    flex-direction: column;

    position: relative;

    overflow: hidden;
}

.scanner-device::before {
    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            115deg,
            transparent 0%,
            rgba(255,255,255,.04) 45%,
            transparent 60%
        );

    transform:
        translateX(-100%);

    animation:
        device-shine 5s infinite;
}

@keyframes device-shine {

    0% {
        transform: translateX(-100%);
    }

    30%,
    100% {
        transform: translateX(100%);
    }
}

.device-top {
    display: flex;
    align-items: center;

    gap: 9px;

    color: #94a3b8;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1px;

    position: relative;
    z-index: 1;
}

.device-top i {
    margin-left: auto;
}

.device-led {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #22c55e;

    box-shadow:
        0 0 10px rgba(34,197,94,.9);
}


/* =========================================================
   DEVICE SCREEN
========================================================= */

.device-screen {
    flex: 1;

    min-height: 190px;

    margin:
        18px
        0
        15px;

    border-radius: 20px;

    background:
        linear-gradient(
            180deg,
            #101a26,
            #071019
        );

    border:
        1px solid rgba(255,255,255,.06);

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    position: relative;

    overflow: hidden;

    text-align: center;
}

.device-screen::before {
    content: "";

    position: absolute;

    width: 190px;
    height: 190px;

    border-radius: 50%;

    border:
        1px solid rgba(14,165,233,.12);

    box-shadow:
        0 0 0 20px rgba(14,165,233,.02),
        0 0 0 40px rgba(14,165,233,.015);
}

.device-qr {
    width: 72px;
    height: 72px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 18px;

    color: #7dd3fc;

    background:
        rgba(14,165,233,.09);

    border:
        1px solid rgba(56,189,248,.18);

    font-size: 32px;

    position: relative;
    z-index: 2;

    box-shadow:
        0 0 30px rgba(14,165,233,.08);
}

.device-screen strong {
    margin-top: 13px;

    font-size: 12px;

    letter-spacing: 1px;

    position: relative;
    z-index: 2;
}

.device-screen small {
    margin-top: 5px;

    color: #64748b;

    font-size: 10px;

    position: relative;
    z-index: 2;
}

.scan-beam {
    position: absolute;

    left: 12%;
    right: 12%;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #38bdf8,
            transparent
        );

    box-shadow:
        0 0 14px rgba(56,189,248,.8);

    top: 40%;

    animation:
        scan-line 2.2s ease-in-out infinite;
}

@keyframes scan-line {

    0%,
    100% {
        transform: translateY(-42px);
        opacity: .3;
    }

    50% {
        transform: translateY(42px);
        opacity: 1;
    }
}


/* =========================================================
   WAVES
========================================================= */

.scanner-waves {
    height: 10px;

    display: flex;
    justify-content: center;
    gap: 4px;
}

.scanner-waves span {
    width: 4px;
    height: 9px;

    border-radius: 999px;

    background: #334155;

    animation:
        wave 1.2s ease-in-out infinite;
}

.scanner-waves span:nth-child(2) {
    animation-delay: .15s;
}

.scanner-waves span:nth-child(3) {
    animation-delay: .3s;
}

@keyframes wave {

    0%,
    100% {
        height: 6px;
        opacity: .4;
    }

    50% {
        height: 14px;
        background: #38bdf8;
        opacity: 1;
    }
}


/* =========================================================
   DEVICE BOTTOM
========================================================= */

.device-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 12px;

    color: #64748b;

    font-size: 9px;
    font-weight: 700;
}

.device-bottom span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.device-bottom span i {
    color: #22c55e;

    font-size: 6px;
}

.device-port {
    width: 40px;
    height: 5px;

    border-radius: 999px;

    background: #020617;

    box-shadow:
        inset 0 1px 2px rgba(255,255,255,.06);
}


/* =========================================================
   INPUT
========================================================= */

.scanner-label {
    display: flex;
    align-items: center;
    gap: 7px;

    margin:
        20px
        0
        8px;

    color: #475569;

    font-size: 11px;
    font-weight: 800;
}

.scanner-input-wrap {
    width: 100%;

    height: 58px;

    display: flex;
    align-items: center;

    gap: 10px;

    padding: 0 14px;

    border-radius: 15px;

    background: white;

    border: 2px solid #dbeafe;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.scanner-input-wrap:focus-within {
    border-color: var(--primary);

    box-shadow:
        0 0 0 4px rgba(14,165,233,.10);
}

.scanner-input-wrap > i {
    color: var(--primary);

    font-size: 18px;
}

.scanner-input-wrap input {
    width: 100%;
    min-width: 0;

    height: 100%;

    border: 0;
    outline: 0;

    background: transparent;

    color: #0f172a;

    font-size: 15px;
    font-weight: 600;
}

.scanner-input-wrap input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.input-live {
    padding: 5px 8px;

    border-radius: 7px;

    color: #15803d;
    background: #dcfce7;

    font-size: 8px;
    font-weight: 900;

    letter-spacing: .7px;
}

.hidden-submit {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;

    pointer-events: none;
}


/* =========================================================
   INFO
========================================================= */

.scanner-info {
    margin-top: 13px;

    display: flex;
    align-items: flex-start;

    gap: 10px;

    padding: 12px;

    border-radius: 13px;

    background: #eff6ff;

    border: 1px solid #dbeafe;
}

.scanner-info > div {
    width: 27px;
    height: 27px;

    flex: 0 0 27px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    color: var(--primary-dark);
    background: white;

    font-size: 12px;
}

.scanner-info p {
    margin: 0;

    color: #64748b;

    font-size: 10px;

    line-height: 1.55;
}

.scanner-info strong {
    color: #0369a1;
}


/* =========================================================
   WAITING
========================================================= */

.waiting-state {
    text-align: center;

    padding:
        25px
        10px;
}

.waiting-icon {
    width: 86px;
    height: 86px;

    margin:
        0
        auto
        20px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 25px;

    color: var(--primary);

    background: #e0f2fe;

    font-size: 35px;

    box-shadow:
        0 0 0 10px rgba(14,165,233,.04);
}

.waiting-state h2 {
    margin: 9px 0 8px;

    font-family:
        "Plus Jakarta Sans",
        sans-serif;

    font-size: 24px;

    color: #0f172a;
}

.waiting-state p {
    max-width: 430px;

    margin:
        0
        auto;

    color: var(--muted);

    font-size: 13px;

    line-height: 1.65;
}

.waiting-points {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    gap: 8px;

    margin-top: 22px;
}

.waiting-points span {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 8px 11px;

    border-radius: 999px;

    background: #f8fafc;

    border: 1px solid var(--border);

    color: #475569;

    font-size: 10px;
    font-weight: 700;
}

.waiting-points i {
    color: #22c55e;
}


/* =========================================================
   PERSON RESULT
========================================================= */

.person-result {
    width: 100%;
}

.person-top {
    display: flex;
    align-items: center;

    gap: 16px;

    margin-bottom: 20px;
}

.person-photo {
    width: 92px;
    height: 92px;

    flex: 0 0 92px;

    border-radius: 23px;

    position: relative;

    overflow: visible;
}

.person-photo img,
.photo-fallback {
    width: 100%;
    height: 100%;

    border-radius: 23px;

    object-fit: cover;

    border: 4px solid white;

    box-shadow:
        0 10px 25px rgba(15,23,42,.12);
}

.photo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;

    color: white;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            #0369a1
        );

    font-family:
        "Plus Jakarta Sans",
        sans-serif;

    font-size: 25px;
    font-weight: 800;
}

.photo-status {
    position: absolute;

    right: -2px;
    bottom: -2px;

    width: 18px;
    height: 18px;

    border-radius: 50%;

    background: #22c55e;

    border: 4px solid white;
}

.person-title {
    min-width: 0;
}

.person-type {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    color: var(--primary-dark);

    font-size: 9px;
    font-weight: 900;

    letter-spacing: 1px;
}

.person-title h2 {
    margin: 5px 0;

    font-family:
        "Plus Jakarta Sans",
        sans-serif;

    font-size:
        clamp(18px, 2.3vw, 24px);

    line-height: 1.25;

    word-break: break-word;

    color: #0f172a;
}

.person-code {
    color: #64748b;

    font-size: 11px;
    font-weight: 600;
}


/* =========================================================
   ATTENDANCE BADGE
========================================================= */

.attendance-badge {
    display: flex;
    align-items: center;

    gap: 11px;

    padding: 13px 14px;

    border-radius: 14px;

    margin-bottom: 16px;

    border: 1px solid transparent;
}

.attendance-badge > i {
    font-size: 22px;
}

.attendance-badge div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.attendance-badge strong {
    font-size: 12px;
}

.attendance-badge span {
    font-size: 10px;
    opacity: .8;
}

.attendance-badge.success {
    color: #166534;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.attendance-badge.warning {
    color: #92400e;
    background: #fffbeb;
    border-color: #fde68a;
}

.attendance-badge.error {
    color: #991b1b;
    background: #fef2f2;
    border-color: #fecaca;
}


/* =========================================================
   IDENTITY GRID
========================================================= */

.identity-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 9px;

    margin-bottom: 16px;
}

.identity-item {
    min-width: 0;

    padding: 12px;

    border-radius: 12px;

    background: #f8fafc;

    border: 1px solid #edf2f7;
}

.identity-item span {
    display: flex;
    align-items: center;
    gap: 6px;

    color: #94a3b8;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: .7px;
}

.identity-item strong {
    display: block;

    margin-top: 6px;

    color: #334155;

    font-size: 11px;

    overflow-wrap: anywhere;
}


/* =========================================================
   THANK YOU
========================================================= */

.thank-you {
    display: flex;
    align-items: center;

    gap: 11px;

    padding: 14px;

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            #eff6ff,
            #f0fdf4
        );

    border:
        1px solid #dbeafe;
}

.thank-icon {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    color: #e11d48;

    background: #ffe4e6;
}

.thank-you strong {
    display: block;

    color: #0f172a;

    font-size: 12px;
}

.thank-you p {
    margin: 3px 0 0;

    color: #64748b;

    font-size: 10px;

    line-height: 1.45;
}


/* =========================================================
   VOICE
========================================================= */

.voice-status {
    margin-top: 10px;

    display: flex;
    align-items: center;
    gap: 7px;

    color: #0369a1;

    font-size: 9px;
    font-weight: 700;
}

.voice-status i {
    animation:
        voice-pulse 1s infinite;
}

@keyframes voice-pulse {

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

    100% {
        transform: scale(1.2);
    }
}


/* =========================================================
   NEXT SCAN
========================================================= */

.next-scan {
    margin-top: 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    color: #64748b;

    font-size: 10px;
    font-weight: 700;

    padding-top: 13px;

    border-top: 1px dashed #e2e8f0;
}

.next-scan i {
    color: var(--primary);
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    width: 100%;

    padding:
        16px
        clamp(16px, 4vw, 60px);

    display: flex;
    justify-content: space-between;
    gap: 15px;

    color: #94a3b8;

    font-size: 9px;
    font-weight: 600;

    border-top: 1px solid rgba(226,232,240,.8);

    background: rgba(255,255,255,.7);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .main-content {
        width: min(100% - 28px, 850px);

        padding-top: 25px;
    }

    .page-heading {
        grid-template-columns:
            auto
            minmax(0, 1fr);
    }

    .date-box {
        grid-column: 1 / -1;

        text-align: left;

        width: 100%;
    }

    .scan-layout {
        grid-template-columns: 1fr;
    }

    .scanner-card,
    .result-card {
        width: 100%;
    }

    .scanner-device {
        min-height: 310px;
    }
}


/* =========================================================
   TABLET PORTRAIT
========================================================= */

@media (max-width: 700px) {

    .topbar {
        min-height: 68px;

        padding:
            11px
            14px;
    }

    .brand-icon {
        width: 40px;
        height: 40px;

        flex-basis: 40px;

        border-radius: 12px;
    }

    .brand-text strong {
        font-size: 14px;
    }

    .brand-text span {
        font-size: 9px;
    }

    .system-status {
        padding: 7px 9px;

        font-size: 8px;
    }

    .main-content {
        width: calc(100% - 22px);

        padding:
            20px
            0
            30px;
    }

    .page-heading {
        gap: 12px;
    }

    .heading-icon {
        width: 48px;
        height: 48px;

        border-radius: 15px;

        font-size: 19px;
    }

    .page-heading h1 {
        font-size: 23px;
    }

    .page-heading p {
        font-size: 11px;
    }

    .scanner-card,
    .result-card {
        padding: 20px;

        border-radius: 20px;
    }

    .scanner-device {
        border-radius: 23px;
        padding: 16px;
    }
}


/* =========================================================
   HP
========================================================= */

@media (max-width: 520px) {

    body {
        background:
            linear-gradient(
                180deg,
                #f8fcff,
                #eef7fc
            );
    }

    .topbar {
        align-items: center;
    }

    .system-status span:last-child {
        display: none;
    }

    .system-status {
        width: 30px;
        height: 30px;

        padding: 0;

        justify-content: center;
    }

    .status-dot {
        width: 8px;
        height: 8px;
    }

    .main-content {
        width: calc(100% - 18px);

        padding-top: 16px;
    }

    .page-heading {
        display: grid;

        grid-template-columns:
            auto
            minmax(0, 1fr);

        align-items: center;
    }

    .heading-icon {
        width: 44px;
        height: 44px;

        border-radius: 13px;

        font-size: 18px;
    }

    .page-heading h1 {
        font-size: 21px;
    }

    .page-heading p {
        margin-top: 4px;

        font-size: 10px;

        line-height: 1.45;
    }

    .date-box {
        grid-column: 1 / -1;

        min-width: 0;

        padding: 10px 12px;

        border-radius: 12px;
    }

    .date-box strong {
        font-size: 9px;
    }

    .date-box span {
        font-size: 13px;
    }

    .message-box {
        min-height: 48px;

        margin-bottom: 14px;

        padding: 10px 12px;

        border-radius: 12px;

        font-size: 10px;
    }

    .message-box i {
        font-size: 15px;
    }

    .scan-layout {
        gap: 14px;
    }

    .scanner-card,
    .result-card {
        padding: 15px;

        border-radius: 18px;
    }

    .scanner-card-header {
        margin-bottom: 14px;
    }

    .scanner-card-header h2 {
        font-size: 18px;
    }

    .usb-badge {
        padding: 7px 9px;

        font-size: 8px;
    }

    .scanner-device {
        min-height: 250px;

        padding: 13px;

        border-radius: 20px;
    }

    .device-screen {
        min-height: 155px;

        margin:
            14px
            0
            12px;

        border-radius: 16px;
    }

    .device-qr {
        width: 58px;
        height: 58px;

        border-radius: 15px;

        font-size: 25px;
    }

    .device-screen strong {
        font-size: 10px;
    }

    .device-screen small {
        font-size: 8px;
    }

    .scanner-label {
        margin-top: 15px;

        font-size: 9px;
    }

    .scanner-input-wrap {
        height: 54px;

        padding: 0 11px;

        border-radius: 13px;
    }

    .scanner-input-wrap input {
        font-size: 13px;
    }

    .scanner-input-wrap > i {
        font-size: 16px;
    }

    .input-live {
        display: none;
    }

    .scanner-info {
        padding: 10px;

        margin-top: 9px;
    }

    .scanner-info p {
        font-size: 9px;
    }

    .waiting-state {
        padding:
            15px
            3px;
    }

    .waiting-icon {
        width: 68px;
        height: 68px;

        margin-bottom: 15px;

        border-radius: 20px;

        font-size: 27px;
    }

    .waiting-state h2 {
        font-size: 19px;
    }

    .waiting-state p {
        font-size: 10px;
    }

    .waiting-points {
        margin-top: 16px;
    }

    .waiting-points span {
        padding: 6px 8px;

        font-size: 8px;
    }

    .person-top {
        align-items: center;

        gap: 11px;

        margin-bottom: 14px;
    }

    .person-photo {
        width: 70px;
        height: 70px;

        flex-basis: 70px;

        border-radius: 18px;
    }

    .person-photo img,
    .photo-fallback {
        border-radius: 18px;
    }

    .photo-fallback {
        font-size: 19px;
    }

    .photo-status {
        width: 15px;
        height: 15px;

        border-width: 3px;
    }

    .person-title h2 {
        font-size: 17px;

        margin: 3px 0;
    }

    .person-type {
        font-size: 8px;
    }

    .person-code {
        font-size: 9px;
    }

    .attendance-badge {
        padding: 10px;

        margin-bottom: 11px;

        border-radius: 11px;
    }

    .attendance-badge > i {
        font-size: 18px;
    }

    .attendance-badge strong {
        font-size: 10px;
    }

    .attendance-badge span {
        font-size: 8px;
    }

    .identity-grid {
        gap: 6px;

        margin-bottom: 11px;
    }

    .identity-item {
        padding: 9px;

        border-radius: 9px;
    }

    .identity-item span {
        font-size: 7px;
    }

    .identity-item strong {
        margin-top: 4px;

        font-size: 9px;
    }

    .thank-you {
        padding: 10px;

        border-radius: 11px;
    }

    .thank-icon {
        width: 31px;
        height: 31px;

        flex-basis: 31px;

        border-radius: 9px;

        font-size: 11px;
    }

    .thank-you strong {
        font-size: 10px;
    }

    .thank-you p {
        font-size: 8px;
    }

    .voice-status {
        font-size: 8px;
    }

    .next-scan {
        margin-top: 11px;

        padding-top: 10px;

        font-size: 8px;
    }

    .footer {
        padding:
            13px
            12px;

        font-size: 7px;
    }
}


/* =========================================================
   HP SANGAT KECIL
========================================================= */

@media (max-width: 360px) {

    .brand-text span {
        display: none;
    }

    .scanner-card,
    .result-card {
        padding: 12px;
    }

    .scanner-device {
        padding: 10px;
    }

    .scanner-card-header h2 {
        font-size: 16px;
    }

    .person-photo {
        width: 62px;
        height: 62px;

        flex-basis: 62px;
    }

    .person-title h2 {
        font-size: 15px;
    }

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


/* =========================================================
   LANDSCAPE HP
========================================================= */

@media (max-width: 900px) and (orientation: landscape) {

    .scanner-device {
        min-height: 240px;
    }

    .device-screen {
        min-height: 135px;
    }
}


/* =========================================================
   REDUCE MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}