/* =========================================================
   HADIR / حاضر — Official Design System
   Primary Teal: #0D9488  |  Midnight Navy: #0F172A
   ========================================================= */

:root {
    color-scheme: light;
    --hadir-teal: #0D9488;
    --hadir-teal-dark: #0F766E;
    --hadir-teal-soft: #14B8A6;
    --hadir-teal-bright: #0F766E;
    --hadir-teal-glow: rgba(13, 148, 136, 0.35);
    --hadir-navy: #0F172A;
    --hadir-navy-deep: #020617;
    --hadir-bg: #F8FAFC;
    --hadir-bg-2: #F1F5F9;
    --hadir-surface: #FFFFFF;
    --hadir-elevated: #FFFFFF;
    --hadir-interactive: #F8FAFC;
    --hadir-card: #FFFFFF;
    --hadir-text: #0F172A;
    --hadir-text-secondary: #334155;
    --hadir-muted: #64748B;
    --hadir-line: #E2E8F0;
    --hadir-border: rgba(15, 23, 42, 0.08);
    --hadir-input: #FFFFFF;
    --hadir-nav: rgba(255, 255, 255, 0.92);
    --hadir-shadow: 0 18px 48px -28px rgba(15, 23, 42, 0.35);
    --hadir-success-bg: rgba(13, 148, 136, 0.12);
    --hadir-success-text: #0F766E;
    --hadir-warn-bg: rgba(245, 158, 11, 0.14);
    --hadir-warn-text: #92400E;
    --hadir-danger-bg: rgba(244, 63, 94, 0.12);
    --hadir-danger-text: #BE123C;
    --hadir-info-bg: rgba(13, 148, 136, 0.1);
    --hadir-focus: rgba(13, 148, 136, 0.16);
    --hadir-overlay: rgba(15, 23, 42, 0.46);
    --hadir-radius: 1rem;
    --hadir-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --hadir-theme-ms: 200ms;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --hadir-teal: #0D9488;
    --hadir-teal-dark: #14B8A6;
    --hadir-teal-soft: #2DD4BF;
    --hadir-teal-bright: #2DD4BF;
    --hadir-teal-glow: rgba(45, 212, 191, 0.28);
    --hadir-bg: #080F1C;
    --hadir-bg-2: #0B1220;
    --hadir-surface: #0F172A;
    --hadir-elevated: #162235;
    --hadir-interactive: #1C2B40;
    --hadir-card: #0F172A;
    --hadir-text: #F8FAFC;
    --hadir-text-secondary: #CBD5E1;
    --hadir-muted: #94A3B8;
    --hadir-line: rgba(148, 163, 184, 0.16);
    --hadir-border: rgba(148, 163, 184, 0.14);
    --hadir-input: #162235;
    --hadir-nav: rgba(15, 23, 42, 0.94);
    --hadir-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.65);
    --hadir-success-bg: rgba(13, 148, 136, 0.18);
    --hadir-success-text: #5EEAD4;
    --hadir-warn-bg: rgba(245, 158, 11, 0.16);
    --hadir-warn-text: #FCD34D;
    --hadir-danger-bg: rgba(244, 63, 94, 0.16);
    --hadir-danger-text: #FDA4AF;
    --hadir-info-bg: rgba(45, 212, 191, 0.12);
    --hadir-focus: rgba(45, 212, 191, 0.22);
    --hadir-overlay: rgba(2, 6, 23, 0.72);
}

.hadir-app {
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', sans-serif;
    background: var(--hadir-bg);
    color: var(--hadir-text);
    -webkit-font-smoothing: antialiased;
}

/* App shell (authenticated) */
.hadir-shell {
    max-width: 32rem;
    margin-inline: auto;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding-bottom: calc(5.75rem + env(safe-area-inset-bottom));
    background: var(--hadir-bg);
}

.hadir-card {
    background: var(--hadir-card);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--hadir-radius);
    box-shadow: var(--hadir-shadow);
    padding: 1rem;
}

/* Floating bottom navigation */
.hadir-tabbar {
    position: fixed;
    bottom: calc(0.75rem + env(safe-area-inset-bottom));
    inset-inline: 0;
    max-width: 22.5rem;
    margin-inline: auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.15rem;
    background: var(--hadir-nav);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1.25rem;
    padding: 0.4rem;
    z-index: 40;
    box-shadow: 0 16px 40px -22px rgba(15, 23, 42, 0.45);
}

.hadir-tabbar .tab-btn {
  position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.18rem;
    font-size: 0.62rem;
    color: var(--hadir-muted);
    padding: 0.45rem 0.2rem;
    border-radius: 0.9rem;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: color .2s var(--hadir-ease), background .2s var(--hadir-ease), transform .15s var(--hadir-ease);
}

.hadir-tabbar .tab-btn i,
.hadir-tabbar .tab-btn svg {
    width: 1.15rem;
    height: 1.15rem;
}

.hadir-tabbar .tab-btn.active {
    color: var(--hadir-teal);
    background: rgba(13, 148, 136, 0.12);
    font-weight: 700;
}

.hadir-tabbar .tab-btn:active {
    transform: scale(0.96);
}

.hadir-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    background: var(--hadir-teal);
    color: #fff;
    font-weight: 600;
    border-radius: 0.9rem;
    padding: 0.9rem 1rem;
    width: 100%;
    border: none;
    cursor: pointer;
    transition: background .2s var(--hadir-ease), transform .15s var(--hadir-ease), box-shadow .2s var(--hadir-ease);
    box-shadow: 0 10px 24px -14px var(--hadir-teal-glow);
}

.hadir-btn:hover:not(:disabled) {
    background: var(--hadir-teal-dark);
    box-shadow: 0 14px 28px -12px var(--hadir-teal-glow);
}

.hadir-btn:active:not(:disabled) {
    transform: scale(0.985);
}

.hadir-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

.hadir-btn-teal {
    background: var(--hadir-teal);
}

.hadir-input {
    width: 100%;
    border: 1px solid var(--hadir-line);
    border-radius: 0.9rem;
    padding: 0.85rem 1rem;
    background: var(--hadir-input);
    color: var(--hadir-text);
    outline: none;
    transition: border-color .2s var(--hadir-ease), box-shadow .2s var(--hadir-ease);
}

