/* SIMasjid UI v1.1 — visual alignment to owner-approved 2026 mockups */
:root{
 --sm-dark:#0F203D;--sm-navy:#10263f;--sm-green:#065F46;--sm-green-2:#0a7357;--sm-green-soft:#EAF7F1;
 --sm-gold:#D4A017;--sm-gold-soft:#FFF7DF;--sm-bg:#FAFAF8;--sm-surface:#FFFFFF;--sm-surface-soft:#F5F9F7;
 --sm-text:#10213a;--sm-muted:#64748B;--sm-border:#DDE8E4;--sm-danger:#D84A5A;--sm-warning:#D38A19;--sm-info:#2A6DB0;
 --sm-radius:18px;--sm-radius-lg:24px;--sm-shadow:0 10px 28px rgba(15,32,61,.07);--sm-shadow-sm:0 4px 16px rgba(15,32,61,.05)
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--sm-bg);color:var(--sm-text);font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}.public-body{padding-bottom:84px}a{text-decoration:none;color:inherit}img{max-width:100%}.sm-container{width:min(1180px,calc(100% - 28px));margin-inline:auto}

/* Brand / public header */
.sm-public-header{position:sticky;top:0;z-index:1010;background:rgba(250,250,248,.96);border-bottom:1px solid rgba(221,232,228,.85);backdrop-filter:blur(14px)}
.sm-public-header-inner{min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:18px}.sm-brand{display:flex;align-items:center;gap:10px;min-width:0}.sm-brand-mark{width:44px;height:44px;border-radius:14px;background:linear-gradient(155deg,#fff7df 0,#eef8f1 48%,#dff3ea 100%);border:1px solid #d7e9e1;display:grid;place-items:center;position:relative;color:var(--sm-green);font-size:21px;overflow:hidden;box-shadow:var(--sm-shadow-sm)}.sm-brand-mark:before{content:"";position:absolute;inset:6px;border:2px solid rgba(6,95,70,.16);border-radius:50% 50% 11px 11px}.sm-brand-mark i{position:relative;z-index:2}.sm-brand-mark.has-image{background:#fff}.sm-brand-mark.has-image:before{display:none}.sm-brand-mark img{width:100%;height:100%;object-fit:cover}.sm-minaret{position:absolute;width:3px;height:20px;background:var(--sm-gold);right:9px;bottom:7px;border-radius:4px;opacity:.9}.sm-brand-copy{display:flex;flex-direction:column;min-width:0}.sm-brand-copy strong{font-size:22px;line-height:1;color:#073c39;letter-spacing:-.035em}.sm-brand-copy small{font-size:10px;color:var(--sm-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:210px;margin-top:4px}.sm-header-actions{display:flex;gap:8px}.sm-header-icon{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;border:1px solid var(--sm-border);background:#fff;color:var(--sm-green);font-size:18px}.sm-desktop-nav{display:none;align-items:center;gap:4px;margin-left:auto}.sm-desktop-nav a{padding:9px 12px;border-radius:11px;color:#43536a;font-size:13px;font-weight:600}.sm-desktop-nav a:hover,.sm-desktop-nav a.active{background:var(--sm-green-soft);color:var(--sm-green)}
.sm-running{background:#F0F8F5;color:#315448;border-bottom:1px solid #e0ece7;font-size:12px}.sm-running .sm-container{min-height:34px;display:flex;align-items:center;gap:8px}.sm-running i{color:var(--sm-gold)}

/* Hero */
.sm-hero{margin:16px auto 8px;border-radius:var(--sm-radius-lg);padding:20px;background:linear-gradient(135deg,#0a5b48 0%,#08705a 50%,#0d3b47 100%);color:#fff;box-shadow:var(--sm-shadow);position:relative;overflow:hidden;min-height:180px}.sm-hero:before{content:"";position:absolute;right:-45px;bottom:-48px;width:190px;height:190px;border-radius:50% 50% 0 0;background:radial-gradient(circle at 50% 30%,rgba(255,255,255,.26),rgba(255,255,255,.04) 56%,transparent 57%);border:1px solid rgba(255,255,255,.12)}.sm-hero:after{content:"";position:absolute;inset:0;background-image:linear-gradient(45deg,rgba(255,255,255,.025) 25%,transparent 25%),linear-gradient(-45deg,rgba(255,255,255,.025) 25%,transparent 25%);background-size:24px 24px;pointer-events:none}.sm-hero>*{position:relative;z-index:2}.sm-kicker{font-size:11px;text-transform:uppercase;letter-spacing:.1em;font-weight:800;color:#d2f3e7}.sm-hero h1{font-size:26px;font-weight:800;letter-spacing:-.035em;margin:6px 0 4px}.sm-clock{font-size:36px;font-weight:800;letter-spacing:-.04em}.sm-hero-sub{font-size:13px;opacity:.86;max-width:520px}.sm-hero .sm-hero-meta{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.sm-hero-pill{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border-radius:999px;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.16);font-size:11px}.sm-hero-prayer{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:end;margin-top:16px}.sm-next-prayer strong{display:block;font-size:29px;line-height:1.1}.sm-next-prayer small{opacity:.8}.sm-countdown{background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.16);border-radius:15px;padding:9px 12px;text-align:center}.sm-countdown small{display:block;font-size:9px;text-transform:uppercase;letter-spacing:.08em}.sm-countdown strong{font-size:17px}

/* Sections and cards */
.sm-section{padding:11px 0 4px}.sm-section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:9px 0 11px}.sm-section-head h2{font-size:17px;font-weight:800;letter-spacing:-.02em;margin:0;color:#13233d}.sm-section-head p{margin:2px 0 0;font-size:12px;color:var(--sm-muted)}.sm-link{color:var(--sm-green);font-weight:700;font-size:11px}.sm-link:hover{color:#044c38}.sm-grid{display:grid;gap:12px}.sm-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm-card{background:#fff;border:1px solid var(--sm-border);border-radius:var(--sm-radius);padding:14px;box-shadow:var(--sm-shadow-sm);transition:.18s ease}.sm-card:hover{border-color:#c8ded5;box-shadow:0 8px 22px rgba(15,32,61,.08)}.sm-card h3,.sm-card h4{color:#15243d}.sm-muted{color:var(--sm-muted)}.sm-stat{font-size:21px;font-weight:800;letter-spacing:-.03em;color:#12223b}.sm-price{font-size:16px;font-weight:800;color:#10213a}.sm-badge{display:inline-flex;align-items:center;border-radius:999px;padding:4px 8px;font-size:10px;font-weight:700;background:var(--sm-green-soft);color:var(--sm-green);border:1px solid #d7ede4}.sm-badge.warn{background:#FFF5E6;color:#B9680C;border-color:#F7DFC0}.sm-badge.gray{background:#F1F5F4;color:#64748B;border-color:#e2e8e5}.sm-badge.blue{background:#EEF5FE;color:#2362A1;border-color:#d9e8f9}.sm-badge.danger{background:#fff0f2;color:#b93748;border-color:#f5d7dc}.progress{background:#EDF3F1}.progress-bar{background:linear-gradient(90deg,var(--sm-green),#18a777)!important}.sm-empty{padding:36px 22px;text-align:center;color:var(--sm-muted);background:#fff;border:1px dashed #cbded6;border-radius:20px}.sm-empty:before{content:"\F47A";font-family:"bootstrap-icons";display:grid;place-items:center;width:58px;height:58px;border-radius:20px;background:var(--sm-green-soft);color:var(--sm-green);font-size:25px;margin:0 auto 12px}.sm-alert{border-radius:14px;border-width:1px}

/* Quick menu */
.sm-quick{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.sm-quick a{background:#F6FAF8;border:1px solid #E0ECE7;border-radius:15px;min-height:82px;padding:9px 4px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#24344b;font-size:10.5px;font-weight:600;gap:6px}.sm-quick a:hover{background:#eef8f3;border-color:#cfe4da;color:var(--sm-green)}.sm-icon{width:36px;height:36px;border-radius:12px;background:#E7F5EF;color:var(--sm-green);display:grid;place-items:center;font-size:17px;font-weight:800}

/* Prayer cards */
.sm-prayer-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.sm-prayer-item{padding:10px 4px;border-radius:13px;text-align:center;background:#fff;border:1px solid var(--sm-border)}.sm-prayer-item i{display:block;color:var(--sm-green);font-size:16px;margin-bottom:3px}.sm-prayer-item span{display:block;font-size:9px;color:var(--sm-muted)}.sm-prayer-item strong{display:block;font-size:12px;margin-top:2px}.sm-prayer-item.active{background:var(--sm-green);border-color:var(--sm-green);color:#fff;box-shadow:0 7px 18px rgba(6,95,70,.18)}.sm-prayer-item.active i,.sm-prayer-item.active span{color:#fff}

/* Stats */
.sm-summary-card{display:flex;align-items:center;gap:11px}.sm-summary-icon{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:var(--sm-green-soft);color:var(--sm-green);font-size:19px;flex:0 0 auto}.sm-summary-icon.gold{background:var(--sm-gold-soft);color:#B67A00}.sm-summary-icon.red{background:#fff0f2;color:#c43b4f}.sm-summary-card small{font-size:10px;color:var(--sm-muted)}.sm-summary-card strong{font-size:15px;display:block}

/* Products / media */
.sm-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sm-product-img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:13px;background:linear-gradient(135deg,#edf5f1,#f7f2e5)}.sm-product-card{padding:8px;overflow:hidden}.sm-product-card .sm-product-copy{padding:3px 2px 2px}.sm-product-card h3{font-size:13px!important;line-height:1.3;min-height:34px;margin-bottom:3px}.sm-product-card .sm-muted{font-size:10px}.sm-product-card .sm-price{font-size:14px}.sm-media-thumb{width:84px;height:64px;border-radius:12px;object-fit:cover;background:#eef4f1;flex:0 0 auto}.sm-list-card{display:flex;gap:12px;align-items:flex-start}.sm-list-card-body{min-width:0;flex:1}.sm-list-card h3{font-size:14px;margin:0 0 5px}

/* Buttons/forms */
.sm-form label{font-weight:700;font-size:12px;margin-bottom:6px;color:#25354d}.sm-form .form-control,.sm-form .form-select,.form-control,.form-select{border-radius:12px;min-height:45px;border:1px solid #D8E5E0;background-color:#fff;color:#1e2c42;font-size:13px}.form-control:focus,.form-select:focus{border-color:#74b6a0;box-shadow:0 0 0 .2rem rgba(6,95,70,.09)}textarea.form-control{min-height:96px}.btn-sm-primary{background:linear-gradient(135deg,#067057,#065F46);border:0;color:#fff;border-radius:12px;min-height:44px;font-weight:700;font-size:13px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding-inline:16px;box-shadow:0 5px 15px rgba(6,95,70,.18)}.btn-sm-primary:hover{background:#054d3a;color:#fff}.btn-sm-dark{background:var(--sm-dark);color:#fff;border-radius:12px}.btn-outline-secondary,.btn-outline-primary,.btn-outline-success,.btn-outline-danger{border-radius:11px;font-size:12px;font-weight:600}.input-group .form-control{min-height:44px}.sm-searchbar{position:relative}.sm-searchbar .form-control{padding-left:40px}.sm-searchbar i{position:absolute;left:14px;top:50%;transform:translateY(-50%);z-index:3;color:#708196}

/* Tables */
.sm-table-wrap{overflow-x:auto;border-radius:14px;border:1px solid var(--sm-border);background:#fff}.table{margin-bottom:0}.table th{white-space:nowrap;background:#F6F9F8;font-size:10px;text-transform:none;letter-spacing:.01em;color:#5d6c7e;font-weight:700;border-bottom-color:#dde8e4}.table td{vertical-align:middle;font-size:12px;color:#2d3c51;border-color:#edf2f0}.table-hover>tbody>tr:hover>*{background:#fbfdfc}.pagination .page-link{color:var(--sm-green);border-color:#dde8e4}.pagination .page-item.active .page-link{background:var(--sm-green);border-color:var(--sm-green)}

/* Public footer and bottom nav */
.sm-public-footer{display:none;border-top:1px solid var(--sm-border);margin-top:38px;padding:22px 0;background:#f5f9f7}.sm-public-footer .sm-container{display:flex;justify-content:space-between;align-items:center;gap:20px}.sm-public-footer strong{color:var(--sm-green);margin-right:8px}.sm-public-footer span,.sm-public-footer small{color:var(--sm-muted);font-size:12px}.sm-bottom{position:fixed;z-index:1000;bottom:0;left:0;right:0;background:rgba(255,255,255,.98);border-top:1px solid var(--sm-border);display:grid;grid-template-columns:repeat(5,1fr);padding:7px max(8px,env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom));box-shadow:0 -7px 24px rgba(15,32,61,.08);backdrop-filter:blur(15px)}.sm-bottom a{min-height:54px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:#6b7b8e;font-size:9.5px;font-weight:500}.sm-bottom a.active{color:var(--sm-green);font-weight:700}.sm-bottom .ico{font-size:19px;line-height:1}

/* Auth */
.auth-body{min-height:100vh;background:linear-gradient(180deg,#f8fbf9,#fafaf8)}.auth-shell{width:min(940px,calc(100% - 28px));margin:24px auto;min-height:calc(100vh - 48px);display:grid;align-items:stretch}.auth-visual{display:none;position:relative;overflow:hidden;border-radius:26px 0 0 26px;background:linear-gradient(155deg,#0a6a53,#0d3e4c);color:#fff;padding:38px}.auth-visual:after{content:"";position:absolute;right:-80px;bottom:-80px;width:280px;height:280px;border-radius:50% 50% 0 0;border:28px solid rgba(255,255,255,.08)}.auth-visual .auth-quote{position:absolute;left:38px;right:38px;bottom:42px;z-index:2;font-size:14px;line-height:1.6;font-style:italic}.auth-visual .auth-brand{display:flex;align-items:center;gap:12px;position:relative;z-index:2}.auth-card{background:#fff;border:1px solid var(--sm-border);border-radius:24px;padding:26px;box-shadow:var(--sm-shadow);align-self:center}.auth-title{font-size:25px;font-weight:800;letter-spacing:-.035em}.auth-sub{color:var(--sm-muted);font-size:13px}.auth-divider{display:flex;align-items:center;gap:10px;color:#98a3af;font-size:11px;margin:17px 0}.auth-divider:before,.auth-divider:after{content:"";height:1px;background:#e7ecea;flex:1}

/* Admin shell */
.admin-body{background:#F4F8F6;padding:0;color:var(--sm-text)}.admin-shell{min-height:100vh}.admin-side{position:fixed;inset:0 auto 0 0;width:258px;background:#fff;border-right:1px solid #DDE8E4;padding:16px 13px;overflow-y:auto;z-index:1200;transform:translateX(-101%);transition:transform .22s ease;box-shadow:12px 0 30px rgba(15,32,61,.08)}.admin-side.open{transform:translateX(0)}.admin-overlay{position:fixed;inset:0;background:rgba(15,32,61,.3);z-index:1190;opacity:0;visibility:hidden;transition:.2s}.admin-overlay.open{opacity:1;visibility:visible}.admin-brand-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:13px}.admin-brand{display:flex;align-items:center;gap:9px}.admin-brand .sm-brand-mark{width:39px;height:39px;border-radius:12px}.admin-brand strong{display:block;color:#073c39;font-size:18px;line-height:1}.admin-brand small{display:block;color:#7a8796;font-size:9px;margin-top:3px}.admin-side-close{display:grid;width:34px;height:34px;border-radius:10px;place-items:center;border:1px solid #e0e8e5;background:#fff;color:#667788}.admin-user-card{display:flex;align-items:center;gap:10px;padding:10px;border-radius:14px;background:#F4F9F7;border:1px solid #e1ece8;margin-bottom:14px}.admin-user-card strong{display:block;font-size:12px}.admin-user-card small{display:block;font-size:9px;color:#738195}.admin-avatar{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#D8EFE6,#FFF1C8);color:var(--sm-green);font-weight:800;border:1px solid #d8e6e1;flex:0 0 auto}.admin-avatar.small{width:34px;height:34px;font-size:12px}.admin-nav-group{margin:13px 0}.admin-nav-label{font-size:8.5px;font-weight:800;letter-spacing:.1em;color:#a0abb5;padding:0 9px 5px}.admin-nav-link{display:flex;align-items:center;gap:10px;min-height:38px;padding:7px 10px;border-radius:10px;color:#576779;font-size:11px;font-weight:600;margin:1px 0}.admin-nav-link i{font-size:15px;width:19px;text-align:center;color:#7c8996}.admin-nav-link:hover{background:#f2f8f5;color:var(--sm-green)}.admin-nav-link.active{background:linear-gradient(90deg,#E5F5EF,#f5faf8);color:var(--sm-green);font-weight:700}.admin-nav-link.active i{color:var(--sm-green)}.admin-side-bottom{border-top:1px solid #e7eeeb;padding-top:10px}.admin-main{min-width:0;padding:14px 14px 92px}.admin-top{display:flex;justify-content:space-between;align-items:center;gap:12px;background:#fff;border:1px solid #e1eae7;border-radius:16px;padding:10px 12px;margin-bottom:14px;box-shadow:var(--sm-shadow-sm)}.admin-top-left{display:flex;align-items:center;gap:10px;min-width:0}.admin-mobile-menu{width:38px;height:38px;border-radius:11px;border:1px solid #dde7e3;background:#fff;color:var(--sm-green);display:grid;place-items:center;font-size:20px}.admin-breadcrumb{font-size:8.5px;color:#96a2ae;text-transform:uppercase;letter-spacing:.06em}.admin-title{font-size:17px;font-weight:800;letter-spacing:-.025em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:190px}.admin-top-actions{display:flex;align-items:center;gap:8px}.admin-role-chip{display:none;border-radius:999px;padding:6px 9px;background:#eff7f4;color:#0a674f;font-size:9px;font-weight:700}.admin-mobile-bottom{position:fixed;left:0;right:0;bottom:0;z-index:1100;background:#fff;border-top:1px solid #dde8e4;display:grid;grid-template-columns:repeat(5,1fr);padding:7px 4px calc(7px + env(safe-area-inset-bottom));box-shadow:0 -8px 22px rgba(15,32,61,.08)}.admin-mobile-bottom a{display:flex;min-height:48px;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:#748293;font-size:8.5px}.admin-mobile-bottom i{font-size:17px}.admin-mobile-bottom a:hover{color:var(--sm-green)}

/* Admin dashboard */
.admin-welcome{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin:3px 0 14px}.admin-welcome h1{font-size:20px;font-weight:800;letter-spacing:-.035em;margin:0 0 4px}.admin-welcome p{font-size:11px;color:var(--sm-muted);margin:0}.admin-stat-card{padding:13px;display:flex;align-items:center;gap:11px}.admin-stat-card .admin-stat-icon{width:40px;height:40px;border-radius:13px;display:grid;place-items:center;background:#E8F5F0;color:var(--sm-green);font-size:17px}.admin-stat-card.gold .admin-stat-icon{background:#FFF5DD;color:#BA7B00}.admin-stat-card.blue .admin-stat-icon{background:#edf4fd;color:#2d6ca7}.admin-stat-card.purple .admin-stat-icon{background:#f4effc;color:#7650ad}.admin-stat-card small{display:block;color:#758294;font-size:9px}.admin-stat-card strong{display:block;font-size:16px;letter-spacing:-.025em}.admin-card-title{font-size:14px;font-weight:800;margin:0 0 10px}.admin-action-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.admin-action-grid a{display:flex;align-items:center;gap:9px;padding:10px;border-radius:12px;background:#f6faf8;border:1px solid #e2ece8;font-size:10px;font-weight:700;color:#42536a}.admin-action-grid a i{width:30px;height:30px;border-radius:10px;display:grid;place-items:center;background:#e6f4ee;color:var(--sm-green);font-size:14px}

@media(min-width:600px){.sm-product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.sm-grid-sm-3{grid-template-columns:repeat(3,1fr)}}
@media(min-width:768px){.public-body{padding-bottom:0}.sm-desktop-nav{display:flex}.sm-header-actions .sm-header-icon:first-child{display:none}.sm-grid-md-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm-grid-md-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm-grid-md-4{grid-template-columns:repeat(4,minmax(0,1fr))}.sm-quick{grid-template-columns:repeat(8,minmax(0,1fr))}.sm-bottom{display:none}.sm-public-footer{display:block}.sm-hero{padding:28px;min-height:210px}.sm-hero h1{font-size:34px}.sm-product-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.auth-shell{grid-template-columns:1.05fr .95fr;margin:38px auto;min-height:600px}.auth-visual{display:block}.auth-card{border-radius:0 26px 26px 0;padding:42px 46px;align-self:stretch;display:flex;flex-direction:column;justify-content:center}.admin-side{transform:none;box-shadow:none}.admin-side-close{display:none}.admin-overlay{display:none}.admin-main{margin-left:258px;padding:18px 20px 32px}.admin-top{position:sticky;top:10px;z-index:900;padding:10px 14px}.admin-mobile-menu{display:none}.admin-title{max-width:520px;font-size:18px}.admin-role-chip{display:inline-flex}.admin-mobile-bottom{display:none}}
@media(min-width:1024px){.sm-container{width:min(1180px,calc(100% - 48px))}.sm-public-header-inner{min-height:82px}.sm-brand-copy strong{font-size:25px}.sm-header-actions{margin-left:4px}.sm-hero{padding:34px}.sm-hero h1{font-size:38px}.sm-section-head h2{font-size:19px}.admin-main{padding:20px 28px 38px}.admin-top{border-radius:15px}.admin-title{font-size:20px}.admin-stat-card strong{font-size:19px}}
@media(max-width:767px){.sm-container{width:min(100% - 24px,560px)}.sm-public-header-inner{min-height:64px}.sm-brand-mark{width:40px;height:40px;border-radius:13px}.sm-brand-copy strong{font-size:18px}.sm-brand-copy small{max-width:175px;font-size:9px}.sm-header-icon{width:34px;height:34px}.sm-hero{margin-top:12px}.sm-grid-2>.sm-card .sm-stat{font-size:17px}.sm-table-wrap{border-radius:13px}.admin-body{padding-bottom:70px}}
@media(max-width:389px){.sm-container{width:calc(100% - 20px)}.sm-quick{gap:7px}.sm-quick a{font-size:9.5px;min-height:76px}.sm-prayer-strip{gap:5px}.sm-prayer-item{padding-inline:2px}.sm-brand-copy small{max-width:138px}.admin-main{padding-inline:10px}.admin-title{max-width:145px}}
/* Page-specific patterns */
.sm-page-intro{padding:18px 0 8px}.sm-page-intro h1{font-size:23px;font-weight:800;letter-spacing:-.035em;margin:0 0 5px}.sm-page-intro p{margin:0;color:var(--sm-muted);font-size:12px;line-height:1.55}.sm-page-intro .sm-page-icon{width:44px;height:44px;border-radius:14px;background:var(--sm-green-soft);color:var(--sm-green);display:grid;place-items:center;font-size:20px}.sm-chip-row{display:flex;gap:7px;overflow-x:auto;padding:2px 1px 6px;scrollbar-width:none}.sm-chip-row::-webkit-scrollbar{display:none}.sm-chip{white-space:nowrap;border:1px solid #dbe8e3;background:#fff;color:#617082;border-radius:999px;padding:7px 12px;font-size:10px;font-weight:600}.sm-chip.active,.sm-chip:hover{background:var(--sm-green);border-color:var(--sm-green);color:#fff}.sm-detail-hero{border-radius:22px;overflow:hidden;background:#edf5f1;border:1px solid var(--sm-border)}.sm-detail-hero img{width:100%;aspect-ratio:16/10;object-fit:cover;display:block}.sm-info-row{display:flex;align-items:flex-start;gap:10px;padding:10px 0;border-bottom:1px solid #edf1ef}.sm-info-row:last-child{border-bottom:0}.sm-info-row>i{width:28px;height:28px;border-radius:9px;display:grid;place-items:center;background:var(--sm-green-soft);color:var(--sm-green);font-size:13px;flex:0 0 auto}.sm-info-row small{display:block;color:var(--sm-muted);font-size:9px}.sm-info-row strong{display:block;font-size:12px;margin-top:1px}.sm-sticky-cta{position:sticky;bottom:78px;z-index:40;padding-top:10px}.sm-seller-card{display:flex;align-items:center;gap:11px}.sm-seller-logo{width:48px;height:48px;border-radius:15px;object-fit:cover;background:var(--sm-green-soft);border:1px solid var(--sm-border);display:grid;place-items:center;color:var(--sm-green);font-size:20px;flex:0 0 auto}.sm-job-card{display:flex;gap:12px;align-items:flex-start}.sm-job-logo{width:44px;height:44px;border-radius:13px;background:#f2f7f5;border:1px solid #dfe9e5;display:grid;place-items:center;color:var(--sm-green);font-size:18px;flex:0 0 auto;overflow:hidden}.sm-job-logo img{width:100%;height:100%;object-fit:cover}.sm-job-meta{display:flex;gap:5px;flex-wrap:wrap;margin-top:7px}.sm-job-meta span{font-size:9px;color:#66778a;background:#f5f8f7;border-radius:6px;padding:3px 6px;border:1px solid #e4ece9}.sm-amount-positive{color:#11845f}.sm-amount-negative{color:#d64b5c}.sm-transaction-list{display:grid;gap:8px}.sm-transaction-item{display:flex;align-items:center;gap:10px;padding:11px;background:#fff;border:1px solid var(--sm-border);border-radius:14px}.sm-transaction-item .sm-summary-icon{width:34px;height:34px;border-radius:11px;font-size:14px}.sm-menu-group{margin-bottom:18px}.sm-menu-group-title{font-size:13px;font-weight:800;margin:0 0 8px;color:#23344c}.sm-menu-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.sm-menu-item{min-height:78px;border-radius:14px;background:#f5f9f7;border:1px solid #e1ece7;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;padding:8px 4px;font-size:9.5px;font-weight:600;color:#405169}.sm-menu-item i{font-size:19px;color:var(--sm-green)}.sm-menu-item:hover{background:#eaf6f0;color:var(--sm-green)}
@media(min-width:768px){.sm-page-intro h1{font-size:28px}.sm-sticky-cta{position:static}.sm-menu-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.sm-detail-hero img{aspect-ratio:16/9}}
.arabic-text{font-family:"Amiri","Noto Naskh Arabic",serif;font-size:26px;line-height:2.05;text-align:right;direction:rtl}.sm-spiritual-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.sm-spiritual-nav a{min-height:70px;border-radius:14px;border:1px solid #e0ebe7;background:#f7faf8;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;color:#506175;font-size:9px;font-weight:700;text-align:center;padding:7px}.sm-spiritual-nav a i{font-size:19px;color:var(--sm-green)}.sm-spiritual-nav a.active{background:var(--sm-green);color:#fff;border-color:var(--sm-green)}.sm-spiritual-nav a.active i{color:#fff}
.min-w-0{min-width:0}
.sm-home-hero .sm-hero-photo{position:absolute;z-index:1;right:0;top:0;width:48%;height:100%;object-fit:cover;opacity:.42;mask-image:linear-gradient(90deg,transparent 0,#000 48%);-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 48%)}.sm-home-hero .sm-hero-sub,.sm-home-hero .sm-next-prayer{max-width:62%}@media(min-width:768px){.sm-home-hero .sm-hero-photo{width:44%;opacity:.5}.sm-home-hero .sm-hero-sub,.sm-home-hero .sm-next-prayer{max-width:58%}}

/* =========================================================
   SIMasjid UI v1.2 — precision pass based on owner mockups
   ========================================================= */
:root{--sm-bg:#fbfcfa;--sm-border:#dce8e3;--sm-shadow:0 10px 30px rgba(15,32,61,.075);--sm-shadow-sm:0 4px 16px rgba(15,32,61,.055)}
.public-body{background:
 radial-gradient(circle at 8% 8%,rgba(6,95,70,.028),transparent 17rem),
 linear-gradient(#fbfcfa,#fbfcfa)}
.sm-container{width:min(1240px,calc(100% - 32px))}
.sm-public-header{background:rgba(255,255,253,.975);box-shadow:0 1px 0 rgba(6,95,70,.04)}
.sm-public-header-inner{min-height:78px}
.sm-brand{gap:11px}.sm-brand-mark.sm-app-mark{border:0;background:transparent;box-shadow:none;border-radius:0;width:48px;height:48px;padding:0;overflow:visible}.sm-brand-mark.sm-app-mark:before{display:none}.sm-brand-mark.sm-app-mark img{object-fit:contain}
.sm-brand-copy strong{font-size:25px;font-weight:800;color:#073c39}.sm-brand-copy small{font-size:10.5px;max-width:250px}
.sm-header-tagline{display:none;flex-direction:column;line-height:1.15;margin-left:18px;margin-right:auto}.sm-header-tagline strong{font-size:15px;color:#123b3a;letter-spacing:-.02em}.sm-header-tagline small{font-size:9.5px;color:#697b87;margin-top:5px}
.sm-desktop-nav{gap:3px}.sm-desktop-nav a{font-size:12.5px;padding:9px 11px}.sm-header-icon{border-radius:13px}
.sm-running{background:#edf7f3;font-size:11.5px}.sm-running .sm-container{min-height:36px}

.sm-home-hero{min-height:270px;padding:27px 30px 24px;background:linear-gradient(105deg,#075f49 0%,#08755a 45%,#0f3a45 100%);display:flex;flex-direction:column;justify-content:flex-end}
.sm-home-hero:before{right:auto;left:-90px;bottom:-105px;width:330px;height:330px;opacity:.5}.sm-home-hero:after{background-size:18px 18px;opacity:.55}
.sm-home-hero .sm-hero-photo{right:0;left:auto;width:48%;opacity:.8;mask-image:linear-gradient(90deg,transparent 0,#000 35%);-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 35%);filter:saturate(.9) contrast(.98)}
.sm-home-hero .sm-hero-photo.is-fallback{width:50%;opacity:.74;object-fit:cover;object-position:center;filter:saturate(.82) contrast(.98)}
.sm-hero-brandline{position:absolute!important;top:17px;left:24px;right:24px;display:flex;justify-content:space-between;gap:12px;color:#e7f6ef;font-size:9px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}.sm-hero-brandline i{margin-right:5px;color:#f1c84d}
.sm-kicker{font-size:10px}.sm-home-hero h1{font-size:33px;max-width:54%;margin-top:7px}.sm-home-hero .sm-hero-sub{font-size:12.5px;line-height:1.55;max-width:53%;opacity:.94}.sm-home-hero .sm-hero-prayer{max-width:55%;grid-template-columns:1fr auto;align-items:end;margin-top:15px}.sm-home-hero .sm-next-prayer{max-width:none}.sm-next-prayer small{font-size:10.5px}.sm-next-prayer strong{font-size:26px}.sm-next-prayer span{font-size:10.5px}.sm-countdown{min-width:116px;padding:10px 12px}.sm-countdown strong{font-size:17px}

.sm-section{padding:14px 0 5px}.sm-section-head{margin:8px 0 12px}.sm-section-head h2{font-size:18px}.sm-section-head p{font-size:11.5px}.sm-link{font-size:10.5px}
.sm-card{border-radius:17px;padding:14px;box-shadow:0 4px 18px rgba(15,32,61,.045)}
.sm-quick{gap:8px}.sm-quick a{min-height:86px;border-radius:14px;font-size:10.5px;background:linear-gradient(180deg,#f9fcfa,#f3f8f6)}.sm-icon{width:37px;height:37px;border-radius:12px;font-size:17px}
.sm-summary-card{min-height:76px}.sm-summary-card small{font-size:9.5px}.sm-summary-card strong{font-size:16px}.sm-summary-icon{width:43px;height:43px}
.sm-prayer-item{min-height:72px;display:flex;flex-direction:column;justify-content:center}.sm-prayer-item span{font-size:9.5px}.sm-prayer-item strong{font-size:13px}
.sm-product-grid{align-items:start}.sm-product-card{max-width:none}.sm-product-card h3{font-size:13.5px!important;min-height:auto}.sm-product-card .sm-muted{font-size:10.5px}.sm-product-card .sm-price{font-size:14.5px}.sm-product-img{border-radius:14px}
.sm-list-card h3{font-size:13.5px}.sm-media-thumb{width:78px;height:68px}
.sm-public-footer{margin-top:48px;background:linear-gradient(180deg,#f4f8f6,#eef5f2);padding:27px 0}.sm-public-footer strong{font-size:15px}.sm-public-footer span,.sm-public-footer small{font-size:10px}

/* Make sparse homepage sections look intentional on wide screens */
@media(min-width:768px){
  .sm-product-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .sm-product-grid>.sm-product-card:only-child{max-width:230px}
  .sm-grid-md-2{gap:16px}
}
@media(min-width:1024px){
  .sm-container{width:min(1240px,calc(100% - 64px))}
  .sm-public-header-inner{min-height:88px}
  .sm-header-tagline{display:flex}
  .sm-brand-copy strong{font-size:27px}.sm-brand-copy small{font-size:10.5px}
  .sm-home-hero{min-height:310px;padding:38px 42px 30px;border-radius:26px;margin-top:20px}
  .sm-home-hero h1{font-size:43px}.sm-home-hero .sm-hero-sub{font-size:14px;max-width:50%}.sm-home-hero .sm-hero-prayer{max-width:52%}
  .sm-hero-brandline{top:22px;left:40px;right:40px;font-size:10px}
  .sm-next-prayer strong{font-size:31px}.sm-countdown{min-width:136px}.sm-countdown strong{font-size:20px}
  .sm-section{padding-top:17px}.sm-section-head h2{font-size:20px}.sm-section-head p{font-size:12.5px}
  .sm-quick{grid-template-columns:repeat(8,minmax(0,1fr));gap:10px}.sm-quick a{min-height:95px;font-size:11.5px}.sm-icon{width:41px;height:41px;font-size:18px}
  .sm-summary-card{min-height:86px}.sm-summary-card strong{font-size:18px}.sm-summary-card small{font-size:10.5px}
  .sm-product-card h3{font-size:14.5px!important}.sm-product-card .sm-muted{font-size:11px}.sm-product-card .sm-price{font-size:15px}
  .sm-list-card h3{font-size:14.5px}
}
@media(max-width:767px){
  .sm-public-header{position:sticky}.sm-header-tagline{display:none}.sm-container{width:min(100% - 20px,560px)}
  .sm-brand-mark.sm-app-mark{width:42px;height:42px}.sm-brand-copy strong{font-size:19px}.sm-brand-copy small{font-size:8.8px;max-width:178px}
  .sm-header-actions .sm-header-icon:first-child{display:none}
  .sm-home-hero{min-height:235px;padding:24px 18px 18px;border-radius:20px;margin-top:10px}
  .sm-home-hero .sm-hero-photo{width:58%;opacity:.68;mask-image:linear-gradient(90deg,transparent 0,#000 46%);-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 46%)}
  .sm-home-hero .sm-hero-photo.is-fallback{width:64%;opacity:.6}
  .sm-hero-brandline{top:13px;left:17px;right:17px;font-size:8px}.sm-kicker{font-size:9px}.sm-home-hero h1{font-size:27px;max-width:66%}.sm-home-hero .sm-hero-sub{font-size:10.5px;max-width:69%}.sm-home-hero .sm-hero-prayer{max-width:100%;margin-top:12px;grid-template-columns:1fr auto}.sm-next-prayer small{font-size:9px}.sm-next-prayer strong{font-size:23px}.sm-next-prayer span{font-size:9.5px}.sm-countdown{min-width:99px;padding:8px}.sm-countdown small{font-size:7px}.sm-countdown strong{font-size:15px}
  .sm-section{padding-top:11px}.sm-section-head h2{font-size:15.5px}.sm-section-head p{font-size:10px}.sm-link{font-size:9.5px}
  .sm-quick{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.sm-quick a{min-height:78px;font-size:9.5px}.sm-icon{width:34px;height:34px;font-size:15px}
  .sm-card{padding:12px;border-radius:15px}.sm-summary-card{min-height:68px}.sm-summary-icon{width:38px;height:38px}.sm-summary-card strong{font-size:13px}.sm-summary-card small{font-size:8.5px}
  .sm-product-card{padding:7px}.sm-product-card h3{font-size:11.5px!important}.sm-product-card .sm-muted{font-size:9px}.sm-product-card .sm-price{font-size:12.5px}.sm-badge{font-size:8px;padding:3px 6px}
  .sm-list-card h3{font-size:12px}.sm-media-thumb{width:68px;height:58px}.sm-public-footer{display:none}
}

/* =========================================================
   SIMasjid UI v1.3 — replaceable public header photography
   ========================================================= */
.sm-public-header{overflow:hidden}
.sm-public-header-inner{position:relative;z-index:3}
.sm-public-header-photo{display:none;position:absolute;z-index:1;top:0;right:0;bottom:0;width:min(34vw,470px);pointer-events:none;overflow:hidden}
.sm-public-header-photo:before{content:"";position:absolute;z-index:2;inset:0;background:linear-gradient(90deg,#fff 0%,rgba(255,255,253,.78) 22%,rgba(255,255,253,.18) 66%,rgba(255,255,253,.08) 100%)}
.sm-public-header-photo img{width:100%;height:100%;object-fit:cover;object-position:center;display:block;filter:saturate(.9) contrast(.96)}
.admin-image-setting{height:100%;padding:14px;border:1px solid var(--sm-border);border-radius:18px;background:#fbfdfc}
.admin-image-preview{height:190px;border-radius:15px;overflow:hidden;border:1px solid #dce8e3;background:linear-gradient(145deg,#f1f7f4,#e8f2ee);position:relative}
.admin-image-preview img{width:100%;height:100%;object-fit:cover;display:block}
.admin-image-preview.header-preview{height:150px}
.admin-image-preview .fallback-preview{object-fit:cover;opacity:.78}
.admin-image-empty{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;color:#71827f;font-size:12px;font-weight:600}
.admin-image-empty i{font-size:28px;color:var(--sm-green)}
.admin-save-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;position:sticky;bottom:14px;z-index:40;padding:12px;border:1px solid rgba(220,232,227,.95);border-radius:16px;background:rgba(255,255,255,.92);backdrop-filter:blur(12px);box-shadow:0 10px 28px rgba(15,32,61,.09)}
@media(min-width:1024px){
  .sm-public-header.has-photo .sm-public-header-photo{display:block}
  .sm-public-header.has-photo .sm-desktop-nav a{background:rgba(255,255,255,.72);backdrop-filter:blur(3px)}
  .sm-public-header.has-photo .sm-desktop-nav a.active{background:rgba(231,246,239,.92)}
  .sm-public-header.has-photo .sm-header-icon{background:rgba(255,255,255,.86)}
}

/* =========================================================
   SIMasjid UI v1.4 — shared-hosting-safe branding assets
   ========================================================= */
.admin-image-preview.logo-preview{background:#fff;display:flex;align-items:center;justify-content:center}
.admin-image-preview.logo-preview img{object-fit:contain;padding:24px;background:#fff}
.sm-public-header-photo.is-fallback img{object-fit:cover;object-position:center 46%;filter:saturate(.72) contrast(.96);opacity:.9}

/* =========================================================
   SIMasjid UI v1.5 — Quran Audio Player
   ========================================================= */
.sm-quran-welcome{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:18px;background:linear-gradient(120deg,#075f49,#0a7660 60%,#0f3f49);border-radius:22px;padding:22px 24px;color:#fff;box-shadow:0 10px 30px rgba(6,95,70,.14)}
.sm-quran-welcome:after{content:"";position:absolute;width:220px;height:220px;right:-60px;top:-100px;border:1px solid rgba(255,255,255,.12);border-radius:50%;box-shadow:0 0 0 28px rgba(255,255,255,.03),0 0 0 58px rgba(255,255,255,.025)}
.sm-quran-welcome h2{font-size:22px;margin:5px 0 5px;font-weight:800;letter-spacing:-.025em}.sm-quran-welcome p{font-size:11.5px;margin:0;max-width:650px;color:rgba(255,255,255,.84)}.sm-quran-welcome .sm-kicker{color:#d8f4e9}.sm-quran-welcome-icon{position:relative;z-index:1;width:64px;height:64px;flex:0 0 auto;border-radius:21px;display:grid;place-items:center;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.16);font-size:29px;color:#fff}
.sm-quran-list{gap:8px}.sm-quran-surah-card{appearance:none;width:100%;border:1px solid #e0ebe6;background:#fff;border-radius:15px;padding:11px 12px;display:flex;align-items:center;gap:11px;text-align:left;color:#182942;transition:.18s ease}.sm-quran-surah-card:hover{border-color:#9fcebb;background:#f9fcfa;transform:translateY(-1px);box-shadow:0 6px 18px rgba(15,32,61,.055)}.sm-quran-surah-number{width:36px;height:36px;flex:0 0 auto;border-radius:12px;background:#eaf7f1;color:#067454;display:grid;place-items:center;font-size:11px;font-weight:800}.sm-quran-surah-copy{min-width:0;flex:1}.sm-quran-surah-copy strong{display:block;font-size:12.5px}.sm-quran-surah-copy small{display:block;font-size:9.5px;color:#738193;margin-top:2px}.sm-quran-surah-arabic{font-family:"Amiri","Noto Naskh Arabic",serif;direction:rtl;font-size:19px;color:#153f3b;white-space:nowrap}.sm-quran-surah-action{color:#07815f;font-size:18px}
.sm-quran-modal .modal-content{border-radius:24px;overflow:hidden;background:#fbfcfa}.sm-quran-modal-head{padding:14px 18px;border-bottom:1px solid #e6eeeb;background:#fff}.sm-quran-modal-head .modal-title{font-weight:800;color:#14263f}.sm-quran-back{border:0;background:transparent;color:#075f49;font-size:20px;position:absolute;left:7px;top:19px}.sm-quran-modal-head .min-w-0{position:relative}.sm-quran-modal-head .sm-quran-back+div,.sm-quran-modal-head .sm-quran-back~h5,.sm-quran-modal-head .sm-quran-back~#surahMeta{margin-left:28px}
.sm-quran-toolbar{display:flex;align-items:end;gap:9px;padding:10px 16px;border-bottom:1px solid #e6eeeb;background:#f5faf7;position:sticky;top:0;z-index:6}.sm-quran-select{display:grid;gap:3px;min-width:240px}.sm-quran-select label{font-size:9px;font-weight:700;color:#607183}.sm-quran-select .form-select{border-radius:11px;border-color:#d9e7e1;font-size:10.5px}.sm-quran-play-surah,.sm-quran-stop{height:34px;border-radius:10px;font-size:10.5px;font-weight:700}.sm-quran-play-surah{background:#087a59;border-color:#087a59}.sm-quran-play-surah:hover{background:#066749;border-color:#066749}
.sm-quran-body{padding:14px 18px 118px}.sm-quran-loading{padding:45px;text-align:center;color:#6b7b8e}.sm-quran-ayah{position:relative;background:#fff;border:1px solid #e2eae7;border-radius:18px;padding:16px 17px;margin-bottom:10px;transition:.2s ease}.sm-quran-ayah.is-playing{border-color:#6ec1a2;background:linear-gradient(180deg,#fff,#f3fbf7);box-shadow:0 8px 24px rgba(6,95,70,.09)}.sm-quran-ayah.is-playing:before{content:"";position:absolute;left:0;top:18px;bottom:18px;width:4px;border-radius:0 4px 4px 0;background:#07815f}.sm-quran-ayah-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.sm-quran-ayah-number{width:31px;height:31px;border-radius:10px;display:grid;place-items:center;background:#eef7f3;color:#087356;font-weight:800;font-size:10px}.sm-quran-ayah-play{border:0;background:#edf8f3;color:#067455;border-radius:999px;padding:6px 10px;display:inline-flex;align-items:center;gap:5px;font-size:9.5px;font-weight:700}.sm-quran-ayah-play:hover{background:#08795a;color:#fff}.sm-quran-ayah-play i{font-size:12px}.sm-quran-ayah .arabic-text{font-size:29px;line-height:2.15;margin:5px 0 10px}.sm-quran-latin{font-size:10.5px;line-height:1.65;color:#718093;font-style:italic}.sm-quran-translation{font-size:11.5px;line-height:1.65;color:#25364c;margin-top:7px}.sm-quran-audio-notice{margin:8px 16px 0;border-radius:12px}
.sm-quran-player{position:absolute;left:0;right:0;bottom:0;z-index:15;display:grid;grid-template-columns:minmax(155px,1fr) minmax(300px,2fr) auto;align-items:center;gap:12px;padding:10px 14px calc(10px + env(safe-area-inset-bottom));background:rgba(255,255,255,.98);backdrop-filter:blur(14px);border-top:1px solid #dce9e4;box-shadow:0 -8px 24px rgba(15,32,61,.08)}.sm-quran-player[hidden]{display:none!important}.sm-quran-now{display:flex;align-items:center;gap:9px;min-width:0}.sm-quran-now-icon{width:38px;height:38px;border-radius:13px;display:grid;place-items:center;background:#e8f6f0;color:#08765a;font-size:18px}.sm-quran-now small{display:block;font-size:8.5px;color:#708093}.sm-quran-now strong{display:block;font-size:10.5px;color:#1b2d45}.sm-quran-player-main{display:grid;gap:5px}.sm-quran-controls{display:flex;justify-content:center;align-items:center;gap:8px}.sm-quran-controls button{border:0;background:transparent;color:#40546c;width:31px;height:31px;border-radius:50%;display:grid;place-items:center;font-size:14px}.sm-quran-controls button.primary{width:38px;height:38px;background:#087a59;color:#fff;font-size:18px;box-shadow:0 5px 15px rgba(8,122,89,.2)}.sm-quran-controls button:disabled{opacity:.35}.sm-quran-progress{display:grid;grid-template-columns:33px 1fr 33px;gap:6px;align-items:center;font-size:8px;color:#748296}.sm-quran-progress input{width:100%;accent-color:#07815f;height:3px}.sm-quran-rate{border:1px solid #d8e6e0;background:#f7faf8;color:#42556c;border-radius:9px;padding:5px 8px;font-size:9px;font-weight:800;min-width:38px}
@media(min-width:768px){.sm-quran-modal .modal-dialog{height:calc(100% - 3.5rem)}.sm-quran-modal .modal-content{height:100%}.sm-quran-body{padding-bottom:105px}}
@media(max-width:767px){.sm-quran-welcome{padding:17px;border-radius:18px}.sm-quran-welcome h2{font-size:18px}.sm-quran-welcome p{font-size:10px}.sm-quran-welcome-icon{width:48px;height:48px;border-radius:16px;font-size:22px}.sm-quran-surah-card{padding:9px}.sm-quran-surah-number{width:33px;height:33px}.sm-quran-surah-copy strong{font-size:11.5px}.sm-quran-surah-arabic{font-size:17px}.sm-quran-modal{padding:0!important}.sm-quran-modal .modal-dialog{margin:0;max-width:none;height:100dvh}.sm-quran-modal .modal-content{height:100dvh;border-radius:0}.sm-quran-modal-head{padding:11px 12px}.sm-quran-toolbar{padding:8px 10px;align-items:end}.sm-quran-select{min-width:0;flex:1}.sm-quran-play-surah span,.sm-quran-stop span{display:none}.sm-quran-play-surah,.sm-quran-stop{width:38px;padding:0}.sm-quran-body{padding:10px 10px 132px}.sm-quran-ayah{padding:13px 12px;border-radius:15px}.sm-quran-ayah .arabic-text{font-size:26px;line-height:2.05}.sm-quran-latin{font-size:9.5px}.sm-quran-translation{font-size:10.5px}.sm-quran-player{grid-template-columns:1fr auto;gap:7px;padding:7px 10px calc(8px + env(safe-area-inset-bottom))}.sm-quran-now{grid-column:1/2}.sm-quran-player-main{grid-column:1/3;grid-row:2}.sm-quran-rate{grid-column:2;grid-row:1}.sm-quran-controls{position:absolute;right:47px;top:7px}.sm-quran-progress{grid-template-columns:30px 1fr 30px}.sm-quran-now-icon{width:34px;height:34px;border-radius:11px}.sm-quran-now strong{font-size:9.5px;max-width:150px}.sm-quran-controls button{width:29px;height:29px}.sm-quran-controls button.primary{width:34px;height:34px}}


/* =========================================================
   SIMasjid UI v1.6 — Kajian & Agenda + YouTube
   ========================================================= */
.sm-event-card{align-items:center}.sm-event-card-media{position:relative;width:88px;height:68px;flex:0 0 88px;border-radius:13px;overflow:hidden;background:#eef5f1}.sm-event-card-media img{width:100%;height:100%;object-fit:cover;display:block}.sm-event-card-media i{position:absolute;inset:0;margin:auto;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:rgba(6,95,70,.9);color:#fff;font-size:18px;box-shadow:0 4px 14px rgba(0,0,0,.18)}.sm-video-label{font-size:9.5px;font-weight:700;color:#c4302b;display:flex;align-items:center;gap:4px}.sm-video-label i{font-size:12px}.sm-back-link{display:inline-flex;align-items:center;gap:7px;color:var(--sm-green);font-size:11px;font-weight:700;margin-bottom:12px}.sm-event-detail{display:grid;gap:14px;max-width:900px;margin-inline:auto}.sm-event-cover{position:relative;aspect-ratio:16/8.2;border-radius:22px;overflow:hidden;background:#e8f1ed;box-shadow:var(--sm-shadow)}.sm-event-cover img{width:100%;height:100%;object-fit:cover;display:block}.sm-event-cover.has-video:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 45%,rgba(9,31,34,.28))}.sm-event-video-badge{position:absolute;z-index:2;left:14px;bottom:14px;display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border-radius:999px;background:rgba(255,255,255,.94);color:#b42318;font-size:10px;font-weight:800;box-shadow:0 4px 14px rgba(0,0,0,.12)}.sm-event-info h1{font-size:24px;font-weight:800;letter-spacing:-.03em;margin:9px 0 16px}.sm-event-meta-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.sm-event-meta-grid>div{display:flex;align-items:center;gap:9px;padding:10px;border-radius:14px;background:#f7faf8;border:1px solid #e3ece8}.sm-event-meta-grid small{display:block;font-size:8.5px;color:var(--sm-muted)}.sm-event-meta-grid strong{display:block;font-size:10.5px;margin-top:2px}.sm-youtube-frame{position:relative;width:100%;aspect-ratio:16/9;border-radius:20px;overflow:hidden;background:#0f172a;box-shadow:var(--sm-shadow)}.sm-youtube-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}.sm-form .form-text{font-size:10px;color:#718096}
@media(max-width:767px){.sm-event-card-media{width:76px;height:62px;flex-basis:76px}.sm-event-cover{border-radius:17px;aspect-ratio:16/9}.sm-event-info h1{font-size:20px}.sm-event-meta-grid{grid-template-columns:1fr}.sm-youtube-frame{border-radius:16px}}

.sm-video-kajian-card{padding:9px;display:grid;grid-template-columns:155px 1fr;gap:12px;align-items:center}.sm-video-kajian-thumb{position:relative;display:block;aspect-ratio:16/9;border-radius:14px;overflow:hidden;background:#e9f2ee}.sm-video-kajian-thumb img{width:100%;height:100%;object-fit:cover}.sm-video-kajian-thumb i{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:rgba(6,95,70,.92);color:#fff;font-size:22px;box-shadow:0 5px 18px rgba(0,0,0,.18)}.sm-video-kajian-copy{min-width:0}.sm-video-kajian-copy strong{display:block;font-size:13px;line-height:1.35;margin:7px 0 4px}.sm-video-kajian-copy small{display:block;color:var(--sm-muted);font-size:10px}@media(max-width:575px){.sm-video-kajian-card{grid-template-columns:118px 1fr}.sm-video-kajian-copy strong{font-size:11.5px}.sm-video-kajian-thumb i{width:34px;height:34px;font-size:18px}}

/* =========================================================
   SIMasjid UI Rebuild v2.0 — PUBLIC HOME / MOCKUP ABSOLUTE
   Scope: Beranda + navigation only. Existing modules keep v1.6 UI.
   ========================================================= */
.sm-home-v2-page{background:#f8faf8;color:#10213a}
.sm-home-v2-page .sm-running{display:none}
.sm-home-v2{padding:0 0 18px}
.sm-home-shell{padding-top:12px}
.sm-home-block{margin-top:14px}
.sm-home-section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 8px}
.sm-home-section-title>div{min-width:0}.sm-home-section-title h2{margin:0;color:#0f203d;font-size:14px;font-weight:800;letter-spacing:-.02em}
.sm-home-section-title p{margin:2px 0 0;color:#728095;font-size:9px;line-height:1.35}
.sm-home-section-title a{display:inline-flex;align-items:center;gap:2px;color:#08765b;font-size:9px;font-weight:800;white-space:nowrap}
.sm-home-section-title a i{font-size:8px}

/* Mobile app header as seen in mockup */
.sm-home-v2-page .sm-public-header{background:#fff;border-bottom:0;box-shadow:none;position:sticky;top:0}
.sm-home-v2-page .sm-public-header-inner{min-height:62px;padding:5px 0;gap:8px}
.sm-home-v2-page .sm-brand{gap:8px}
.sm-home-v2-page .sm-brand-mark.sm-app-mark{width:38px;height:38px}
.sm-home-v2-page .sm-brand-copy strong{font-size:16px;line-height:1.05;color:#0f203d;letter-spacing:-.025em}
.sm-home-v2-page .sm-brand-copy small{font-size:8px;max-width:190px;margin-top:3px;color:#6b7a8d}
.sm-home-v2-page .sm-header-tagline,.sm-home-v2-page .sm-desktop-nav{display:none}
.sm-home-v2-page .sm-public-header-photo{display:none!important}
.sm-home-v2-page .sm-header-actions{margin-left:auto}
.sm-home-v2-page .sm-header-icon{width:34px;height:34px;border-radius:11px;background:#fff;border:1px solid #dbe7e2;color:#075f49;position:relative}
.sm-home-v2-page .sm-home-user{display:none}
.sm-notif-dot{position:absolute;top:7px;right:7px;width:6px;height:6px;border-radius:50%;background:#d4a017;border:1px solid #fff}

/* Hero */
.sm-home-hero-v2{position:relative;overflow:hidden;min-height:178px;border-radius:16px;background:#075f49;color:#fff;box-shadow:0 8px 20px rgba(15,32,61,.10)}
.sm-home-hero-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;display:block;filter:saturate(.94) contrast(1.02)}
.sm-home-hero-image.is-fallback{object-position:center 44%}
.sm-home-hero-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(3,74,57,.94) 0%,rgba(4,88,67,.84) 45%,rgba(5,93,70,.30) 75%,rgba(9,38,50,.08) 100%)}
.sm-home-hero-shade:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 0 57%,rgba(7,30,39,.72) 100%)}
.sm-home-hero-content{position:relative;z-index:2;min-height:178px;padding:14px 14px 12px;display:flex;flex-direction:column}
.sm-home-date{font-size:8px;font-weight:700;color:#e5f5ee;margin-bottom:8px}
.sm-home-next-label{font-size:8.5px;color:#e7f7f0;font-weight:600}
.sm-home-prayer-row{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin-top:1px}
.sm-home-prayer-name{display:block;font-size:24px;line-height:1;font-weight:800;letter-spacing:-.04em;color:#fff}
.sm-home-prayer-time{display:block;font-size:9px;margin-top:3px;color:#eef9f4;font-weight:600}
.sm-home-countdown-card{flex:0 0 auto;min-width:96px;padding:7px 10px;border-radius:12px;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.24);text-align:left;backdrop-filter:blur(5px)}
.sm-home-countdown-card small{display:block;text-transform:uppercase;letter-spacing:.06em;font-size:6.5px;color:#e7f5ef;font-weight:700}
.sm-home-countdown-card strong{display:block;font-size:16px;line-height:1.15;margin-top:2px;color:#fff}
.sm-home-hero-note{margin-top:auto;display:flex;align-items:flex-start;gap:6px;max-width:88%;padding-top:10px;font-size:8px;line-height:1.35;color:#f6fbf9;text-shadow:0 1px 2px rgba(0,0,0,.25)}
.sm-home-hero-note i{font-size:12px;color:#f1c54b;line-height:1}

/* Prayer strip */
.sm-home-prayer-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));border:1px solid #e2ebe7;border-radius:14px;background:#fff;overflow:hidden;box-shadow:0 2px 9px rgba(15,32,61,.04)}
.sm-home-prayer-item{min-width:0;min-height:58px;padding:7px 2px 6px;text-align:center;border-right:1px solid #edf2f0;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#33465c}
.sm-home-prayer-item:last-child{border-right:0}.sm-home-prayer-item i{font-size:13px;color:#08785c;margin-bottom:2px}.sm-home-prayer-item span{font-size:7.5px;color:#657589;line-height:1.2}.sm-home-prayer-item strong{font-size:9.5px;line-height:1.2;margin-top:1px;color:#14263d}.sm-home-prayer-item.active{background:#08664f;color:#fff}.sm-home-prayer-item.active i,.sm-home-prayer-item.active span,.sm-home-prayer-item.active strong{color:#fff}
.sm-home-config-state{display:grid;grid-template-columns:36px 1fr auto;align-items:center;gap:9px;border:1px solid #e0eae6;background:#fff;border-radius:14px;padding:9px 10px;box-shadow:0 2px 9px rgba(15,32,61,.04)}
.sm-home-config-state>span{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;background:#fff6db;color:#c58a11}.sm-home-config-state strong{display:block;font-size:10px}.sm-home-config-state small{display:block;margin-top:2px;font-size:8px;color:#738095;line-height:1.3}.sm-home-config-state>i{color:#8a98a8;font-size:11px}
.sm-home-error,.sm-home-empty{border:1px dashed #d4e2dd;background:#fff;color:#6e7e90;border-radius:14px;padding:14px;text-align:center;font-size:9px}.sm-home-empty.compact{padding:12px}

/* Quick menu */
.sm-home-quick-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.sm-home-quick-grid a{min-height:68px;border-radius:14px;background:#f4f9f6;border:1px solid #e3ece8;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;text-align:center;color:#2c3e53}
.sm-home-quick-grid a>span{width:31px;height:31px;border-radius:10px;display:grid;place-items:center;color:#076f55;background:#e7f5ef;font-size:16px}.sm-home-quick-grid a strong{font-size:8.5px;font-weight:700}

/* Money summary */
.sm-home-money-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.sm-home-money-card{min-width:0;border:1px solid #e2ebe7;background:#fff;border-radius:14px;padding:9px;display:flex;align-items:center;gap:8px;box-shadow:0 2px 9px rgba(15,32,61,.04)}
.sm-home-money-card .ico{width:34px;height:34px;flex:0 0 34px;border-radius:50%;display:grid;place-items:center;font-size:17px}.sm-home-money-card.donation .ico{background:#e3f4ed;color:#07825e}.sm-home-money-card.finance .ico{background:#fff2d5;color:#d18a00}
.sm-home-money-card small{display:block;font-size:7px;color:#7a8796}.sm-home-money-card strong{display:block;margin-top:1px;font-size:10.5px;color:#0f203d;line-height:1.15}.sm-home-money-card em{display:none;font-size:6.5px;color:#8a96a4;font-style:normal;margin-top:2px}

/* Marketplace horizontal carousel */
.sm-home-product-scroller{display:grid;grid-auto-flow:column;grid-auto-columns:122px;gap:7px;overflow-x:auto;padding:1px 1px 6px;scroll-snap-type:x proximity;scrollbar-width:none}.sm-home-product-scroller::-webkit-scrollbar{display:none}
.sm-home-product-card{scroll-snap-align:start;background:#fff;border:1px solid #e2ebe7;border-radius:11px;overflow:hidden;padding-bottom:7px;min-width:0;box-shadow:0 2px 8px rgba(15,32,61,.04)}
.sm-home-product-image-wrap{position:relative;aspect-ratio:1.34/1;overflow:hidden;background:#eef4f1}.sm-home-product-image-wrap img{width:100%;height:100%;object-fit:cover;display:block}.sm-home-product-badge{position:absolute;left:6px;top:6px;border-radius:999px;background:#fff;color:#087258;padding:3px 5px;font-size:6px;font-weight:800;box-shadow:0 2px 6px rgba(0,0,0,.1)}.sm-home-product-badge.warn{color:#b56d00}.sm-home-product-badge.muted{color:#7a8490}
.sm-home-product-card>strong,.sm-home-product-card>small,.sm-home-product-card>b{display:block;margin-left:7px;margin-right:7px}.sm-home-product-card>strong{margin-top:6px;font-size:8.5px;line-height:1.22;color:#17283e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sm-home-product-card>small{font-size:6.8px;color:#788598;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sm-home-product-card>b{font-size:9px;color:#12243a;margin-top:2px}

/* Video */
.sm-home-video-card{position:relative;display:block;aspect-ratio:16/5.7;border-radius:14px;overflow:hidden;background:#172734;box-shadow:0 4px 13px rgba(15,32,61,.09)}
.sm-home-video-card>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.sm-home-video-card .shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,25,34,.68),rgba(8,25,34,.14))}.sm-home-video-card .play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.94);color:#08654e;font-size:19px;box-shadow:0 5px 14px rgba(0,0,0,.2)}.sm-home-video-card .play i{margin-left:2px}.sm-home-video-card .copy{position:absolute;left:10px;bottom:8px;right:58px;color:#fff}.sm-home-video-card .copy strong{display:block;font-size:9.5px;line-height:1.2}.sm-home-video-card .copy small{display:block;font-size:7px;margin-top:2px;color:#e6f0ec}

/* Agenda + news compact area */
.sm-home-bottom-grid{display:grid;grid-template-columns:1fr;gap:13px}.sm-home-compact-section{min-width:0}.sm-home-mini-card{display:grid;grid-template-columns:56px 1fr;align-items:center;gap:8px;border:1px solid #e2ebe7;background:#fff;border-radius:12px;padding:6px;margin-bottom:6px;min-height:56px;box-shadow:0 2px 7px rgba(15,32,61,.035)}
.sm-home-mini-card:last-child{margin-bottom:0}.sm-home-mini-card img{width:56px;height:44px;border-radius:9px;object-fit:cover;background:#edf4f1}.sm-home-mini-card .date{width:42px;height:42px;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#edf8f3;color:#077052;font-size:7px;line-height:1}.sm-home-mini-card .date b{font-size:13px;line-height:1.1}.sm-home-mini-card>span:last-child{min-width:0}.sm-home-mini-card strong{display:block;font-size:8.5px;line-height:1.25;color:#15263d;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.sm-home-mini-card small{display:block;font-size:6.8px;line-height:1.35;color:#778596;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sm-home-mini-card.news .news-icon{width:42px;height:42px;border-radius:10px;display:grid;place-items:center;background:#fff2d5;color:#c78b17;font-size:16px}

/* Footer / bottom nav tuned to mockup */
.sm-home-v2-page .sm-public-footer{display:none}
.sm-home-v2-page .sm-bottom{height:65px;padding:6px 8px calc(6px + env(safe-area-inset-bottom));background:rgba(255,255,255,.985);border-top:1px solid #dfe8e4;box-shadow:0 -4px 16px rgba(15,32,61,.06)}
.sm-home-v2-page .sm-bottom a{font-size:7.5px;color:#6c7a8d;font-weight:600;gap:2px}
.sm-home-v2-page .sm-bottom a .ico{font-size:16px}.sm-home-v2-page .sm-bottom a.active{color:#087258}.sm-home-v2-page .sm-bottom a.active .ico{color:#087258}

/* Desktop extension: retain the mockup hierarchy instead of stretching mobile cards */
@media(min-width:768px){
  .sm-home-v2-page .sm-public-header{position:sticky}
  .sm-home-v2-page .sm-public-header-inner{min-height:80px}
  .sm-home-v2-page .sm-brand-mark.sm-app-mark{width:48px;height:48px}.sm-home-v2-page .sm-brand-copy strong{font-size:23px}.sm-home-v2-page .sm-brand-copy small{font-size:10px;max-width:230px}
  .sm-home-v2-page .sm-header-tagline{display:flex;margin-left:24px}.sm-home-v2-page .sm-header-tagline strong{font-size:17px}.sm-home-v2-page .sm-header-tagline small{font-size:10px}
  .sm-home-v2-page .sm-desktop-nav{display:flex}.sm-home-v2-page .sm-home-bell{display:none}.sm-home-v2-page .sm-home-user{display:grid}
  .sm-home-shell{padding-top:18px;max-width:1180px}
  .sm-home-hero-v2{min-height:300px;border-radius:24px}.sm-home-hero-content{min-height:300px;padding:30px 34px 26px;max-width:700px}.sm-home-date{font-size:11px;margin-bottom:20px}.sm-home-next-label{font-size:12px}.sm-home-prayer-name{font-size:46px}.sm-home-prayer-time{font-size:13px}.sm-home-countdown-card{min-width:145px;padding:12px 15px}.sm-home-countdown-card small{font-size:8px}.sm-home-countdown-card strong{font-size:24px}.sm-home-hero-note{font-size:11px;max-width:72%;padding-top:22px}.sm-home-hero-note i{font-size:18px}
  .sm-home-block{margin-top:22px}.sm-home-section-title{margin-bottom:12px}.sm-home-section-title h2{font-size:18px}.sm-home-section-title p{font-size:11px}.sm-home-section-title a{font-size:11px}
  .sm-home-prayer-item{min-height:78px}.sm-home-prayer-item i{font-size:19px}.sm-home-prayer-item span{font-size:10px}.sm-home-prayer-item strong{font-size:13px}
  .sm-home-quick-grid{gap:12px}.sm-home-quick-grid a{min-height:98px}.sm-home-quick-grid a>span{width:42px;height:42px;border-radius:13px;font-size:20px}.sm-home-quick-grid a strong{font-size:11px}
  .sm-home-money-grid{gap:12px}.sm-home-money-card{padding:14px 16px}.sm-home-money-card .ico{width:48px;height:48px;flex-basis:48px;font-size:23px}.sm-home-money-card small{font-size:9px}.sm-home-money-card strong{font-size:16px}.sm-home-money-card em{display:block;font-size:8px}
  .sm-home-product-scroller{grid-auto-flow:unset;grid-auto-columns:unset;grid-template-columns:repeat(4,minmax(0,1fr));overflow:visible;gap:12px}.sm-home-product-card:nth-child(n+5){display:none}.sm-home-product-card{border-radius:15px;padding-bottom:11px}.sm-home-product-card>strong{font-size:12px;margin:9px 10px 0}.sm-home-product-card>small{font-size:9px;margin-left:10px;margin-right:10px}.sm-home-product-card>b{font-size:13px;margin-left:10px;margin-right:10px}.sm-home-product-badge{font-size:8px;padding:4px 7px;left:8px;top:8px}
  .sm-home-video-card{aspect-ratio:16/5.3;border-radius:20px}.sm-home-video-card .play{width:56px;height:56px;font-size:29px}.sm-home-video-card .copy{left:18px;bottom:16px}.sm-home-video-card .copy strong{font-size:15px}.sm-home-video-card .copy small{font-size:10px}
  .sm-home-bottom-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.sm-home-mini-card{grid-template-columns:82px 1fr;min-height:76px;padding:8px;border-radius:15px}.sm-home-mini-card img{width:82px;height:60px;border-radius:11px}.sm-home-mini-card .date,.sm-home-mini-card.news .news-icon{width:54px;height:54px}.sm-home-mini-card .date b{font-size:17px}.sm-home-mini-card strong{font-size:11px}.sm-home-mini-card small{font-size:8.5px}
  .sm-home-v2-page .sm-public-footer{display:block}
}
@media(min-width:1200px){
  .sm-home-shell{max-width:1220px}.sm-home-hero-v2{min-height:320px}.sm-home-hero-content{min-height:320px}.sm-home-prayer-name{font-size:50px}
}
@media(max-width:389px){
  .sm-home-v2-page .sm-brand-copy small{max-width:145px}.sm-home-hero-v2,.sm-home-hero-content{min-height:170px}.sm-home-hero-content{padding:12px 12px 10px}.sm-home-prayer-name{font-size:22px}.sm-home-countdown-card{min-width:88px;padding:6px 8px}.sm-home-countdown-card strong{font-size:14px}.sm-home-hero-note{font-size:7.5px}.sm-home-quick-grid{gap:5px}.sm-home-quick-grid a{min-height:64px}.sm-home-money-card{padding:7px}.sm-home-money-card .ico{width:31px;height:31px;flex-basis:31px}.sm-home-money-card strong{font-size:9.5px}.sm-home-product-scroller{grid-auto-columns:112px}
}
