﻿/* =========================================================
   5X UDAN TRANSACTION REGISTRATION PORTAL
   COMPLETE FRONTEND STYLESHEET
========================================================= */

:root {
    --primary: #0b5d4b;
    --primary-dark: #074638;
    --primary-soft: #e9f4f0;

    --danger: #d92d20;
    --danger-dark: #b42318;
    --danger-soft: #fff0ee;

    --accent: #f4a300;
    --accent-soft: #fff7df;

    --dark: #17211e;
    --text: #18201d;
    --muted: #66706b;
    --light-muted: #8b9690;

    --background: #f5f6f4;
    --card: #ffffff;
    --border: #d9dfdb;
    --border-dark: #aeb9b3;

    --success: #14804a;
    --success-soft: #eaf8f0;

    --warning: #b66a00;
    --warning-soft: #fff6e5;

    --shadow-sm:
        0 2px 8px rgba(23, 33, 30, 0.06);

    --shadow-md:
        0 10px 30px rgba(23, 33, 30, 0.09);

    --shadow-lg:
        0 20px 50px rgba(23, 33, 30, 0.13);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 26px;

    --transition: 180ms ease;

    --max-width: 1180px;
}


/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;

    font-family:
        Inter,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    color: var(--text);
    background:
        radial-gradient(
            circle at top right,
            rgba(244, 163, 0, 0.06),
            transparent 28rem
        ),
        var(--background);

    line-height: 1.5;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    border: 0;
}

button,
select {
    cursor: pointer;
}

img {
    display: block;
    max-width: 100%;
}

.hidden {
    display: none !important;
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(244, 163, 0, 0.32);
    outline-offset: 2px;
}

::selection {
    color: #ffffff;
    background: var(--primary);
}


/* =========================================================
   APP
========================================================= */

#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


/* =========================================================
   HEADER
========================================================= */

.top-header {
    width: 100%;
    min-height: 96px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    padding: 16px max(24px, calc((100vw - var(--max-width)) / 2));

    color: #ffffff;

    background:
        linear-gradient(
            115deg,
            var(--dark) 0%,
            #1d302a 58%,
            var(--primary-dark) 100%
        );

    border-bottom: 4px solid var(--accent);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
}

.logo-box {
    width: 68px;
    height: 68px;
    flex: 0 0 68px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius: 50%;
    background: #ffffff;

    border: 3px solid rgba(255, 255, 255, 0.9);

    box-shadow:
        0 0 0 4px rgba(244, 163, 0, 0.24),
        0 8px 24px rgba(0, 0, 0, 0.22);
}

.logo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.title-box {
    min-width: 0;
}

.brand-kicker {
    display: block;

    margin-bottom: 2px;

    color: #f7c95b;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.title-box h1 {
    margin: 0;

    color: #ffffff;

    font-size: clamp(24px, 3vw, 34px);
    line-height: 1;
    letter-spacing: -0.04em;
}

.title-box p {
    margin: 6px 0 0;

    color: rgba(255, 255, 255, 0.72);

    font-size: 13px;
    font-weight: 600;
}

.header-clock {
    min-width: 260px;

    padding: 11px 14px;

    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-md);

    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(10px);
}

.greeting-line {
    display: flex;
    align-items: center;
    gap: 7px;

    margin-bottom: 8px;

    color: rgba(255, 255, 255, 0.84);

    font-size: 12px;
    font-weight: 700;
}

.status-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #53d68a;

    box-shadow: 0 0 0 4px rgba(83, 214, 138, 0.12);
}

.date-time-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.date-box,
.time-box {
    min-width: 0;
}

.clock-label {
    display: block;

    margin-bottom: 2px;

    color: rgba(255, 255, 255, 0.5);

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.date-box strong,
.time-box strong {
    display: block;

    color: #ffffff;

    font-size: 13px;
    white-space: nowrap;
}


/* =========================================================
   MAIN
========================================================= */

.main-wrapper {
    width: min(calc(100% - 32px), var(--max-width));

    flex: 1;

    margin: 0 auto;
    padding: 38px 0 54px;
}


/* =========================================================
   SERVICE SELECTION
========================================================= */

.transaction-selection {
    animation: fadeUp 280ms ease;
}

.selection-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;

    margin-bottom: 28px;
}