.hadir-input:focus {
    border-color: var(--hadir-teal);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.18);
}

.hadir-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(13, 148, 136, 0.12);
    color: var(--hadir-teal-dark);
}

.hadir-chip.warn { background: rgba(245, 158, 11, 0.15); color: #b45309; }
.hadir-chip.danger { background: rgba(244, 63, 94, 0.12); color: #be123c; }
.hadir-chip.ok { background: rgba(13, 148, 136, 0.14); color: #0f766e; }

.brand-glow {
    text-shadow: 0 0 28px rgba(13, 148, 136, 0.4);
}

/* =========================================================
   LOGIN — Split Screen + Auth Cinema
   ========================================================= */

.hadir-login {
    min-height: 100dvh;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    background: var(--hadir-bg);
    position: relative;
    overflow: hidden;
}

@media (min-width: 960px) {
    .hadir-login {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    }
}

/* Brand panel */
.hadir-login-brand {
    position: relative;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.5rem 2.75rem;
    color: #fff;
    background:
        radial-gradient(900px 520px at 15% 20%, rgba(13, 148, 136, 0.28), transparent 55%),
        radial-gradient(700px 420px at 90% 80%, rgba(20, 184, 166, 0.16), transparent 50%),
        linear-gradient(160deg, #0F172A 0%, #0B1224 42%, #134E4A 100%);
    overflow: hidden;
}

@media (min-width: 960px) {
    .hadir-login-brand { display: flex; }
}

.hadir-login-brand::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(ellipse at 40% 40%, #000 20%, transparent 75%);
    pointer-events: none;
    animation: hadirGridDrift 28s linear infinite;
}

.hadir-orbits {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hadir-orbit {
    position: absolute;
    border: 1px solid rgba(13, 148, 136, 0.22);
    border-radius: 50%;
    top: 50%;
    left: 46%;
    transform: translate(-50%, -50%);
}

.hadir-orbit-1 { width: min(62vw, 420px); height: min(62vw, 420px); animation: hadirSpin 40s linear infinite; }
.hadir-orbit-2 { width: min(46vw, 300px); height: min(46vw, 300px); border-color: rgba(255,255,255,0.08); animation: hadirSpin 28s linear infinite reverse; }
.hadir-orbit-3 { width: min(28vw, 180px); height: min(28vw, 180px); border-color: rgba(13, 148, 136, 0.4); animation: hadirPulseSoft 4.5s ease-in-out infinite; }

.hadir-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--hadir-teal-soft);
    box-shadow: 0 0 16px var(--hadir-teal-glow);
}

.hadir-orbit-1 .hadir-dot { top: 8%; left: 50%; }
.hadir-orbit-2 .hadir-dot { top: 55%; left: 4%; background: #fff; }
.hadir-orbit-3 .hadir-dot { bottom: 10%; right: 18%; }

.hadir-brand-top,
.hadir-brand-mid,
.hadir-brand-foot {
    position: relative;
    z-index: 2;
}

.hadir-brand-logo {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 0.9rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.hadir-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.35rem;
}

.hadir-brand-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    font-weight: 700;
    color: rgba(153, 246, 228, 0.85);
    text-transform: uppercase;
    font-family: 'IBM Plex Sans', 'IBM Plex Sans Arabic', sans-serif;
}

.hadir-brand-title {
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-top: 0.35rem;
    line-height: 1.1;
}

.hadir-brand-title span {
    display: block;
    font-size: 0.55em;
    font-weight: 600;
    color: rgba(255,255,255,0.78);
    margin-top: 0.2rem;
    letter-spacing: 0;
}

.hadir-brand-headline {
    margin-top: 1.75rem;
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    font-weight: 600;
    line-height: 1.45;
    max-width: 18ch;
}

.hadir-brand-sub {
    margin-top: 0.85rem;
    color: rgba(226, 232, 240, 0.78);
    font-size: 0.98rem;
    line-height: 1.75;
    max-width: 34ch;
}

.hadir-brand-foot {
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    color: rgba(148, 163, 184, 0.85);
    font-weight: 600;
    font-family: 'IBM Plex Sans', sans-serif;
}

/* Auth panel */
.hadir-login-auth {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    background: linear-gradient(180deg, var(--hadir-bg) 0%, var(--hadir-bg-2) 100%);
    position: relative;
}

.hadir-login-mobile-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.15rem 1.25rem;
    background: linear-gradient(120deg, #0F172A 0%, #134E4A 70%, #0D9488 140%);
    color: #fff;
}

@media (min-width: 960px) {
    .hadir-login-mobile-head { display: none; }
}

.hadir-login-mobile-head .mark {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.14);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.hadir-login-mobile-head .mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.25rem;
}

.hadir-login-form-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.75rem 1.35rem 1.5rem;
    max-width: 28rem;
    width: 100%;
    margin-inline: auto;
    animation: hadirRiseIn .55s var(--hadir-ease) both;
}

@media (min-width: 960px) {
    .hadir-login-form-wrap {
        padding: 3rem 3.5rem;
        max-width: 30rem;
    }
}

.hadir-login-greeting h1 {
    font-size: clamp(1.55rem, 2.4vw, 1.9rem);
    font-weight: 700;
    color: var(--hadir-text);
    letter-spacing: -0.02em;
    line-height: 1.35;
}

.hadir-login-greeting p {
    margin-top: 0.55rem;
    color: var(--hadir-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.hadir-field {
    margin-top: 1.15rem;
}

.hadir-field label {
    display: block;
    font-size: 0.86rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.45rem;
}

.hadir-field-control {
    position: relative;
}

.hadir-field-control .field-icon {
    position: absolute;
    top: 50%;
    inset-inline-start: 0.95rem;
    transform: translateY(-50%);
    color: #94a3b8;
    width: 1.1rem;
    height: 1.1rem;
    pointer-events: none;
    transition: color .2s var(--hadir-ease);
}

.hadir-field-control input {
    width: 100%;
    height: 3.15rem;
    border: 1px solid var(--hadir-line);
    border-radius: 0.95rem;
    background: var(--hadir-input);
    padding-inline: 2.7rem 1rem;
    font-size: 0.98rem;
    color: var(--hadir-text);
    outline: none;
    transition: border-color .2s var(--hadir-ease), box-shadow .2s var(--hadir-ease), background .2s var(--hadir-ease);
}

.hadir-field-control input::placeholder {
    color: #94a3b8;
}

.hadir-field-control input:focus {
    border-color: var(--hadir-teal);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.14);
}

.hadir-field-control:focus-within .field-icon {
    color: var(--hadir-teal);
}

.hadir-field-control.has-toggle input {
    padding-inline-end: 2.8rem;
}

.hadir-toggle-pass {
    position: absolute;
    top: 50%;
    inset-inline-end: 0.55rem;
    transform: translateY(-50%);
    width: 2.2rem;
    height: 2.2rem;
    border: none;
    background: transparent;
    color: #94a3b8;
    border-radius: 0.55rem;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: color .2s var(--hadir-ease), background .2s var(--hadir-ease);
}

.hadir-toggle-pass:hover {
    color: var(--hadir-text);
    background: #F1F5F9;
}

.hadir-toggle-pass svg {
    width: 1.1rem;
    height: 1.1rem;
}

.hadir-login-submit {
    margin-top: 1.45rem;
    height: 3.2rem;
    border: none;
    border-radius: 0.95rem;
    background: linear-gradient(135deg, #0D9488 0%, #0F766E 100%);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    cursor: pointer;
    box-shadow: 0 14px 30px -16px rgba(13, 148, 136, 0.65);
    transition: transform .15s var(--hadir-ease), box-shadow .2s var(--hadir-ease), filter .2s var(--hadir-ease);
}

.hadir-login-submit svg {
    width: 1.15rem;
    height: 1.15rem;
    transition: transform .25s var(--hadir-ease);
}

.hadir-login-submit:hover:not(:disabled) {
    filter: brightness(1.05);
    box-shadow: 0 18px 34px -14px rgba(13, 148, 136, 0.7);
}

.hadir-login-submit:hover:not(:disabled) svg {
    transform: translateX(-3px);
}

.hadir-login-submit:active:not(:disabled) {
    transform: scale(0.985);
}

.hadir-login-submit:disabled {
    opacity: 0.58;
    cursor: not-allowed;
    filter: none;
    box-shadow: none;
}

button.hadir-login-hint {
    display: block;
    width: 100%;
    margin-top: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: center;
}

.hadir-login-secondary {
    margin-top: 1.1rem;
    text-align: center;
}

.hadir-login-secondary a {
    color: var(--hadir-teal-dark);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.hadir-login-secondary a:hover {
    color: var(--hadir-teal);
}

.hadir-login-footer {
    margin-top: auto;
    padding: 1rem 1.25rem 1.35rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
}

.hadir-inline-error {
    margin-top: 0.85rem;
    border: 1px solid #fecdd3;
    background: #fff1f2;
    color: #be123c;
    border-radius: 0.85rem;
    padding: 0.7rem 0.85rem;
    font-size: 0.86rem;
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
}

.hadir-inline-error svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* Auth overlay */
.hadir-auth-overlay {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hadir-auth-overlay.is-open {
    display: flex;
    animation: hadirFadeIn .25s var(--hadir-ease) both;
}

.hadir-auth-panel {
    width: min(100%, 26rem);
    background: rgba(248, 250, 252, 0.96);
    border: 1px solid rgba(255,255,255,0.45);
    border-radius: 1.35rem;
    box-shadow: 0 30px 80px -36px rgba(2, 6, 23, 0.65);
    padding: 2rem 1.5rem 1.6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hadir-auth-visual {
    width: 7.5rem;
    height: 7.5rem;
    margin: 0 auto 1.25rem;
    position: relative;
    display: grid;
    place-items: center;
}

.hadir-auth-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--hadir-teal);
    border-right-color: rgba(13, 148, 136, 0.35);
    animation: hadirRotate 1.35s linear infinite;
}

.hadir-auth-ring-soft {
    position: absolute;
    inset: 0.55rem;
    border-radius: 50%;
    border: 1px dashed rgba(13, 148, 136, 0.35);
    animation: hadirRotate 5.5s linear infinite reverse;
}

.hadir-auth-core {
    width: 3.6rem;
    height: 3.6rem;
    border-radius: 50%;
    background: linear-gradient(160deg, #0F172A, #134E4A);
    color: #99F6E4;
    display: grid;
    place-items: center;
    box-shadow: 0 0 0 8px rgba(13, 148, 136, 0.1), 0 0 28px rgba(13, 148, 136, 0.28);
}

.hadir-auth-core svg {
    width: 1.55rem;
    height: 1.55rem;
}

.hadir-auth-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--hadir-text);
}

.hadir-auth-sub {
    margin-top: 0.4rem;
    font-size: 0.88rem;
    color: var(--hadir-muted);
    line-height: 1.65;
}

.hadir-auth-bar {
    margin: 1.15rem auto 0;
    width: min(100%, 12rem);
    height: 3px;
    border-radius: 999px;
    background: #E2E8F0;
    overflow: hidden;
}

.hadir-auth-bar > span {
    display: block;
    height: 100%;
    width: 38%;
    border-radius: inherit;
    background: linear-gradient(90deg, transparent, var(--hadir-teal), transparent);
    animation: hadirBarSlide 1.2s ease-in-out infinite;
}

.hadir-auth-stages {
    margin-top: 1.25rem;
    display: grid;
    gap: 0.55rem;
    text-align: start;
}

.hadir-auth-stage {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.7rem;
    border-radius: 0.75rem;
    background: #fff;
    border: 1px solid #EEF2F7;
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 500;
}

.hadir-auth-stage .stage-ico {
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 0.5rem;
    display: grid;
    place-items: center;
    background: #F1F5F9;
}

.hadir-auth-stage .stage-ico svg {
    width: 0.95rem;
    height: 0.95rem;
}

.hadir-auth-stage.is-active {
    color: var(--hadir-teal-dark);
    border-color: rgba(13, 148, 136, 0.28);
    background: rgba(13, 148, 136, 0.06);
}

.hadir-auth-stage.is-active .stage-ico {
    background: rgba(13, 148, 136, 0.14);
    color: var(--hadir-teal);
}

.hadir-auth-stage.is-done {
    color: #0f766e;
}

.hadir-auth-stage.is-done .stage-ico {
    background: rgba(13, 148, 136, 0.14);
    color: var(--hadir-teal);
}

/* Success */
.hadir-auth-panel.is-success {
    background: linear-gradient(180deg, #ffffff 0%, #F0FDFA 100%);
}

.hadir-success-burst {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hadir-success-wave {
    position: absolute;
    left: 50%;
    top: 38%;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    border: 2px solid rgba(13, 148, 136, 0.45);
    transform: translate(-50%, -50%) scale(0.4);
    opacity: 0;
    animation: hadirWave 0.9s var(--hadir-ease) both;
}

.hadir-success-circle {
    width: 5.5rem;
    height: 5.5rem;
    margin: 0.4rem auto 1.1rem;
    border-radius: 50%;
    background: linear-gradient(145deg, #0D9488, #14B8A6);
    display: grid;
    place-items: center;
    box-shadow: 0 0 0 10px rgba(13, 148, 136, 0.1), 0 18px 40px -18px rgba(13, 148, 136, 0.65);
    animation: hadirPop .55s var(--hadir-ease) both;
    position: relative;
    z-index: 1;
}

.hadir-success-circle svg {
    width: 2.4rem;
    height: 2.4rem;
    stroke: #fff;
    fill: none;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 36;
    stroke-dashoffset: 36;
    animation: hadirDrawCheck .55s .15s var(--hadir-ease) forwards;
}

.hadir-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--hadir-teal);
    opacity: 0;
    animation: hadirParticle .9s var(--hadir-ease) both;
}

.hadir-particle:nth-child(1) { left: 28%; top: 28%; animation-delay: .05s; background: #fff; }
.hadir-particle:nth-child(2) { left: 68%; top: 24%; animation-delay: .1s; }
.hadir-particle:nth-child(3) { left: 76%; top: 48%; animation-delay: .14s; background: #99F6E4; }
.hadir-particle:nth-child(4) { left: 22%; top: 52%; animation-delay: .18s; }
.hadir-particle:nth-child(5) { left: 48%; top: 18%; animation-delay: .08s; background: #fff; }
.hadir-particle:nth-child(6) { left: 58%; top: 66%; animation-delay: .16s; }

/* Error */
.hadir-auth-panel.is-error {
    animation: hadirShake .4s var(--hadir-ease);
}

.hadir-error-circle {
    width: 5.2rem;
    height: 5.2rem;
    margin: 0.2rem auto 1rem;
    border-radius: 50%;
    background: linear-gradient(145deg, #0F172A, #334155);
    color: #fda4af;
    display: grid;
    place-items: center;
    box-shadow: 0 0 0 10px rgba(244, 63, 94, 0.08);
}

.hadir-error-circle svg {
    width: 2.1rem;
    height: 2.1rem;
}

.hadir-auth-actions {
    margin-top: 1.2rem;
}

.hadir-auth-actions button {
    width: 100%;
    height: 2.85rem;
    border-radius: 0.85rem;
    border: 1px solid var(--hadir-line);
    background: var(--hadir-input);
    color: var(--hadir-text);
    font-weight: 600;
    cursor: pointer;
}

.hadir-auth-actions button:hover {
    border-color: var(--hadir-teal);
    color: var(--hadir-teal-dark);
}

/* Keyframes */
@keyframes hadirSpin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes hadirRotate {
    to { transform: rotate(360deg); }
}

@keyframes hadirPulseSoft {
    0%, 100% { opacity: 0.45; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.9; transform: translate(-50%, -50%) scale(1.03); }
}

@keyframes hadirGridDrift {
    from { background-position: 0 0, 0 0; }
    to { background-position: 42px 42px, 42px 42px; }
}

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

@keyframes hadirFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes hadirBarSlide {
    0% { transform: translateX(120%); }
    100% { transform: translateX(-220%); }
}

@keyframes hadirPop {
    0% { opacity: 0; transform: scale(0.7); }
    70% { transform: scale(1.06); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes hadirDrawCheck {
    to { stroke-dashoffset: 0; }
}

@keyframes hadirWave {
    0% { opacity: 0.7; transform: translate(-50%, -50%) scale(0.35); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(2.4); }
}

@keyframes hadirParticle {
    0% { opacity: 0; transform: translate(0, 0) scale(0.4); }
    30% { opacity: 1; }
    100% { opacity: 0; transform: translate(var(--dx, 18px), var(--dy, -28px)) scale(0.2); }
}

@keyframes hadirShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
}

/* =========================================================
   STUDENT HOME DASHBOARD
   ========================================================= */

.home-page {
    padding: 0 0 0.5rem;
    animation: hadirRiseIn .45s var(--hadir-ease) both;
}

.home-hero {
    position: relative;
    overflow: hidden;
    margin: 0.75rem 0.85rem 0;
    padding: 1.15rem 1.15rem 1.2rem;
    border-radius: 1.35rem;
    color: #fff;
    background:
        radial-gradient(520px 220px at 100% -10%, rgba(13, 148, 136, 0.45), transparent 55%),
        radial-gradient(380px 180px at -10% 110%, rgba(20, 184, 166, 0.22), transparent 50%),
        linear-gradient(145deg, #0F172A 0%, #111C33 48%, #134E4A 100%);
    box-shadow: 0 18px 40px -24px rgba(15, 23, 42, 0.55);
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.55;
    pointer-events: none;
}

.home-hero-glow {
    position: absolute;
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    background: rgba(13, 148, 136, 0.28);
    filter: blur(28px);
    top: -2rem;
    inset-inline-end: -1.5rem;
    pointer-events: none;
}

.home-hero-inner {
    position: relative;
    z-index: 1;
}

.home-hero-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem;
}

.home-brand {
    font-size: 0.72rem;
    font-weight: 700;
    color: #99F6E4;
    letter-spacing: -0.01em;
    margin-bottom: 0.35rem;
}

.home-avatar {
    width: 3.15rem;
    height: 3.15rem;
    border-radius: 1rem;
    background: transparent;
    border: none;
    display: grid;
    place-items: center;
    overflow: hidden;
    flex-shrink: 0;
}

.home-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.admin-brand img {
    width: 3.6rem;
    height: 3.6rem;
    object-fit: contain;
    flex-shrink: 0;
}

.home-greet {
    font-size: 0.78rem;
    color: rgba(153, 246, 228, 0.9);
    font-weight: 600;
}

.home-name {
    margin-top: 0.15rem;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.home-verified {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.4rem;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background: rgba(13, 148, 136, 0.18);
    border: 1px solid rgba(153, 246, 228, 0.25);
    font-size: 0.68rem;
    font-weight: 600;
    color: #99F6E4;
}

.home-verified svg { width: 0.85rem; height: 0.85rem; }

.home-meta {
    margin-top: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.home-meta span {
    font-size: 0.7rem;
    padding: 0.28rem 0.55rem;
    border-radius: 0.55rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(226, 232, 240, 0.9);
}

.home-hero-foot {
    margin-top: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.home-date {
    font-size: 0.75rem;
    color: rgba(203, 213, 225, 0.85);
}

.home-active-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #99F6E4;
}

.home-live-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #2DD4BF;
    box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.55);
    animation: hadirLivePulse 1.8s ease-out infinite;
}

@keyframes hadirLivePulse {
    0% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.5); }
    70% { box-shadow: 0 0 0 8px rgba(45, 212, 191, 0); }
    100% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0); }
}

.home-section {
    padding: 1rem 0.85rem 0;
}

.home-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.7rem;
}

.home-section-head h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--hadir-text);
    letter-spacing: -0.01em;
}

.home-section-head a,
.home-section-head button.linkish {
    border: none;
    background: none;
    color: var(--hadir-teal);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

.home-panel {
    background: var(--hadir-surface);
    border: 1px solid var(--hadir-border);
    border-radius: 1.2rem;
    box-shadow: 0 14px 36px -26px rgba(15, 23, 42, 0.35);
    padding: 1rem;
}

/* Attendance ring */
.att-overview {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: center;
}

.att-ring-wrap {
    width: 7.2rem;
    height: 7.2rem;
    position: relative;
}

.att-ring-wrap svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.att-ring-track {
    fill: none;
    stroke: #E2E8F0;
    stroke-width: 8;
}

.att-ring-value {
    fill: none;
    stroke: url(#hadirTealGrad);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 264;
    stroke-dashoffset: 264;
    transition: stroke-dashoffset 1s var(--hadir-ease);
}

.att-ring-center {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    text-align: center;
}

.att-ring-center strong {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--hadir-text);
    letter-spacing: -0.03em;
    line-height: 1;
}

.att-ring-center span {
    font-size: 0.68rem;
    color: var(--hadir-muted);
    margin-top: 0.2rem;
}

.att-stats {
    display: grid;
    gap: 0.55rem;
}

.att-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem 0.7rem;
    border-radius: 0.8rem;
    background: var(--hadir-interactive);
    border: 1px solid #EEF2F7;
}

.att-stat span { font-size: 0.78rem; color: var(--hadir-muted); }
.att-stat strong { font-size: 0.95rem; color: var(--hadir-text); }

.att-note {
    margin-top: 0.85rem;
    font-size: 0.8rem;
    line-height: 1.65;
    color: var(--hadir-muted);
    padding: 0.7rem 0.8rem;
    border-radius: 0.85rem;
    background: rgba(13, 148, 136, 0.06);
    border: 1px solid rgba(13, 148, 136, 0.12);
}

.att-note.warn {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.2);
    color: #92400e;
}

/* Next lecture */
.next-card {
    position: relative;
    overflow: hidden;
}

.next-card.is-live {
    border-color: rgba(13, 148, 136, 0.28);
    background: linear-gradient(180deg, #F0FDFA 0%, #FFFFFF 55%);
}

.next-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--hadir-teal-dark);
    background: rgba(13, 148, 136, 0.12);
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
}

