:root {
    --bg: #eef3ff;
    --bg-2: #f9fbff;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-strong: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --line: rgba(148, 163, 184, 0.28);
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --success: #16a34a;
    --danger: #dc2626;
    --warning: #ea580c;
    --shadow: 0 24px 70px rgba(15, 23, 42, .12);
    --radius: 24px;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, .16), transparent 34rem),
        radial-gradient(circle at bottom right, rgba(16, 185, 129, .14), transparent 34rem),
        linear-gradient(135deg, var(--bg), var(--bg-2));
    color: var(--text);
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button:disabled { opacity: .55; cursor: not-allowed; }

.app-shell { display: flex; min-height: 100vh; }
.sidebar {
    width: 286px;
    padding: 24px;
    background: linear-gradient(180deg, rgba(15, 23, 42, .98), rgba(30, 41, 59, .96));
    color: #fff;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    box-shadow: 10px 0 40px rgba(15, 23, 42, .18);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
    width: 48px; height: 48px; border-radius: 16px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, #60a5fa, #22c55e);
    color: #fff; font-weight: 900; letter-spacing: -.05em;
    box-shadow: 0 14px 32px rgba(37, 99, 235, .36);
}
.brand-title { font-weight: 800; font-size: 17px; letter-spacing: -.02em; }
.brand-subtitle { color: rgba(255,255,255,.68); font-size: 13px; }
.nav-menu { margin-top: 34px; display: grid; gap: 8px; }
.nav-link {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 14px; border-radius: 16px;
    color: rgba(255,255,255,.72);
    transition: .2s ease;
}
.nav-link:hover, .nav-link.active {
    background: rgba(255,255,255,.12);
    color: #fff;
    transform: translateX(2px);
}
.nav-link.active { box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.sidebar-footer { margin-top: auto; display: grid; gap: 14px; }
.user-mini { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 18px; background: rgba(255,255,255,.08); }
.user-mini span { display: block; font-size: 12px; color: rgba(255,255,255,.62); }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.16); font-weight: 800; }
.logout { padding: 10px 12px; text-align: center; border-radius: 14px; background: rgba(239,68,68,.14); color: #fecaca; }

.main-content { flex: 1; padding: 28px; overflow: auto; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 22px; }
.topbar h1 { margin: 0; font-size: clamp(24px, 3vw, 38px); letter-spacing: -.04em; }
.topbar p { margin: 6px 0 0; color: var(--muted); }
.today-pill { padding: 12px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 8px 26px rgba(15,23,42,.06); white-space: nowrap; }

.hero-card, .panel, .stat-card {
    background: var(--surface);
    border: 1px solid rgba(255,255,255,.74);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}
.hero-card {
    border-radius: 30px;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 22px;
    overflow: hidden;
    position: relative;
}
.hero-card::after {
    content: '';
    position: absolute;
    right: -90px; top: -100px;
    width: 260px; height: 260px; border-radius: 50%;
    background: linear-gradient(135deg, rgba(37,99,235,.2), rgba(34,197,94,.16));
}
.hero-card h2 { margin: 6px 0 8px; font-size: 30px; letter-spacing: -.04em; }
.hero-card p { margin: 0; color: var(--muted); max-width: 680px; line-height: 1.65; }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; color: var(--primary); }
.date-filter { display: flex; align-items: end; gap: 10px; position: relative; z-index: 1; }
.date-filter label, .field label, .form-stack label { display: block; font-size: 13px; color: var(--muted); font-weight: 700; margin-bottom: 7px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.small-stats { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.stat-card { border-radius: var(--radius); padding: 22px; position: relative; overflow: hidden; }
.stat-card::before { content:''; position:absolute; right:-34px; top:-34px; width:110px; height:110px; border-radius:50%; background: rgba(37,99,235,.12); }
.stat-card span { display: block; color: var(--muted); font-weight: 700; font-size: 13px; }
.stat-card strong { display: block; font-size: 38px; letter-spacing: -.05em; margin: 8px 0 4px; }
.stat-card small { color: var(--muted); }
.accent-green::before { background: rgba(34,197,94,.14); }
.accent-orange::before { background: rgba(234,88,12,.14); }
.accent-red::before { background: rgba(220,38,38,.13); }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 18px; margin-bottom: 22px; }
.page-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, .6fr); gap: 18px; margin-bottom: 22px; }
.panel { border-radius: var(--radius); padding: 24px; }
.panel-header { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.panel h3 { margin: 0; font-size: 20px; letter-spacing: -.03em; }
.panel p { margin: 5px 0 0; color: var(--muted); line-height: 1.55; }

.quota-ring {
    width: 185px; height: 185px;
    margin: 8px auto 20px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: conic-gradient(var(--primary) calc(var(--percent) * 1%), rgba(148,163,184,.22) 0);
    position: relative;
}
.quota-ring::before { content:''; position:absolute; inset:18px; border-radius:50%; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.quota-ring > div { position: relative; text-align: center; }
.quota-ring strong { display:block; font-size: 34px; letter-spacing: -.05em; }
.quota-ring span { color: var(--muted); }
.progress-bar, .thin-progress { height: 10px; background: rgba(148,163,184,.2); border-radius: 999px; overflow: hidden; }
.progress-bar span, .thin-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), #22c55e); border-radius: inherit; }
.progress-note { color: var(--muted); font-size: 13px; margin-top: 10px; }

.stock-list { display: grid; gap: 10px; }
.stock-item { display:flex; justify-content:space-between; align-items:center; padding: 15px; border-radius: 18px; background: rgba(37,99,235,.06); border: 1px solid rgba(37,99,235,.1); }
.stock-item span { display:block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.stock-item b { font-size: 24px; }
.stock-item.empty { background: rgba(220,38,38,.08); border-color: rgba(220,38,38,.16); }

.mini-calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 9px; }
.day-card { padding: 12px; border-radius: 16px; background: rgba(15,23,42,.04); }
.day-card strong, .day-card span { display: block; }
.day-card span { color: var(--muted); font-size: 12px; margin: 4px 0 8px; }
.thin-progress { height: 6px; }

.table-wrap { width: 100%; overflow-x: auto; border-radius: 18px; border: 1px solid var(--line); background: #fff; }
.table-wrap.compact { max-height: 360px; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 14px 15px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; background: rgba(248,250,252,.95); }
tr:last-child td { border-bottom: 0; }
.empty-cell, .empty-state { text-align: center; color: var(--muted); padding: 28px; }

.input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(148,163,184,.36);
    background: rgba(255,255,255,.92);
    outline: none;
    transition: .18s ease;
}
.input:focus { border-color: rgba(37,99,235,.7); box-shadow: 0 0 0 4px rgba(37,99,235,.12); }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 14px;
    padding: 12px 16px;
    font-weight: 800;
    cursor: pointer;
    transition: .18s ease;
    gap: 8px;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--primary), #22c55e); color: #fff; box-shadow: 0 14px 28px rgba(37,99,235,.24); }
