/* ============================================================
   QR ATTENDANCE — PRODUCTION CSS
   Aesthetic: Clean Corporate Dark/Light Hybrid
   Font: DM Sans + DM Mono
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=DM+Mono:wght@400;500&display=swap');

/* ── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --teal-50: #f0fdfa;
    --teal-100: #ccfbf1;
    --teal-200: #99f6e4;
    --teal-400: #2dd4bf;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;
    --teal-700: #0f766e;
    --teal-800: #115e59;
    --teal-900: #134e4a;
    --red-50: #fef2f2;
    --red-100: #fee2e2;
    --red-500: #ef4444;
    --red-600: #dc2626;
    --red-700: #b91c1c;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --white: #ffffff;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
    --shadow-lg: 0 12px 40px rgba(0,0,0,.10), 0 4px 12px rgba(0,0,0,.06);
    --shadow-teal: 0 6px 24px rgba(20,184,166,.35);
    --transition: 220ms cubic-bezier(.4,0,.2,1);
    --transition-slow: 380ms cubic-bezier(.4,0,.2,1);
    --font: 'DM Sans', sans-serif;
    --font-mono: 'DM Mono', monospace;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: linear-gradient(160deg, #ecfeff 0%, #f0fdf4 40%, #fafafa 100%);
    min-height: 100dvh;
    min-height: 100vh;
    color: var(--slate-800);
    line-height: 1.5;
    overflow-x: hidden;
}

    /* ── BACKGROUND DECORATION ────────────────────────────────── */
    body::before {
        content: '';
        position: fixed;
        top: -120px;
        right: -120px;
        width: 380px;
        height: 380px;
        background: radial-gradient(circle, rgba(20,184,166,.12) 0%, transparent 70%);
        pointer-events: none;
        z-index: 0;
    }

    body::after {
        content: '';
        position: fixed;
        bottom: -80px;
        left: -80px;
        width: 260px;
        height: 260px;
        background: radial-gradient(circle, rgba(45,212,191,.10) 0%, transparent 70%);
        pointer-events: none;
        z-index: 0;
    }

/* ── APP WRAPPER ──────────────────────────────────────────── */
.app-wrapper {
    position: relative;
    z-index: 1;
    max-width: 440px;
    margin: 0 auto;
    padding: 20px 16px 40px;
    min-height: 100dvh;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── BRAND HEADER ─────────────────────────────────────────── */
.brand-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 4px 18px;
}

.brand-logo {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    box-shadow: var(--shadow-teal);
    flex-shrink: 0;
}

.brand-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--slate-800);
    letter-spacing: -.3px;
}

.brand-sub {
    font-size: 12px;
    color: var(--slate-400);
    font-weight: 400;
}

/* ── APP CARD ─────────────────────────────────────────────── */
.app-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 24px 20px;
    flex: 1;
    border: 1px solid rgba(20,184,166,.08);
    position: relative;
    overflow: hidden;
}

    .app-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--teal-400), var(--teal-600), var(--teal-400));
        background-size: 200% 100%;
        animation: shimmerBar 3s linear infinite;
    }

@keyframes shimmerBar {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ── STEPPER ──────────────────────────────────────────────── */
.stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 24px;
    padding: 0 4px;
}

.step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--slate-100);
    color: var(--slate-400);
    font-weight: 600;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
    position: relative;
    z-index: 1;
}

.step-line {
    flex: 1;
    height: 2px;
    background: var(--slate-200);
    transition: background var(--transition-slow);
    min-width: 8px;
}

    .step-line.done {
        background: var(--teal-400);
    }

.step.active {
    background: var(--teal-500);
    color: var(--white);
    transform: scale(1.18);
    box-shadow: 0 0 0 4px rgba(20,184,166,.2);
}

.step.done {
    background: var(--teal-600);
    color: var(--white);
}

    .step.done::after {
        content: '✓';
        font-size: 13px;
    }

    .step.done > span {
        display: none;
    }