.next-course {
    margin-top: 0.65rem;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--hadir-text);
    letter-spacing: -0.02em;
}

.next-meta {
    margin-top: 0.45rem;
    display: grid;
    gap: 0.35rem;
}

.next-meta p {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--hadir-muted);
}

.next-meta svg { width: 0.95rem; height: 0.95rem; color: var(--hadir-teal); flex-shrink: 0; }

.next-cta {
    margin-top: 0.95rem;
}

/* Timeline */
.timeline {
    position: relative;
    padding-inline-start: 0.85rem;
}

.timeline::before {
    content: "";
    position: absolute;
    inset-inline-start: 0.28rem;
    top: 0.35rem;
    bottom: 0.35rem;
    width: 2px;
    background: linear-gradient(180deg, var(--hadir-teal), rgba(13, 148, 136, 0.15));
    border-radius: 999px;
}

.timeline-item {
    position: relative;
    padding: 0 0 0.85rem 0.95rem;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
    position: absolute;
    inset-inline-start: -0.85rem;
    top: 0.95rem;
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #94a3b8;
    z-index: 1;
}

.timeline-item.is-live .timeline-dot {
    border-color: var(--hadir-teal);
    background: var(--hadir-teal);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.18);
}

.timeline-item.is-done .timeline-dot {
    border-color: #cbd5e1;
    background: #e2e8f0;
}

