/* ============================================================
   HRD Klinik — Aurora Dark Theme v2.0
   Aesthetic: Glassmorphism Dark + Aurora Glow
   Palette: Mint Teal + Violet + Deep Navy
   ============================================================ */

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

:root {
    /* Aurora Palette */
    --mint: #00E5C3;
    --mint-dark: #00C4A8;
    --mint-glow: rgba(0, 229, 195, 0.2);
    --mint-subtle: rgba(0, 229, 195, 0.08);
    --violet: #A855F7;
    --violet-dark: #9333EA;
    --violet-glow: rgba(168, 85, 247, 0.2);
    --rose: #F43F5E;
    --amber: #F59E0B;
    --sky: #38BDF8;
    --green: #22C55E;
    --red: #EF4444;

    /* Deep Backgrounds */
    --bg: #07090F;
    --bg2: #0D1117;
    --bg3: #111827;

    /* Glass Surfaces */
    --surface: rgba(255,255,255,0.04);
    --surface2: rgba(255,255,255,0.07);
    --surface3: rgba(255,255,255,0.10);
    --card: rgba(255,255,255,0.05);
    --card2: rgba(255,255,255,0.08);

    /* Borders */
    --border: rgba(255,255,255,0.08);
    --border2: rgba(255,255,255,0.12);
    --border-mint: rgba(0,229,195,0.25);

    /* Typography */
    --text: #F0F4FF;
    --muted: rgba(240,244,255,0.55);
    --muted2: rgba(240,244,255,0.3);

    /* Gradients */
    --grad-primary: linear-gradient(135deg, var(--mint) 0%, #00C4A8 40%, var(--violet) 100%);
    --grad-glow: linear-gradient(135deg, var(--mint-glow), var(--violet-glow));
    --grad-card: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.4);
    --shadow-lg: 0 20px 50px rgba(0,0,0,0.5);
    --shadow-mint: 0 8px 32px rgba(0,229,195,0.2);
    --shadow-violet: 0 8px 32px rgba(168,85,247,0.2);

    /* Radius */
    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 20px;
    --r-xl: 28px;
    --r-full: 9999px;

    /* Spacing */
    --bottom-h: 76px;

    /* Transitions */
    --t-fast: 150ms ease;
    --t-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --t-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── RESET ────────────────────────────────────────────── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* ── BASE ─────────────────────────────────────────────── */
body {
    font-family: 'DM Sans', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    max-width: 430px;
    margin: 0 auto;
    position: relative;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Ambient background glows */
body::before {
    content: '';
    position: fixed;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(ellipse, rgba(0,229,195,0.07) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: bgFloat1 12s ease-in-out infinite;
}

body::after {
    content: '';
    position: fixed;
    bottom: -10%;
    right: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(ellipse, rgba(168,85,247,0.07) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: bgFloat2 15s ease-in-out infinite;
}

@keyframes bgFloat1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(3%,4%)} }
@keyframes bgFloat2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-3%,-4%)} }

/* ── SCREENS ──────────────────────────────────────────── */
.screen {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    display: none;
    padding-bottom: calc(var(--bottom-h) + 24px);
    animation: fadeUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.screen.active { display: block; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Scrollbar */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-mint); border-radius: 99px; }

/* ── STATUS BAR ───────────────────────────────────────── */
.status-bar {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--muted);
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(7,9,15,0.7);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.status-icons { letter-spacing: 2px; font-size: 0.85rem; }

/* ── TOP NAV ──────────────────────────────────────────── */
.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: rgba(7,9,15,0.7);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 44px;
    z-index: 40;
}

.top-nav-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.icon-btn {
    width: 38px;
    height: 38px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all var(--t-fast);
    color: var(--muted);
}

.icon-btn:active { background: var(--surface3); transform: scale(0.93); }

/* ── BOTTOM NAV ───────────────────────────────────────── */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    height: var(--bottom-h);
    background: rgba(7,9,15,0.85);
    backdrop-filter: blur(24px);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 8px 8px;
    z-index: 200;
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 14px 4px;
    cursor: pointer;
    border-radius: var(--r-md);
    transition: all var(--t-fast);
    flex: 1;
    position: relative;
}

.nav-btn .nb-icon {
    font-size: 1.3rem;
    transition: transform var(--t-fast);
    line-height: 1;
}