/* ── STEP CARDS ───────────────────────────────────────────── */
.step-card {
    display: none;
}

    .step-card.active {
        display: block;
        animation: stepIn var(--transition-slow) both;
    }

@keyframes stepIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-header {
    font-size: 17px;
    font-weight: 700;
    color: var(--slate-800);
    margin-bottom: 4px;
    letter-spacing: -.2px;
}

.step-sub {
    font-size: 13px;
    color: var(--slate-400);
    margin-bottom: 18px;
}

/* ── PERMISSION ROWS ──────────────────────────────────────── */
.perm-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: var(--slate-50);
    margin-bottom: 10px;
    border: 1px solid var(--slate-100);
    transition: border-color var(--transition);
}

    .perm-row.granted {
        border-color: var(--teal-200);
        background: var(--teal-50);
    }

.perm-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background: var(--slate-100);
    margin-right: 12px;
    flex-shrink: 0;
    transition: background var(--transition);
}

.perm-row.granted .perm-icon {
    background: var(--teal-100);
    color: var(--teal-700);
}

.perm-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--slate-700);
    flex: 1;
}

.badge-status {
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    transition: all var(--transition);
}

    .badge-status.ok {
        background: var(--teal-100);
        color: var(--teal-800);
    }

    .badge-status.no {
        background: var(--red-100);
        color: var(--red-700);
    }

/* ── QR READER ────────────────────────────────────────────── */
.qr-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--slate-900);
    position: relative;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#reader {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

    #reader video {
        border-radius: 0 !important;
    }

    #reader img {
        display: none !important;
    }
/* Scan frame overlay */
.scan-frame {
    position: absolute;
    inset: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .scan-frame::before {
        content: '';
        display: block;
        width: 180px;
        height: 180px;
        border: 2.5px solid rgba(20,184,166,.7);
        border-radius: 12px;
        animation: scanPulse 2s ease-in-out infinite;
    }

@keyframes scanPulse {
    0%,100% {
        box-shadow: 0 0 0 0 rgba(20,184,166,.3);
    }

    50% {
        box-shadow: 0 0 0 16px rgba(20,184,166,0);
    }
}

.scan-line {
    position: absolute;
    left: calc(50% - 90px);
    width: 180px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--teal-400), transparent);
    animation: scanLine 2s linear infinite;
    top: calc(50% - 90px);
}

@keyframes scanLine {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(180px);
    }
}

.scan-hint {
    text-align: center;
    margin-top: 14px;
    font-size: 13px;
    color: var(--slate-400);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* ── FORM CONTROLS ────────────────────────────────────────── */
.input-group-custom {
    position: relative;
    margin-bottom: 14px;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--slate-400);
    font-size: 15px;
    pointer-events: none;
}

.form-control-custom {
    width: 100%;
    padding: 13px 14px 13px 42px;
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 15px;
    font-weight: 500;
    color: var(--slate-800);
    background: var(--slate-50);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
    -webkit-appearance: none;
    appearance: none;
}

    .form-control-custom:focus {
        border-color: var(--teal-400);
        background: var(--white);
        box-shadow: 0 0 0 3px rgba(20,184,166,.12);
    }

    .form-control-custom::placeholder {
        color: var(--slate-400);
        font-weight: 400;
    }

/* ── EMPLOYEE CARD ────────────────────────────────────────── */
.emp-card {
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--teal-100);
    background: linear-gradient(135deg, var(--teal-50), #f0fdfa);
    padding: 18px;
    margin-bottom: 16px;
}

.emp-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal-400), var(--teal-600));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
}

.emp-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--slate-800);
    line-height: 1.2;
}

.emp-meta {
    font-size: 12px;
    color: var(--slate-500);
    margin-top: 2px;
    font-family: var(--font-mono);
}

/* ── ATTENDANCE HISTORY ───────────────────────────────────── */
.att-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    background: var(--slate-50);
    border: 1px solid var(--slate-100);
    margin-bottom: 7px;
    font-size: 13px;
}