.timeline-card {
    border: 1px solid var(--hadir-border);
    background: var(--hadir-elevated);
    border-radius: 0.95rem;
    padding: 0.8rem 0.85rem;
}

.timeline-item.is-live .timeline-card {
    border-color: rgba(13, 148, 136, 0.28);
    background: rgba(13, 148, 136, 0.05);
}

.timeline-item.is-done .timeline-card {
    opacity: 0.72;
}

.timeline-time {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--hadir-teal-dark);
    font-variant-numeric: tabular-nums;
}

.timeline-title {
    margin-top: 0.2rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--hadir-text);
}

.timeline-sub {
    margin-top: 0.2rem;
    font-size: 0.75rem;
    color: var(--hadir-muted);
}

/* Notifications */
.tab-badge {
    position: absolute;
    top: 0.2rem;
    inset-inline-end: 0.35rem;
    min-width: 1rem;
    height: 1rem;
    padding: 0 0.22rem;
    border-radius: 999px;
    background: #e11d48;
    color: #fff;
    font-size: 0.62rem;
    font-style: normal;
    font-weight: 700;
    line-height: 1rem;
    text-align: center;
}
.notif-item {
    width: 100%;
    background: transparent;
    text-align: start;
    cursor: pointer;
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #F1F5F9;
    text-align: start;
    width: 100%;
    background: none;
    border-left: none;
    border-right: none;
    border-top: none;
    cursor: pointer;
}

