:root {
  --primary: #5b4de8;
  --primary-dark: #4638ca;
  --primary-soft: #eeecff;
  --ink: #25243a;
  --muted: #74748a;
  --line: #e8e7f0;
  --surface: #fff;
  --canvas: #f6f6fa;
  --green: #18a874;
  --green-soft: #e7f8f1;
  --red: #e94f67;
  --red-soft: #fdecef;
  --amber: #e9a23b;
  --amber-soft: #fff4df;
  --shadow: 0 12px 40px rgba(45, 40, 92, .07);
  --radius: 18px;
  --sidebar-width: 256px;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--canvas); font-family: "DM Sans", Arial, sans-serif; font-size: 14px; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, .brand strong { font-family: "Plus Jakarta Sans", "DM Sans", sans-serif; }
input, select, textarea { width: 100%; color: var(--ink); background: #fff; border: 1px solid #dedde8; border-radius: 11px; outline: none; transition: .2s ease; }
input, select { height: 45px; padding: 0 13px; }
textarea { min-height: 100px; padding: 13px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(91,77,232,.11); }
input[readonly] { background: #f3f3f7; cursor: not-allowed; }

.app-shell { display: flex; min-height: 100vh; }
.sidebar { position: fixed; z-index: 30; inset: 0 auto 0 0; width: var(--sidebar-width); padding: 27px 17px 20px; display: flex; flex-direction: column; color: #dedaff; background: linear-gradient(180deg, #28215d 0%, #211b50 100%); overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 10px 24px; color: #fff; }
.brand-mark { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg, #8b7cff, #6655e9); box-shadow: 0 9px 23px rgba(108,92,231,.35); font-size: 28px; }
.brand strong { display: block; font-size: 19px; letter-spacing: -.3px; }
.brand small { display: block; margin-top: 2px; color: #aaa3db; font-size: 11px; }
.sidebar-nav { flex: 1; }
.nav-caption { margin: 18px 12px 9px; color: #7770a8; font-size: 10px; font-weight: 700; letter-spacing: 1.4px; }
.nav-link { position: relative; display: flex; align-items: center; gap: 12px; min-height: 46px; margin-bottom: 5px; padding: 0 13px; border-radius: 11px; color: #bcb6e4; font-weight: 600; transition: .2s ease; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.06); transform: translateX(2px); }
.nav-link.active { color: #fff; background: linear-gradient(100deg, #6354e8, #7765ef); box-shadow: 0 8px 20px rgba(50,40,150,.28); }
.nav-link.active::after { content: ""; position: absolute; right: -17px; width: 3px; height: 26px; border-radius: 3px 0 0 3px; background: #ad9fff; }
.nav-icon { width: 24px; text-align: center; font-size: 17px; }
.nav-badge { min-width: 20px; height: 20px; margin-left: auto; padding: 0 6px; display: inline-grid; place-items: center; color: #fff; border-radius: 999px; background: #ef5a6f; font-size: 9px; font-weight: 800; }
.sidebar-quote { margin: 24px 4px 0; padding: 16px; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; background: rgba(255,255,255,.045); }
.sidebar-quote .quote-icon { color: #b9adff; }
.sidebar-quote p { margin: 8px 0; color: #cbc5ee; font-size: 11px; line-height: 1.5; }
.sidebar-quote small { color: #847dad; font-size: 9px; }
.main-area { width: calc(100% - var(--sidebar-width)); min-height: 100vh; margin-left: var(--sidebar-width); display: flex; flex-direction: column; }
.topbar { position: sticky; z-index: 20; top: 0; min-height: 76px; padding: 13px 34px; display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.93); border-bottom: 1px solid rgba(232,231,240,.85); backdrop-filter: blur(14px); }
.topbar-left { display: flex; align-items: center; gap: 15px; }
.topbar h1 { margin: 0; font-size: 19px; }
.topbar-subtitle { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.topbar-actions, .user-chip { display: flex; align-items: center; gap: 12px; }
.notification-button { position: relative; width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 16px; }
.notification-button > span { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 4px; display: grid; place-items: center; color: #fff; border: 2px solid #fff; border-radius: 999px; background: var(--red); font-size: 8px; font-weight: 800; }
.avatar, .mini-avatar { flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 700; text-transform: uppercase; }
.avatar { width: 39px; height: 39px; background: var(--avatar-color); }
.mini-avatar { width: 37px; height: 37px; background: linear-gradient(135deg, #7162ed, #9f88ff); }
.user-meta strong, .user-meta small { display: block; }
.user-meta strong { max-width: 140px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; }
.user-meta small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.icon-button { width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: #fff; cursor: pointer; transition: .2s; }
.icon-button:hover { color: var(--primary); border-color: #c8c2ff; background: var(--primary-soft); }
.logout-button { font-size: 20px; transform: rotate(180deg); }
.menu-toggle { display: none; }
.content { flex: 1; width: 100%; max-width: 1600px; margin: 0 auto; padding: 28px 34px 36px; }
.footer { min-height: 58px; padding: 0 34px; display: flex; align-items: center; justify-content: space-between; color: #9695a7; border-top: 1px solid var(--line); background: #fff; font-size: 11px; }
.heart { color: var(--red); }
.sidebar-backdrop { display: none; }

.btn { min-height: 41px; padding: 0 17px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 10px; font-weight: 700; white-space: nowrap; cursor: pointer; transition: .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, #5d4de8, #7764ed); box-shadow: 0 8px 20px rgba(91,77,232,.18); }
.btn-primary:hover { box-shadow: 0 10px 25px rgba(91,77,232,.28); }
.btn-secondary { color: #5043c8; border-color: #d9d4ff; background: #f5f3ff; }
.btn-ghost { color: #69687a; border-color: var(--line); background: #fff; }
.btn-white { color: #5041ca; background: #fff; box-shadow: 0 8px 20px rgba(44,37,124,.16); }
.btn-danger { color: #fff; background: var(--red); }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 12px; }
.btn-lg { min-height: 49px; padding: 0 22px; }
.btn-block { width: 100%; }
.text-link, .back-link { color: var(--primary); font-weight: 700; }
.back-link { display: inline-block; margin-bottom: 12px; font-size: 12px; }

.alert { margin-bottom: 20px; padding: 13px 16px; display: flex; align-items: flex-start; gap: 10px; border-radius: 12px; animation: slideDown .35s ease; }
.alert > span { width: 22px; height: 22px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; font-weight: 800; }
.alert p { flex: 1; margin: 2px 0 0; }
.alert > button { margin-left: auto; border: 0; background: transparent; font-size: 18px; cursor: pointer; opacity: .6; }
.alert-success { color: #087b53; border: 1px solid #bcebd8; background: var(--green-soft); }
.alert-success > span { color: #fff; background: var(--green); }
.alert-danger { color: #b32c42; border: 1px solid #f7c8d0; background: var(--red-soft); }
.alert-danger > span { color: #fff; background: var(--red); }
.alert-warning { color: #96610b; border: 1px solid #f6d9a2; background: var(--amber-soft); }
.form-alert ul { margin: 6px 0 0; padding-left: 18px; }

.card { padding: 23px; border: 1px solid rgba(229,228,238,.9); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.card-heading { margin-bottom: 19px; display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.card-heading h2 { margin: 2px 0 0; font-size: 17px; }
.eyebrow { margin: 0 0 5px; color: var(--primary); font-size: 9px; font-weight: 800; letter-spacing: 1.35px; }
.eyebrow.light { color: #d6d0ff; }
.soft-badge { display: inline-flex; padding: 6px 10px; color: #5d52bb; border-radius: 999px; background: #f1efff; font-size: 10px; font-weight: 700; }
.muted { color: var(--muted); }
.page-heading { margin-bottom: 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.page-heading h2 { margin: 0 0 5px; font-size: 24px; letter-spacing: -.6px; }
.page-heading p:not(.eyebrow) { margin: 0; color: var(--muted); }
.heading-actions { display: flex; gap: 9px; }

.hero-banner { position: relative; min-height: 170px; margin-bottom: 22px; padding: 31px 35px; display: flex; align-items: center; justify-content: space-between; gap: 20px; overflow: hidden; color: #fff; border-radius: 22px; background: linear-gradient(120deg, #4a3ad1, #7662ee); box-shadow: 0 18px 40px rgba(71,57,199,.18); }
.hero-banner::before, .hero-banner::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.07); }
.hero-banner::before { width: 260px; height: 260px; right: -60px; top: -140px; }
.hero-banner::after { width: 150px; height: 150px; right: 170px; bottom: -115px; }
.hero-banner > * { position: relative; z-index: 1; }
.hero-banner h2 { margin: 0 0 8px; font-size: 25px; }
.hero-banner p:last-child { margin-bottom: 0; color: #dedaff; }
.participant-hero { background: linear-gradient(120deg, #3f37bd, #8a5fe9); }
.stat-grid { margin-bottom: 22px; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.stat-card { padding: 18px; display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 8px 28px rgba(48,43,90,.05); }
.stat-icon { width: 45px; height: 45px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 13px; font-size: 20px; }
.stat-card.purple .stat-icon { color: #6759e8; background: #efedff; }
.stat-card.amber .stat-icon { color: #d98d20; background: #fff3dd; }
.stat-card.green .stat-icon { color: #07996a; background: #e1f8ef; }
.stat-card.coral .stat-icon { color: #e15369; background: #fdebef; }
.stat-card p { margin: 0 0 4px; color: var(--muted); font-size: 10px; }
.stat-card h3 { display: inline; margin: 0; font-size: 25px; }
.stat-card h3 em { font-size: 13px; font-style: normal; color: var(--muted); }
.stat-card small { display: block; color: #aaa9b7; font-size: 9px; }
.dashboard-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 18px; }
.bar-chart { height: 230px; padding: 10px 5px 0; display: flex; align-items: flex-end; justify-content: space-around; gap: 13px; border-bottom: 1px solid var(--line); }
.bar-item { height: 100%; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.bar-value { margin-bottom: 7px; color: #666279; font-size: 10px; font-weight: 700; }
.bar-track { width: min(35px, 65%); height: 160px; display: flex; align-items: flex-end; overflow: hidden; border-radius: 9px 9px 3px 3px; background: #f0eff8; }
.bar-fill { width: 100%; min-height: 4px; border-radius: inherit; background: linear-gradient(180deg, #8e7df4, #5545df); transition: height .8s ease; }
.bar-item > span { margin-top: 9px; color: var(--muted); font-size: 9px; }
.activity-list { display: flex; flex-direction: column; }
.activity-item { padding: 10px 0; display: flex; align-items: center; gap: 11px; border-bottom: 1px solid #f0eff5; }
.activity-item:last-child { border-bottom: 0; }
.activity-item > div { min-width: 0; flex: 1; }
.activity-item strong, .activity-item small { display: block; }
.activity-item strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; }
.activity-item small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.score-pill { display: inline-flex; padding: 5px 9px; color: #4b40b7; border-radius: 999px; background: #efedff; font-size: 10px; font-weight: 800; }

.participant-dashboard { display: grid; gap: 18px; }
.today-progress { display: flex; align-items: center; gap: 35px; }
.progress-ring { --progress: 0; width: 155px; height: 155px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--primary) calc(var(--progress) * 1%), #efedf8 0); position: relative; }
.progress-ring::before { content: ""; position: absolute; width: 119px; height: 119px; border-radius: 50%; background: #fff; }
.progress-ring div { position: relative; z-index: 1; text-align: center; }
.progress-ring strong { display: block; font-family: "Plus Jakarta Sans"; font-size: 32px; }
.progress-ring span { color: var(--muted); }
.progress-copy h2 { margin: 4px 0 8px; font-size: 20px; }
.progress-copy > p:not(.eyebrow) { color: var(--muted); line-height: 1.6; }
.history-strip { display: grid; grid-template-columns: repeat(7, minmax(70px,1fr)); gap: 10px; }
.history-day { padding: 12px 8px; display: flex; flex-direction: column; align-items: center; border: 1px solid var(--line); border-radius: 13px; transition: .2s; }
.history-day:hover { transform: translateY(-2px); border-color: #cfc9ff; background: #faf9ff; }
.history-day > span { color: var(--muted); font-size: 10px; }
.history-day > strong { margin: 4px 0; font-size: 20px; }
.history-dot { width: 7px; height: 7px; margin-bottom: 5px; border-radius: 50%; background: #d0d1da; }
.history-dot.complete { background: var(--green); }
.history-dot.partial { background: var(--amber); }
.history-day small { color: var(--muted); font-size: 9px; }

.table-card { padding: 0; overflow: hidden; }
.table-card > .card-heading { padding: 22px 22px 0; }
.filter-bar { padding: 16px 18px; display: flex; align-items: center; gap: 9px; border-bottom: 1px solid var(--line); background: #fbfbfd; }
.filter-bar .search-input { min-width: 220px; flex: 1; }
.filter-bar select { width: auto; min-width: 125px; }
.search-input { position: relative; }
.search-input > span { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #9b9aaa; font-size: 20px; }
.search-input input { padding-left: 39px; }
.table-responsive { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 12px 17px; color: #868597; background: #fafafd; border-bottom: 1px solid var(--line); font-size: 9px; font-weight: 800; letter-spacing: .55px; text-align: left; text-transform: uppercase; }
td { padding: 14px 17px; border-bottom: 1px solid #efeff4; vertical-align: middle; }
tbody tr { transition: .15s; }
tbody tr:hover { background: #fcfbff; }
tbody tr:last-child td { border-bottom: 0; }
.text-right { text-align: right; }
.table-user, .title-cell { display: flex; align-items: center; gap: 11px; }
.table-user strong, .table-user small, .title-cell strong, .title-cell small { display: block; }
.table-user strong, .title-cell strong { font-size: 12px; }
.table-user small, .title-cell small { max-width: 280px; margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; }
.item-icon { width: 37px; height: 37px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; background: var(--primary-soft); font-size: 17px; }
.actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.actions form { display: inline-flex; }
.icon-action { width: 32px; height: 32px; padding: 0; display: inline-grid; place-items: center; color: #6d6b7e; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.icon-action:hover { color: var(--primary); border-color: #cbc5ff; background: var(--primary-soft); }
.icon-action.danger { color: var(--red); }
.icon-action.danger:hover { border-color: #fac4cc; background: var(--red-soft); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; }
.status i { width: 7px; height: 7px; border-radius: 50%; }
.status.active { color: #12835d; }
.status.active i { background: var(--green); }
.status.inactive { color: #8f8e9e; }
.status.inactive i { background: #b8b7c3; }
.role-badge { padding: 5px 9px; border-radius: 999px; font-size: 10px; font-weight: 700; }
.role-badge.admin { color: #5345cd; background: #efedff; }
.role-badge.peserta { color: #157e5d; background: #e7f8f1; }
.order-number { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; background: #f2f1f6; font-weight: 700; }
.url-code, .worship-meta code { padding: 4px 7px; color: #5648c9; border-radius: 6px; background: #f1efff; font-size: 10px; }
.pagination-wrap { min-height: 61px; padding: 13px 18px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid var(--line); }
.pagination-wrap p { margin: 0; color: var(--muted); font-size: 10px; }
.pagination { display: flex; gap: 5px; }
.pagination a { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-weight: 700; }
.pagination a:hover, .pagination a.active { color: #fff; border-color: var(--primary); background: var(--primary); }
.pagination a.disabled { pointer-events: none; opacity: .35; }
.empty-state { min-height: 250px; padding: 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.empty-icon { width: 58px; height: 58px; margin-bottom: 13px; display: grid; place-items: center; color: var(--primary); border-radius: 18px; background: var(--primary-soft); font-size: 26px; }
.empty-state h3 { margin-bottom: 6px; font-size: 15px; }
.empty-state p { max-width: 360px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }

.form-card { max-width: 980px; padding: 27px; }
.compact-form { max-width: 760px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.span-2 { grid-column: span 2; }
.field { display: block; }
.field > span, .inline-field > span { display: block; margin-bottom: 7px; color: #4f4e61; font-size: 11px; font-weight: 700; }
.field > .field-label-row { display: flex; align-items: center; justify-content: space-between; }
.field-label-row a { color: var(--primary); font-size: 10px; }
.field > span b { color: var(--red); }
.field small { display: block; margin-top: 5px; color: #9796a4; font-size: 9px; }
.form-section-title { margin: 7px 0 21px; padding-bottom: 15px; display: flex; align-items: center; gap: 11px; border-bottom: 1px solid var(--line); }
.form-section-title:not(:first-of-type) { margin-top: 31px; }
.form-section-title > span { width: 33px; height: 33px; display: grid; place-items: center; color: #fff; border-radius: 10px; background: var(--primary); font-weight: 800; }
.form-section-title h3 { margin: 0 0 3px; font-size: 14px; }
.form-section-title p { margin: 0; color: var(--muted); font-size: 10px; }
.form-actions { margin-top: 28px; padding-top: 18px; display: flex; justify-content: flex-end; gap: 9px; border-top: 1px solid var(--line); }
.toggle-field { min-height: 66px; padding: 12px; display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; }
.toggle-field input { display: none; }
.toggle { position: relative; width: 41px; height: 23px; flex: 0 0 auto; border-radius: 20px; background: #d7d6de; transition: .2s; }
.toggle::after { content: ""; position: absolute; width: 17px; height: 17px; left: 3px; top: 3px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.16); transition: .2s; }
.toggle-field input:checked + .toggle { background: var(--primary); }
.toggle-field input:checked + .toggle::after { transform: translateX(18px); }
.toggle-field strong, .toggle-field small { display: block; }
.toggle-field small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.color-field { min-height: 45px; padding: 5px 10px; display: flex; align-items: center; gap: 10px; border: 1px solid #dedde8; border-radius: 11px; }
.color-field input { width: 35px; height: 31px; padding: 0; border: 0; }
.color-field small { margin: 0; }

.permissions-toolbar { margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.permissions-toolbar .search-input { width: 360px; max-width: 100%; }
.permission-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.permission-card { position: relative; min-height: 88px; padding: 14px; display: flex; align-items: center; gap: 10px; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; cursor: pointer; transition: .2s; }
.permission-card:hover { border-color: #cbc5ff; transform: translateY(-1px); }
.permission-card input { display: none; }
.permission-icon { width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; background: #f3f2f8; font-size: 18px; }
.permission-card strong, .permission-card small { display: block; }
.permission-card small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.permission-check { position: absolute; top: 8px; right: 8px; width: 19px; height: 19px; display: grid; place-items: center; color: transparent; border: 1px solid #d6d4df; border-radius: 6px; font-size: 11px; }
.permission-card:has(input:checked) { border-color: #bfb7ff; background: #faf9ff; }
.permission-card input:checked ~ .permission-check { color: #fff; border-color: var(--primary); background: var(--primary); }

.worship-grid { padding: 20px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.worship-card { padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: #fff; transition: .2s; }
.worship-card:hover { border-color: #d0cbff; box-shadow: 0 10px 25px rgba(50,44,100,.07); transform: translateY(-2px); }
.worship-card-top { display: flex; align-items: center; justify-content: space-between; }
.worship-icon { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 13px; background: var(--primary-soft); font-size: 23px; }
.worship-card h3 { margin: 15px 0 7px; font-size: 15px; }
.worship-card > p { min-height: 35px; margin-bottom: 16px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.worship-meta { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 9px; }
.worship-actions { margin-top: 15px; padding-top: 13px; display: flex; justify-content: flex-end; gap: 6px; border-top: 1px solid var(--line); }
.danger-text { color: var(--red); }

.daily-list { padding: 8px 18px; }
.daily-row { padding: 14px 4px; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); }
.daily-row:last-child { border-bottom: 0; }
.date-tile { width: 50px; height: 55px; flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--primary); border-radius: 12px; background: var(--primary-soft); }
.date-tile strong { font-family: "Plus Jakarta Sans"; font-size: 19px; }
.date-tile span { font-size: 9px; text-transform: uppercase; }
.daily-copy { min-width: 0; flex: 1; }
.daily-copy h3 { margin: 0 0 5px; font-size: 13px; }
.daily-copy p { margin: 0; overflow: hidden; color: var(--muted); font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.daily-score { width: 130px; }
.daily-score > div:first-child { display: flex; align-items: baseline; justify-content: space-between; }
.daily-score strong { font-size: 13px; }
.daily-score span { color: var(--muted); font-size: 9px; }
.mini-progress { height: 5px; margin-top: 6px; overflow: hidden; border-radius: 4px; background: #ecebf2; }
.mini-progress i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #5d4de8, #8c77f4); }
.daily-form { display: grid; gap: 17px; }
.date-card { display: flex; align-items: center; justify-content: space-between; }
.date-card > div { display: flex; align-items: center; gap: 12px; }
.date-card-icon { width: 42px; height: 42px; display: grid; place-items: center; color: var(--primary); border-radius: 12px; background: var(--primary-soft); font-size: 18px; }
.date-card label { display: block; margin-bottom: 3px; font-weight: 700; }
.date-card p { margin: 0; color: var(--muted); font-size: 10px; }
.date-card input { width: 180px; }
.worship-heading { align-items: center; }
.completion-counter { min-width: 77px; padding: 8px 13px; text-align: center; border-radius: 11px; background: var(--primary-soft); }
.completion-counter strong { margin-right: 4px; color: var(--primary); font-size: 18px; }
.completion-counter span { color: var(--muted); font-size: 10px; }
.checklist-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.checklist-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; transition: .2s; }
.checklist-card:hover { border-color: #cac4ff; }
.checklist-card.checked { border-color: #afa6ff; background: #fbfaff; box-shadow: inset 3px 0 var(--primary); }
.checklist-card > label { min-height: 84px; padding: 13px 14px; display: flex; align-items: center; gap: 12px; cursor: pointer; }
.checklist-card input[type=checkbox] { display: none; }
.custom-check { width: 22px; height: 22px; flex: 0 0 auto; display: grid; place-items: center; color: transparent; border: 2px solid #d1cfdc; border-radius: 7px; font-size: 12px; font-weight: 800; transition: .2s; }
.checklist-card input:checked + .custom-check { color: #fff; border-color: var(--primary); background: var(--primary); }
.check-icon { width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 11px; background: #f3f2f8; font-size: 20px; }
.check-copy { min-width: 0; flex: 1; }
.check-copy strong, .check-copy small { display: block; }
.check-copy strong { font-size: 12px; }
.check-copy small { margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 9px; white-space: nowrap; text-overflow: ellipsis; }
.item-note { padding: 0 13px 12px 48px; }
.item-note input { height: 36px; font-size: 10px; background: rgba(255,255,255,.85); }
.sticky-actions { position: sticky; bottom: 12px; z-index: 10; padding: 12px 15px; display: flex; justify-content: flex-end; gap: 9px; border: 1px solid rgba(225,223,238,.9); border-radius: 14px; background: rgba(255,255,255,.94); box-shadow: 0 12px 35px rgba(49,43,90,.12); backdrop-filter: blur(12px); }

.report-filter { margin-bottom: 18px; padding: 0; overflow: hidden; }
.inline-field { min-width: 160px; }
.inline-field > span { margin: 0 0 4px; font-size: 9px; }
.report-layout { display: grid; grid-template-columns: minmax(0,1fr) 360px; align-items: start; gap: 18px; }
.report-table th:not(:first-child) { min-width: 95px; text-align: center; }
.report-table th span { display: block; margin-top: 4px; font-size: 8px; }
.report-table .status-cell { text-align: center; }
.report-status { width: 27px; height: 27px; display: inline-grid; place-items: center; border-radius: 50%; font-size: 16px; font-weight: 800; }
.report-status.done { color: #09875e; background: var(--green-soft); }
.report-status.missed { color: #d84259; background: var(--red-soft); }
.report-status.empty { color: #9d9cab; background: #f0eff4; }
.whatsapp-card { position: sticky; top: 94px; }
.wa-icon { width: 37px; height: 37px; display: grid; place-items: center; color: #fff; border-radius: 12px; background: #22b978; font-size: 20px; }
.whatsapp-card textarea { height: 410px; margin-bottom: 11px; color: #414052; background: #fafafd; font-family: "DM Sans"; font-size: 11px; line-height: 1.55; white-space: pre-wrap; }
.copy-feedback { min-height: 17px; margin: 7px 0 0; color: var(--green); text-align: center; font-size: 10px; }

.auth-body { background: #fff; }
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1.08fr .92fr; }
.auth-visual { position: relative; min-height: 100vh; padding: 70px; display: flex; align-items: center; overflow: hidden; color: #fff; background: linear-gradient(145deg, #28215d 0%, #493bc5 58%, #6b56df 100%); }
.auth-visual::before { content: ""; position: absolute; inset: 0; opacity: .07; background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 23px 23px; }
.auth-orb { position: absolute; border-radius: 50%; background: rgba(255,255,255,.07); filter: blur(1px); }
.orb-one { width: 420px; height: 420px; right: -150px; top: -130px; }
.orb-two { width: 260px; height: 260px; left: -100px; bottom: -90px; }
.auth-visual-content { position: relative; z-index: 1; max-width: 650px; }
.auth-logo { width: 65px; height: 65px; margin-bottom: 47px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 20px; background: rgba(255,255,255,.12); box-shadow: 0 12px 35px rgba(23,17,83,.2); font-size: 41px; }
.auth-visual h1 { margin: 9px 0 18px; font-size: clamp(34px,4vw,54px); line-height: 1.14; letter-spacing: -1.8px; }
.auth-visual-content > p:last-of-type { max-width: 520px; color: #d6d1f7; font-size: 16px; line-height: 1.7; }
.streak-card { max-width: 500px; margin-top: 41px; padding: 15px 17px; display: flex; align-items: center; gap: 13px; border: 1px solid rgba(255,255,255,.12); border-radius: 15px; background: rgba(255,255,255,.08); backdrop-filter: blur(10px); }
.streak-icon { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.12); }
.streak-card strong, .streak-card span { display: block; }
.streak-card strong { margin-bottom: 3px; font-size: 12px; }
.streak-card span { color: #c9c3ef; font-size: 10px; }
.auth-form-side { padding: 45px; display: flex; align-items: center; justify-content: center; }
.login-card { width: 100%; max-width: 420px; }
.login-card h2 { margin: 7px 0 8px; font-size: 28px; letter-spacing: -.7px; }
.form-intro { margin-bottom: 28px; color: var(--muted); line-height: 1.55; }
.login-card .field { margin-bottom: 17px; }
.input-with-icon { position: relative; }
.input-with-icon i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #9998a9; font-style: normal; }
.input-with-icon input { height: 49px; padding-left: 41px; }
.password-toggle { position: absolute; right: 7px; top: 7px; height: 35px; padding: 0 8px; color: var(--primary); border: 0; background: transparent; font-size: 10px; font-weight: 700; cursor: pointer; }
.login-help { margin: 18px 0 0; color: #9998a6; text-align: center; font-size: 10px; }
.reset-access-card { margin-top: 16px; padding: 12px; display: grid; grid-template-columns: 35px minmax(0,1fr) auto; align-items: center; gap: 9px; border: 1px solid #dad6ff; border-radius: 12px; background: #f8f7ff; }
.reset-access-card > span { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 10px; background: #ebe8ff; font-size: 16px; }
.reset-access-card strong, .reset-access-card small { display: block; }
.reset-access-card strong { font-size: 10px; }
.reset-access-card small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.reset-access-card a { padding: 6px 8px; color: #fff; border-radius: 7px; background: var(--primary); font-size: 8px; font-weight: 800; white-space: nowrap; }
.mobile-auth-logo { display: none; }
.submitted-card .btn { margin-top: 9px; }
.success-orb { width: 64px; height: 64px; margin-bottom: 22px; display: grid; place-items: center; color: #fff; border-radius: 20px; background: linear-gradient(135deg,#18a874,#36c794); box-shadow: 0 12px 28px rgba(24,168,116,.22); font-size: 30px; font-weight: 800; }
.request-code-box { margin: 22px 0 14px; padding: 18px; text-align: center; border: 1px dashed #b8afff; border-radius: 14px; background: #f7f5ff; }
.request-code-box small { display: block; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: 1.2px; }
.request-code-box strong { display: block; margin: 8px 0; color: #4435c4; font-family: "Plus Jakarta Sans"; font-size: 23px; letter-spacing: 2px; }
.request-code-box button, .credential-box button { padding: 5px 9px; color: var(--primary); border: 0; border-radius: 7px; background: #eae7ff; font-size: 9px; font-weight: 800; cursor: pointer; }
.security-note { margin: 15px 0; padding: 12px 13px; display: flex; align-items: flex-start; gap: 9px; color: #76530e; border: 1px solid #f3d69c; border-radius: 11px; background: #fff8e9; }
.security-note > span { width: 20px; height: 20px; flex: 0 0 auto; display: grid; place-items: center; color: #fff; border-radius: 50%; background: var(--amber); font-size: 10px; font-weight: 800; }
.security-note p { margin: 1px 0 0; font-size: 10px; line-height: 1.5; }
.reset-result { margin-bottom: 20px; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: #fafafd; }
.reset-result.delivered { border-color: #bcebd8; background: #f2fcf8; }
.reset-result.cancelled { border-color: #f5c5cd; background: #fff7f8; }
.reset-result-head { display: flex; align-items: center; gap: 10px; }
.reset-result-head > span { width: 36px; height: 36px; display: grid; place-items: center; color: var(--primary); border-radius: 11px; background: var(--primary-soft); font-size: 17px; }
.reset-result-head strong, .reset-result-head small { display: block; }
.reset-result-head small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.result-copy { margin: 13px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.credential-box { margin: 16px 0; padding: 16px; border: 1px solid #cfc9ff; border-radius: 13px; background: #f8f7ff; }
.credential-box label { display: block; margin: 10px 0 5px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; }
.credential-box label:first-child { margin-top: 0; }
.credential-box > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.credential-box code { overflow-wrap: anywhere; color: #372aa8; font-family: ui-monospace,SFMono-Regular,Consolas,monospace; font-size: 15px; font-weight: 800; }
.delivered-banner { margin: 16px 0; padding: 13px; display: flex; align-items: center; gap: 10px; color: #087b53; border: 1px solid #bcebd8; border-radius: 12px; background: var(--green-soft); }
.delivered-banner > span { width: 28px; height: 28px; display: grid; place-items: center; color: #fff; border-radius: 50%; background: var(--green); font-weight: 800; }
.delivered-banner strong, .delivered-banner small { display: block; }
.delivered-banner small { margin-top: 2px; color: #42866f; font-size: 9px; }

.profile-layout { display: grid; grid-template-columns: 320px minmax(0,680px); align-items: start; gap: 18px; }
.profile-card { text-align: center; }
.profile-avatar { width: 86px; height: 86px; margin: 3px auto 14px; display: grid; place-items: center; color: #fff; border: 5px solid #eeecff; border-radius: 50%; background: var(--avatar-color); font-family: "Plus Jakarta Sans"; font-size: 31px; font-weight: 800; }
.profile-card h2 { margin-bottom: 8px; font-size: 19px; }
.profile-facts { margin-top: 22px; text-align: left; border-top: 1px solid var(--line); }
.profile-facts > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.profile-facts span, .profile-facts strong { display: block; }
.profile-facts span { margin-bottom: 3px; color: var(--muted); font-size: 9px; }
.profile-facts strong { overflow-wrap: anywhere; font-size: 11px; }
.profile-password-card { max-width: none; }
.profile-password-card .field { margin-bottom: 16px; }

.reset-status-badge { display: inline-flex; padding: 6px 10px; border-radius: 999px; font-size: 9px; font-weight: 800; white-space: nowrap; }
.reset-status-badge.pending { color: #96610b; background: var(--amber-soft); }
.reset-status-badge.reset { color: #5144c4; background: var(--primary-soft); }
.reset-status-badge.delivered { color: #087b53; background: var(--green-soft); }
.reset-status-badge.cancelled { color: #a43b4c; background: var(--red-soft); }
.reset-detail-layout { display: grid; grid-template-columns: 380px minmax(0,620px); align-items: start; gap: 18px; }
.detail-list > div { padding: 11px 0; display: flex; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--line); }
.detail-list > div:last-child { border-bottom: 0; }
.detail-list span { color: var(--muted); font-size: 10px; }
.detail-list strong { max-width: 60%; overflow-wrap: anywhere; font-size: 10px; text-align: right; }
.admin-credential code { font-size: 16px; }
.reset-actions { margin-top: 15px; }

.notification-list { padding: 6px 18px; }
.notification-item { padding: 15px 4px; display: grid; grid-template-columns: 44px minmax(0,1fr) 28px; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); transition: .2s; }
.notification-item:last-child { border-bottom: 0; }
.notification-item:hover { transform: translateX(2px); }
.notification-item.unread { background: linear-gradient(90deg,#f8f7ff,transparent); }
.notification-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--primary-soft); font-size: 18px; }
.notification-title { display: flex; align-items: center; gap: 8px; }
.notification-title strong { font-size: 12px; }
.notification-title span { padding: 3px 6px; color: #fff; border-radius: 999px; background: var(--primary); font-size: 7px; font-weight: 800; }
.notification-item p { margin: 4px 0; color: var(--muted); font-size: 10px; }
.notification-item small { color: #aaa9b7; font-size: 8px; }
.notification-arrow { color: var(--primary); font-size: 17px; }
.message-detail { max-width: 760px; }
.message-hero { padding-bottom: 18px; display: flex; align-items: center; gap: 13px; border-bottom: 1px solid var(--line); }
.message-hero > span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--primary-soft); font-size: 21px; }
.message-hero h2 { margin: 0; font-size: 17px; }
.message-body { margin: 20px 0; color: #565568; line-height: 1.7; }
.error-page { min-height: 60vh; padding: 50px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.error-code { color: #dcd8ff; font-family: "Plus Jakarta Sans"; font-size: 110px; font-weight: 800; line-height: 1; }
.error-page h2 { margin: 8px 0; }
.error-page p { max-width: 500px; margin-bottom: 20px; color: var(--muted); }

.confirm-modal { position: fixed; z-index: 100; inset: 0; padding: 20px; display: none; place-items: center; background: rgba(27,24,50,.48); backdrop-filter: blur(5px); }
.confirm-modal.show { display: grid; }
.confirm-card { width: min(400px,100%); padding: 27px; border-radius: 18px; background: #fff; box-shadow: 0 25px 70px rgba(24,20,50,.25); text-align: center; animation: popIn .2s ease; }
.confirm-icon { width: 50px; height: 50px; margin: 0 auto 13px; display: grid; place-items: center; color: var(--red); border-radius: 50%; background: var(--red-soft); font-size: 24px; font-weight: 800; }
.confirm-card h3 { margin-bottom: 7px; }
.confirm-card p { color: var(--muted); line-height: 1.55; }
.confirm-actions { display: flex; justify-content: center; gap: 8px; }

@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } }
@keyframes popIn { from { opacity: 0; transform: scale(.95); } }

@media (max-width: 1180px) {
  .stat-grid { grid-template-columns: repeat(2,1fr); }
  .report-layout { grid-template-columns: 1fr; }
  .whatsapp-card { position: static; }
  .worship-grid { grid-template-columns: repeat(2,1fr); }
  .permission-grid { grid-template-columns: repeat(2,1fr); }
  .profile-layout, .reset-detail-layout { grid-template-columns: 1fr; }
  .profile-card { max-width: 680px; }
}

@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform .25s ease; }
  body.sidebar-open .sidebar { transform: translateX(0); }
  body.sidebar-open { overflow: hidden; }
  body.sidebar-open .sidebar-backdrop { position: fixed; z-index: 25; inset: 0; display: block; background: rgba(30,26,55,.42); backdrop-filter: blur(3px); }
  .main-area { width: 100%; margin-left: 0; }
  .menu-toggle { display: grid; }
  .content { padding: 24px; }
  .topbar { padding: 12px 24px; }
  .footer { padding: 0 24px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-form-side { min-height: 100vh; background: linear-gradient(180deg,#f3f1ff,#fff 35%); }
  .mobile-auth-logo { margin-bottom: 50px; display: flex; align-items: center; gap: 10px; font-family: "Plus Jakarta Sans"; font-size: 18px; font-weight: 800; }
  .mobile-auth-logo span { width: 39px; height: 39px; display: grid; place-items: center; color: #fff; border-radius: 12px; background: var(--primary); font-size: 25px; }
}

@media (max-width: 680px) {
  .topbar { min-height: 67px; padding: 10px 15px; }
  .topbar-subtitle, .user-meta { display: none; }
  .topbar h1 { max-width: 155px; overflow: hidden; font-size: 15px; white-space: nowrap; text-overflow: ellipsis; }
  .content { padding: 17px 14px 28px; }
  .footer { padding: 16px; flex-direction: column; gap: 5px; }
  .page-heading { align-items: stretch; flex-direction: column; }
  .page-heading h2 { font-size: 21px; }
  .heading-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-banner { min-height: auto; padding: 26px 23px; align-items: flex-start; flex-direction: column; }
  .hero-banner h2 { font-size: 20px; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 13px; align-items: flex-start; flex-direction: column; gap: 9px; }
  .stat-icon { width: 36px; height: 36px; font-size: 16px; }
  .stat-card h3 { font-size: 21px; }
  .card { padding: 17px; }
  .today-progress { align-items: center; flex-direction: column; text-align: center; }
  .history-strip { grid-template-columns: repeat(4,1fr); }
  .filter-bar { align-items: stretch; flex-direction: column; }
  .filter-bar select { width: 100%; }
  .pagination-wrap { align-items: flex-start; flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: span 1; }
  .form-card { padding: 18px; }
  .permissions-toolbar { align-items: stretch; flex-direction: column; }
  .permissions-toolbar .search-input { width: 100%; }
  .permission-grid, .worship-grid, .checklist-grid { grid-template-columns: 1fr; }
  .worship-grid { padding: 14px; }
  .daily-row { align-items: flex-start; flex-wrap: wrap; }
  .daily-copy { min-width: calc(100% - 70px); }
  .daily-score { margin-left: 64px; flex: 1; }
  .date-card { align-items: stretch; flex-direction: column; gap: 15px; }
  .date-card input { width: 100%; }
  .sticky-actions { bottom: 6px; }
  .sticky-actions .btn { flex: 1; padding: 0 10px; }
  .report-filter .filter-bar { padding: 14px; }
  .inline-field { width: 100%; }
  .auth-form-side { padding: 27px 20px; }
  .mobile-auth-logo { margin-bottom: 35px; }
  .login-card h2 { font-size: 24px; }
  .notification-button { width: 36px; height: 36px; }
  .request-code-box strong { font-size: 19px; }
  .notification-item { grid-template-columns: 40px minmax(0,1fr) 20px; }
}