.eyebrow {
    display: inline-flex;

    margin-bottom: 8px;
    padding: 5px 9px;

    color: var(--primary-dark);
    background: var(--accent-soft);

    border: 1px solid rgba(244, 163, 0, 0.28);
    border-radius: 999px;

    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.selection-heading h2,
.preview-header h2 {
    margin: 0;

    color: var(--dark);

    font-size: clamp(28px, 5vw, 46px);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.selection-heading p,
.preview-header p {
    max-width: 650px;

    margin: 10px 0 0;

    color: var(--muted);

    font-size: 15px;
}

.selection-count {
    min-width: 90px;

    padding: 13px 18px;

    text-align: center;

    background: var(--card);

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    box-shadow: var(--shadow-sm);
}

.selection-count strong {
    display: block;

    color: var(--danger);

    font-size: 27px;
    line-height: 1;
}

.selection-count span {
    display: block;

    margin-top: 5px;

    color: var(--muted);

    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}


/* =========================================================
   TRANSACTION CARDS
========================================================= */

.transaction-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.transaction-card {
    position: relative;

    min-height: 180px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    padding: 20px;

    text-align: left;
    color: var(--text);

    background: var(--card);

    border: 1px solid var(--border);
    border-bottom: 3px solid var(--dark);
    border-radius: var(--radius-md);

    box-shadow: var(--shadow-sm);

    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition),
        background var(--transition);
}

.transaction-card::before {
    content: "";

    position: absolute;
    top: 0;
    left: 20px;

    width: 42px;
    height: 3px;

    background: var(--danger);

    border-radius: 0 0 5px 5px;
}

.transaction-card:hover {
    transform: translateY(-4px);

    border-color: var(--primary);

    box-shadow: var(--shadow-md);
}

.transaction-card:active {
    transform: translateY(-1px);
}

.service-icon {
    width: 42px;
    height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 26px;

    color: var(--primary-dark);

    background: var(--primary-soft);

    border: 1px solid rgba(11, 93, 75, 0.22);
    border-radius: 11px;

    font-size: 17px;
    font-weight: 900;
}

.transaction-card:nth-child(2n) .service-icon {
    color: var(--danger-dark);
    background: var(--danger-soft);
    border-color: rgba(217, 45, 32, 0.2);
}

.transaction-card:nth-child(3n) .service-icon {
    color: #805300;
    background: var(--accent-soft);
    border-color: rgba(244, 163, 0, 0.3);
}

.service-content {
    display: block;
    padding-right: 24px;
}

.card-title {
    display: block;

    margin-bottom: 6px;

    color: var(--dark);

    font-size: 16px;
    line-height: 1.2;
}

.service-content small {
    display: block;

    color: var(--muted);

    font-size: 12px;
    line-height: 1.45;
}

.service-arrow {
    position: absolute;
    right: 18px;
    bottom: 17px;

    color: var(--danger);

    font-size: 20px;
    font-weight: 800;

    transition: transform var(--transition);
}

.transaction-card:hover .service-arrow {
    transform: translateX(4px);
}


/* =========================================================
   TRANSACTION WORKSPACE
========================================================= */

.transaction-workspace,
.preview-screen {
    animation: fadeUp 260ms ease;
}

.selected-service-bar {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-bottom: 20px;
    padding: 16px 18px;

    background: var(--card);

    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-md);

    box-shadow: var(--shadow-sm);
}

.back-button {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: var(--dark);
    background: var(--background);

    border: 1px solid var(--border);
    border-radius: 50%;

    font-size: 21px;

    transition: var(--transition);
}

.back-button:hover {
    color: #ffffff;
    background: var(--primary);
    border-color: var(--primary);
}

.selected-service-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--primary-dark);
    background: var(--primary-soft);

    border: 1px solid rgba(11, 93, 75, 0.2);
    border-radius: 14px;

    font-size: 21px;
    font-weight: 900;
}

.selected-service-text {
    min-width: 0;
}

.selected-service-text span {
    display: block;

    margin-bottom: 2px;

    color: var(--muted);

    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.selected-service-text h2 {
    margin: 0;

    color: var(--dark);

    font-size: 24px;
    line-height: 1.1;
}

.selected-service-text p {
    margin: 5px 0 0;

    color: var(--muted);

    font-size: 12px;
}


/* =========================================================
   FORM SECTIONS
========================================================= */

#transactionEntryForm {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-section {
    position: relative;

    padding: 24px;

    background: var(--card);

    border: 1px solid var(--border);
    border-bottom: 3px solid var(--dark);
    border-radius: var(--radius-md);

    box-shadow: var(--shadow-sm);
}

.form-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    margin-bottom: 22px;
    padding-bottom: 16px;

    border-bottom: 1px solid #edf0ee;
}

.section-number {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;
    background: var(--danger);

    border-radius: 8px;

    font-size: 13px;
    font-weight: 900;
}

.form-section-heading h3 {
    margin: 0;

    color: var(--dark);

    font-size: 18px;
    line-height: 1.25;
}

.form-section-heading p {
    margin: 4px 0 0;

    color: var(--muted);

    font-size: 12px;
}


/* =========================================================
   FORM GRID
========================================================= */

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.field-group {
    min-width: 0;
}

.field-span-2 {
    grid-column: span 2;
}

.field-group label {
    display: block;

    margin-bottom: 7px;

    color: #3b4742;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.required-mark {
    color: var(--danger);
}

.field-group input,
.field-group select,
.field-group textarea {
    width: 100%;

    color: var(--text);
    background: #ffffff;

    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);

    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        background var(--transition);
}

.field-group input,
.field-group select {
    min-height: 48px;
    padding: 0 13px;
}

.field-group textarea {
    min-height: 92px;

    padding: 12px 13px;

    resize: vertical;
}

.field-group input::placeholder,
.field-group textarea::placeholder {
    color: #9aa49f;
}

.field-group input:hover,
.field-group select:hover,
.field-group textarea:hover {
    border-color: #89958f;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
    outline: none;

    border-color: var(--primary);

    box-shadow: 0 0 0 3px rgba(11, 93, 75, 0.1);
}

.field-group input[readonly] {
    color: #52605a;
    background: #f4f6f5;
}

.field-group select:disabled {
    cursor: not-allowed;
    color: #929c97;
    background: #f4f6f5;
}

.field-hint {
    display: block;

    margin-top: 5px;

    color: var(--light-muted);

    font-size: 10px;
}