.notif-item:last-child { border-bottom: none; padding-bottom: 0; }
.notif-item:first-child { padding-top: 0; }

.notif-ico {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.8rem;
    display: grid;
    place-items: center;
    background: rgba(13, 148, 136, 0.1);
    color: var(--hadir-teal);
    flex-shrink: 0;
}

.notif-ico svg { width: 1.05rem; height: 1.05rem; }
.notif-ico.is-schedule { background: var(--hadir-interactive); color: var(--hadir-text); }
.notif-ico.is-announce { background: rgba(245, 158, 11, 0.12); color: #b45309; }

.notif-body { min-width: 0; flex: 1; }
.notif-title { font-size: 0.86rem; font-weight: 700; color: var(--hadir-text); }
.notif-text { font-size: 0.75rem; color: var(--hadir-muted); margin-top: 0.15rem; line-height: 1.5; }
.notif-time { font-size: 0.68rem; color: #94a3b8; margin-top: 0.25rem; }
.notif-unread .notif-title { color: var(--hadir-teal-dark); }

/* Quick actions */
.qa-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

.qa-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.9rem;
    border-radius: 1rem;
    border: 1px solid var(--hadir-border);
    background: var(--hadir-surface);
    text-align: start;
    cursor: pointer;
    transition: transform .15s var(--hadir-ease), border-color .2s var(--hadir-ease), box-shadow .2s var(--hadir-ease);
}

.qa-item:hover {
    border-color: rgba(13, 148, 136, 0.3);
    box-shadow: 0 12px 28px -22px rgba(13, 148, 136, 0.45);
}

.qa-item:active { transform: scale(0.98); }

.qa-ico {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.8rem;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, rgba(13,148,136,0.14), rgba(13,148,136,0.05));
    color: var(--hadir-teal);
}