.nav-btn .nb-label {
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--muted2);
    transition: color var(--t-fast);
    letter-spacing: 0.3px;
}

.nav-btn.active .nb-label { color: var(--mint); }
.nav-btn.active .nb-icon { transform: translateY(-3px); }

.nav-btn.active::after {
    content: '';
    position: absolute;
    top: 0;
    width: 24px;
    height: 2px;
    background: var(--mint);
    border-radius: 99px;
    box-shadow: 0 0 10px var(--mint);
}

/* ── HOME HEADER ──────────────────────────────────────── */
.home-header {
    padding: 20px 20px 16px;
}

.greeting {
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 500;
    margin-bottom: 2px;
}

.greeting-name {
    font-family: 'Syne', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
}

/* Avatar */
.av {
    border-radius: var(--r-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: -0.5px;
    color: #07090F;
}

.av-40 { width: 44px; height: 44px; }
.av-48 { width: 48px; height: 48px; }
.av-60 { width: 60px; height: 60px; font-size: 1.2rem; }
.av-blue { background: var(--grad-primary); box-shadow: 0 0 16px var(--mint-glow); }

/* ── ATTENDANCE HERO ──────────────────────────────────── */
.attendance-hero {
    margin: 0 16px 16px;
    background: var(--grad-card);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 24px 20px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(16px);
}

.attendance-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(ellipse, var(--mint-glow), transparent 70%);
    pointer-events: none;
}

.attendance-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--r-xl);
    background: linear-gradient(135deg, rgba(0,229,195,0.04) 0%, transparent 60%);
    pointer-events: none;
}

.ah-date {
    font-size: 0.72rem;
    color: var(--mint);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.ah-time {
    font-family: 'Syne', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -2px;
    line-height: 1;
    margin-bottom: 10px;
}

.ah-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--muted);
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    padding: 5px 12px;
    margin-bottom: 20px;
}

.ah-dot {
    width: 6px;
    height: 6px;
    background: var(--mint);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--mint);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.6;transform:scale(0.8)} }

.ah-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.ah-btn {
    padding: 13px;
    border: none;
    border-radius: var(--r-md);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--t-base);
    position: relative;
    overflow: hidden;
}

.ah-btn-in {
    background: var(--grad-primary);
    color: #07090F;
    box-shadow: var(--shadow-mint);
}

.ah-btn-out {
    background: var(--surface2);
    color: var(--text);
    border: 1px solid var(--border);
}

.ah-btn:active { transform: scale(0.95); }

/* ── QUICK STATS ──────────────────────────────────────── */
.quick-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 16px;
    margin-bottom: 16px;
}

.qs-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 16px;
    cursor: pointer;
    transition: all var(--t-base);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.qs-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-mint), transparent);
    opacity: 0;
    transition: opacity var(--t-base);
}

.qs-card:active { transform: scale(0.96); }
.qs-card:active::before { opacity: 1; }

.qs-icon {
    font-size: 1.4rem;
    margin-bottom: 8px;
    display: block;
}

.qs-val {
    font-family: 'Syne', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 4px;
}

.qs-lbl {
    font-size: 0.68rem;
    color: var(--muted);
    font-weight: 500;
    line-height: 1.3;
}

/* ── SECTION TITLE ────────────────────────────────────── */
.section-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--muted);
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-link {
    color: var(--mint);
    font-size: 0.7rem;
    cursor: pointer;
}

/* ── CARDS ────────────────────────────────────────────── */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 16px;
    backdrop-filter: blur(12px);
    transition: all var(--t-base);
}

.card:active { transform: scale(0.98); }

/* ── TODAY SCHEDULE ───────────────────────────────────── */
.today-schedule {
    padding: 0 16px;
    margin-bottom: 16px;
}

/* ── TIMELINE ─────────────────────────────────────────── */
.tl-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
}

.tl-item:last-child { border-bottom: none; }

.tl-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mint);
    margin-top: 6px;
    flex-shrink: 0;
    box-shadow: 0 0 10px var(--mint);
}

.tl-dot.done { background: var(--muted2); box-shadow: none; }

.tl-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.tl-time {
    font-size: 0.72rem;
    color: var(--muted);
}

/* ── PROFILE HERO ─────────────────────────────────────── */
.profile-hero {
    background: var(--grad-card);
    border-bottom: 1px solid var(--border);
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.profile-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 180px;
    height: 180px;
    background: radial-gradient(var(--violet-glow), transparent 70%);
    pointer-events: none;
}