.att-badge {
    padding: 3px 9px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
}

    .att-badge.in {
        background: var(--teal-100);
        color: var(--teal-700);
    }

    .att-badge.out {
        background: var(--red-100);
        color: var(--red-700);
    }

.att-time {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--slate-600);
}

/* ── PUNCH TYPE SELECT ────────────────────────────────────── */
.punch-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 6px;
}

.punch-card {
    padding: 20px 12px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--slate-200);
    background: var(--white);
    cursor: pointer;
    text-align: center;
    transition: all var(--transition);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

    .punch-card:active {
        transform: scale(.96);
    }

    .punch-card.punch-in:hover,
    .punch-card.punch-in:focus-within {
        border-color: var(--teal-400);
        background: var(--teal-50);
        box-shadow: 0 0 0 3px rgba(20,184,166,.1);
    }

    .punch-card.punch-out:hover,
    .punch-card.punch-out:focus-within {
        border-color: var(--red-500);
        background: var(--red-50);
        box-shadow: 0 0 0 3px rgba(239,68,68,.1);
    }

.punch-card-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.punch-card.punch-in .punch-card-icon {
    color: var(--teal-500);
}

.punch-card.punch-out .punch-card-icon {
    color: var(--red-500);
}

.punch-card-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
}

.punch-card.punch-in .punch-card-label {
    color: var(--teal-700);
}

.punch-card.punch-out .punch-card-label {
    color: var(--red-700);
}

/* ── VIDEO / CAMERA ───────────────────────────────────────── */
.camera-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--slate-900);
    aspect-ratio: 4/3;
}

    .camera-wrap video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        border-radius: 0;
        transform: scaleX(-1); /* mirror selfie */
    }

.camera-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border: 2px solid rgba(255,255,255,.15);
    border-radius: var(--radius-lg);
}

.face-guide {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 130px;
    height: 160px;
    border: 2px dashed rgba(20,184,166,.6);
    border-radius: 50% 50% 46% 46% / 48% 48% 52% 52%;
    animation: facePulse 2s ease-in-out infinite;
}

@keyframes facePulse {
    0%,100% {
        opacity: .6;
    }

    50% {
        opacity: 1;
    }
}

.cam-tip {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,.7);
    font-weight: 500;
}

/* ── PREVIEW IMAGE ────────────────────────────────────────── */
.preview-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 16px;
}

.preview-img {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    display: block;
    transform: scaleX(-1); /* keep mirror */
}

.preview-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,.5);
    color: #fff;
    border-radius: var(--radius-full);
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(4px);
    cursor: pointer;
    border: none;
    transition: background var(--transition);
}

    .preview-overlay:hover {
        background: rgba(0,0,0,.7);
    }

/* ── SUCCESS SCREEN ───────────────────────────────────────── */
.success-screen {
    text-align: center;
    padding: 24px 0 8px;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal-400), var(--teal-600));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: successPop .5s cubic-bezier(.34,1.56,.64,1) both;
    box-shadow: var(--shadow-teal);
}

@keyframes successPop {
    from {
        opacity: 0;
        transform: scale(.4);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.success-icon svg, .success-icon i {
    font-size: 36px;
    color: #fff;
}

.success-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--slate-800);
    margin-bottom: 6px;
    letter-spacing: -.4px;
}

.success-msg {
    font-size: 14px;
    color: var(--slate-500);
    margin-bottom: 24px;
}

.success-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 14px;
    background: var(--slate-50);
    border-radius: var(--radius-md);
    border: 1px solid var(--slate-100);
    margin-bottom: 8px;
    font-size: 13px;
}

    .success-detail-row .label {
        color: var(--slate-400);
        font-weight: 500;
    }

    .success-detail-row .value {
        font-weight: 600;
        color: var(--slate-700);
        font-family: var(--font-mono);
        font-size: 13px;
    }

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .1px;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: var(--shadow-teal);
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    overflow: hidden;
}

    .btn-main::after {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(255,255,255,0);
        transition: background var(--transition);
    }

    .btn-main:hover::after {
        background: rgba(255,255,255,.08);
    }

    .btn-main:active {
        transform: scale(.97);
        box-shadow: 0 2px 8px rgba(20,184,166,.3);
    }

    .btn-main:disabled {
        opacity: .55;
        cursor: not-allowed;
        transform: none;
    }