.qa-ico svg { width: 1.15rem; height: 1.15rem; }
.qa-title { font-size: 0.86rem; font-weight: 700; color: var(--hadir-text); }
.qa-desc { font-size: 0.7rem; color: var(--hadir-muted); line-height: 1.4; }

/* Insights */
.insight-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.insight-tile {
    padding: 0.8rem;
    border-radius: 0.95rem;
    background: var(--hadir-interactive);
    border: 1px solid #EEF2F7;
}

.insight-tile span { display: block; font-size: 0.7rem; color: var(--hadir-muted); }
.insight-tile strong { display: block; margin-top: 0.3rem; font-size: 1.15rem; font-weight: 800; color: var(--hadir-text); letter-spacing: -0.02em; }

.trend-bars {
    margin-top: 0.85rem;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.35rem;
    align-items: end;
    height: 4.2rem;
}

.trend-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    height: 100%;
    justify-content: flex-end;
}

.trend-bar {
    width: 100%;
    border-radius: 0.4rem 0.4rem 0.25rem 0.25rem;
    background: linear-gradient(180deg, #14B8A6, #0D9488);
    min-height: 0.25rem;
    opacity: 0.85;
}

.trend-bar.is-empty {
    background: #E2E8F0;
    opacity: 1;
}

.trend-col span {
    font-size: 0.58rem;
    color: #94a3b8;
}

/* Empty / skeleton */
.home-empty {
    text-align: center;
    padding: 1.4rem 0.75rem;
    color: var(--hadir-muted);
}

.home-empty svg {
    width: 2.2rem;
    height: 2.2rem;
    color: #94a3b8;
    margin: 0 auto 0.55rem;
}

.home-empty p { font-size: 0.86rem; line-height: 1.6; }

.home-skel {
    padding: 0.85rem;
}

.skel-block {
    border-radius: 1.1rem;
    background: linear-gradient(90deg, #EEF2F7 25%, #F8FAFC 50%, #EEF2F7 75%);
    background-size: 200% 100%;
    animation: hadirSkel 1.2s ease-in-out infinite;
}

@keyframes hadirSkel {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.home-toast {
    position: fixed;
    left: 50%;
    bottom: calc(5.5rem + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    z-index: 60;
    background: var(--hadir-navy);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    box-shadow: 0 12px 30px -16px rgba(15,23,42,0.55);
    max-width: min(90vw, 22rem);
    text-align: center;
}

.home-offline {
    margin: 0.75rem 0.85rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 0.85rem;
    border-radius: 0.9rem;
    background: #FEF3C7;
    border: 1px solid #FDE68A;
    color: #92400E;
    font-size: 0.78rem;
    font-weight: 600;
}

.home-offline svg { width: 1rem; height: 1rem; flex-shrink: 0; }

a.qa-item {
    text-decoration: none;
    color: inherit;
}

.course-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid #F1F5F9;
}

.course-row:last-child { border-bottom: none; padding-bottom: 0; }
.course-row:first-child { padding-top: 0; }

.course-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--hadir-text);
}

.course-sub {
    margin-top: 0.15rem;
    font-size: 0.72rem;
    color: var(--hadir-muted);
    direction: ltr;
    text-align: start;
}

.course-pct {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--hadir-teal);
    font-variant-numeric: tabular-nums;
}

@media (min-width: 640px) {
    .home-page { max-width: 36rem; margin-inline: auto; }
    .att-overview { gap: 1.4rem; }
    .qa-grid { gap: 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
    .hadir-login-brand::before,
    .hadir-orbit,
    .hadir-orbit-3,
    .hadir-auth-ring,
    .hadir-auth-ring-soft,
    .hadir-auth-bar > span,
    .hadir-success-wave,
    .hadir-particle,
    .hadir-success-circle,
    .hadir-success-circle svg,
    .hadir-login-form-wrap,
    .hadir-auth-overlay.is-open,
    .hadir-auth-panel.is-error,
    .home-page,
    .home-live-dot,
    .att-ring-value,
    .skel-block {
        animation: none !important;
        transition: none !important;
    }
    .hadir-success-circle svg {
        stroke-dashoffset: 0;
    }
    .hadir-theme-fade,
    .hadir-theme-fade body,
    .theme-switch button {
        transition: none !important;
    }
}

/* Theme switcher */
.theme-switch {
    margin-bottom: 0.85rem;
}

.theme-switch-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--hadir-muted);
    margin-bottom: 0.45rem;
}