.field-error {
    display: none;

    margin-top: 5px;

    color: var(--danger);

    font-size: 11px;
    font-weight: 600;
}

.field-group.has-error input,
.field-group.has-error select,
.field-group.has-error textarea {
    border-color: var(--danger);

    background: #fffafa;
}

.field-group.has-error .field-error {
    display: block;
}


/* =========================================================
   AMOUNT INPUT
========================================================= */

.amount-input {
    position: relative;
}

.currency-symbol {
    position: absolute;
    top: 50%;
    left: 14px;

    z-index: 2;

    transform: translateY(-50%);

    color: var(--primary);

    font-weight: 900;

    pointer-events: none;
}

.amount-input input {
    padding-left: 34px;
}


/* =========================================================
   PIN LOOKUP
========================================================= */

.input-with-status {
    position: relative;
}

.input-with-status input {
    padding-right: 42px;
}

.input-status {
    position: absolute;
    top: 50%;
    right: 13px;

    transform: translateY(-50%);

    font-size: 15px;
    font-weight: 900;
}

.input-status.success {
    color: var(--success);
}

.input-status.error {
    color: var(--danger);
}

.input-status.loading {
    width: 16px;
    height: 16px;

    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;

    animation: spin 700ms linear infinite;
}


/* =========================================================
   SELFIE SECTION
========================================================= */

.selfie-workspace {
    display: grid;
    grid-template-columns: 230px 1fr;
    align-items: center;
    gap: 28px;
}

.selfie-preview-box {
    position: relative;

    width: 230px;
    aspect-ratio: 4 / 3;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #f7f9f8,
            #eef2f0
        );

    border: 2px dashed #9aa8a1;
    border-radius: var(--radius-md);
}

.camera-placeholder {
    position: absolute;
    inset: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 20px;

    text-align: center;
}

.camera-symbol {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 10px;

    color: var(--primary);

    background: var(--primary-soft);

    border-radius: 50%;

    font-size: 25px;
}

.camera-placeholder strong {
    color: var(--dark);
    font-size: 13px;
}

.camera-placeholder small {
    margin-top: 4px;

    color: var(--muted);

    font-size: 10px;
}

.camera-video,
.selfie-preview {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.selfie-preview {
    position: absolute;
    inset: 0;
}

#selfieCanvas {
    width: 100%;
    height: auto;
}

.selfie-controls h4 {
    margin: 0;

    color: var(--dark);

    font-size: 16px;
}

.selfie-controls p {
    margin: 6px 0 16px;

    color: var(--muted);

    font-size: 12px;
}

.camera-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.camera-status {
    min-height: 18px;

    margin: 10px 0 0 !important;

    font-size: 11px !important;
    font-weight: 600;
}

.camera-status.success {
    color: var(--success);
}

.camera-status.error {
    color: var(--danger);
}


/* =========================================================
   BUTTONS
========================================================= */

.button {
    min-height: 46px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    padding: 0 19px;

    border: 1px solid transparent;
    border-radius: var(--radius-sm);

    font-size: 12px;
    font-weight: 800;

    transition:
        transform var(--transition),
        background var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.button:hover {
    transform: translateY(-1px);
}

.button:active {
    transform: translateY(0);
}

.button-dark {
    color: #ffffff;
    background: var(--dark);
}

.button-dark:hover {
    background: #26342f;
}

.button-primary {
    color: #ffffff;
    background: var(--primary);
}

.button-primary:hover {
    background: var(--primary-dark);
}

.button-secondary {
    color: var(--primary-dark);
    background: var(--primary-soft);
    border-color: rgba(11, 93, 75, 0.22);
}

.button-cancel {
    color: var(--dark);
    background: #ffffff;
    border-color: var(--border-dark);
}

.button-cancel:hover {
    border-color: var(--dark);
}

.button-submit {
    min-width: 190px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--danger),
            #e63d31
        );

    box-shadow: 0 8px 20px rgba(217, 45, 32, 0.18);
}

.button-submit:hover {
    background: var(--danger-dark);

    box-shadow: 0 10px 24px rgba(217, 45, 32, 0.25);
}

.button:disabled {
    cursor: not-allowed;

    opacity: 0.55;

    transform: none;
    box-shadow: none;
}


/* =========================================================
   FORM ACTIONS
========================================================= */

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;

    padding-top: 6px;
}


/* =========================================================
   PREVIEW
========================================================= */

.preview-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 22px;
}

.preview-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 9px 13px;

    color: var(--success);
    background: var(--success-soft);

    border: 1px solid rgba(20, 128, 74, 0.18);
    border-radius: 999px;

    font-size: 11px;
    font-weight: 800;

    white-space: nowrap;
}

.preview-status span {
    width: 7px;
    height: 7px;

    background: var(--success);

    border-radius: 50%;
}

.preview-content {
    display: grid;
    gap: 16px;
}

.preview-section {
    padding: 22px;

    background: var(--card);

    border: 1px solid var(--border);
    border-bottom: 3px solid var(--dark);
    border-radius: var(--radius-md);

    box-shadow: var(--shadow-sm);
}

