:root{
  --green-950:#052d25;
  --green-900:#073f33;
  --green-850:#094a3b;
  --green-800:#0a5845;
  --green-700:#0d7056;
  --green-600:#108765;
  --green-500:#16a178;
  --green-400:#36b88f;
  --green-300:#75d0b2;
  --green-200:#bce9d9;
  --green-100:#e4f7f0;
  --green-50:#f3fbf8;
  --ink:#17221f;
  --ink-2:#33413d;
  --muted:#6d7d78;
  --muted-2:#95a19d;
  --line:#dde7e3;
  --line-soft:#edf2f0;
  --canvas:#f5f8f7;
  --white:#fff;
  --danger:#b8323d;
  --danger-soft:#fff0f1;
  --warning:#a05c00;
  --warning-soft:#fff7e4;
  --blue:#1565a7;
  --purple:#6e52ba;
  --shadow-sm:0 4px 16px rgba(5,45,37,.06);
  --shadow:0 14px 38px rgba(5,45,37,.10);
  --shadow-lg:0 25px 70px rgba(5,45,37,.16);
  --radius-sm:10px;
  --radius:18px;
  --radius-lg:26px;
  --radius-xl:34px;
  --sidebar:270px;
  --topbar:72px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;color:var(--ink);background:var(--canvas);font-size:15px;line-height:1.5}
body.modal-open{overflow:hidden}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
img{display:block;max-width:100%}
svg.icon{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:none}
[hidden]{display:none!important}
::selection{background:var(--green-200);color:var(--green-950)}
:focus-visible{outline:3px solid rgba(22,161,120,.24);outline-offset:2px}

/* Shared typography and controls */
h1,h2,h3,h4,p{margin-top:0}
h1{font-size:clamp(29px,3vw,42px);line-height:1.12;letter-spacing:-.035em;margin-bottom:9px}
h2{font-size:21px;line-height:1.25;letter-spacing:-.02em;margin-bottom:4px}
h3{font-size:17px;line-height:1.3;margin-bottom:3px}
p{color:var(--muted);margin-bottom:0}
small{color:var(--muted)}
.eyebrow{display:inline-flex;align-items:center;gap:7px;color:var(--green-700);font-size:12px;font-weight:800;letter-spacing:.105em;text-transform:uppercase;margin-bottom:11px}
.eyebrow:before{content:"";width:20px;height:2px;border-radius:4px;background:currentColor}
.light-text{color:var(--green-200)}