.btn-secondary, .btn-small, .btn { background: rgba(15,23,42,.07); color: var(--text); }
.btn-small { padding: 8px 12px; font-size: 13px; border-radius: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.field-wide { grid-column: 1 / -1; }
.form-stack { display: grid; gap: 10px; }
.checkbox-field { display: flex; align-items: end; }
.switch-label { display: flex !important; align-items: center; gap: 10px; margin: 0 !important; color: var(--text) !important; }
.switch-label input { width: 18px; height: 18px; }
.filter-row { display:flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.filter-row .field { min-width: 220px; }

.badge { display:inline-flex; align-items:center; padding: 7px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.badge-success { background: rgba(22,163,74,.12); color: #15803d; }
.badge-danger { background: rgba(220,38,38,.12); color: #b91c1c; }
.badge-muted { background: rgba(100,116,139,.12); color: #475569; }
.alert { padding: 14px 16px; border-radius: 16px; margin-bottom: 16px; font-weight: 700; }
.alert-success { background: rgba(22,163,74,.12); color: #166534; border: 1px solid rgba(22,163,74,.18); }
.alert-danger { background: rgba(220,38,38,.12); color: #991b1b; border: 1px solid rgba(220,38,38,.18); }
.muted { color: var(--muted); }
.text-danger, .link-danger { color: var(--danger); }
.formula { padding: 16px; background: rgba(37,99,235,.08); border-radius: 16px; font-weight: 900; margin: 14px 0; }
.summary-row { display:flex; justify-content:space-between; padding: 14px 0; border-bottom: 1px solid var(--line); }
.summary-row:last-child { border-bottom:0; }
.mini-filter { margin-top: 18px; }

.login-page {
    display: grid;
    place-items: center;
    padding: 24px;
}
.login-card {
    position: relative;
    width: min(460px, 100%);
    background: rgba(255,255,255,.86);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 30px;
    box-shadow: var(--shadow);
    padding: 32px;
    overflow: hidden;
}
.login-glow { position:absolute; width:180px; height:180px; border-radius:50%; background:rgba(37,99,235,.14); right:-60px; top:-60px; }
.brand-login { position: relative; z-index:1; margin-bottom: 24px; color: var(--text); }
.brand-login .brand-subtitle { color: var(--muted); }
.login-card h2 { margin: 0 0 8px; font-size: 30px; letter-spacing: -.04em; }
.login-note { margin-top: 18px; font-size: 13px; color: var(--muted); line-height: 1.55; }
.setup-card { width: min(620px, 100%); }

@media (max-width: 1100px) {
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .two-col, .page-grid { grid-template-columns: 1fr; }
    .mini-calendar { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 820px) {
    .app-shell { display: block; }
    .sidebar { width: 100%; height: auto; position: relative; }
    .nav-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .topbar, .hero-card, .date-filter { flex-direction: column; align-items: stretch; }
    .main-content { padding: 18px; }
    .stats-grid, .form-grid { grid-template-columns: 1fr; }
    .mini-calendar { grid-template-columns: repeat(2, 1fr); }
}

/* Public registration dashboard */
textarea.input { resize: vertical; min-height: 96px; }
.public-page { min-height: 100vh; }
.public-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 42px;
}
.public-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
.public-brand .brand-subtitle { color: var(--muted); }
.public-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, .6fr);
    gap: 22px;
    align-items: stretch;
    margin-bottom: 20px;
    padding: 34px;
    border-radius: 34px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(15,23,42,.94), rgba(30,64,175,.88)),
        radial-gradient(circle at top right, rgba(34,197,94,.35), transparent 22rem);
    color: #fff;
    box-shadow: var(--shadow);
}
.public-hero::after {
    content: '';
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    right: -130px;
    top: -150px;
    background: rgba(34,197,94,.16);
}
.public-hero > * { position: relative; z-index: 1; }
.public-hero h1 {
    margin: 10px 0 12px;
    max-width: 760px;
    font-size: clamp(34px, 6vw, 64px);
    line-height: .94;
    letter-spacing: -.065em;
}
.public-hero p {
    max-width: 720px;
    margin: 0;
    color: rgba(255,255,255,.78);
    font-size: 17px;
    line-height: 1.7;
}
.public-hero .eyebrow { color: #86efac; }
.hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 22px;
}
.soft-note { color: rgba(255,255,255,.68); font-weight: 700; font-size: 13px; }
.public-hero-card {
    padding: 20px;
    border-radius: 26px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    backdrop-filter: blur(18px);
}
.public-hero-card .quota-ring::before { background: rgba(255,255,255,.94); }
.public-hero-card .summary-row { border-color: rgba(255,255,255,.16); }
.public-hero-card .summary-row span { color: rgba(255,255,255,.72); }
.public-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.public-date-panel { margin-bottom: 20px; }
.date-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.date-choice {
    padding: 18px;
    border-radius: 20px;
    background: rgba(15,23,42,.04);
    border: 1px solid var(--line);
    transition: .18s ease;
}
.date-choice:hover { transform: translateY(-2px); border-color: rgba(37,99,235,.36); }
.date-choice.active {
    background: linear-gradient(135deg, rgba(37,99,235,.13), rgba(34,197,94,.11));
    border-color: rgba(37,99,235,.38);
    box-shadow: 0 14px 34px rgba(37,99,235,.12);
}
.date-choice.full { opacity: .66; }
.date-choice span, .date-choice strong, .date-choice small { display: block; }
.date-choice span { color: var(--muted); font-size: 13px; font-weight: 800; }
.date-choice strong { margin: 8px 0 5px; font-size: 20px; letter-spacing: -.03em; }
.date-choice small { color: var(--muted); }
.public-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(310px, .65fr);
    gap: 20px;
}
.wide-btn { width: 100%; padding: 15px 18px; }
.public-rules {
    margin-top: 18px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(37,99,235,.07);
    border: 1px solid rgba(37,99,235,.12);
}
.public-rules h4 { margin: 0 0 10px; }
.public-rules ul { margin: 0; padding-left: 18px; color: var(--muted); line-height: 1.75; }

@media (max-width: 980px) {
    .public-hero, .public-grid { grid-template-columns: 1fr; }
    .public-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .public-shell { width: min(100% - 22px, 1180px); padding-top: 14px; }
    .public-header { align-items: stretch; flex-direction: column; }
    .public-hero { padding: 24px; border-radius: 26px; }
    .date-choice-grid, .public-stats { grid-template-columns: 1fr; }
}

/* Update: Mode Gratis WhatsApp + Bukti PDF */
.btn-whatsapp {
    background: linear-gradient(135deg, #16a34a, #22c55e) !important;
    color: #fff !important;
    border-color: rgba(22, 163, 74, .25) !important;
    box-shadow: 0 12px 30px rgba(22, 163, 74, .18);
}
.btn-tiny {
    padding: 7px 10px;
    min-height: auto;
    font-size: 12px;
    border-radius: 999px;
    white-space: nowrap;
}
.action-stack {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    align-items: center;
}
.success-public-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    margin-bottom: 20px;
    border-color: rgba(34,197,94,.26);
    background: linear-gradient(135deg, rgba(240,253,244,.98), rgba(239,246,255,.96));
    box-shadow: 0 20px 60px rgba(22,163,74,.11);
}
.success-public-card h2 {
    margin: 6px 0 8px;
    letter-spacing: -.035em;
}
.success-public-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}
.eyebrow.dark {
    color: #15803d;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: 12px;
}
.success-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}
.success-meta span {
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.75);
    border: 1px solid rgba(15,23,42,.08);
    color: #0f172a;
    font-weight: 800;
    font-size: 12px;
}
.success-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.reminder-hero {
    background: linear-gradient(135deg, rgba(15,23,42,.96), rgba(30,64,175,.92));
    color: #fff;
    border: 0;
}
.reminder-hero h3,
.reminder-hero p { color: #fff; }
.reminder-hero p { opacity: .76; }
.free-mode-note {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.14);
    color: rgba(255,255,255,.86);
    line-height: 1.65;
}
@media (max-width: 720px) {
    .success-public-card { grid-template-columns: 1fr; }
    .success-actions { justify-content: flex-start; }
}

/* Update: WA Semi-Massal Gratis */
.semimassal-hero {
    background: linear-gradient(135deg, rgba(15,23,42,.96), rgba(30,64,175,.92));
    color: #fff;
    border: 0;
}
.semimassal-hero h3,
.semimassal-hero p { color: #fff; }
.semimassal-hero p { opacity: .78; }
.local-warning {
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(234, 179, 8, .16);
    border: 1px solid rgba(234, 179, 8, .26);
    color: rgba(255,255,255,.92);
    line-height: 1.6;
}
.queue-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 14px;
}
.queue-counter {
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(15,23,42,.06);
    color: var(--muted);
    font-weight: 800;
    font-size: 13px;
}
.queue-progress {
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(148,163,184,.22);
    margin-bottom: 16px;
}
.queue-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #16a34a, #22c55e);
    transition: width .2s ease;
}
.queue-table tr.queue-opened td {
    background: rgba(34,197,94,.05);
}
.bulk-submit-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}
.queue-check {
    width: 18px;
    height: 18px;
    accent-color: #16a34a;
}
@media (max-width: 720px) {
    .queue-controls,
    .bulk-submit-bar { align-items: stretch; flex-direction: column; }
    .queue-controls .btn,
    .bulk-submit-bar .btn { width: 100%; }
}