.preview-section h3 {
    margin: 0 0 16px;

    color: var(--dark);

    font-size: 16px;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.preview-item {
    min-width: 0;

    padding: 12px 14px;

    background: #f7f9f8;

    border: 1px solid #e7ebe9;
    border-radius: var(--radius-sm);
}

.preview-item span {
    display: block;

    margin-bottom: 4px;

    color: var(--muted);

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.preview-item strong {
    display: block;

    color: var(--dark);

    font-size: 13px;

    overflow-wrap: anywhere;
}

.preview-selfie {
    width: 130px;
    height: 100px;

    object-fit: cover;

    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.preview-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;

    margin-top: 20px;
}


/* =========================================================
   SUBMISSION LOADER
========================================================= */

.submission-loader {
    min-height: 420px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 40px;

    text-align: center;

    background: var(--card);

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-md);
}

.loader-ring {
    width: 56px;
    height: 56px;

    margin-bottom: 20px;

    border: 5px solid var(--primary-soft);
    border-top-color: var(--primary);
    border-radius: 50%;

    animation: spin 800ms linear infinite;
}

.submission-loader h2 {
    margin: 0;

    color: var(--dark);

    font-size: 24px;
}

.submission-loader p {
    margin: 8px 0 0;

    color: var(--muted);

    font-size: 13px;
}


/* =========================================================
   SUCCESS SCREEN
========================================================= */

.success-screen {
    max-width: 680px;

    margin: 30px auto;
    padding: 50px 34px;

    text-align: center;

    background: var(--card);

    border: 1px solid var(--border);
    border-top: 5px solid var(--success);
    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-lg);

    animation: fadeUp 300ms ease;
}

.success-icon {
    width: 74px;
    height: 74px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 20px;

    color: #ffffff;
    background: var(--success);

    border-radius: 50%;

    box-shadow: 0 0 0 10px var(--success-soft);

    font-size: 35px;
    font-weight: 900;
}

