

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

/* ---------- RESET & VARIABLES ---------- */

:root {
    --primary: #6956d9;
    --primary-dark: #5140b8;
    --primary-light: #eeeaff;
    --secondary: #8b7be8;

    --background: #f7f7fc;
    --surface: #ffffff;
    --surface-soft: #faf9ff;

    --text: #24213a;
    --text-secondary: #77758d;
    --border: #eae8f3;

    --success: #159b70;
    --success-light: #e4f8ef;
    --danger: #d94c65;
    --danger-light: #fff0f2;
    --warning: #d89527;
    --warning-light: #fff6df;

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;

    --shadow: 0 8px 30px rgba(49, 39, 100, 0.055);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--background);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

button,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

button:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(105, 86, 217, 0.25);
    outline-offset: 3px;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

h1,
h2,
h3,
h4 {
    font-family: 'Manrope', sans-serif;
    line-height: 1.3;
}

button,
.panel,
.stat-card {
    -webkit-tap-highlight-color: transparent;
}

/* ---------- NAVIGATION ---------- */

.navbar {
    min-height: 78px;
    padding: 15px 5.5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--border);
}

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

.brand-logo {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: white;
    background: linear-gradient(135deg, #8472f0, #5540bd);
    font-size: 21px;
    font-weight: 800;
    box-shadow: 0 5px 15px rgba(105, 86, 217, 0.25);
}

.brand h1 {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.6px;
}

.brand p {
    margin-top: 2px;
    color: var(--text-secondary);
    font-size: 11px;
}

.header-status {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--success);
    font-size: 12px;
    font-weight: 700;
}

.header-status::before {
    content: '';
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 4px var(--success-light);
}

#live-clock {
    margin-left: 12px;
    padding-left: 15px;
    border-left: 1px solid var(--border);
    color: var(--text-secondary);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

/* ---------- HERO SECTION ---------- */

.hero {
    position: relative;
    overflow: hidden;
    margin: 30px 5.5% 24px;
    padding: 35px 38px;
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    align-items: center;
    gap: 30px;
    min-height: 285px;
    color: white;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 80% 15%, rgba(255,255,255,.15), transparent 30%),
        linear-gradient(120deg, #30265f 0%, #5140a8 54%, #7867df 100%);
    box-shadow: 0 15px 40px rgba(65, 48, 145, 0.15);
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.hero::before {
    width: 330px;
    height: 330px;
    top: -200px;
    right: 12%;
}

.hero::after {
    width: 250px;
    height: 250px;
    bottom: -190px;
    right: 28%;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 13px;
    padding: 6px 11px;
    color: #eeeaff;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 30px;
    background: rgba(255,255,255,.09);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-content h2 {
    max-width: 500px;
    margin-bottom: 12px;
    font-size: clamp(25px, 3vw, 35px);
    font-weight: 800;
    letter-spacing: -1.2px;
}

.hero-content p {
    max-width: 440px;
    color: rgba(255,255,255,.75);
    font-size: 13px;
    line-height: 1.8;
}

/* ---------- PARKING VISUAL ---------- */

.parking-visual {
    position: relative;
    z-index: 1;
    overflow: hidden;
    height: 205px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
    background: rgba(19, 16, 57, .25);
}

.parking-road {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 75px;
    background: #292746;
    border-top: 3px solid rgba(255,255,255,.13);
}

.road-line {
    position: absolute;
    top: 35px;
    left: 0;
    width: 100%;
    height: 3px;
    background: repeating-linear-gradient(
        to right,
        rgba(255,255,255,.65) 0 28px,
        transparent 28px 52px
    );
}

.gate-post {
    position: absolute;
    z-index: 3;
    right: 18%;
    bottom: 60px;
    width: 16px;
    height: 92px;
    border-radius: 5px 5px 0 0;
    background: linear-gradient(90deg, #e5e3ef, #ffffff, #b9b6d3);
    box-shadow: 0 0 18px rgba(0,0,0,.15);
}

.gate-post::before {
    content: '';
    position: absolute;
    top: -9px;
    left: -5px;
    width: 26px;
    height: 13px;
    border-radius: 5px;
    background: #ffffff;
}

.gate-light {
    position: absolute;
    top: 8px;
    left: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #26d9a0;
    box-shadow: 0 0 10px #26d9a0;
}

#gate-arm {
    position: absolute;
    z-index: 4;
    right: calc(18% + 5px);
    bottom: 143px;
    width: 105px;
    height: 9px;
    transform-origin: 5px 50%;
    transform: rotate(0deg);
    border-radius: 8px;
    background: repeating-linear-gradient(
        90deg,
        #f6f4ff 0 17px,
        #ed5a73 17px 34px
    );
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
    transition: transform .7s ease;
}

.parking-visual.gate-open #gate-arm {
    transform: rotate(-72deg);
}

#car {
    position: absolute;
    z-index: 5;
    bottom: 20px;
    left: 12%;
    width: 95px;
    height: 39px;
    border-radius: 13px 17px 7px 7px;
    background: linear-gradient(180deg, #b8b0ff, #8170ed);
    box-shadow: 0 7px 15px rgba(0,0,0,.22);
    transition: left 1.4s ease;
}

#car::before {
    content: '';
    position: absolute;
    top: -17px;
    left: 20px;
    width: 52px;
    height: 24px;
    border-radius: 15px 16px 2px 2px;
    background: #a49af8;
    border: 3px solid #b8b0ff;
}