/* Update: Multi-pilih vaksin + perbaikan kontras progress dashboard publik */
.public-hero-card .quota-ring {
    background: conic-gradient(#22c55e calc(var(--percent) * 1%), rgba(226,232,240,.92) 0);
    box-shadow: 0 18px 45px rgba(15,23,42,.22);
}
.public-hero-card .quota-ring::before {
    background: #ffffff !important;
    box-shadow: inset 0 0 0 1px rgba(15,23,42,.09), 0 8px 24px rgba(15,23,42,.10);
}
.public-hero-card .quota-ring strong {
    color: #0f172a !important;
    text-shadow: none;
}
.public-hero-card .quota-ring span {
    color: #475569 !important;
    font-weight: 800;
}
.checkbox-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.check-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 14px;
    border-radius: 16px;
    background: rgba(37,99,235,.055);
    border: 1px solid rgba(37,99,235,.14);
    cursor: pointer;
    transition: .16s ease;
}
.check-option:hover {
    transform: translateY(-1px);
    border-color: rgba(37,99,235,.35);
    background: rgba(37,99,235,.085);
}
.check-option input {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    flex: 0 0 auto;
}
.check-option span { display: grid; gap: 3px; }
.check-option b { font-size: 14px; color: var(--text); }
.check-option small { color: var(--muted); font-weight: 700; line-height: 1.35; }
.check-option.disabled {
    opacity: .58;
    cursor: not-allowed;
    background: rgba(148,163,184,.08);
    border-color: rgba(148,163,184,.18);
}
.field-help {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-weight: 700;
}
.compact-empty { padding: 14px; }
@media (max-width: 720px) {
    .checkbox-list { grid-template-columns: 1fr; }
}