.success-label {
    display: inline-block;

    margin-bottom: 10px;

    color: var(--success);

    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.success-screen h2 {
    margin: 0;

    color: var(--dark);

    font-size: clamp(25px, 5vw, 36px);
    line-height: 1.15;
}

.success-screen > p {
    margin: 12px auto 24px;

    color: var(--muted);

    font-size: 14px;
}

.reference-card {
    max-width: 440px;

    margin: 0 auto 25px;
    padding: 17px;

    background: var(--accent-soft);

    border: 1px dashed rgba(244, 163, 0, 0.65);
    border-radius: var(--radius-md);
}

.reference-card span {
    display: block;

    margin-bottom: 5px;

    color: #806000;

    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.reference-card strong {
    display: block;

    color: var(--dark);

    font-size: clamp(18px, 4vw, 26px);
    letter-spacing: 0.04em;
    overflow-wrap: anywhere;
}


/* =========================================================
   GLOBAL MESSAGE
========================================================= */

.global-message {
    position: fixed;
    right: 20px;
    bottom: 20px;

    z-index: 1000;

    width: min(420px, calc(100% - 40px));

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;

    padding: 15px 16px;

    color: #ffffff;
    background: var(--danger-dark);

    border-radius: var(--radius-md);

    box-shadow: var(--shadow-lg);

    animation: messageIn 220ms ease;
}

.global-message.success {
    background: var(--success);
}

.global-message.warning {
    background: var(--warning);
}

#globalMessageText {
    font-size: 12px;
    font-weight: 700;
}

#closeGlobalMessage {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);

    border-radius: 50%;

    font-size: 20px;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    width: 100%;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;

    padding: 17px max(24px, calc((100vw - var(--max-width)) / 2));

    color: rgba(255, 255, 255, 0.72);
    background: var(--dark);

    border-top: 3px solid var(--accent);

    font-size: 11px;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-left strong {
    color: #ffffff;
}

.footer-center {
    text-align: center;
}

.secure-indicator {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.secure-dot {
    width: 7px;
    height: 7px;

    background: #53d68a;

    border-radius: 50%;
}

.footer-right {
    text-align: right;
}

.admin-login-button {
    padding: 8px 12px;

    color: #ffffff;
    background: transparent;

    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 7px;

    font-size: 10px;
    font-weight: 800;

    transition: var(--transition);
}

.admin-login-button:hover {
    color: var(--dark);
    background: var(--accent);
    border-color: var(--accent);
}


/* =========================================================
   NOSCRIPT
========================================================= */

.noscript-message {
    position: fixed;
    inset: 0;

    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;

    color: #ffffff;
    background: var(--dark);

    text-align: center;

    font-size: 16px;
    font-weight: 700;
}


/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes messageIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .top-header {
        padding-left: 20px;
        padding-right: 20px;
    }

    .transaction-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .selfie-workspace {
        grid-template-columns: 200px 1fr;
    }

    .selfie-preview-box {
        width: 200px;
    }

    .footer {
        padding-left: 20px;
        padding-right: 20px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 680px) {

    .top-header {
        min-height: auto;

        align-items: flex-start;

        padding: 13px 16px;
    }

    .header-brand {
        gap: 10px;
    }

    .logo-box {
        width: 50px;
        height: 50px;
        flex-basis: 50px;

        border-width: 2px;
    }

    .brand-kicker {
        font-size: 7px;
    }

    .title-box h1 {
        font-size: 22px;
    }

    .title-box p {
        margin-top: 4px;

        font-size: 10px;
    }

    .header-clock {
        min-width: auto;

        padding: 8px 9px;
    }

    .greeting-line {
        display: none;
    }

    .date-time-row {
        display: block;
    }

    .date-box {
        display: none;
    }

    .time-box strong {
        font-size: 12px;
    }

    .main-wrapper {
        width: min(calc(100% - 24px), var(--max-width));

        padding: 24px 0 36px;
    }

    .selection-heading {
        align-items: flex-start;

        margin-bottom: 20px;
    }

    .selection-heading h2,
    .preview-header h2 {
        font-size: 30px;
    }

    .selection-heading p,
    .preview-header p {
        font-size: 13px;
    }

    .selection-count {
        display: none;
    }

    .transaction-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .transaction-card {
        min-height: 145px;

        padding: 15px;

        border-bottom-width: 2px;
    }

    .transaction-card::before {
        left: 15px;

        width: 32px;
    }

    .service-icon {
        width: 37px;
        height: 37px;

        margin-bottom: 19px;

        font-size: 14px;
    }

    .card-title {
        font-size: 13px;
    }

    .service-content {
        padding-right: 0;
    }

    .service-content small {
        font-size: 10px;
    }

    .service-arrow {
        right: 13px;
        bottom: 10px;

        font-size: 16px;
    }

    .selected-service-bar {
        padding: 12px;
    }

    .back-button {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .selected-service-icon {
        width: 44px;
        height: 44px;
        flex-basis: 44px;

        font-size: 17px;
    }

    .selected-service-text h2 {
        font-size: 19px;
    }

    .selected-service-text p {
        display: none;
    }

    #transactionEntryForm {
        gap: 12px;
    }

    .form-section {
        padding: 17px 14px;

        border-radius: 12px;
    }

    .form-section-heading {
        margin-bottom: 17px;
        padding-bottom: 13px;
    }

    .section-number {
        width: 27px;
        height: 27px;
        flex-basis: 27px;

        font-size: 11px;
    }

    .form-section-heading h3 {
        font-size: 15px;
    }

    .form-section-heading p {
        font-size: 10px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .field-span-2 {
        grid-column: auto;
    }

    .field-group label {
        font-size: 10px;
    }

    .field-group input,
    .field-group select {
        min-height: 46px;

        font-size: 14px;
    }

    .field-group textarea {
        font-size: 14px;
    }

    .selfie-workspace {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .selfie-preview-box {
        width: 100%;
        max-width: 310px;

        margin: 0 auto;
    }

    .selfie-controls {
        text-align: center;
    }

    .camera-actions {
        justify-content: center;
    }

    .form-actions,
    .preview-actions {
        display: grid;
        grid-template-columns: 1fr 1.5fr;
    }

    .form-actions .button,
    .preview-actions .button {
        width: 100%;
        min-width: 0;

        padding-left: 12px;
        padding-right: 12px;

        font-size: 11px;
    }

    .preview-header {
        display: block;
    }

    .preview-status {
        margin-top: 15px;
    }

    .preview-grid {
        grid-template-columns: 1fr;
    }

    .success-screen {
        margin: 10px auto;
        padding: 40px 20px;
    }

    .footer {
        grid-template-columns: 1fr auto;

        padding: 14px 16px;
    }

    .footer-left {
        display: block;
    }

    .footer-left span {
        display: block;

        margin-top: 2px;

        font-size: 9px;
    }

    .footer-center {
        display: none;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 390px) {

    .top-header {
        padding-left: 11px;
        padding-right: 11px;
    }

    .logo-box {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .title-box h1 {
        font-size: 19px;
    }

    .title-box p {
        font-size: 9px;
    }

    .header-clock {
        padding: 7px;
    }

    .clock-label {
        font-size: 7px;
    }

    .time-box strong {
        font-size: 10px;
    }

    .main-wrapper {
        width: calc(100% - 18px);
    }

    .selection-heading h2 {
        font-size: 27px;
    }

    .transaction-grid {
        gap: 8px;
    }

    .transaction-card {
        min-height: 138px;

        padding: 13px;
    }

    .service-content small {
        font-size: 9px;
    }

}


/* =========================================================
   LARGE DESKTOP
========================================================= */

@media (min-width: 1400px) {

    :root {
        --max-width: 1280px;
    }

    .transaction-card {
        min-height: 195px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

}


/* =========================================================
   PRINT
========================================================= */

@media print {

    body {
        background: #ffffff;
    }

    .top-header,
    .footer,
    .form-actions,
    .preview-actions,
    .global-message {
        display: none !important;
    }

    .main-wrapper {
        width: 100%;
        padding: 0;
    }

    .form-section,
    .preview-section {
        break-inside: avoid;

        box-shadow: none;
    }

}
/* =========================================================
   PREMIUM TRANSACTION PREVIEW / WALLET UI
========================================================= */

.preview-screen {
    position: relative;
    overflow: hidden;
    padding: 30px;
    background:
        radial-gradient(circle at 100% 0,
            rgba(244, 163, 0, 0.13),
            transparent 320px),
        linear-gradient(145deg, #ffffff 0%, #f7faf8 100%);
    border: 1px solid #dce5e0;
    border-radius: 24px;
    box-shadow:
        0 24px 70px rgba(15, 39, 32, 0.12),
        0 2px 8px rgba(15, 39, 32, 0.05);
}

.preview-screen::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background:
        linear-gradient(
            90deg,
            #0b5d4b,
            #18a078,
            #f4a300,
            #d92d20
        );
}

.preview-header {
    position: relative;
    z-index: 1;
    padding-bottom: 22px;
    border-bottom: 1px solid #e5ebe7;
}

.transaction-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.transaction-preview-item {
    min-width: 0;
    padding: 16px 17px;
    background:
        linear-gradient(145deg, #ffffff, #f7faf8);
    border: 1px solid #dce5e0;
    border-radius: 14px;
    box-shadow:
        0 4px 14px rgba(18, 48, 39, 0.045);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

.transaction-preview-item:hover {
    transform: translateY(-2px);
    border-color: rgba(11, 93, 75, 0.35);
    box-shadow:
        0 10px 25px rgba(18, 48, 39, 0.08);
}

.transaction-preview-label {
    display: block;
    margin-bottom: 6px;
    color: #6c7a74;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.transaction-preview-value {
    display: block;
    color: #10251f;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.transaction-preview-item:first-child {
    grid-column: span 2;
    padding: 20px;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            #102b24 0%,
            #0b5d4b 60%,
            #08775e 100%
        );
    border-color: transparent;
    box-shadow:
        0 15px 35px rgba(11, 93, 75, 0.2);
}

.transaction-preview-item:first-child
.transaction-preview-label {
    color: rgba(255, 255, 255, 0.65);
}

.transaction-preview-item:first-child
.transaction-preview-value {
    color: #ffffff;
    font-size: 20px;
}

.transaction-preview-selfie {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 150px;
    align-items: center;
    gap: 20px;
    padding: 18px;
    background:
        linear-gradient(
            135deg,
            #fffaf0,
            #ffffff
        );
    border-color: rgba(244, 163, 0, 0.35);
}

.transaction-preview-image {
    width: 150px;
    height: 120px;
    justify-self: end;
    object-fit: cover;
    border: 4px solid #ffffff;
    border-radius: 16px;
    box-shadow:
        0 10px 25px rgba(18, 48, 39, 0.16);
}

.preview-actions {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5ebe7;
}

.preview-status {
    box-shadow:
        0 5px 15px rgba(20, 128, 74, 0.08);
}

@media (max-width: 680px) {

    .preview-screen {
        padding: 20px 14px;
        border-radius: 18px;
    }

    .transaction-preview-grid {
        grid-template-columns: 1fr;
    }

    .transaction-preview-item:first-child,
    .transaction-preview-selfie {
        grid-column: auto;
    }

    .transaction-preview-selfie {
        grid-template-columns: 1fr;
    }

    .transaction-preview-image {
        width: 100%;
        max-width: 260px;
        height: 210px;
        justify-self: center;
    }

}


/* =========================================================
   READABILITY + RESPONSIVE TYPOGRAPHY FIX
========================================================= */

.form-card,
.preview-screen {
    font-size: clamp(14px, 0.45vw + 10px, 17px);
}

/* Section headings */
.form-section-title,
.section-heading,
.form-card h2,
.form-card h3 {
    font-size: clamp(16px, 0.65vw + 10px, 21px) !important;
    line-height: 1.3 !important;
}

/* Labels */
.form-card label,
.field-label,
.transaction-preview-label {
    font-size: clamp(12px, 0.3vw + 9px, 14px) !important;
    line-height: 1.35 !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em !important;
}

/* Inputs */
.form-card input,
.form-card select,
.form-card textarea {
    min-height: 48px;
    padding: 12px 14px !important;
    font-size: clamp(14px, 0.35vw + 10px, 16px) !important;
    line-height: 1.4 !important;
}

/* Helper text */
.form-card small,
.field-help,
.helper-text,
.form-card p {
    font-size: clamp(11px, 0.25vw + 8px, 13px) !important;
    line-height: 1.5 !important;
}

/* Buttons */
.form-card button,
.preview-screen button {
    min-height: 46px;
    padding: 11px 18px !important;
    font-size: clamp(13px, 0.3vw + 9px, 15px) !important;
    font-weight: 800 !important;
}

/* Preview values */
.transaction-preview-value {
    font-size: clamp(15px, 0.45vw + 10px, 18px) !important;
    line-height: 1.45 !important;
}

.transaction-preview-item:first-child
.transaction-preview-value {
    font-size: clamp(20px, 0.8vw + 12px, 27px) !important;
}

/* Preview cards */
.transaction-preview-item {
    padding: clamp(15px, 1.2vw, 21px) !important;
}

/* Desktop: keep form readable instead of tiny */
@media (min-width: 1100px) {

    .main-wrapper {
        max-width: 1180px;
    }

    .form-card {
        font-size: 16px;
    }

}

/* Mobile */
@media (max-width: 680px) {

    .form-card,
    .preview-screen {
        font-size: 15px;
    }

    .form-card input,
    .form-card select,
    .form-card textarea {
        min-height: 50px;
        font-size: 16px !important;
    }

    .form-card label,
    .field-label,
    .transaction-preview-label {
        font-size: 12px !important;
    }

    .transaction-preview-value {
        font-size: 16px !important;
    }

}


/* =========================================================
   PREMIUM WALLET THEME + FACE AUTHENTICATION
========================================================= */

:root {
    --wallet-dark: #101a18;
    --wallet-surface: #172522;
    --wallet-emerald: #087f5b;
    --wallet-emerald-light: #12a879;
    --wallet-gold: #d9a441;
    --wallet-gold-soft: #fff7e6;
    --wallet-bg: #f3f6f4;
    --wallet-border: #d6dfda;
    --wallet-text: #12201c;
}

/* Remove excessive red feeling */
.button-submit,
#previewTransactionButton,
#submitTransactionButton {
    background:
        linear-gradient(
            135deg,
            var(--wallet-emerald),
            var(--wallet-emerald-light)
        ) !important;

    border-color: transparent !important;

    box-shadow:
        0 8px 22px rgba(8, 127, 91, 0.20) !important;
}

.button-submit:hover,
#previewTransactionButton:hover,
#submitTransactionButton:hover {
    transform: translateY(-2px);
    box-shadow:
        0 12px 28px rgba(8, 127, 91, 0.28) !important;
}

/* Premium form cards */
.form-section,
.form-card,
.preview-screen {
    border-color: var(--wallet-border) !important;
}

.form-section {
    box-shadow:
        0 8px 25px rgba(16, 42, 34, 0.06),
        0 2px 4px rgba(16, 42, 34, 0.04) !important;
}

/* Selfie section */
#selfieSection {
    position: relative;
    overflow: hidden;
}

#selfieSection::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background:
        linear-gradient(
            180deg,
            var(--wallet-emerald),
            var(--wallet-gold)
        );
}

/* Camera stage */
.face-camera-stage {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 20px !important;
    background: #08110f !important;
}

.face-camera-stage video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Face authentication overlay */
.face-guide-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none;

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

    background:
        radial-gradient(
            ellipse at center,
            transparent 0 30%,
            rgba(4, 15, 12, 0.22) 31%,
            rgba(4, 15, 12, 0.62) 72%
        );
}

.face-oval {
    width: 42%;
    height: 67%;

    border: 3px solid #49e6b1;
    border-radius: 50%;

    box-shadow:
        0 0 0 1px rgba(255,255,255,.35),
        0 0 22px rgba(73,230,177,.55),
        inset 0 0 18px rgba(73,230,177,.18);
}

.scan-line {
    position: absolute;
    width: 38%;
    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #69f0c1,
            transparent
        );

    box-shadow:
        0 0 12px #69f0c1;

    animation:
        faceScan 2.2s ease-in-out infinite;
}

.face-guide-overlay span {
    position: absolute;
    bottom: 14px;

    padding: 7px 12px;

    color: #ffffff;
    background: rgba(5, 20, 16, 0.72);

    border: 1px solid rgba(255,255,255,.20);
    border-radius: 999px;

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

    backdrop-filter: blur(8px);
}

@keyframes faceScan {

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

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

}

/* Captured state */
#selfieSection.selfie-captured {
    border-color:
        rgba(8, 127, 91, 0.45) !important;

    box-shadow:
        0 10px 30px rgba(8, 127, 91, 0.10) !important;
}

/* Premium preview */
.transaction-preview-item:first-child {
    background:
        linear-gradient(
            135deg,
            #101a18 0%,
            #087f5b 100%
        ) !important;
}

.transaction-preview-selfie {
    background:
        linear-gradient(
            135deg,
            #fffaf0,
            #ffffff
        ) !important;

    border-color:
        rgba(217, 164, 65, 0.55) !important;
}

/* Mobile */
@media (max-width: 680px) {

    .face-oval {
        width: 48%;
        height: 68%;
    }

    .face-guide-overlay span {
        font-size: 11px;
    }

}


/* =========================================================
   PREMIUM WALLET THEME + FACE AUTHENTICATION
========================================================= */

:root {
    --wallet-dark: #101a18;
    --wallet-surface: #172522;
    --wallet-emerald: #087f5b;
    --wallet-emerald-light: #12a879;
    --wallet-gold: #d9a441;
    --wallet-gold-soft: #fff7e6;
    --wallet-bg: #f3f6f4;
    --wallet-border: #d6dfda;
    --wallet-text: #12201c;
}

/* Remove excessive red feeling */
.button-submit,
#previewTransactionButton,
#submitTransactionButton {
    background:
        linear-gradient(
            135deg,
            var(--wallet-emerald),
            var(--wallet-emerald-light)
        ) !important;

    border-color: transparent !important;

    box-shadow:
        0 8px 22px rgba(8, 127, 91, 0.20) !important;
}