.car-window {
    position: absolute;
    z-index: 1;
    top: -13px;
    left: 26px;
    width: 39px;
    height: 14px;
    border-radius: 8px 9px 1px 1px;
    background: linear-gradient(120deg, #b9e4f6, #526a9c);
}

.car-wheel {
    position: absolute;
    z-index: 2;
    bottom: -6px;
    width: 19px;
    height: 19px;
    border: 4px solid #aaa7c7;
    border-radius: 50%;
    background: #25243b;
}

.wheel-left {
    left: 12px;
}

.wheel-right {
    right: 12px;
}

.car-passing #car {
    left: 72%;
}

.visual-label {
    position: absolute;
    top: 15px;
    left: 16px;
    padding: 5px 9px;
    color: rgba(255,255,255,.9);
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 8px;
    background: rgba(255,255,255,.08);
    font-size: 10px;
    font-weight: 600;
}

/* ---------- STATISTICS ---------- */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 0 5.5% 25px;
}

.stat-card {
    position: relative;
    overflow: hidden;
    padding: 22px 23px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(49, 39, 100, .09);
}

.stat-card .stat-label {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
}

.stat-card .stat-value {
    display: block;
    margin-top: 8px;
    font-family: 'Manrope', sans-serif;
    font-size: 29px;
    font-weight: 800;
    letter-spacing: -1px;
    font-variant-numeric: tabular-nums;
}

.stat-card .stat-icon {
    position: absolute;
    top: 19px;
    right: 20px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 18px;
}

.stat-card:nth-child(2) .stat-icon {
    color: var(--success);
    background: var(--success-light);
}

.stat-card:nth-child(3) .stat-icon {
    color: var(--warning);
    background: var(--warning-light);
}

/* ---------- MAIN WORKSPACE ---------- */

.workspace {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    align-items: start;
    gap: 22px;
    margin: 0 5.5% 25px;
}

.panel {
    min-width: 0;
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 23px;
}

.panel-heading h3 {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -.3px;
}

.panel-heading p {
    margin-top: 5px;
    color: var(--text-secondary);
    font-size: 12px;
}

.system-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    color: var(--success);
    border-radius: 30px;
    background: var(--success-light);
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

/* ---------- MODE BUTTONS ---------- */

.mode-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 24px;
}

.mode-button {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: #fff;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
    transition: all .2s ease;
}

.mode-button:hover {
    border-color: #c9c0ff;
    background: var(--surface-soft);
}

.mode-button.active {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(105, 86, 217, .07);
}

/* ---------- FINGERPRINT SCANNER ---------- */

.fingerprint-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 0 22px;
    text-align: center;
}

#fingerprint-ring {
    position: relative;
    width: 145px;
    height: 145px;
    display: grid;
    place-items: center;
    margin-bottom: 19px;
    border: 1px solid #e1dcff;
    border-radius: 50%;
    background: radial-gradient(circle, #f5f2ff 0%, #eeebff 65%, #e5e0ff 100%);
    box-shadow:
        0 0 0 9px rgba(105, 86, 217, .045),
        0 0 0 18px rgba(105, 86, 217, .025);
    transition: all .3s ease;
}

.fingerprint-icon {
    color: var(--primary);
    font-size: 56px;
    line-height: 1;
    transition: transform .3s ease;
}

.scan-line {
    position: absolute;
    top: 22%;
    left: 16%;
    width: 68%;
    height: 2px;
    opacity: 0;
    background: #4ee1ae;
    box-shadow: 0 0 12px #4ee1ae;
}

#fingerprint-ring.scanning {
    border-color: var(--primary);
    box-shadow:
        0 0 0 9px rgba(105, 86, 217, .08),
        0 0 0 18px rgba(105, 86, 217, .04);
}

#fingerprint-ring.scanning .fingerprint-icon {
    transform: scale(1.06);
}

#fingerprint-ring.scanning .scan-line {
    opacity: 1;
    animation: scan-fingerprint 1.3s ease-in-out infinite alternate;
}

#fingerprint-ring.verified {
    border-color: var(--success);
    background: radial-gradient(circle, #f0fff8, #dff9ed);
}