.theme-switch-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
    padding: 0.3rem;
    border-radius: 0.95rem;
    background: var(--hadir-interactive);
    border: 1px solid var(--hadir-border);
}

.theme-switch-row button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    min-height: 3.1rem;
    border: none;
    border-radius: 0.75rem;
    background: transparent;
    color: var(--hadir-muted);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
}

.theme-switch-row button svg {
    width: 1.05rem;
    height: 1.05rem;
}

.theme-switch-row button.is-active {
    background: var(--hadir-surface);
    color: var(--hadir-teal-bright);
    box-shadow: 0 8px 18px -14px rgba(15, 23, 42, 0.45);
}

html[data-theme="dark"] .theme-switch-row button.is-active {
    background: var(--hadir-interactive);
    box-shadow: inset 0 0 0 1px rgba(45, 212, 191, 0.35);
}

.sidebar-theme {
    margin: 0.6rem 0.75rem 0.9rem;
}

.sidebar-theme .theme-switch-label { color: rgba(226, 232, 240, 0.7); }
.sidebar-theme .theme-switch-row {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.08);
}
.sidebar-theme .theme-switch-row button { color: rgba(226, 232, 240, 0.75); }
.sidebar-theme .theme-switch-row button.is-active {
    background: rgba(13, 148, 136, 0.22);
    color: #99F6E4;
    box-shadow: none;
}

html.hadir-theme-fade,
html.hadir-theme-fade body,
html.hadir-theme-fade .hadir-card,
html.hadir-theme-fade .home-panel,
html.hadir-theme-fade .qa-item,
html.hadir-theme-fade .timeline-card,
html.hadir-theme-fade .hadir-tabbar,
html.hadir-theme-fade .hadir-login-auth,
html.hadir-theme-fade .surface-card,
html.hadir-theme-fade .glass-panel,
html.hadir-theme-fade .footer-bar,
html.hadir-theme-fade .input-modern,
html.hadir-theme-fade .hadir-input,
html.hadir-theme-fade .hadir-field-control input {
    transition: background-color var(--hadir-theme-ms, 200ms) ease, color var(--hadir-theme-ms, 200ms) ease, border-color var(--hadir-theme-ms, 200ms) ease, box-shadow var(--hadir-theme-ms, 200ms) ease;
}

html[data-theme="dark"] .att-ring-track { stroke: #1C2B40; }
html[data-theme="dark"] .home-section-head a,
html[data-theme="dark"] .home-section-head button.linkish,
html[data-theme="dark"] .course-pct,
html[data-theme="dark"] .hadir-tabbar .tab-btn.active {
    color: var(--hadir-teal-bright);
}
html[data-theme="dark"] .hadir-chip.warn { color: var(--hadir-warn-text); }
html[data-theme="dark"] .hadir-chip.danger { color: var(--hadir-danger-text); }
html[data-theme="dark"] .hadir-chip.ok { color: var(--hadir-success-text); }
html[data-theme="dark"] .att-note.warn { color: var(--hadir-warn-text); }
html[data-theme="dark"] .home-offline {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.28);
    color: var(--hadir-warn-text);
}
html[data-theme="dark"] .notif-item,
html[data-theme="dark"] .course-row {
    border-color: var(--hadir-border);
}
html[data-theme="dark"] .trend-bar.is-empty { background: #1C2B40; }
html[data-theme="dark"] .skel-block {
    background: linear-gradient(90deg, #121B2E 25%, #1C2B40 50%, #121B2E 75%);
    background-size: 200% 100%;
}
html[data-theme="dark"] .hadir-field label { color: var(--hadir-text-secondary); }
html[data-theme="dark"] .hadir-toggle-pass:hover { background: var(--hadir-interactive); }

.attend-page {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1rem 1rem 6.5rem;
}

.attend-head h1,
.attend-card h2,
.attend-status h2 {
    color: var(--hadir-text);
    font-weight: 700;
}

.attend-head h1 { font-size: 1.35rem; margin-top: 0.2rem; }
.attend-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--hadir-teal-bright);
    font-size: 0.75rem;
    font-weight: 700;
}
.attend-kicker svg { width: 0.95rem; height: 0.95rem; }

.attend-status,
.attend-card-head,
.attend-session,
.attend-proof {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.attend-status {
    padding: 0.95rem 1rem;
    border-radius: 1.1rem;
    background: var(--hadir-surface);
    border: 1px solid var(--hadir-border);
}
.attend-status.is-open { background: rgba(13, 148, 136, 0.1); }
.attend-status.is-done { background: var(--hadir-success-bg); }
.attend-status.is-review { background: var(--hadir-warn-bg); }
.attend-status p,
.attend-copy { color: var(--hadir-text-secondary); font-size: 0.86rem; line-height: 1.6; }
.attend-card { display: flex; flex-direction: column; gap: 0.75rem; }
.attend-card h2 { font-size: 1rem; }
.attend-ico {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.8rem;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: rgba(13, 148, 136, 0.12);
    color: var(--hadir-teal-bright);
}
.attend-ico svg { width: 1.15rem; height: 1.15rem; }
.attend-meta {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--hadir-muted);
    font-size: 0.78rem;
}
.attend-meta svg { width: 0.9rem; height: 0.9rem; }
.attend-label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.78rem; color: var(--hadir-muted); font-weight: 700; }
.attend-actions { display: flex; gap: 0.5rem; }
.attend-actions .hadir-btn { flex: 1; }
.attend-ghost { background: transparent; color: var(--hadir-text); border: 1px solid var(--hadir-border); }
.attend-scan {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    background: #020617;
    min-height: 16rem;
}
.attend-scan video { width: 100% !important; border-radius: 1rem; object-fit: cover; }
#qr-reader { border: none !important; background: transparent; }
#qr-reader__dashboard_section { display: none !important; }
.attend-scan-frame {
    pointer-events: none;
    position: absolute;
    inset: 18%;
    border: 2px solid rgba(45, 212, 191, 0.9);
    border-radius: 1rem;
    box-shadow: 0 0 0 999px rgba(2, 6, 23, 0.28);
}
.attend-file {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    color: var(--hadir-teal-bright);
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
}
.attend-file input { display: none; }
.attend-file svg { width: 1rem; height: 1rem; }
.attend-note { font-size: 0.84rem; }
.attend-note.is-ok { color: var(--hadir-success-text); }
.attend-note.is-bad { color: var(--hadir-danger-text); }
.attend-sessions { display: flex; flex-direction: column; gap: 0.65rem; }
.attend-session {
    padding: 0.75rem;
    border-radius: 0.95rem;
    border: 1px solid var(--hadir-border);
    background: var(--hadir-interactive);
}
.attend-session-body { flex: 1; min-width: 0; }
.attend-session-title { font-weight: 700; color: var(--hadir-text); }
.attend-session-state { margin-top: 0.35rem; }
.attend-session .hadir-btn { width: auto; padding-inline: 0.8rem; }
.attend-proof {
    padding: 0.95rem;
    border-radius: 1.1rem;
    background: var(--hadir-success-bg);
    border: 1px solid rgba(13, 148, 136, 0.25);
}
.attend-proof-title { font-weight: 700; color: var(--hadir-success-text); margin-bottom: 0.2rem; }