.button-submit:hover,
#previewTransactionButton:hover,
#submitTransactionButton:hover {
    transform: translateY(-2px);
    box-shadow:
        0 12px 28px rgba(8, 127, 91, 0.28) !important;
}

/* Premium form cards */
.form-section,
.form-card,
.preview-screen {
    border-color: var(--wallet-border) !important;
}

.form-section {
    box-shadow:
        0 8px 25px rgba(16, 42, 34, 0.06),
        0 2px 4px rgba(16, 42, 34, 0.04) !important;
}

/* Selfie section */
#selfieSection {
    position: relative;
    overflow: hidden;
}

#selfieSection::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background:
        linear-gradient(
            180deg,
            var(--wallet-emerald),
            var(--wallet-gold)
        );
}

/* Camera stage */
.face-camera-stage {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 20px !important;
    background: #08110f !important;
}

.face-camera-stage video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Face authentication overlay */
.face-guide-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none;

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

    background:
        radial-gradient(
            ellipse at center,
            transparent 0 30%,
            rgba(4, 15, 12, 0.22) 31%,
            rgba(4, 15, 12, 0.62) 72%
        );
}

.face-oval {
    width: 42%;
    height: 67%;

    border: 3px solid #49e6b1;
    border-radius: 50%;

    box-shadow:
        0 0 0 1px rgba(255,255,255,.35),
        0 0 22px rgba(73,230,177,.55),
        inset 0 0 18px rgba(73,230,177,.18);
}