.ph-name {
    font-family: 'Syne', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
}

.ph-role {
    font-size: 0.75rem;
    color: var(--mint);
    font-weight: 600;
    margin-top: 2px;
}

.ph-dept {
    font-size: 0.7rem;
    color: var(--muted);
    margin-top: 2px;
}

/* ── MENU ─────────────────────────────────────────────── */
.menu-section {
    padding: 0 16px;
    margin-top: 16px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    margin-bottom: 8px;
    cursor: pointer;
    transition: all var(--t-fast);
    text-decoration: none;
    color: var(--text);
}

.menu-item:active { background: var(--card2); transform: scale(0.98); }

.mi-icon {
    width: 36px;
    height: 36px;
    background: var(--surface2);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.mi-label {
    font-size: 0.88rem;
    font-weight: 500;
    flex: 1;
    color: var(--text);
}

.mi-chevron { color: var(--muted2); font-size: 1.1rem; }

/* ── FORM ELEMENTS ────────────────────────────────────── */
.input-group { margin-bottom: 16px; }

.input-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}

.input {
    width: 100%;
    padding: 13px 16px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    font-size: 0.9rem;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    outline: none;
    transition: all var(--t-base);
    -webkit-appearance: none;
}

.input::placeholder { color: var(--muted2); }

.input:focus {
    border-color: var(--border-mint);
    background: rgba(0,229,195,0.04);
    box-shadow: 0 0 0 3px rgba(0,229,195,0.08);
}

textarea.input { resize: vertical; min-height: 80px; }

select.input { color: var(--text); }
select.input option { background: var(--bg2); color: var(--text); }

/* ── BUTTONS ──────────────────────────────────────────── */
.btn-primary {
    background: var(--grad-primary);
    color: #07090F;
    padding: 14px 24px;
    width: 100%;
    border: none;
    border-radius: var(--r-md);
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--t-fast);
    box-shadow: var(--shadow-mint);
    letter-spacing: -0.2px;
}

.btn-primary:active { transform: scale(0.97); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-secondary {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 40px;
    padding: 12px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
}
.btn-secondary:hover {
    background: var(--surface);
    border-color: var(--muted2);
}

/* ── BADGES ───────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--r-full);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.badge-green  { background: rgba(34,197,94,0.12);  color: #4ADE80; }
.badge-red    { background: rgba(239,68,68,0.12);  color: #F87171; }
.badge-amber  { background: rgba(245,158,11,0.12); color: #FCD34D; }
.badge-blue   { background: rgba(56,189,248,0.12); color: #7DD3FC; }
.badge-violet { background: rgba(168,85,247,0.12); color: #C084FC; }
.badge-mint   { background: var(--mint-subtle);    color: var(--mint); border: 1px solid rgba(0,229,195,0.2); }

/* ── ABSENSI TABS ─────────────────────────────────────── */
.abs-tabs {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 88px;
    z-index: 30;
    background: rgba(7,9,15,0.85);
    backdrop-filter: blur(12px);
}

.abs-tabs::-webkit-scrollbar { display: none; }

.abs-tab {
    padding: 7px 16px;
    border-radius: var(--r-full);
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all var(--t-fast);
    border: 1px solid var(--border);
    color: var(--muted);
    background: var(--surface);
}

.abs-tab.active {
    background: var(--mint-subtle);
    border-color: var(--border-mint);
    color: var(--mint);
}

.abs-panel { padding: 16px; }

/* ── LOC ROW ──────────────────────────────────────────── */
.loc-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 14px;
    margin-bottom: 10px;
}

.loc-icon { font-size: 1.3rem; }
.loc-info { flex: 1; }

/* ── HISTORY LIST ITEM ────────────────────────────────── */
.hist-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 14px 16px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hist-date-block {
    text-align: center;
    background: var(--mint-subtle);
    border: 1px solid var(--border-mint);
    border-radius: var(--r-sm);
    padding: 6px 10px;
    flex-shrink: 0;
}

.hist-day {
    font-family: 'Syne', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--mint);
    line-height: 1;
}

.hist-month { font-size: 0.62rem; color: var(--muted); font-weight: 600; text-transform: uppercase; }