.policy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; margin-top: 0.8rem; }
.policy-toggle {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    text-align: right;
    padding: 0.75rem;
    border-radius: 0.9rem;
    border: 1px solid var(--hadir-border);
    background: var(--hadir-interactive);
    color: var(--hadir-text);
    font-weight: 700;
    font-size: 0.82rem;
}
.policy-toggle svg { width: 1.05rem; height: 1.05rem; color: var(--hadir-muted); }
.policy-toggle em { font-style: normal; font-size: 0.72rem; color: var(--hadir-muted); font-weight: 600; }
.policy-toggle.is-on { border-color: rgba(13, 148, 136, 0.45); background: rgba(13, 148, 136, 0.1); }
.policy-toggle.is-on svg,
.policy-toggle.is-on em { color: var(--hadir-teal-bright); }
.live-row { padding: 0.75rem 0; border-top: 1px solid var(--hadir-border); }
.live-row strong { color: var(--hadir-text); }
.live-counts { display: flex; gap: 0.45rem; flex-wrap: wrap; margin-top: 0.35rem; }

.account-page { padding: 0.85rem 0.85rem 1.4rem; display: flex; flex-direction: column; gap: 0.85rem; }
.account-hero {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    padding: 1.15rem 1rem 1rem;
    text-align: center;
    color: #fff;
    background: var(--hadir-navy);
}
.account-identity { display: flex; align-items: center; gap: 0.85rem; text-align: start; }
.account-avatar {
    position: relative;
    width: 4.6rem;
    height: 4.6rem;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.08);
    cursor: pointer;
}
.account-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.account-avatar img:not(.is-photo) { object-fit: contain; padding: 0.45rem; }
.account-avatar input { display: none; }
.account-avatar span {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    background: rgba(2, 6, 23, 0.62);
    color: #fff;
    font-size: 0.58rem;
    font-weight: 700;
    text-align: center;
    padding: 0.15rem 0;
}
.account-kicker { font-size: 0.75rem; color: #99f6e4; font-weight: 700; }
.account-hero h1 { font-size: 1.15rem; font-weight: 700; margin-top: 0.15rem; }
.account-user { margin-top: 0.15rem; color: #ccfbf1; font-size: 0.82rem; font-weight: 700; }
.home-avatar img.is-photo { object-fit: cover; border-radius: 1rem; }
.account-code {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.7rem;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.account-code svg { width: 0.95rem; height: 0.95rem; }
.account-code-timer { margin-top: 0.45rem; font-size: 0.72rem; color: rgba(255,255,255,0.78); }
.account-lock { margin-top: 0.65rem; font-size: 0.72rem; color: rgba(255,255,255,0.72); }
.account-facts, .account-stats, .account-menu, .account-alerts {
    border: 1px solid var(--hadir-border);
    background: var(--hadir-surface);
    border-radius: 1.1rem;
}
.account-facts div, .account-menu button, .account-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.8rem 0.95rem;
    border-bottom: 1px solid var(--hadir-border);
    color: var(--hadir-text);
    width: 100%;
    background: transparent;
    text-align: start;
}
.account-facts div:last-child, .account-menu button:last-child, .account-menu a:last-child { border-bottom: none; }
.account-facts span { color: var(--hadir-muted); font-size: 0.78rem; }
.account-facts strong { font-size: 0.86rem; }
.account-stats {
    display: block;
    width: 100%;
    padding: 0.95rem;
    text-align: start;
    cursor: pointer;
}
.account-stats .att-ring-wrap { margin-inline: auto; }
.account-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; margin-top: 0.8rem; }
.account-stat-grid div { background: var(--hadir-interactive); border-radius: 0.8rem; padding: 0.55rem 0.7rem; }
.account-stat-grid span { display: block; color: var(--hadir-muted); font-size: 0.72rem; }
.account-stat-grid strong { color: var(--hadir-text); font-size: 1rem; }
.account-stat-link { margin-top: 0.7rem; color: var(--hadir-teal-bright); font-size: 0.78rem; font-weight: 700; }
.account-menu button, .account-menu a { justify-content: flex-start; font-weight: 700; cursor: pointer; }
.account-menu i, .account-menu svg { width: 1.05rem; height: 1.05rem; color: var(--hadir-teal); }
.account-menu em {
    margin-inline-start: auto;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: #e11d48;
    color: #fff;
    font-style: normal;
    font-size: 0.68rem;
    line-height: 1.15rem;
    text-align: center;
}
.account-alerts { padding: 0.9rem; }
.account-alerts p { font-weight: 700; margin-bottom: 0.55rem; }
.account-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    color: var(--hadir-danger-text);
    font-weight: 700;
    padding: 0.85rem;
}
.account-logout svg { width: 1rem; height: 1rem; }
.account-foot { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; color: var(--hadir-muted); font-size: 0.75rem; }
.account-foot img { width: 1.8rem; height: 1.8rem; object-fit: contain; }

@media (prefers-reduced-motion: reduce) {
    .attend-scan video { transition: none; }
}