.scan-line {
    position: absolute;
    width: 38%;
    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #69f0c1,
            transparent
        );

    box-shadow:
        0 0 12px #69f0c1;

    animation:
        faceScan 2.2s ease-in-out infinite;
}

.face-guide-overlay span {
    position: absolute;
    bottom: 14px;

    padding: 7px 12px;

    color: #ffffff;
    background: rgba(5, 20, 16, 0.72);

    border: 1px solid rgba(255,255,255,.20);
    border-radius: 999px;

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

    backdrop-filter: blur(8px);
}

@keyframes faceScan {

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

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

}

/* Captured state */
#selfieSection.selfie-captured {
    border-color:
        rgba(8, 127, 91, 0.45) !important;

    box-shadow:
        0 10px 30px rgba(8, 127, 91, 0.10) !important;
}

/* Premium preview */
.transaction-preview-item:first-child {
    background:
        linear-gradient(
            135deg,
            #101a18 0%,
            #087f5b 100%
        ) !important;
}

.transaction-preview-selfie {
    background:
        linear-gradient(
            135deg,
            #fffaf0,
            #ffffff
        ) !important;

    border-color:
        rgba(217, 164, 65, 0.55) !important;
}

/* Mobile */
@media (max-width: 680px) {

    .face-oval {
        width: 48%;
        height: 68%;
    }

    .face-guide-overlay span {
        font-size: 11px;
    }

}