#fingerprint-ring.verified .fingerprint-icon {
    color: var(--success);
}

#fingerprint-ring.failed {
    border-color: var(--danger);
    background: radial-gradient(circle, #fff7f8, #ffe7eb);
}

#fingerprint-ring.failed .fingerprint-icon {
    color: var(--danger);
}

@keyframes scan-fingerprint {
    from {
        top: 20%;
    }
    to {
        top: 80%;
    }
}

#sensor-title {
    margin-bottom: 5px;
    font-size: 16px;
    font-weight: 800;
}

#sensor-copy {
    max-width: 300px;
    color: var(--text-secondary);
    font-size: 12px;
}

#sensor-status {
    margin-top: 13px;
    padding: 5px 10px;
    color: var(--primary);
    border-radius: 20px;
    background: var(--primary-light);
    font-size: 10px;
    font-weight: 700;
}

/* ---------- FORM CONTROLS ---------- */

.form-group {
    margin-top: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
}

.form-group select {
    width: 100%;
    min-height: 44px;
    padding: 10px 13px;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    background: #fff;
    color: var(--text);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(105, 86, 217, .08);
}

#scenario-helper {
    margin-top: 7px;
    color: var(--text-secondary);
    font-size: 11px;
}

/* ---------- BUTTONS ---------- */

.button-row {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

#start-button,
#reset-button,
#clear-history-button {
    min-height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    transition: all .2s ease;
}

#start-button {
    flex: 1;
    color: white;
    background: linear-gradient(135deg, #7966e5, #5c49c6);
    box-shadow: 0 5px 13px rgba(105, 86, 217, .19);
}

#start-button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(105, 86, 217, .25);
}

#reset-button,
#clear-history-button {
    color: var(--text-secondary);
    border-color: var(--border);
    background: white;
}

#reset-button:hover,
#clear-history-button:hover {
    color: var(--primary);
    border-color: #c9c0ff;
    background: var(--surface-soft);
}

#clear-history-button {
    min-height: 34px;
    padding: 7px 11px;
    font-size: 11px;
}

/* ---------- MONITOR RESULT ---------- */

#system-status {
    color: var(--success);
}

.result-banner {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 17px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: #faf9ff;
}

#result-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: var(--primary);
    background: var(--primary-light);
    font-size: 17px;
    font-weight: 800;
}

#result-title {
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 800;
}

#result-description {
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.7;
}

.result-banner.success {
    border-color: #c9f0de;
    background: #f4fff9;
}

.result-banner.success #result-icon {
    color: var(--success);
    background: var(--success-light);
}

.result-banner.error {
    border-color: #ffd5dc;
    background: #fff8f9;
}

.result-banner.error #result-icon {
    color: var(--danger);
    background: var(--danger-light);
}

/* ---------- TRANSACTION DETAILS ---------- */

.result-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px;
    margin-top: 17px;
}

.result-item {
    min-width: 0;
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: #fff;
}

.result-item .result-label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 600;
}

.result-item .result-value {
    display: block;
    overflow-wrap: anywhere;
    color: var(--text);
    font-size: 12px;
    font-weight: 800;
}

/* ---------- PROCESS STEPS ---------- */

.process-tracker {
    display: flex;
    align-items: flex-start;
    margin-top: 24px;
}

.process-step {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #aaa7bd;
    text-align: center;
}

.process-step .step-number {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    border: 1px solid #e5e2f0;
    border-radius: 50%;
    background: white;
    font-size: 11px;
    font-weight: 800;
    transition: all .25s ease;
}

.process-step span:last-child {
    max-width: 90px;
    font-size: 10px;
    line-height: 1.4;
}

.process-step.active {
    color: var(--primary);
}

.process-step.active .step-number {
    color: white;
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.process-step.completed {
    color: var(--success);
}

.process-step.completed .step-number {
    color: white;
    border-color: var(--success);
    background: var(--success);
}

.process-line {
    flex: 0.35;
    height: 2px;
    margin-top: 15px;
    background: #e8e5f1;
    transition: background .25s ease;
}

.process-line.completed {
    background: var(--success);
}

/* ---------- HISTORY TABLE ---------- */

.history-panel {
    margin: 0 5.5% 25px;
}

.history-panel .panel-heading {
    align-items: center;
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    white-space: nowrap;
}

thead {
    background: #f8f7fc;
}

th {
    padding: 13px 15px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
}

td {
    padding: 14px 15px;
    border-bottom: 1px solid #f0eef6;
    font-size: 12px;
}

tbody tr {
    transition: background .15s ease;
}

tbody tr:hover {
    background: #fbfaff;
}

tbody tr:last-child td {
    border-bottom: none;
}

.empty-row td {
    padding: 30px 15px;
    color: var(--text-secondary);
    text-align: center;
}

.transaction-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
}