.button{border:0;border-radius:12px;min-height:44px;padding:10px 17px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:750;line-height:1.1;transition:.18s ease;white-space:nowrap}
.button:hover{transform:translateY(-1px)}
.button:active{transform:translateY(0)}
.button.primary{color:#fff;background:linear-gradient(135deg,var(--green-800),var(--green-500));box-shadow:0 8px 22px rgba(13,112,86,.20)}
.button.primary:hover{box-shadow:0 12px 28px rgba(13,112,86,.28)}
.button.dark{background:var(--green-950);color:#fff}
.button.ghost{border:1px solid var(--line);background:#fff;color:var(--green-900)}
.button.ghost:hover{border-color:var(--green-300);background:var(--green-50)}
.button.light{background:#fff;color:var(--green-900);box-shadow:var(--shadow-sm)}
.button.danger{background:var(--danger-soft);color:var(--danger);border:1px solid #f3c9cd}
.button.large{min-height:52px;padding:14px 23px;border-radius:15px;font-size:16px}
.button.small{min-height:36px;padding:8px 12px;border-radius:10px;font-size:13px}
.button.wide{width:100%}
.text-button{border:0;background:none;padding:4px 0;color:var(--green-700);font-weight:750}
.danger-text{color:var(--danger)!important}

.card{background:#fff;border:1px solid var(--line-soft);border-radius:var(--radius);box-shadow:var(--shadow-sm);padding:22px}
.card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:20px}
.card-head h2{margin-bottom:3px}
.card-head>a{color:var(--green-700);font-weight:750;font-size:13px}
.form-card{padding:25px}
.form-stack{display:grid;gap:16px}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}
.form-grid.compact-grid{gap:13px}
.span-2{grid-column:span 2}
.span-all{grid-column:1/-1}
.field{display:grid;gap:7px;min-width:0}
.field label{font-size:13px;font-weight:780;color:var(--ink-2)}
.field input,.field select,.field textarea,.filter-bar input,.filter-bar select{width:100%;border:1px solid var(--line);background:#fff;border-radius:12px;padding:12px 14px;min-height:46px;outline:0;transition:.15s ease}
.field textarea{resize:vertical;line-height:1.5}
.field input:focus,.field select:focus,.field textarea:focus,.filter-bar input:focus,.filter-bar select:focus{border-color:var(--green-400);box-shadow:0 0 0 4px rgba(22,161,120,.09)}
.field input:disabled{background:#f2f5f4;color:var(--muted)}
.field small{font-size:11.5px;line-height:1.4}
.form-divider{display:flex;align-items:center;gap:12px;color:var(--green-800);font-size:12px;font-weight:850;letter-spacing:.08em;text-transform:uppercase;margin:5px 0}
.form-divider:before,.form-divider:after{content:"";height:1px;background:var(--line);flex:1}
.form-actions,.split-actions,.heading-actions{display:flex;align-items:center;gap:10px;justify-content:flex-end}
.check-field{display:flex;gap:10px;align-items:flex-start;cursor:pointer;color:var(--ink-2);font-weight:650}
.check-field input{width:18px;height:18px;accent-color:var(--green-700);margin-top:2px}
.switch-field{display:flex;align-items:center;gap:11px;cursor:pointer}
.switch-field input{position:absolute;opacity:0;pointer-events:none}
.switch-field span{width:45px;height:25px;border-radius:999px;background:#cfd9d5;position:relative;transition:.2s}
.switch-field span:after{content:"";position:absolute;width:19px;height:19px;border-radius:50%;background:#fff;left:3px;top:3px;box-shadow:0 2px 5px rgba(0,0,0,.17);transition:.2s}
.switch-field input:checked+span{background:var(--green-600)}
.switch-field input:checked+span:after{transform:translateX(20px)}

.search-box{display:flex;align-items:center;gap:10px;border:1px solid var(--line);background:#fff;border-radius:13px;padding:0 13px;min-height:48px;flex:1}
.search-box .icon{color:var(--muted);width:20px}
.search-box input{border:0!important;box-shadow:none!important;padding:0!important;min-height:44px;background:transparent!important}
.filter-card{padding:15px;margin-bottom:18px}
.filter-bar{display:flex;align-items:center;gap:10px}
.filter-bar>select,.filter-bar>input{width:auto;min-width:160px}

.date-field,.time-field,.picker-field{width:100%;border:1px solid var(--line);background:#fff;border-radius:12px;min-height:48px;padding:11px 14px;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;outline:0}
.date-field:hover,.time-field:hover,.picker-field:hover{border-color:var(--green-400)}
.picker-field.locked{background:#f5f7f6;cursor:default}
.picker-field .placeholder{color:var(--muted-2)}
.selected-person{display:flex;align-items:center;gap:10px;min-width:0}
.selected-person>span:last-child{display:grid;min-width:0}
.selected-person b,.selected-person small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.status{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:800;line-height:1.1;white-space:nowrap}
.status-active,.status-paid{background:var(--green-100);color:var(--green-800)}
.status-trial,.status-pending{background:var(--warning-soft);color:var(--warning)}
.status-suspended,.status-expired,.status-rejected{background:var(--danger-soft);color:var(--danger)}
.type-pill,.code-pill{display:inline-flex;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:800;line-height:1}
.type-pill.ziyadah{background:#fff0f2;color:#b73249}
.type-pill.murajaah{background:var(--green-100);color:var(--green-800)}
.code-pill{background:#eef3f1;color:var(--ink-2);font-family:ui-monospace,SFMono-Regular,Consolas,monospace}

.flash{position:relative;display:flex;align-items:center;justify-content:space-between;gap:14px;border-radius:13px;padding:13px 16px;margin-bottom:18px;border:1px solid var(--line);font-weight:650;box-shadow:var(--shadow-sm)}
.flash-success{background:var(--green-50);border-color:var(--green-200);color:var(--green-900)}
.flash-error{background:var(--danger-soft);border-color:#f1ccd0;color:var(--danger)}
.flash-warning{background:var(--warning-soft);border-color:#f2dda9;color:var(--warning)}
.flash-close{border:0;background:none;font-size:22px;color:inherit;padding:0 2px}
.notice{border-radius:13px;padding:14px 16px;display:grid;gap:3px;border:1px solid var(--line)}
.notice.warning{background:var(--warning-soft);border-color:#f2dda9;color:var(--warning)}
.notice.neutral{background:#f7faf9;color:var(--ink-2)}
.notice span{font-size:13px;color:inherit;opacity:.83}

.progress,.tiny-progress{height:8px;border-radius:999px;background:#e6eeeb;overflow:hidden}
.progress i,.tiny-progress i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--green-500),var(--green-300))}
.tiny-progress{height:5px;margin-top:15px}

.avatar,.org-avatar,.student-avatar,.avatar-button{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:var(--green-100);color:var(--green-800);font-weight:850;overflow:hidden;flex:none}
.avatar{width:39px;height:39px;font-size:13px}
.avatar.large,.org-avatar.large,.student-avatar.large{width:52px;height:52px;font-size:17px}
.org-avatar{width:42px;height:42px}
.org-avatar.xl,.student-avatar.xl{width:86px;height:86px;font-size:25px}
.avatar img,.org-avatar img,.student-avatar img{width:100%;height:100%;object-fit:cover}

.empty-state{min-height:240px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:8px;color:var(--muted);padding:30px}
.empty-state>.icon{width:42px;height:42px;color:var(--green-500);margin-bottom:5px}
.empty-state h3{color:var(--ink);margin:0}
.empty-state p{max-width:430px}
.empty-state.small{min-height:120px;padding:18px}
.empty-state.tall{min-height:55vh}
.empty-cell{text-align:center;color:var(--muted);padding:38px!important}

/* Public / landing */
.public-body{background:#fff}
.public-header{height:76px;display:flex;align-items:center;justify-content:space-between;gap:25px;padding:0 max(24px,calc((100vw - 1180px)/2));position:sticky;top:0;z-index:20;background:rgba(255,255,255,.92);backdrop-filter:blur(16px);border-bottom:1px solid rgba(221,231,227,.8)}
.brand-link{display:flex;align-items:center;gap:11px;min-width:0}
.brand-link>span:last-child{display:grid;line-height:1.18}
.brand-link b{font-size:18px;letter-spacing:-.02em}
.brand-link small{font-size:10px;letter-spacing:.05em;color:var(--muted)}
.brand-mark{width:43px;height:43px;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(145deg,var(--green-900),var(--green-500));color:#fff;font-weight:900;font-size:14px;box-shadow:0 8px 22px rgba(7,63,51,.19)}
.brand-mark.mini{width:31px;height:31px;border-radius:10px;font-size:10px}
.brand-mark.light{background:#fff;color:var(--green-900);box-shadow:none}
.public-header nav{display:flex;align-items:center;gap:21px}
.public-header nav>a:not(.button){font-size:13px;color:var(--ink-2);font-weight:650}
.hero-section{max-width:1180px;margin:auto;display:grid;grid-template-columns:1.05fr .95fr;align-items:center;gap:60px;padding:80px 24px 90px;min-height:720px}
.hero-copy h1{font-size:clamp(43px,5vw,67px);max-width:720px;color:var(--green-950)}
.hero-copy>p{font-size:18px;line-height:1.75;max-width:700px;margin-top:22px}
.hero-actions{display:flex;gap:12px;margin-top:30px}
.trust-row{display:flex;flex-wrap:wrap;gap:18px;margin-top:25px;color:var(--green-800);font-size:12px;font-weight:750}
.hero-preview{display:flex;justify-content:center;position:relative}
.hero-preview:before{content:"";position:absolute;width:470px;height:470px;border-radius:50%;background:radial-gradient(circle,var(--green-100),transparent 68%);top:50%;left:50%;transform:translate(-50%,-50%)}
.phone-shell{position:relative;width:min(390px,100%);border-radius:39px;background:#111b18;padding:12px;box-shadow:0 38px 90px rgba(5,45,37,.24);transform:rotate(1.5deg)}
.phone-top{height:35px;color:#fff;display:flex;justify-content:space-between;padding:3px 14px;font-size:11px}
.preview-page{border-radius:29px;background:#fff;padding:23px 18px 20px;min-height:580px}
.preview-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:19px}
.preview-title>div{display:grid}.preview-title b{font-size:24px}.preview-title small{font-size:12px}
.preview-avatar{width:43px;height:43px;border-radius:50%;display:grid;place-items:center;background:var(--green-100);color:var(--green-800);font-weight:800}
.preview-prayer{border-radius:23px;background:linear-gradient(135deg,var(--green-900),var(--green-500));padding:20px;color:#fff;box-shadow:0 17px 35px rgba(13,112,86,.26)}
.preview-prayer small{color:rgba(255,255,255,.67)}
.preview-count{display:grid;grid-template-columns:1fr auto 1.2fr;align-items:center;gap:10px;margin:17px 0}.preview-count>b{font-size:25px}.preview-count>b:last-child{font-size:14px;text-align:right}.preview-count span{font-size:13px;text-align:center}.preview-count strong{font-size:11px}
.preview-prayer hr{border:0;border-top:1px solid rgba(255,255,255,.2)}
.preview-real{display:flex;justify-content:space-between;align-items:flex-end;margin-top:12px}.preview-real span:last-child{text-align:right}.preview-real b{font-size:25px}
.preview-page h4{font-size:13px;margin:18px 0 10px}
.preview-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.preview-cards>div{border:1px solid var(--line);border-radius:13px;padding:11px 8px;display:grid}.preview-cards span{font-size:10px;color:var(--muted)}.preview-cards b{font-size:14px;margin-top:5px}
.preview-list{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid var(--line-soft)}.preview-list .dot{width:31px;height:31px;border-radius:50%;background:var(--green-100);display:grid;place-items:center;color:var(--green-800);font-weight:800}.preview-list>div{display:grid}.preview-list b{font-size:11px}.preview-list small{font-size:9px}
.logo-strip{background:var(--green-950);color:#fff;padding:25px 5vw;display:flex;justify-content:center;gap:55px;flex-wrap:wrap;font-weight:750;font-size:13px}
.feature-section,.pricing-section{max-width:1180px;margin:auto;padding:105px 24px}
.pricing-section{background:var(--green-50);max-width:none;padding-left:max(24px,calc((100vw - 1180px)/2));padding-right:max(24px,calc((100vw - 1180px)/2))}
.section-heading{text-align:center;max-width:720px;margin:0 auto 50px}.section-heading h2{font-size:clamp(31px,4vw,45px)}
.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.feature-grid article{border:1px solid var(--line);border-radius:22px;padding:28px;background:#fff;transition:.2s}.feature-grid article:hover{transform:translateY(-4px);box-shadow:var(--shadow)}.feature-grid .icon{width:34px;height:34px;color:var(--green-700);margin-bottom:20px}.feature-grid p{font-size:14px;line-height:1.7}
.pricing-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;align-items:stretch}
.price-card{position:relative;background:#fff;border:1px solid var(--line);border-radius:22px;padding:27px;display:flex;flex-direction:column;box-shadow:var(--shadow-sm)}
.price-card.featured{border-color:var(--green-400);box-shadow:0 18px 45px rgba(13,112,86,.15)}
.price-card.current-plan{outline:3px solid rgba(22,161,120,.14)}
.popular{position:absolute;top:-12px;right:17px;border-radius:999px;background:var(--green-800);color:#fff;padding:5px 11px;font-size:10px;font-weight:850}
.price{display:flex;align-items:baseline;gap:5px;margin:18px 0}.price b{font-size:26px;letter-spacing:-.04em;color:var(--green-900)}.price small{font-size:11px}
.price-card p{font-size:13px;min-height:60px}.price-card ul{padding-left:18px;color:var(--ink-2);font-size:12px;line-height:2;margin:18px 0 25px}.price-card .button{margin-top:auto}
.cta-section{max-width:1132px;margin:70px auto 100px;border-radius:32px;padding:50px 55px;background:linear-gradient(130deg,var(--green-950),var(--green-700));color:#fff;display:flex;align-items:center;justify-content:space-between;gap:30px;box-shadow:0 30px 70px rgba(5,45,37,.23)}.cta-section h2{font-size:35px}.cta-section p{color:rgba(255,255,255,.7);max-width:650px}.cta-section .eyebrow{color:var(--green-200)}
.public-footer{max-width:1180px;margin:auto;border-top:1px solid var(--line);padding:32px 24px 45px;display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:12px}

/* Auth */
.auth-body{min-height:100vh;background:#fff}
.auth-layout{min-height:100vh;display:grid;grid-template-columns:minmax(360px,.8fr) minmax(560px,1.2fr)}
.auth-brand-panel{background:linear-gradient(155deg,var(--green-950),var(--green-700));color:#fff;padding:55px max(45px,8vw);display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}
.auth-brand-panel:after{content:"";position:absolute;width:460px;height:460px;border-radius:50%;border:1px solid rgba(255,255,255,.12);right:-240px;bottom:-120px;box-shadow:0 0 0 80px rgba(255,255,255,.025),0 0 0 160px rgba(255,255,255,.018)}
.light-brand b{color:#fff}.light-brand small{color:rgba(255,255,255,.63)}
.auth-brand-panel h1{font-size:clamp(38px,4vw,60px);max-width:590px}.auth-brand-panel p{font-size:17px;color:rgba(255,255,255,.67);line-height:1.75;max-width:550px}
.auth-feature-list{display:flex;flex-wrap:wrap;gap:12px 23px;color:var(--green-200);font-size:12px;font-weight:700;z-index:1}
.auth-card-wrap{display:flex;align-items:center;justify-content:center;padding:45px;background:#fff}
.auth-card{width:100%;max-width:480px}.auth-card.wide-card{max-width:730px}
.mobile-auth-brand{display:none;margin-bottom:35px}
.auth-heading{margin-bottom:25px}.auth-heading h2{font-size:32px}.auth-heading p{margin-top:7px}
.auth-tabs{display:grid;grid-template-columns:1fr 1fr;background:#eef3f1;padding:4px;border-radius:13px;margin-bottom:22px}.auth-tabs button{border:0;background:transparent;border-radius:10px;padding:11px;font-weight:750;color:var(--muted)}.auth-tabs button.active{background:#fff;color:var(--green-900);box-shadow:var(--shadow-sm)}
.password-field{position:relative}.password-field input{padding-right:68px}.password-field button{position:absolute;right:7px;top:7px;bottom:7px;border:0;background:var(--green-50);border-radius:8px;color:var(--green-800);font-size:11px;font-weight:800;padding:0 10px}
.auth-help{display:flex;justify-content:center;gap:6px;margin-top:23px;font-size:13px;color:var(--muted)}.auth-help a{color:var(--green-700);font-weight:800}
.demo-note{border-radius:12px;background:var(--green-50);border:1px solid var(--green-100);padding:12px 14px;font-size:11px;color:var(--green-900);margin-top:20px;line-height:1.7}

/* App shell */
.app-body,.platform-body{background:var(--canvas)}
.app-shell{min-height:100vh}
.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);background:var(--green-950);color:#fff;display:flex;flex-direction:column;z-index:60;padding:20px 15px}
.brand-block{display:flex;align-items:center;justify-content:space-between;padding:0 5px 17px;border-bottom:1px solid rgba(255,255,255,.09)}
.sidebar .brand-link small{color:rgba(255,255,255,.48)}
.sidebar-close{display:none;border:0;background:none;color:#fff;padding:7px}
.org-chip{margin:18px 0 10px;padding:11px;background:rgba(255,255,255,.065);border:1px solid rgba(255,255,255,.08);border-radius:14px;display:flex;align-items:center;gap:10px;min-width:0}
.org-chip .org-avatar{background:rgba(255,255,255,.13);color:#fff}
.org-chip>span:last-child{display:grid;min-width:0}.org-chip b,.org-chip small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.org-chip b{font-size:12px}.org-chip small{color:rgba(255,255,255,.46);font-size:9px}
.side-nav{display:grid;gap:4px;overflow-y:auto;padding:9px 0;flex:1;scrollbar-width:thin}
.side-nav>a{min-height:44px;display:flex;align-items:center;gap:12px;border-radius:11px;padding:10px 12px;color:rgba(255,255,255,.59);font-size:13px;font-weight:670;transition:.15s}
.side-nav>a:hover{background:rgba(255,255,255,.065);color:#fff}.side-nav>a.active{background:#fff;color:var(--green-950);box-shadow:0 8px 23px rgba(0,0,0,.12)}
.side-nav .icon{width:19px;height:19px}
.sidebar-footer{border-top:1px solid rgba(255,255,255,.09);padding-top:13px;display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px}
.mini-profile{display:flex;align-items:center;gap:9px;min-width:0}.mini-profile .avatar{background:rgba(255,255,255,.13);color:#fff}.mini-profile>span:last-child{display:grid;min-width:0}.mini-profile b{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mini-profile small{font-size:9px;color:rgba(255,255,255,.45)}
.logout-button{width:38px;height:38px;border:0;border-radius:10px;background:rgba(255,255,255,.08);color:#fff;display:grid;place-items:center}
.version-line{grid-column:1/-1;color:rgba(255,255,255,.32);font-size:8px;padding-left:48px}
.sidebar-overlay{display:none}
.app-main{margin-left:var(--sidebar);min-height:100vh}
.topbar{height:var(--topbar);position:sticky;top:0;z-index:40;background:rgba(255,255,255,.91);backdrop-filter:blur(17px);border-bottom:1px solid rgba(221,231,227,.85);display:flex;align-items:center;justify-content:space-between;padding:0 30px}
.menu-button{display:none;border:0;background:none;padding:8px}
.topbar-brand{display:none;align-items:center;gap:8px}.topbar-actions{margin-left:auto;display:flex;align-items:center;gap:9px}
.icon-button,.avatar-button{width:42px;height:42px;border:1px solid var(--line);background:#fff;display:inline-flex;align-items:center;justify-content:center;border-radius:12px;color:var(--ink-2);padding:0;position:relative}
.icon-button:hover{background:var(--green-50);border-color:var(--green-200);color:var(--green-800)}
.icon-button.small{width:34px;height:34px;border-radius:9px}.icon-button.small .icon{width:17px;height:17px}
.avatar-button{border-radius:50%;font-size:12px;color:var(--green-800);background:var(--green-100);border-color:var(--green-200)}
.notification-button .badge{position:absolute;right:-4px;top:-5px;min-width:18px;height:18px;border-radius:999px;background:var(--danger);color:#fff;border:2px solid #fff;font-size:8px;display:grid;place-items:center;padding:0 3px}
.page-content{max-width:1500px;margin:auto;padding:28px 30px 105px}
.page-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:25px;margin-bottom:25px}.page-heading.compact{align-items:flex-start}.page-heading h1{font-size:34px}.page-heading p{max-width:750px}.dashboard-heading{align-items:center}
.back-link{display:inline-flex;align-items:center;gap:7px;color:var(--green-700);font-weight:750;font-size:12px;margin-bottom:13px}.back-link .icon{width:17px}
.content-narrow{max-width:510px;margin:auto}.content-medium{max-width:900px;margin:auto}

/* Generic app grids and tables */
.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:20px}
.stat-card{background:#fff;border:1px solid var(--line-soft);border-radius:17px;padding:18px;display:flex;gap:13px;align-items:center;box-shadow:var(--shadow-sm);min-width:0}
.stat-icon{width:43px;height:43px;border-radius:13px;background:var(--green-100);color:var(--green-800);display:grid;place-items:center;flex:none}.stat-icon .icon{width:20px}
.stat-card>div{display:grid;min-width:0}.stat-card small{font-size:10px;text-transform:uppercase;letter-spacing:.055em;font-weight:750}.stat-card b{font-size:23px;letter-spacing:-.04em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.stat-card b.small-stat{font-size:16px}.stat-card span{font-size:10px;color:var(--muted)}
.dashboard-grid{display:grid;grid-template-columns:2fr 1fr;gap:18px}.dashboard-grid .span-2{grid-column:auto}
.two-column-layout{display:grid;grid-template-columns:1.45fr .75fr;gap:18px;margin-bottom:18px}.stacked-column{display:grid;gap:18px;align-content:start}
.table-wrap{overflow-x:auto;margin:0 -3px}.table-wrap table{width:100%;border-collapse:collapse;min-width:720px}.table-wrap th{text-align:left;color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.06em;padding:11px 13px;border-bottom:1px solid var(--line);white-space:nowrap}.table-wrap td{padding:13px;border-bottom:1px solid var(--line-soft);font-size:12px;vertical-align:middle}.table-wrap tr:last-child td{border-bottom:0}.table-wrap a{color:var(--green-800)}
.table-person{display:flex;align-items:center;gap:10px}.table-person>span:last-child{display:grid}.table-person small,.table-sub{display:block;font-size:9px;color:var(--muted);margin-top:2px}.table-action{font-weight:750}.wrap-cell{max-width:290px;white-space:normal;word-break:break-word}
.row-actions{display:flex;align-items:center;gap:5px}.row-actions form{margin:0}
.activity-list{display:grid}.activity-item{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:13px 2px;border-bottom:1px solid var(--line-soft)}.activity-item:last-child{border-bottom:0}.activity-item>span:nth-child(2){display:grid;min-width:0}.activity-item b{font-size:13px}.activity-item small{font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.activity-item time{font-size:9px;color:var(--muted);white-space:nowrap}.activity-icon{width:39px;height:39px;border-radius:12px;display:grid;place-items:center;background:var(--green-100);color:var(--green-800)}.activity-icon.ziyadah{background:#fff0f2;color:#b83249}.activity-icon .icon{width:18px}.compact-list .activity-item{grid-template-columns:auto 1fr}.compact-list time{grid-column:2}
.detail-list{display:grid;margin:0}.detail-list>div{display:grid;grid-template-columns:minmax(100px,.65fr) 1fr;gap:14px;padding:10px 0;border-bottom:1px solid var(--line-soft)}.detail-list>div:last-child{border-bottom:0}.detail-list dt{font-size:11px;color:var(--muted)}.detail-list dd{margin:0;font-size:12px;font-weight:650;text-align:right;word-break:break-word}

/* Platform */
.platform-stats .stat-card:nth-child(3) b{font-size:19px}
.tenant-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.tenant-card{background:#fff;border:1px solid var(--line-soft);border-radius:18px;padding:20px;box-shadow:var(--shadow-sm)}.tenant-card-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:14px}.tenant-card h3{font-size:18px}.tenant-card>p{font-size:12px}.tenant-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:18px 0}.tenant-metrics>span{border:1px solid var(--line-soft);border-radius:11px;padding:9px;display:grid}.tenant-metrics small{font-size:8px}.tenant-metrics b{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tenant-expiry{display:flex;gap:8px;align-items:center;color:var(--muted);font-size:10px;margin-bottom:14px}.tenant-expiry .icon{width:16px}
.title-with-avatar{display:flex;align-items:center;gap:15px}
.mini-user-list{display:grid}.mini-user-list>div{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid var(--line-soft)}.mini-user-list>div:last-child{border-bottom:0}.mini-user-list>div>span:nth-child(2){display:grid;min-width:0}.mini-user-list b{font-size:11px}.mini-user-list small{font-size:9px}
.plan-admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.plan-admin-card.accent-card{border-color:var(--green-300)}
.payment-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.payment-card{display:grid;gap:17px}.payment-card .card-head{margin-bottom:0}.payment-card h2{margin-top:7px}.payment-amount{font-size:19px;color:var(--green-900);white-space:nowrap}.proof-preview{display:grid;gap:7px;color:var(--green-700);font-size:11px;font-weight:750}.proof-preview img{width:100%;height:220px;object-fit:contain;background:#f4f7f6;border:1px solid var(--line);border-radius:13px}.proof-missing{border:1px dashed var(--line);border-radius:13px;padding:30px;text-align:center;color:var(--muted);font-size:12px}.current-image{display:flex;align-items:center;gap:12px}.current-image img{width:135px;max-height:170px;object-fit:contain;border:1px solid var(--line);border-radius:13px;padding:6px}.current-image span{font-size:12px;color:var(--muted)}
.audit-table{min-width:1050px!important}

/* Dashboard and prayer */
.prayer-hero{position:relative;overflow:hidden;border-radius:28px;padding:27px 31px 22px;color:#fff;background:radial-gradient(circle at 95% 10%,rgba(74,217,167,.5),transparent 37%),linear-gradient(135deg,var(--green-900),#0c9a70);box-shadow:0 20px 42px rgba(13,112,86,.23);margin-bottom:28px}
.prayer-hero:after{content:"";position:absolute;width:280px;height:280px;border-radius:50%;border:1px solid rgba(255,255,255,.12);right:-90px;bottom:-170px;box-shadow:0 0 0 55px rgba(255,255,255,.035)}
.prayer-topline{display:flex;align-items:center;justify-content:space-between;gap:20px;position:relative;z-index:1;color:rgba(255,255,255,.72);font-size:12px}.prayer-topline i{font-style:normal;opacity:.55}.prayer-topline a,.prayer-topline>span:last-child{display:flex;align-items:center;gap:6px;color:#fff}.prayer-topline a b{color:#d8ff69}.prayer-topline .icon{width:16px;color:#ff8b96}
.prayer-focus{display:grid;grid-template-columns:minmax(190px,.8fr) auto minmax(250px,1fr);align-items:center;gap:30px;margin:25px 0 22px;position:relative;z-index:1}.server-clock{display:flex;align-items:center;gap:8px}.server-clock span{min-width:77px;padding:11px 12px;border:1px solid rgba(255,255,255,.26);border-radius:17px;background:rgba(255,255,255,.12);backdrop-filter:blur(8px);font-size:37px;font-weight:850;text-align:center;line-height:1}.server-clock i{font-size:29px;font-style:normal;font-weight:800}.next-prayer{display:grid;text-align:center}.next-prayer b{font-size:23px}.next-prayer span{font-size:12px;color:rgba(255,255,255,.75)}
.countdown-wrap{display:flex;align-items:center;justify-content:flex-end;gap:13px}.countdown-wrap>i{font-style:normal;font-size:28px;font-weight:800}.countdown{display:flex;align-items:center;gap:7px}.countdown span{min-width:53px;padding:10px 8px;border-radius:14px;border:1px solid rgba(255,255,255,.19);background:rgba(255,255,255,.11);font-size:24px;font-weight:800;text-align:center;line-height:1}.countdown i{font-style:normal;font-size:20px}
.prayer-divider{height:1px;background:rgba(255,255,255,.2);position:relative;z-index:1}.prayer-bottom{display:flex;align-items:flex-end;justify-content:space-between;gap:30px;padding-top:20px;position:relative;z-index:1}.prayer-bottom>div:first-child{display:grid}.prayer-bottom small{color:rgba(255,255,255,.63)}.prayer-bottom>div:first-child span{font-size:17px}.prayer-bottom>div:first-child b{font-size:51px;line-height:1}.today-progress{width:min(390px,55%);text-align:right;display:grid;grid-template-columns:1fr auto;align-items:end;gap:2px 12px}.today-progress>span b{font-size:38px}.today-progress strong{color:#e4f44e;font-size:16px}.today-progress .progress{grid-column:1/-1;background:rgba(255,255,255,.22);height:8px}.today-progress .progress i{background:rgba(255,255,255,.55)}.today-progress small{grid-column:1/-1;color:rgba(255,255,255,.75)}
.prayer-mini-list{display:flex;gap:17px;flex-wrap:wrap;margin-top:19px;padding-top:15px;border-top:1px solid rgba(255,255,255,.12);position:relative;z-index:1}.prayer-mini-list span{font-size:9px;color:rgba(255,255,255,.6)}.prayer-mini-list b{color:#fff;margin-left:3px}
.section-title{display:flex;align-items:center;justify-content:space-between;margin:0 2px 15px}.section-title h2{font-size:21px}.section-title a{color:var(--green-700);font-weight:800;font-size:12px}
.summary-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-bottom:23px}.summary-card{border:1px solid var(--line-soft);border-radius:17px;padding:18px;background:#fff;box-shadow:var(--shadow-sm);position:relative;overflow:hidden}.summary-icon{width:39px;height:39px;border-radius:12px;display:grid;place-items:center;margin-bottom:12px}.summary-card h3{font-size:16px}.summary-card p{display:flex;align-items:baseline;gap:5px}.summary-card p b{font-size:21px;color:var(--ink)}.summary-card.purple h3{color:var(--purple)}.summary-card.purple .summary-icon{background:#f1ebff;color:var(--purple)}.summary-card.red h3{color:#bd3d4f}.summary-card.red .summary-icon{background:#fff0f1;color:#bd3d4f}.summary-card.green h3{color:var(--green-700)}.summary-card.green .summary-icon{background:var(--green-100);color:var(--green-700)}
.top-student-list{display:grid}.top-student-list>a{display:grid;grid-template-columns:auto auto 1fr auto;gap:9px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line-soft)}.top-student-list>a:last-child{border-bottom:0}.rank-number{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:#eef2f1;color:var(--muted);font-size:9px;font-weight:850}.top-student-list>a:nth-child(1) .rank-number{background:#fff4c7;color:#9a6500}.top-student-list>a>span:nth-child(3){display:grid;min-width:0}.top-student-list b{font-size:11px}.top-student-list small{font-size:9px}.top-student-list strong{text-align:right;font-size:12px}.top-student-list strong small{display:block}

/* Students */
.capacity-card{background:var(--green-950);color:#fff;border-radius:16px;padding:14px 18px;display:flex;align-items:center;gap:25px;margin-bottom:17px}.capacity-card>div:first-child{min-width:240px}.capacity-card span{display:block;font-size:12px}.capacity-card small{color:rgba(255,255,255,.55);font-size:9px}.capacity-card .progress{flex:1;background:rgba(255,255,255,.14)}
.student-list{display:grid;gap:10px}.student-row{background:#fff;border:1px solid var(--line-soft);border-radius:16px;padding:14px 17px;box-shadow:var(--shadow-sm);display:grid;grid-template-columns:auto minmax(0,1fr) 95px 95px auto;align-items:center;gap:13px;transition:.16s}.student-row:hover{border-color:var(--green-300);transform:translateY(-1px)}.student-main{display:grid;min-width:0}.student-main b{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.student-main small{font-size:10px}.student-progress{display:grid;text-align:right}.student-progress b{font-size:14px}.student-progress small{font-size:8px;text-transform:uppercase;letter-spacing:.05em}.row-arrow{color:var(--muted-2)}.row-arrow.icon,.row-arrow .icon{width:17px}
.photo-editor{display:flex;align-items:center;justify-content:center;gap:13px;flex-wrap:wrap;padding:7px 0 16px}.photo-editor small{width:100%;text-align:center}
.profile-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.profile-toolbar .back-link{margin:0}.profile-toolbar-actions{display:flex;gap:8px}
.student-profile-hero{background:linear-gradient(135deg,#fff,var(--green-50));border:1px solid var(--line-soft);border-radius:24px;padding:30px;display:flex;align-items:center;gap:21px;box-shadow:var(--shadow-sm);margin-bottom:16px}.hero-avatar{width:105px;height:105px;font-size:30px;border:7px solid #fff;box-shadow:0 9px 25px rgba(7,63,51,.12)}.student-profile-hero h1{font-size:31px}.student-profile-hero p{margin-bottom:9px}
.profile-stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:13px;margin-bottom:17px}.profile-stat-grid article{background:#fff;border:1px solid var(--line-soft);border-radius:16px;padding:18px;text-align:center;box-shadow:var(--shadow-sm)}.profile-stat-grid b{display:block;color:var(--green-700);font-size:27px}.profile-stat-grid span{color:var(--muted);font-size:10px}
.profile-layout{display:grid;grid-template-columns:1.5fr .65fr;gap:18px;margin-bottom:18px}.profile-layout .span-2{grid-column:auto}.juz-map{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}.juz-cell{aspect-ratio:1.15;border:1px solid var(--line);border-radius:13px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#fafcfb;color:#9aa7a2}.juz-cell b{font-size:17px}.juz-cell small{font-size:7px}.juz-cell.filled{background:var(--green-100);border-color:var(--green-300);color:var(--green-800)}.map-legend{display:flex;justify-content:center;gap:18px;margin-top:17px;color:var(--muted);font-size:10px}.map-legend span{display:flex;align-items:center;gap:6px}.map-legend i{width:12px;height:12px;border-radius:50%;border:1px solid var(--line);background:#fff}.map-legend i.filled{background:var(--green-500);border-color:var(--green-500)}
.account-section{margin-top:18px}.account-list{display:grid}.account-item{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:9px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line-soft)}.account-item>span:nth-child(2){display:grid;min-width:0}.account-item b{font-size:11px}.account-item small{font-size:9px}.inline-reset{display:flex;gap:6px;align-items:center}.inline-reset input{width:85px;border:1px solid var(--line);border-radius:9px;padding:8px;font-size:11px}
.danger-zone{margin-top:18px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-color:#f0d8da}.danger-zone h2{font-size:17px}.danger-zone p{font-size:12px}

/* Memorization */
.form-page-head{max-width:900px;margin:0 auto 22px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px}.form-page-head>div{text-align:center}.form-page-head h1{font-size:29px;margin:0}.form-page-head .eyebrow{margin-bottom:4px}.memorization-page{max-width:850px}.memorization-form{display:grid;gap:19px;background:#fff;border:1px solid var(--line-soft);border-radius:23px;padding:25px;box-shadow:var(--shadow-sm)}
.memorization-tabs{display:grid;grid-template-columns:1fr 1fr;gap:10px}.memorization-tabs label{min-height:52px;border-radius:13px;background:#eef3f1;color:#87948f;display:grid;place-items:center;font-size:15px;font-weight:850;cursor:pointer;transition:.15s}.memorization-tabs label.active{background:linear-gradient(135deg,var(--green-800),var(--green-500));color:#fff;box-shadow:0 9px 23px rgba(13,112,86,.2)}.memorization-tabs input{position:absolute;opacity:0}
.memorization-fields{gap:15px}.setoran-summary{position:sticky;bottom:13px;z-index:5;border:1px solid var(--line);background:rgba(255,255,255,.94);backdrop-filter:blur(15px);border-radius:16px;padding:12px;display:grid;grid-template-columns:110px 110px 1fr;align-items:center;gap:12px;box-shadow:0 14px 45px rgba(5,45,37,.15)}.setoran-summary>div{display:grid;padding-left:10px}.setoran-summary small{font-size:9px}.setoran-summary b{font-size:17px}
.search-picker-card{width:min(560px,calc(100vw - 28px));max-height:min(720px,calc(100vh - 38px));display:flex;flex-direction:column}.modal-search{margin-bottom:13px;flex:none}.picker-results{overflow:auto;display:grid;min-height:160px}.picker-results>button{border:0;border-bottom:1px solid var(--line-soft);background:#fff;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:11px;padding:13px 7px;text-align:left}.picker-results>button:hover{background:var(--green-50)}.picker-results>button>span:nth-child(2){display:grid}.picker-results b{font-size:13px}.picker-results small{font-size:10px}.surah-number{width:37px;height:37px;border-radius:11px;background:var(--green-100);color:var(--green-800);display:grid;place-items:center;font-weight:850;font-size:11px}.loading-line{padding:35px;text-align:center;color:var(--muted);font-size:12px}

/* Ranking */
.podium{display:flex;align-items:flex-end;justify-content:center;gap:13px;margin:15px auto 28px;max-width:800px;min-height:280px}.podium-place{width:31%;max-width:220px;text-align:center;display:flex;flex-direction:column;align-items:center;position:relative}.podium-place.rank-1{order:2}.podium-place.rank-2{order:1}.podium-place.rank-3{order:3}.podium-medal{position:absolute;top:38px;right:calc(50% - 38px);z-index:2;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#fff;border:2px solid var(--green-500);color:var(--green-800);font-size:10px;font-weight:900}.podium-place.rank-1 .student-avatar{width:79px;height:79px;border:5px solid #ffe082}.podium-place.rank-2 .student-avatar,.podium-place.rank-3 .student-avatar{width:68px;height:68px;border:4px solid #d9e1de}.podium-place h3{font-size:13px;margin-top:10px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.podium-place p{font-size:9px}.podium-place strong{margin:7px 0;font-size:16px;color:var(--green-800)}.podium-place strong small{font-size:9px}.podium-block{height:90px;width:100%;border-radius:15px 15px 0 0;background:linear-gradient(180deg,var(--green-100),#fff);border:1px solid var(--green-200);border-bottom:0;display:flex;align-items:center;justify-content:center;font-size:35px;font-weight:900;color:var(--green-300)}.rank-1 .podium-block{height:130px;background:linear-gradient(180deg,#fff4c7,#fff);border-color:#f1df97;color:#e2bd3d}.rank-2 .podium-block{height:95px}.rank-3 .podium-block{height:75px}
.ranking-card{padding:9px 20px}.ranking-row{display:grid;grid-template-columns:40px auto minmax(0,1fr) 95px 95px 85px auto;align-items:center;gap:11px;padding:13px 0;border-bottom:1px solid var(--line-soft)}.ranking-row:last-child{border-bottom:0}.rank-badge{width:31px;height:31px;border-radius:10px;background:#edf2f0;display:grid;place-items:center;font-weight:850;font-size:11px}.rank-badge.rank-1{background:#fff3bd;color:#956b00}.rank-badge.rank-2{background:#ebeff1;color:#56656d}.rank-badge.rank-3{background:#f6e1d3;color:#9a5b33}.ranking-person{display:grid;min-width:0}.ranking-person b{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ranking-person small{font-size:9px}.ranking-metric{display:grid;text-align:right}.ranking-metric b{font-size:13px}.ranking-metric small{font-size:8px;text-transform:uppercase}

/* Calendar */
.calendar-hero{background:linear-gradient(135deg,var(--green-900),var(--green-600));border-radius:22px 22px 0 0;color:#fff;text-align:center;padding:23px;margin-bottom:0}.calendar-hero p{color:rgba(255,255,255,.72);font-size:13px}.calendar-hero h1{font-size:28px;margin:4px 0 0}
.calendar-card{border-radius:0 0 22px 22px;margin-bottom:18px;padding:0 0 19px;overflow:hidden}.calendar-toolbar{display:grid;grid-template-columns:50px 1fr 50px;align-items:center;text-align:center;padding:20px 18px 12px}.calendar-toolbar>a{width:43px;height:43px;border-radius:13px;display:grid;place-items:center;color:var(--green-700)}.calendar-toolbar>a:last-child{justify-self:end}.calendar-toolbar h2{font-size:25px}.calendar-toolbar p{font-size:12px}.calendar-jump{display:flex;justify-content:center;gap:7px;margin-bottom:16px}.calendar-jump select{border:1px solid var(--line);border-radius:9px;padding:7px 10px;background:#fff;font-size:11px}
.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr)}.calendar-weekdays{border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.calendar-weekdays span{text-align:center;padding:11px 4px;font-weight:750;color:var(--muted);font-size:11px}.calendar-cell{position:relative;min-height:91px;border-right:1px solid var(--line-soft);border-bottom:1px solid var(--line-soft);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px}.calendar-cell:nth-child(7n){border-right:0}.calendar-cell:hover{background:var(--green-50)}.calendar-cell.empty{background:#fafcfb}.calendar-cell b{font-size:22px}.calendar-cell>span:not(.hijri-day){font-size:9px;color:var(--muted)}.hijri-day{position:absolute;top:7px;left:8px;font-size:8px;color:var(--muted)}.calendar-cell.today{background:var(--green-50)}.calendar-cell.today b{color:var(--green-700)}.calendar-cell.selected{box-shadow:inset 0 0 0 3px var(--green-500)}.event-dots{display:flex;gap:3px;height:5px;margin-top:4px}.event-dots em{width:5px;height:5px;border-radius:50%;background:var(--green-500)}.event-dots .event-libur{background:#d3474f}.event-dots .event-ujian{background:#e8ae1d}.event-dots .event-kegiatan{background:#2879b8}.event-dots .event-lainnya{background:#8b65be}
.calendar-detail-layout{display:grid;grid-template-columns:1.3fr .7fr;gap:18px}.event-list{display:grid}.event-item{display:grid;grid-template-columns:auto 1fr auto;gap:11px;padding:13px 0;border-bottom:1px solid var(--line-soft)}.event-item>span{width:8px;height:8px;border-radius:50%;margin-top:6px;background:var(--green-500)}.event-item>div{display:grid}.event-item b{font-size:13px}.event-item small{font-size:9px;text-transform:capitalize}.event-item p{font-size:11px;margin-top:5px}.event-item.event-libur>span{background:#d3474f}.event-item.event-ujian>span{background:#e8ae1d}.event-item.event-kegiatan>span{background:#2879b8}

/* Reports, users, settings, billing */
.report-filter{padding:20px}.report-stats{margin-top:18px}.report-table-card{margin-top:18px}.report-table-card table{min-width:1150px}
.user-layout{display:grid;grid-template-columns:.68fr 1.5fr;gap:18px}.user-layout .span-2{grid-column:auto}.user-card-list{display:grid;gap:10px}.user-card{border:1px solid var(--line-soft);border-radius:15px;padding:14px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px}.user-card-main{display:grid;min-width:0}.user-card-main>div{display:flex;align-items:center;gap:9px}.user-card-main h3{font-size:13px;margin:0}.user-card-main p{font-size:11px}.user-card-main small{font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-card-actions{display:grid;gap:7px;justify-items:end}
.settings-layout{display:grid;grid-template-columns:1fr 1fr;gap:18px}.settings-layout>.span-2{grid-column:1/-1}.prayer-time-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:13px}.prayer-time-grid .field:last-child{grid-column:1/-1}.integration-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:17px}.integration-panel{border:1px solid var(--line);border-radius:15px;padding:16px;display:grid;gap:14px}.settings-save{text-align:right}.test-notification-card{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:18px}.test-notification-card .filter-bar{max-width:550px;flex:1}.test-notification-card .filter-bar input{flex:1;width:auto}
.subscription-banner{border-radius:22px;background:linear-gradient(135deg,var(--green-950),var(--green-700));color:#fff;padding:25px 28px;display:flex;align-items:center;justify-content:space-between;gap:25px;margin-bottom:25px}.subscription-banner small,.subscription-banner p{color:rgba(255,255,255,.65)}.subscription-banner h2{font-size:30px}.subscription-limits{display:flex;gap:13px}.subscription-limits span{min-width:100px;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.08);border-radius:14px;padding:13px;text-align:center;display:grid}.subscription-limits b{font-size:21px}.in-app-pricing{grid-template-columns:repeat(4,1fr);margin-bottom:18px}.billing-layout{display:grid;grid-template-columns:1fr .75fr;gap:18px;margin-bottom:18px}.bank-card{border-radius:16px;padding:20px;background:var(--green-950);color:#fff;display:grid;margin-bottom:16px}.bank-card small{color:var(--green-200)}.bank-card b{font-size:24px;letter-spacing:.03em}.bank-card span{color:rgba(255,255,255,.65);font-size:12px}.qris-box{display:grid;justify-items:center;gap:8px;border:1px solid var(--line);border-radius:15px;padding:15px;margin-bottom:16px}.qris-box img{width:min(230px,100%);max-height:300px;object-fit:contain}.qris-box b{font-size:12px}

/* Guardian portal, notification, profile */
.guardian-prayer .prayer-focus{grid-template-columns:minmax(180px,.8fr) auto minmax(250px,1fr)}
.guardian-student-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:15px;margin-bottom:18px}.guardian-student-card{background:#fff;border:1px solid var(--line-soft);border-radius:18px;padding:18px;box-shadow:var(--shadow-sm)}.guardian-student-head{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:11px}.guardian-student-head>span:nth-child(2){min-width:0}.guardian-student-head h3{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.guardian-student-head p{font-size:10px}.guardian-student-head>.icon{width:17px;color:var(--muted)}.guardian-metrics{display:grid;grid-template-columns:1fr 1fr 1.3fr;gap:7px;margin-top:15px}.guardian-metrics span{border-radius:11px;background:#f6f9f8;padding:10px;display:grid}.guardian-metrics b{font-size:12px}.guardian-metrics small{font-size:8px}
.history-timeline{max-width:980px;margin:auto}.timeline-date{display:flex;align-items:center;gap:12px;margin:18px 0 9px;color:var(--muted);font-size:11px;font-weight:750}.timeline-date:after{content:"";height:1px;background:var(--line);flex:1}.history-card{background:#fff;border:1px solid var(--line-soft);border-radius:16px;padding:15px;display:grid;grid-template-columns:auto 1fr auto;gap:12px;margin-bottom:9px;box-shadow:var(--shadow-sm)}.history-main>div{display:flex;align-items:center;gap:8px}.history-main h3{font-size:14px;margin:0}.history-main p{font-size:12px;margin-top:4px}.history-main small{font-size:9px}.history-main blockquote{margin:10px 0 0;border-left:3px solid var(--green-300);background:var(--green-50);border-radius:0 10px 10px 0;padding:9px 11px;color:var(--ink-2);font-size:11px}
.notification-list{padding:8px 22px}.notification-item{display:grid;grid-template-columns:auto 1fr;gap:13px;padding:16px 0;border-bottom:1px solid var(--line-soft);opacity:.72}.notification-item:last-child{border-bottom:0}.notification-item.unread{opacity:1}.notification-item.unread:before{content:"";position:absolute}.notification-icon{width:42px;height:42px;border-radius:13px;background:#f1f4f3;color:var(--muted);display:grid;place-items:center}.notification-item.unread .notification-icon{background:var(--green-100);color:var(--green-800)}.notification-title{display:flex;align-items:center;justify-content:space-between;gap:15px}.notification-title h3{font-size:13px}.notification-title time{font-size:9px;color:var(--muted)}.notification-item p{font-size:11px;margin-top:3px}.notification-actions{display:flex;align-items:center;gap:12px;margin-top:10px}.notification-actions form{margin:0}
.profile-account-layout{max-width:900px;margin:auto;display:grid;grid-template-columns:.7fr 1.3fr;gap:18px}.account-summary{text-align:center}.account-avatar{width:95px;height:95px;font-size:29px;margin:5px auto 13px}.account-summary>p{margin-bottom:9px}.account-summary .detail-list{text-align:left;margin:21px 0}

/* Modals and pickers */
.modal-backdrop{position:fixed;inset:0;background:rgba(5,26,22,.58);backdrop-filter:blur(3px);z-index:200;display:grid;place-items:center;padding:18px}
.modal-card{background:#fff;border-radius:20px;padding:20px;box-shadow:var(--shadow-lg);width:min(430px,calc(100vw - 28px));max-height:calc(100vh - 36px);overflow:auto}
.modal-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:17px}.modal-head small{font-size:10px}.modal-head h3{font-size:21px}.modal-head .icon-button{width:37px;height:37px}
.picker-controls{display:grid;grid-template-columns:38px 1fr 92px 38px;gap:7px;align-items:center;margin-bottom:13px}.picker-controls button,.picker-controls select{height:39px;border:1px solid var(--line);border-radius:9px;background:#fff}.picker-controls button{display:grid;place-items:center}.picker-controls .icon{width:16px}.picker-weekdays,.picker-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}.picker-weekdays span{text-align:center;font-size:9px;color:var(--muted);padding:5px}.picker-grid button{aspect-ratio:1;border:0;border-radius:9px;background:#fff;font-size:11px}.picker-grid button:hover{background:var(--green-100)}.picker-grid button.muted{color:#bcc5c2}.picker-grid button.today{box-shadow:inset 0 0 0 1px var(--green-400)}.picker-grid button.selected{background:var(--green-700);color:#fff}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:17px}
.time-selectors{display:flex;align-items:center;justify-content:center;gap:11px;padding:25px}.time-selectors select{font-size:28px;font-weight:800;border:1px solid var(--line);border-radius:13px;padding:10px;background:#fff}.time-selectors span{font-size:27px;font-weight:850}

/* Error */
.error-body{background:linear-gradient(145deg,var(--green-50),#fff);min-height:100vh;display:grid;place-items:center}.error-page{text-align:center;padding:30px;max-width:580px}.error-code{font-size:90px;font-weight:900;color:var(--green-100);line-height:1}.error-page .brand-mark{margin:0 auto 20px}.error-page p{margin:10px 0 25px}

/* Responsive */
@media (max-width:1180px){
  .pricing-grid,.in-app-pricing{grid-template-columns:repeat(2,1fr)}
  .tenant-card-grid{grid-template-columns:repeat(2,1fr)}
  .stat-grid{grid-template-columns:repeat(2,1fr)}
  .profile-layout{grid-template-columns:1fr}.profile-layout .span-2{grid-column:auto}
  .juz-map{grid-template-columns:repeat(6,1fr)}
  .user-layout{grid-template-columns:1fr}.user-layout .span-2{grid-column:auto}
}
@media (max-width:960px){
  :root{--sidebar:250px}
  .sidebar{transform:translateX(-105%);transition:.23s ease;box-shadow:var(--shadow-lg)}
  body.sidebar-open .sidebar{transform:translateX(0)}
  .sidebar-overlay{display:block;position:fixed;inset:0;background:rgba(5,26,22,.48);z-index:55;opacity:0;pointer-events:none;transition:.2s}
  body.sidebar-open .sidebar-overlay{opacity:1;pointer-events:auto}
  .sidebar-close{display:grid}
  .app-main{margin-left:0}
  .menu-button,.topbar-brand{display:flex}
  .topbar{padding:0 20px}
  .hero-section{grid-template-columns:1fr;padding-top:65px}.hero-copy{text-align:center}.hero-copy>p{margin-left:auto;margin-right:auto}.hero-actions,.trust-row{justify-content:center}
  .hero-preview{margin-top:20px}
  .feature-grid{grid-template-columns:repeat(2,1fr)}
  .auth-layout{grid-template-columns:1fr}.auth-brand-panel{display:none}.auth-card-wrap{min-height:100vh;padding:35px 22px}.mobile-auth-brand{display:flex}
  .dashboard-grid,.two-column-layout,.calendar-detail-layout,.billing-layout{grid-template-columns:1fr}.dashboard-grid .span-2{grid-column:auto}
  .prayer-focus{grid-template-columns:1fr auto}.countdown-wrap{grid-column:1/-1;justify-content:center}.server-clock{justify-content:flex-start}.next-prayer{text-align:right}
  .settings-layout{grid-template-columns:1fr}.settings-layout>.span-2{grid-column:auto}.integration-grid{grid-template-columns:1fr}.settings-save{grid-column:auto}
  .plan-admin-grid,.payment-grid{grid-template-columns:1fr}
  .guardian-prayer .prayer-focus{grid-template-columns:1fr auto}
}
@media (max-width:720px){
  :root{--topbar:60px;--radius:15px}
  body{font-size:14px}
  .topbar{padding:0 14px}.topbar-brand b{font-size:14px}.topbar-actions{gap:5px}.topbar .icon-button,.topbar .avatar-button{width:38px;height:38px}
  .page-content{padding:19px 14px calc(95px + env(safe-area-inset-bottom))}
  .page-heading{align-items:flex-start;margin-bottom:19px}.page-heading h1{font-size:27px}.page-heading>div>p{font-size:12px}.page-heading>.button{font-size:0;width:43px;padding:0}.page-heading>.button .icon{margin:0}.desktop-action{display:none!important}.heading-actions{width:100%;justify-content:flex-start;flex-wrap:wrap}.heading-actions .button{font-size:11px}
  .card,.form-card{padding:17px}
  .bottom-nav{position:fixed;z-index:100;left:0;right:0;bottom:0;height:72px;padding:7px 7px calc(7px + env(safe-area-inset-bottom));background:rgba(255,255,255,.96);backdrop-filter:blur(18px);border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(5,1fr);align-items:start;box-shadow:0 -8px 30px rgba(5,45,37,.08)}
  .bottom-nav>a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:#91a09b;font-size:9px;font-weight:650;min-height:51px}.bottom-nav>a .icon{width:22px;height:22px}.bottom-nav>a.active{color:var(--green-700)}.bottom-nav .nav-plus{position:relative}.bottom-nav .nav-plus>span{position:absolute;bottom:8px;width:58px;height:58px;border-radius:50%;background:linear-gradient(135deg,var(--green-800),var(--green-500));color:#fff;display:grid;place-items:center;border:5px solid #fff;box-shadow:0 8px 24px rgba(13,112,86,.3)}.bottom-nav .nav-plus .icon{width:26px;height:26px}
  .form-grid{grid-template-columns:1fr;gap:14px}.span-2{grid-column:auto}.form-actions{justify-content:stretch}.form-actions .button{flex:1}
  .filter-bar{align-items:stretch;flex-wrap:wrap}.filter-bar .search-box{flex-basis:100%}.filter-bar>select,.filter-bar>input{min-width:0;flex:1}.filter-bar>.button{min-width:95px}
  .stat-grid{grid-template-columns:1fr 1fr;gap:10px}.stat-card{padding:13px;gap:9px}.stat-icon{width:36px;height:36px}.stat-card b{font-size:18px}.stat-card span{font-size:8px}
  .prayer-hero{padding:20px 18px 16px;border-radius:23px}.prayer-topline{font-size:9px;align-items:flex-start}.prayer-topline>a{max-width:50%;text-align:right;justify-content:flex-end}.prayer-focus{gap:14px;margin:21px 0 17px}.server-clock span{min-width:56px;font-size:28px;padding:10px 8px;border-radius:13px}.server-clock i{font-size:22px}.next-prayer b{font-size:20px}.next-prayer span{font-size:10px}.countdown span{min-width:45px;font-size:19px}.prayer-bottom>div:first-child b{font-size:40px}.today-progress{width:58%}.today-progress>span b{font-size:30px}.prayer-mini-list{gap:9px 13px}.prayer-mini-list span{font-size:8px}
  .summary-grid{gap:9px}.summary-card{padding:13px}.summary-icon{width:34px;height:34px;margin-bottom:8px}.summary-card h3{font-size:13px}.summary-card p b{font-size:15px}.summary-card p{font-size:8px}.tiny-progress{margin-top:10px}
  .student-row{grid-template-columns:auto minmax(0,1fr) auto;padding:13px;gap:10px}.student-progress,.student-progress.optional{display:none}.student-main b{font-size:13px}
  .capacity-card{display:grid;gap:10px}.capacity-card>div:first-child{min-width:0}
  .student-profile-hero{padding:22px 17px;display:grid;justify-items:center;text-align:center}.hero-avatar{width:92px;height:92px}.student-profile-hero h1{font-size:25px}.profile-stat-grid{grid-template-columns:repeat(2,1fr);gap:9px}.profile-stat-grid article{padding:13px}.profile-stat-grid b{font-size:21px}
  .juz-map{grid-template-columns:repeat(5,1fr);gap:7px}.juz-cell{border-radius:10px}.juz-cell b{font-size:14px}.juz-cell small{font-size:6px}
  .setoran-summary{grid-template-columns:1fr 1fr;bottom:76px}.setoran-summary .button{grid-column:1/-1}.memorization-form{padding:17px}.form-page-head{margin-bottom:14px}.form-page-head h1{font-size:23px}
  .podium{min-height:240px}.podium-place h3{font-size:10px}.podium-place.rank-1 .student-avatar{width:67px;height:67px}.podium-place.rank-2 .student-avatar,.podium-place.rank-3 .student-avatar{width:57px;height:57px}.podium-block{height:65px}.rank-1 .podium-block{height:100px}.rank-2 .podium-block{height:72px}.rank-3 .podium-block{height:55px}
  .ranking-card{padding:7px 13px}.ranking-row{grid-template-columns:31px auto minmax(0,1fr) 68px auto;gap:8px}.ranking-metric.optional{display:none}.ranking-person b{font-size:11px}.ranking-metric b{font-size:11px}
  .calendar-hero{border-radius:18px 18px 0 0;padding:18px}.calendar-hero h1{font-size:23px}.calendar-card{border-radius:0 0 18px 18px;padding-bottom:12px}.calendar-toolbar{padding:14px 9px 9px}.calendar-toolbar h2{font-size:20px}.calendar-cell{min-height:72px}.calendar-cell b{font-size:17px}.calendar-cell>span:not(.hijri-day){font-size:7px}.hijri-day{top:4px;left:5px;font-size:6px}.calendar-weekdays span{font-size:9px;padding:8px 2px}.calendar-jump{margin-bottom:10px}
  .tenant-card-grid,.guardian-student-grid,.pricing-grid,.in-app-pricing{grid-template-columns:1fr}
  .profile-account-layout{grid-template-columns:1fr}.user-card{grid-template-columns:auto 1fr}.user-card-actions{grid-column:1/-1;width:100%;display:flex;justify-content:flex-end;flex-wrap:wrap}.account-item{grid-template-columns:auto 1fr}.account-item .inline-reset{grid-column:1/-1;justify-content:flex-end}.danger-zone{align-items:flex-start;flex-direction:column}
  .subscription-banner{align-items:flex-start;flex-direction:column}.subscription-limits{width:100%}.subscription-limits span{flex:1;min-width:0}.in-app-pricing{grid-template-columns:1fr}
  .guardian-student-grid{grid-template-columns:1fr}.guardian-metrics{grid-template-columns:1fr 1fr}.guardian-metrics span:last-child{grid-column:1/-1}
  .history-card{grid-template-columns:auto 1fr}.history-card>.icon-button{grid-column:2;justify-self:end}.notification-title{align-items:flex-start;flex-direction:column;gap:2px}
  .test-notification-card{align-items:flex-start;flex-direction:column}.test-notification-card .filter-bar{width:100%}
  .public-header{padding:0 16px;height:66px}.public-header nav>a:not(.button),.public-header nav .ghost{display:none}.public-header nav{gap:7px}.public-header .button{font-size:11px}.hero-section{padding:55px 18px 70px;gap:30px;min-height:0}.hero-copy h1{font-size:40px}.hero-copy>p{font-size:15px}.hero-actions{flex-direction:column}.trust-row{gap:8px 13px}.phone-shell{width:340px}.logo-strip{gap:15px 25px}.feature-section,.pricing-section{padding:75px 18px}.feature-grid{grid-template-columns:1fr}.cta-section{margin:50px 18px 70px;padding:32px 25px;border-radius:25px;flex-direction:column;align-items:flex-start}.cta-section h2{font-size:28px}.public-footer{margin:0 18px;padding-left:0;padding-right:0;flex-direction:column;align-items:flex-start;gap:20px}
}
@media (max-width:430px){
  .prayer-topline>span:first-child{max-width:48%}.server-clock span{min-width:49px;font-size:25px}.countdown span{min-width:39px;font-size:17px}.prayer-bottom>div:first-child b{font-size:34px}.today-progress>span b{font-size:25px}
  .summary-grid{grid-template-columns:1fr 1fr}.summary-card:last-child{grid-column:1/-1}
  .stat-grid{grid-template-columns:1fr}.stat-card{min-height:71px}
  .juz-map{grid-template-columns:repeat(4,1fr)}
  .calendar-cell{min-height:63px}.calendar-cell b{font-size:15px}
  .hero-copy h1{font-size:35px}
}
@media (min-width:721px){.bottom-nav{display:none}}
@media print{
  .sidebar,.topbar,.bottom-nav,.page-heading .heading-actions,.filter-card,.flash{display:none!important}.app-main{margin:0}.page-content{padding:0}.card{box-shadow:none}.report-table-card table{font-size:9px;min-width:0}.report-table-card th,.report-table-card td{padding:6px}.page-heading{display:block}
}
.pwa-install{position:fixed;right:20px;bottom:20px;z-index:150;border:0;border-radius:999px;background:var(--green-950);color:#fff;box-shadow:0 14px 35px rgba(5,45,37,.28);padding:12px 17px;display:flex;align-items:center;gap:8px;font-weight:800;font-size:12px}
.pwa-install .icon{width:18px;height:18px}
.is-disabled{opacity:.5}
@media(max-width:720px){.pwa-install{right:13px;bottom:86px;padding:10px 13px}.pwa-install span{font-size:10px}}