/* =========================================================
   PREMIUM WALLET THEME + FACE AUTHENTICATION
========================================================= */

:root {
    --wallet-dark: #101a18;
    --wallet-surface: #172522;
    --wallet-emerald: #087f5b;
    --wallet-emerald-light: #12a879;
    --wallet-gold: #d9a441;
    --wallet-gold-soft: #fff7e6;
    --wallet-bg: #f3f6f4;
    --wallet-border: #d6dfda;
    --wallet-text: #12201c;
}

/* Remove excessive red feeling */
.button-submit,
#previewTransactionButton,
#submitTransactionButton {
    background:
        linear-gradient(
            135deg,
            var(--wallet-emerald),
            var(--wallet-emerald-light)
        ) !important;

    border-color: transparent !important;

    box-shadow:
        0 8px 22px rgba(8, 127, 91, 0.20) !important;
}

.button-submit:hover,
#previewTransactionButton:hover,
#submitTransactionButton:hover {
    transform: translateY(-2px);
    box-shadow:
        0 12px 28px rgba(8, 127, 91, 0.28) !important;
}

/* Premium form cards */
.form-section,
.form-card,
.preview-screen {
    border-color: var(--wallet-border) !important;
}

.form-section {
    box-shadow:
        0 8px 25px rgba(16, 42, 34, 0.06),
        0 2px 4px rgba(16, 42, 34, 0.04) !important;
}

/* Selfie section */
#selfieSection {
    position: relative;
    overflow: hidden;
}

#selfieSection::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background:
        linear-gradient(
            180deg,
            var(--wallet-emerald),
            var(--wallet-gold)
        );
}

/* Camera stage */
.face-camera-stage {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 20px !important;
    background: #08110f !important;
}

.face-camera-stage video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Face authentication overlay */
.face-guide-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none;

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

    background:
        radial-gradient(
            ellipse at center,
            transparent 0 30%,
            rgba(4, 15, 12, 0.22) 31%,
            rgba(4, 15, 12, 0.62) 72%
        );
}

.face-oval {
    width: 42%;
    height: 67%;

    border: 3px solid #49e6b1;
    border-radius: 50%;

    box-shadow:
        0 0 0 1px rgba(255,255,255,.35),
        0 0 22px rgba(73,230,177,.55),
        inset 0 0 18px rgba(73,230,177,.18);
}

.scan-line {
    position: absolute;
    width: 38%;
    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #69f0c1,
            transparent
        );

    box-shadow:
        0 0 12px #69f0c1;

    animation:
        faceScan 2.2s ease-in-out infinite;
}

.face-guide-overlay span {
    position: absolute;
    bottom: 14px;

    padding: 7px 12px;

    color: #ffffff;
    background: rgba(5, 20, 16, 0.72);

    border: 1px solid rgba(255,255,255,.20);
    border-radius: 999px;

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

    backdrop-filter: blur(8px);
}

@keyframes faceScan {

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

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

}

/* Captured state */
#selfieSection.selfie-captured {
    border-color:
        rgba(8, 127, 91, 0.45) !important;

    box-shadow:
        0 10px 30px rgba(8, 127, 91, 0.10) !important;
}

/* Premium preview */
.transaction-preview-item:first-child {
    background:
        linear-gradient(
            135deg,
            #101a18 0%,
            #087f5b 100%
        ) !important;
}

.transaction-preview-selfie {
    background:
        linear-gradient(
            135deg,
            #fffaf0,
            #ffffff
        ) !important;

    border-color:
        rgba(217, 164, 65, 0.55) !important;
}

/* Mobile */
@media (max-width: 680px) {

    .face-oval {
        width: 48%;
        height: 68%;
    }

    .face-guide-overlay span {
        font-size: 11px;
    }

}