.transaction-badge.entry {
    color: var(--primary);
    background: var(--primary-light);
}

.transaction-badge.exit {
    color: var(--success);
    background: var(--success-light);
}

.transaction-badge.failed {
    color: var(--danger);
    background: var(--danger-light);
}

/* ---------- INFORMATION PANEL ---------- */

.information-panel {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin: 0 5.5% 30px;
    padding: 21px 23px;
    border: 1px solid #ded8ff;
    border-radius: var(--radius-md);
    background: #f1eeff;
}

.information-icon {
    width: 37px;
    height: 37px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    color: var(--primary);
    border-radius: 11px;
    background: #e2dcff;
    font-size: 17px;
    font-weight: 800;
}

.information-panel h3 {
    margin-bottom: 5px;
    font-size: 13px;
    font-weight: 800;
}

.information-panel p {
    color: #666181;
    font-size: 12px;
    line-height: 1.8;
}

/* ---------- FOOTER ---------- */

.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 22px 5.5%;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 11px;
}

.footer strong {
    color: var(--text);
}

/* ---------- TOAST NOTIFICATION ---------- */

#toast {
    position: fixed;
    z-index: 100;
    right: 25px;
    bottom: 25px;
    max-width: min(360px, calc(100vw - 40px));
    padding: 14px 18px;
    color: white;
    border-radius: 12px;
    background: #292443;
    box-shadow: 0 12px 35px rgba(25, 20, 60, .22);
    font-size: 12px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity .25s ease, transform .25s ease;
}

#toast.show {
    opacity: 1;
    transform: translateY(0);
}

#toast.success {
    background: #117c5b;
}

#toast.error {
    background: #b93650;
}

/* ---------- RESPONSIVE: TABLET ---------- */

@media (max-width: 1000px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .parking-visual {
        min-height: 205px;
    }

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

    .hero-content h2 {
        max-width: 650px;
    }

    .hero-content p {
        max-width: 600px;
    }
}

/* ---------- RESPONSIVE: MOBILE ---------- */

@media (max-width: 600px) {
    body {
        font-size: 13px;
    }

    .navbar {
        min-height: 68px;
        padding: 12px 5%;
    }

    .brand-logo {
        width: 39px;
        height: 39px;
        font-size: 18px;
    }

    .brand h1 {
        font-size: 14px;
    }

    .brand p {
        font-size: 10px;
    }

    .header-status {
        gap: 7px;
        font-size: 0;
    }

    .header-status::before {
        width: 9px;
        height: 9px;
    }

    #live-clock {
        margin-left: 2px;
        padding-left: 10px;
        font-size: 11px;
    }

    .hero {
        margin: 20px 4% 18px;
        padding: 25px 21px;
        gap: 22px;
        border-radius: 18px;
    }

    .hero-content h2 {
        font-size: 26px;
    }

    .hero-content p {
        font-size: 12px;
    }

    .parking-visual {
        height: 175px;
    }

    .parking-road {
        height: 65px;
    }

    .gate-post {
        right: 15%;
        bottom: 52px;
        height: 78px;
    }

    #gate-arm {
        right: calc(15% + 5px);
        bottom: 125px;
        width: 82px;
    }

    #car {
        bottom: 17px;
        width: 82px;
        transform: scale(.9);
        transform-origin: bottom left;
    }

    .car-passing #car {
        left: 68%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin: 0 4% 20px;
    }

    .stat-card {
        padding: 17px 19px;
    }

    .stat-card .stat-value {
        font-size: 25px;
    }

    .stat-card .stat-icon {
        top: 15px;
        right: 17px;
    }

    .workspace {
        gap: 16px;
        margin: 0 4% 20px;
    }

    .panel {
        padding: 19px 16px;
    }

    .panel-heading {
        gap: 8px;
    }

    .panel-heading h3 {
        font-size: 15px;
    }

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

    .system-badge {
        padding: 5px 7px;
        font-size: 9px;
    }

    #fingerprint-ring {
        width: 128px;
        height: 128px;
    }

    .fingerprint-icon {
        font-size: 48px;
    }

    .result-details {
        gap: 8px;
    }

    .result-item {
        padding: 11px 9px;
    }

    .process-step span:last-child {
        font-size: 9px;
    }

    .history-panel {
        margin: 0 4% 20px;
    }

    .history-panel .panel {
        padding: 19px 12px;
    }

    th,
    td {
        padding: 12px 11px;
    }

    .information-panel {
        margin: 0 4% 22px;
        padding: 17px 14px;
        gap: 11px;
    }

    .information-panel p {
        font-size: 11px;
    }

    .footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
        padding: 18px 5%;
    }

    #toast {
        right: 15px;
        bottom: 15px;
    }
}

/* ---------- REDUCED MOTION ---------- */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}