/* Update: warna tombol dashboard depan + role user/checklist jamaah */
.btn.btn-primary,
a.btn.btn-primary,
button.btn.btn-primary {
    background: linear-gradient(135deg, #2563eb, #16a34a) !important;
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(15, 23, 42, .32);
}
.public-hero .hero-actions .btn.btn-primary,
.public-hero .hero-actions a.btn.btn-primary {
    background: linear-gradient(135deg, #22c55e, #0ea5e9) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,.42);
    box-shadow: 0 18px 36px rgba(14,165,233,.26);
}
.public-hero .hero-actions .btn.btn-primary:hover {
    filter: brightness(1.08);
}
.public-back-link {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.09);
}
.badge-warning {
    background: rgba(234, 179, 8, .16);
    color: #a16207;
}
.user-attendance-hero {
    background: linear-gradient(135deg, rgba(15,23,42,.96), rgba(30,64,175,.92));
    color: #fff;
    border: 0;
}
.user-attendance-hero h3,
.user-attendance-hero p { color: #fff; }
.user-attendance-hero p { opacity: .78; }
.filter-row-wide .field { min-width: 190px; }
.attendance-table-wrap table { min-width: 1120px; }
.attendance-time {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.35;
}
.attendance-actions {
    display: grid;
    gap: 8px;
    min-width: 170px;
}
.attendance-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    color: var(--text);
    cursor: pointer;
}
.attendance-check input {
    width: 18px;
    height: 18px;
    accent-color: #16a34a;
}
@media (max-width: 720px) {
    .filter-row-wide .field,
    .filter-row-wide .btn { width: 100%; }
}


/* Update: perbaikan final warna teks tombol Daftar Sekarang dashboard publik */
.public-hero .hero-actions .btn.btn-primary,
.public-hero .hero-actions a.btn.btn-primary,
.public-hero .hero-actions .btn-primary:visited {
    color: #ffffff !important;
    background: linear-gradient(135deg, #16a34a, #0284c7) !important;
    border: 1px solid rgba(255, 255, 255, .62) !important;
    font-weight: 900 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, .38) !important;
    letter-spacing: .01em;
}
.public-hero .hero-actions .btn.btn-primary span,
.public-hero .hero-actions a.btn.btn-primary span {
    color: #ffffff !important;
}


/* Update: logo, dashboard publik tanpa stok agregat, libur, dan keamanan */
.brand-logo {
    width: 46px;
    height: 46px;
    object-fit: contain;
    border-radius: 14px;
    background: #ffffff;
    padding: 4px;
    box-shadow: 0 8px 20px rgba(15,23,42,.12);
    flex: 0 0 auto;
}
.public-brand .brand-logo { width: 52px; height: 52px; border-radius: 16px; }
.brand-login .brand-logo { width: 58px; height: 58px; border-radius: 18px; }
.public-stats-no-stock { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.public-hero .hero-actions .btn.btn-primary,
.public-hero .hero-actions a.btn.btn-primary {
    background: linear-gradient(135deg, #facc15, #fde68a) !important;
    color: #0f172a !important;
    text-shadow: none !important;
    border: 1px solid rgba(255,255,255,.70) !important;
    box-shadow: 0 18px 36px rgba(250,204,21,.26) !important;
}
.public-hero .hero-actions .btn.btn-primary:hover,
.public-hero .hero-actions a.btn.btn-primary:hover {
    filter: brightness(1.04);
}
.holiday-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.holiday-note {
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(234,179,8,.12);
    border: 1px solid rgba(234,179,8,.24);
    color: #854d0e;
    line-height: 1.6;
    font-weight: 700;
}
.security-note {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(15,23,42,.05);
    border: 1px solid rgba(15,23,42,.08);
    line-height: 1.65;
    color: var(--muted);
}
@media (max-width: 980px) {
    .public-stats-no-stock { grid-template-columns: 1fr; }
}

/* Update: bukti Sinkarkes + cut off pendaftaran */
.file-input {
    padding-top: 13px;
    padding-bottom: 13px;
    cursor: pointer;
}
.badge-stack {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
}
.cutoff-form .field-help,
.form-grid .field-help {
    line-height: 1.45;
}
.cutoff-preview-grid .date-choice {
    cursor: default;
}
.table-wrap table .btn-tiny {
    white-space: nowrap;
}
@media (max-width: 720px) {
    .badge-stack { justify-content: flex-start; }
}

/* Update: rapikan tombol, link file, dan aksi admin */
.success-actions .btn-primary {
    min-width: 150px;
}
.btn-danger-soft {
    background: rgba(220, 38, 38, .11) !important;
    color: #b91c1c !important;
    border: 1px solid rgba(220, 38, 38, .18) !important;
    box-shadow: none !important;
}
.visible-file-link {
    display: inline-block;
    max-width: 360px;
    color: #1d4ed8;
    text-decoration: underline;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.35;
    font-weight: 700;
}
.wa-quick-actions {
    margin-top: 14px;
}
.attendance-table-wrap table {
    min-width: 1260px;
}
.action-stack form {
    margin: 0;
    display: inline-flex;
}