.btn-outline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 20px;
    background: transparent;
    color: var(--teal-600);
    border: 1.5px solid var(--teal-400);
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    -webkit-appearance: none;
    appearance: none;
}

    .btn-outline:hover {
        background: var(--teal-50);
    }

    .btn-outline:active {
        transform: scale(.97);
    }

.btn-danger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 6px 24px rgba(239,68,68,.3);
    -webkit-appearance: none;
    appearance: none;
}

    .btn-danger:active {
        transform: scale(.97);
    }

.btn-ghost {
    background: none;
    border: none;
    color: var(--slate-500);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: color var(--transition);
}

    .btn-ghost:hover {
        color: var(--slate-800);
    }

.mt-8 {
    margin-top: 8px;
}

.mt-12 {
    margin-top: 12px;
}

.mt-16 {
    margin-top: 16px;
}

.gap-8 {
    gap: 8px;
}

/* ── GLOBAL LOADER ────────────────────────────────────────── */
.loader-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,.88);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease;
}

    .loader-overlay.visible {
        opacity: 1;
        pointer-events: all;
    }

.loader-box {
    text-align: center;
    animation: loaderPop .25s cubic-bezier(.34,1.56,.64,1) both;
}

@keyframes loaderPop {
    from {
        opacity: 0;
        transform: scale(.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.loader-ring {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 4px solid var(--teal-100);
    border-top-color: var(--teal-500);
    animation: spin .85s linear infinite;
    margin: 0 auto 14px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loader-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--teal-700);
    letter-spacing: .1px;
}

.loader-sub {
    font-size: 12px;
    color: var(--slate-400);
    margin-top: 4px;
}

/* ── TOAST ────────────────────────────────────────────────── */
.toast-container {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: calc(100% - 32px);
    max-width: 380px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: var(--slate-900);
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: toastIn .3s cubic-bezier(.34,1.56,.64,1) both;
    pointer-events: all;
    min-width: 200px;
    max-width: 100%;
}

    .toast.toast-success {
        background: var(--teal-700);
    }

    .toast.toast-error {
        background: var(--red-700);
    }

    .toast.toast-exit {
        animation: toastOut .25s ease forwards;
    }

.toast-icon {
    font-size: 16px;
    flex-shrink: 0;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(.92);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes toastOut {
    to {
        opacity: 0;
        transform: translateY(-8px) scale(.95);
    }
}

/* ── DIVIDER ──────────────────────────────────────────────── */
.divider {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--slate-300);
    font-size: 12px;
    margin: 14px 0;
}

    .divider::before, .divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--slate-200);
    }

/* ── INFO NOTE ────────────────────────────────────────────── */
.info-note {
    background: var(--teal-50);
    border: 1px solid var(--teal-100);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    font-size: 12.5px;
    color: var(--teal-800);
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 14px;
}

    .info-note i {
        margin-top: 2px;
        flex-shrink: 0;
    }

/* ── EMPTY / SKELETON ─────────────────────────────────────── */
.empty-att {
    text-align: center;
    padding: 16px 0;
    color: var(--slate-400);
    font-size: 13px;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 380px) {
    .app-wrapper {
        padding: 12px 12px 32px;
    }

    .app-card {
        padding: 20px 16px;
    }

    .punch-grid {
        gap: 8px;
    }
}

@media (min-width: 480px) {
    .app-wrapper {
        padding-top: 32px;
    }
}

/* ── SAFARI / IOS FIXES ───────────────────────────────────── */
@supports (-webkit-touch-callout: none) {
    .btn-main, .btn-outline, .btn-danger {
        -webkit-appearance: none;
    }

    input, select, textarea {
        font-size: 16px !important; /* prevent auto-zoom */
    }
}

/* ── SCROLLBAR ────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--slate-300);
    border-radius: 4px;
}