.hist-info { flex: 1; }
.hist-title { font-size: 0.85rem; font-weight: 600; margin-bottom: 3px; }
.hist-sub { font-size: 0.72rem; color: var(--muted); }

/* ── TOAST ────────────────────────────────────────────── */
.toast {
    position: fixed;
    bottom: calc(var(--bottom-h) + 16px);
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--surface3);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border2);
    color: var(--text);
    padding: 12px 20px;
    border-radius: var(--r-full);
    font-size: 0.82rem;
    font-weight: 600;
    z-index: 999;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    white-space: nowrap;
    max-width: 90%;
    opacity: 0;
    box-shadow: var(--shadow-md);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success { border-color: rgba(34,197,94,0.4); color: #4ADE80; }
.toast.error   { border-color: rgba(239,68,68,0.4);  color: #F87171; }

/* ── MODALS ───────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
}

.modal-sheet {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    width: 100%;
    max-width: 430px;
    overflow: hidden;
    position: relative;
}

.modal-sheet::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-mint), transparent);
}

.modal-handle {
    width: 36px;
    height: 4px;
    background: var(--border2);
    border-radius: 99px;
    margin: 12px auto 0;
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

/* ── SELFIE MODAL (FIXED - NO ZOOM) ───────────────────── */
#selfie-modal {
    background: rgba(0,0,0,0.95) !important;
    backdrop-filter: blur(12px);
}

#step1-preview {
    position: relative;
    background: #000;
    margin: 0 12px;
    border-radius: 20px;
    overflow: hidden;
    /* Jangan pakai aspect-ratio, biar fleksibel */
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#selfie-video {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    background: #000;
    display: block;
    /* Pastikan video tidak terpotong */
    transform: scaleX(-1); /* Mirror agar seperti cermin, opsional, bisa dihapus */
}

#selfie-canvas {
    display: none;
}

/* Jarak info dalam modal selfie */
#distance-info {
    background: var(--surface);
    margin: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid var(--border);
    display: flex;
    gap: 12px;
    align-items: center;
}

/* ── SHIFT CARD ───────────────────────────────────────── */
.shift-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 16px;
    margin-bottom: 10px;
}

.shift-name {
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.shift-time {
    font-size: 1.4rem;
    font-weight: 800;
    font-family: 'Syne', sans-serif;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -1px;
}

/* ── SPINNER ──────────────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }

.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.15);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

/* ── EXTRAS FOR PRODUCTION ────────────────────────────── */
.cuti-form { padding: 16px; }
.cuti-balance {
    background: var(--grad-card);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 24px 20px;
    margin-bottom: 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cuti-balance::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -20%;
    width: 80%;
    height: 80%;
    background: radial-gradient(var(--violet-glow), transparent 70%);
    pointer-events: none;
}
.cb-num {
    font-family: 'Syne', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -3px;
    line-height: 1;
}
.cb-sub {
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 6px;
}
.border-mint { border-color: var(--border-mint) !important; }
.stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 16px;
}
.stat-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 14px 12px;
    text-align: center;
}
.stat-num {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
}
.stat-lbl {
    font-size: 0.62rem;
    color: var(--muted);
    font-weight: 500;
    margin-top: 2px;
    line-height: 1.3;
}
.home-banner {
    margin: 0 16px 16px;
    background: linear-gradient(135deg, rgba(168,85,247,0.1), rgba(0,229,195,0.07));
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}
.hb-icon {
    width: 40px;
    height: 40px;
    background: rgba(168,85,247,0.15);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.hb-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text);
}
.hb-sub {
    font-size: 0.7rem;
    color: var(--muted);
}
#abs-clock-display {
    font-family: 'Syne', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -1px;
}

/* ── RESPONSIVE TWEAKS ────────────────────────────────── */
@media (max-width: 380px) {
    .ah-time { font-size: 2.5rem; }
    .qs-val { font-size: 1.4rem; }
}
/* Profile Photo Styles */
.profile-photo-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    background: var(--surface2);
    border: 2px solid var(--border-mint);
    box-shadow: 0 0 12px var(--mint-glow);
    flex-shrink: 0;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-photo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    border-radius: 50%;
}

.profile-photo-wrapper:hover .profile-photo-overlay {
    opacity: 1;
}

.profile-photo-overlay span {
    color: white;
    font-size: 1.2rem;
}