:root{
  --primary:#103d31;
  --primary-2:#0f684f;
  --primary-3:#17936d;
  --gold:#f8c338;
  --bg:#f5f8f4;
  --bg-soft:#edf5f1;
  --ink:#14231e;
  --muted:#6b7972;
  --card:#ffffff;
  --line:#e2ebe6;
  --danger:#dc3545;
  --success:#198754;
  --info:#0d6efd;
  --shadow:0 18px 45px rgba(16,61,49,.10);
  --shadow-strong:0 26px 70px rgba(16,61,49,.16);
  --radius-xl:32px;
  --radius-lg:24px;
  --radius-md:18px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:linear-gradient(180deg,#f8fbf7 0%,var(--bg) 100%);color:var(--ink);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.55;overflow-x:hidden}
a{text-decoration:none}img{max-width:100%;height:auto}main{min-height:calc(100vh - 150px)}
.app-container{padding-top:clamp(1.2rem,3vw,2.6rem);padding-bottom:clamp(1.2rem,3vw,2.6rem)}
.section-space{padding-top:clamp(1.2rem,3vw,2.5rem);padding-bottom:clamp(1.2rem,3vw,2.5rem)}
/* Navigation */
.app-navbar{background:linear-gradient(135deg,var(--primary),var(--primary-2));box-shadow:0 12px 30px rgba(0,0,0,.13);padding:.7rem 0}.navbar-brand{font-weight:900;letter-spacing:.15px}.brand-mark{width:38px;height:38px;border-radius:14px;display:grid;place-items:center;background:rgba(255,255,255,.14);color:#fff}.navbar .nav-link{color:rgba(255,255,255,.86)!important;font-weight:700;border-radius:999px;padding:.55rem .85rem!important}.navbar .nav-link:hover,.navbar .nav-link.active{background:rgba(255,255,255,.12);color:#fff!important}.navbar-toggler{border:0;box-shadow:none!important}.navbar-collapse{margin-top:.65rem}.btn-rounded{border-radius:999px!important}
@media(min-width:992px){.navbar-collapse{margin-top:0}}
/* Hero */
.hero{background:radial-gradient(circle at top right,rgba(248,195,56,.33),transparent 28%),linear-gradient(135deg,#0a2c23 0%,#0f684f 72%,#1b9670 100%);position:relative;overflow:hidden;color:#fff;border-radius:0 0 34px 34px}.hero:after{content:"";position:absolute;right:-110px;bottom:-150px;width:420px;height:420px;border:1px solid rgba(255,255,255,.18);border-radius:50%;box-shadow:0 0 0 58px rgba(255,255,255,.045),0 0 0 116px rgba(255,255,255,.025)}.hero .container{position:relative;z-index:1}.hero h1{font-size:clamp(2.1rem,5.7vw,4.8rem);line-height:1.04;font-weight:950;letter-spacing:-.045em}.hero p{font-size:clamp(1rem,1.85vw,1.35rem);color:rgba(255,255,255,.84);max-width:900px}.text-white-75{color:rgba(255,255,255,.77)!important}.glass-card{background:rgba(255,255,255,.13);backdrop-filter:blur(18px);border:1px solid rgba(255,255,255,.22);border-radius:var(--radius-xl);box-shadow:var(--shadow-strong)}.metric{font-size:clamp(1.7rem,3vw,2.4rem);font-weight:950;color:#fff;line-height:1}.label{font-size:.85rem;color:rgba(255,255,255,.75);font-weight:700}
/* Page headers */
.page-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1.2rem;margin-bottom:1.6rem;flex-wrap:wrap}.page-kicker{display:inline-flex;align-items:center;gap:.45rem;color:var(--primary-2);font-size:.86rem;text-transform:uppercase;letter-spacing:.05em;font-weight:900;margin-bottom:.5rem}.page-title{font-weight:950;letter-spacing:-.04em;color:var(--ink);margin-bottom:.35rem}.page-subtitle{color:var(--muted);font-size:1.05rem;margin:0;max-width:760px}
/* Cards / panels */
.panel,.table-shell,.table-panel,.detail-card,.auth-card,.sermon-card,.stat-card,.form-card,.confirm-card,.filter-card{background:var(--card);border:1px solid rgba(16,61,49,.08);border-radius:var(--radius-xl);box-shadow:var(--shadow)}.panel{padding:1.35rem}.table-shell,.table-panel{padding:1.05rem}.detail-card{padding:clamp(1.2rem,3vw,2.25rem);max-width:980px;margin:auto}.confirm-card{max-width:720px;margin:auto;padding:clamp(1.2rem,3vw,2.2rem);text-align:center}.confirm-icon{width:64px;height:64px;border-radius:24px;margin:0 auto 1rem;display:grid;place-items:center;background:#fff1f1;color:var(--danger);font-size:1.5rem}.stat-card{padding:1.25rem;height:100%;display:flex;align-items:center;gap:1rem}.stat-icon{width:48px;height:48px;border-radius:17px;background:#e8f5ee;color:var(--primary-2);display:grid;place-items:center;flex:0 0 auto}.stat-value{font-size:clamp(1.5rem,2.5vw,2.2rem);font-weight:950;line-height:1}.stat-label{color:var(--muted);font-weight:700}.panel-title{font-weight:900;margin:0}.cell-sub{font-size:.86rem;color:var(--muted)}
/* Buttons */
.btn{font-weight:800;padding:.72rem 1.1rem;border-radius:999px}.btn-primary{background:var(--info);border-color:var(--info)}.btn-warning{background:var(--gold);border-color:var(--gold);color:#1d1b10}.btn-warning:hover{background:#e9b324;border-color:#e9b324;color:#1d1b10}.btn-soft{background:#edf5f1;color:var(--primary-2);border:1px solid #dce9e2}.btn-soft:hover{background:#e2f0e9;color:var(--primary)}.btn-icon{width:38px;height:38px;padding:0;display:inline-grid;place-items:center;border-radius:14px!important}
/* Forms */
.form-layout,.form-shell{display:grid;grid-template-columns:390px minmax(0,1fr);gap:1.5rem;align-items:start}.form-intro{background:radial-gradient(circle at top right,rgba(248,195,56,.22),transparent 28%),linear-gradient(135deg,#123c2f,#0f684f);color:#fff;border-radius:var(--radius-xl);padding:clamp(1.35rem,3vw,2rem);box-shadow:var(--shadow-strong);position:sticky;top:96px}.intro-icon{width:56px;height:56px;border-radius:20px;background:rgba(255,255,255,.14);display:grid;place-items:center;margin-bottom:1rem}.form-intro h1{font-size:clamp(1.85rem,3vw,3rem);font-weight:950;letter-spacing:-.035em}.form-check-list{list-style:none;margin:1.3rem 0 0;padding:0;display:grid;gap:.75rem}.form-check-list li{display:flex;align-items:flex-start;gap:.72rem;color:rgba(255,255,255,.88);font-weight:700}.form-check-list i{color:var(--gold);margin-top:.18rem}.form-card{padding:clamp(1rem,2.5vw,1.6rem)}.form-section-title{font-size:1rem;font-weight:950;color:var(--primary);text-transform:uppercase;letter-spacing:.05em;margin-bottom:1rem}.app-form .form-control,.app-form .form-select,.auth-card input,.filter-card .form-control,.filter-card .form-select,input,select,textarea{border:1px solid #d7e1dc;border-radius:18px!important;min-height:54px;padding:.82rem 1rem;background:#fff;transition:.18s ease;box-shadow:none!important}.app-form textarea,textarea{min-height:132px;resize:vertical}.app-form .form-control:focus,.app-form .form-select:focus,.auth-card input:focus,.filter-card .form-control:focus,.filter-card .form-select:focus,input:focus,select:focus,textarea:focus{border-color:#77ad99;box-shadow:0 0 0 4px rgba(15,104,79,.1)!important}.form-label{font-weight:850;color:#15251f}.form-text{color:var(--muted)}.form-switch .form-check-input,.form-check-input{box-shadow:none!important}.form-actions{display:flex;justify-content:flex-end;gap:.7rem;flex-wrap:wrap;margin-top:1.25rem}.file-preview{margin-top:.55rem;color:var(--primary-2);font-weight:800;font-size:.92rem}.author-box{display:flex;align-items:center;gap:.75rem;background:#f2f8f5;border:1px solid #dce9e2;border-radius:20px;padding:.8rem 1rem;margin-bottom:1rem}.avatar{width:40px;height:40px;border-radius:15px;background:linear-gradient(135deg,var(--primary-2),var(--primary-3));color:#fff;display:inline-grid;place-items:center;font-weight:950;text-transform:uppercase;flex:0 0 auto}.avatar-sm{width:34px;height:34px;border-radius:13px}.auth-page{min-height:calc(100vh - 140px);display:grid;place-items:center;padding:clamp(1rem,3vw,2rem)}.auth-card{width:min(100%,520px);padding:clamp(1.25rem,3vw,2.1rem)}.auth-card.wide{width:min(100%,700px)}.auth-card label{font-weight:850}.auth-card .helptext,.auth-card ul{color:var(--muted);font-size:.85rem}
/* Filters */
.filter-card{padding:1rem;margin-bottom:1.25rem}.filter-grid{display:grid;grid-template-columns:2fr 2fr auto;gap:1rem;align-items:end}.filter-grid-4{display:grid;grid-template-columns:2fr 1.2fr 1.2fr auto;gap:1rem;align-items:end}.filter-actions{display:flex;gap:.55rem;align-items:center;flex-wrap:wrap}.search-box{display:flex;gap:.75rem}.search-box .form-control{border-radius:999px!important}.search-box .btn{white-space:nowrap}
/* Tables */
.table-responsive{width:100%;overflow-x:auto;border-radius:22px;-webkit-overflow-scrolling:touch}.table{margin:0}.table th{font-weight:950;color:#111827;white-space:nowrap;border-color:var(--line);padding:1rem .9rem}.table td{border-color:var(--line);padding:1rem .9rem;vertical-align:middle}.table tbody tr:last-child td{border-bottom:0}.table tbody tr:hover{background:#fbfefc}.table-toolbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:.7rem;flex-wrap:wrap}.cell-title{font-weight:900;color:#101c18}.cell-title a{color:inherit}.user-cell{display:flex;align-items:center;gap:.72rem;min-width:0}.cell-actions{display:flex;justify-content:flex-end;gap:.45rem;flex-wrap:wrap}.badge{font-weight:850;border-radius:999px;padding:.45rem .7rem}.badge-soft-success{background:#e7f6ed!important;color:#168250!important}.badge-soft-warning{background:#fff3da!important;color:#9a6200!important}.badge-soft-muted{background:#eef2f0!important;color:#596862!important}.badge-soft-info{background:#e9f2ff!important;color:#0d6efd!important}.badge-soft-danger{background:#fff0f0!important;color:#c92a2a!important}.file-link{font-weight:900;color:var(--primary-2)}.mosquee-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;border-bottom:1px solid var(--line);padding:.9rem 0}.mosquee-row:last-child{border-bottom:0}.empty-state{background:#fff;border:1px dashed #b9cac1;border-radius:24px;padding:clamp(1.1rem,3vw,2.2rem);text-align:center;color:var(--muted)}.empty-state i{font-size:2rem;color:var(--primary-2);margin-bottom:.7rem}.pill{display:inline-flex;align-items:center;gap:.45rem;border-radius:999px;background:#e8f3ed;color:#14543f;font-size:.82rem;font-weight:900;padding:.5rem .85rem}.pill-gold{background:#fff3d2;color:#8a6200}.clamp{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
/* Pagination */
.pagination-wrap,.pagination{display:flex;justify-content:center;flex-wrap:wrap}.page-link{border-radius:999px!important;margin:.15rem;border:1px solid #d8e4dd;color:var(--primary-2);font-weight:850}.page-item.active .page-link{background:var(--primary-2);border-color:var(--primary-2);color:#fff}
footer{background:#fff;border-top:1px solid #e7eeea;color:var(--muted)}
/* Responsive */
@media(max-width:1399px){.form-layout,.form-shell{grid-template-columns:340px minmax(0,1fr)}}
@media(max-width:1199px){.form-layout,.form-shell{grid-template-columns:1fr}.form-intro{position:relative;top:auto}.filter-grid-4{grid-template-columns:1fr 1fr}.filter-actions{grid-column:1/-1}}
@media(max-width:991px){.page-header{flex-direction:column}.filter-grid{grid-template-columns:1fr}.filter-grid-4{grid-template-columns:1fr}.search-box{flex-direction:column}.cell-actions{justify-content:flex-start}.hero{border-radius:0 0 26px 26px}.hero:after{opacity:.35}.navbar-nav{padding-top:.5rem}.navbar .nav-link{padding:.7rem .8rem!important}}
@media(max-width:767px){.container{padding-left:1rem;padding-right:1rem}.app-container{padding-top:1.2rem}.panel,.table-shell,.table-panel,.detail-card,.auth-card,.sermon-card,.stat-card,.form-card,.confirm-card,.filter-card{border-radius:24px}.form-intro{border-radius:26px}.table th,.table td{padding:.85rem .75rem}.table{min-width:760px}.stat-card{align-items:flex-start}.hero{padding-top:2rem!important;padding-bottom:2rem!important}.hero:after{display:none}.hero .glass-card{margin-top:.5rem}}
@media(max-width:575px){.navbar-brand span:last-child{font-size:.98rem}.brand-mark{width:34px;height:34px;border-radius:12px}.btn:not(.btn-icon){width:100%;display:inline-flex;justify-content:center;align-items:center}.page-title{font-size:2rem!important}.page-subtitle{font-size:.98rem}.form-actions{flex-direction:column-reverse}.cell-actions{flex-direction:column;align-items:stretch}.cell-actions .btn{width:100%}.auth-card{padding:1.15rem}.hero h1{font-size:2.2rem}.hero p{font-size:1rem}.metric{font-size:1.7rem}.glass-card{border-radius:24px}}
.sermon-grid {
  margin-top: 1.5rem;
}

.sermon-card-pro {
  height: 100%;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(246,196,83,.13), transparent 32%),
    #ffffff;
  border: 1px solid rgba(18, 60, 47, .08);
  box-shadow: 0 18px 45px rgba(18, 60, 47, .10);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.sermon-card-pro:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 60px rgba(18, 60, 47, .16);
  border-color: rgba(15, 104, 79, .16);
}

.sermon-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
}

.sermon-badge {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  border-radius: 999px;
  padding: .55rem .9rem;
  font-weight: 800;
  font-size: .92rem;
  white-space: nowrap;
}

.sermon-badge-date {
  background: #eaf5ef;
  color: #075d49;
}

.sermon-badge-mosque {
  background: #fff3d7;
  color: #9b6a00;
}

.sermon-card-body {
  flex: 1;
}

.sermon-title {
  margin: .35rem 0 1rem;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.15;
  font-weight: 900;
  color: #13231e;
}

.sermon-author {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: 1rem;
}

.sermon-avatar {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0f684f, #13946e);
  color: #fff;
  font-size: 1.45rem;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(15, 104, 79, .22);
}

.sermon-author-name {
  font-size: 1.05rem;
  font-weight: 850;
  color: #10231d;
  line-height: 1.2;
}

.sermon-author-role {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-top: .25rem;
  color: #738079;
  font-weight: 600;
  font-size: .92rem;
}

.sermon-author-role i {
  color: #94aaa0;
}

.sermon-divider {
  height: 1px;
  background: #e7eeea;
  margin: 1rem 0;
}

.sermon-summary {
  margin: 0;
  color: #63716b;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 72px;
}

.sermon-card-footer {
  margin-top: .5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .85rem;
}

.sermon-detail-btn {
  min-width: 124px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sermon-file-link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: #08775d;
  font-weight: 900;
  font-size: 1rem;
  transition: color .2s ease, transform .2s ease;
}

.sermon-file-link i {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #08775d;
  color: #fff;
  font-size: .95rem;
}

.sermon-file-link:hover {
  color: #075d49;
  transform: translateY(-1px);
}

.sermon-file-missing {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: #8a9690;
  font-weight: 700;
}

@media (max-width: 575px) {
  .sermon-card-pro {
    border-radius: 24px;
    padding: 1rem;
  }

  .sermon-card-top {
    align-items: stretch;
  }

  .sermon-badge {
    width: 100%;
    justify-content: center;
  }

  .sermon-title {
    font-size: 1.35rem;
  }

  .sermon-avatar {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
    border-radius: 18px;
  }

  .sermon-card-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .sermon-detail-btn,
  .sermon-file-link,
  .sermon-file-missing {
    width: 100%;
    justify-content: center;
  }
}

/* =========================
   LOGIN / AUTH PAGES
========================= */

.auth-page-pro {
  min-height: calc(100vh - 150px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  background:
    radial-gradient(circle at top left, rgba(15, 104, 79, .10), transparent 32%),
    radial-gradient(circle at bottom right, rgba(246, 196, 83, .14), transparent 34%),
    #f5f7f3;
}

.auth-card-pro {
  width: min(100%, 620px);
  background: #fff;
  border-radius: 34px;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid rgba(18, 60, 47, .08);
  box-shadow: 0 24px 70px rgba(18, 60, 47, .13);
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(135deg, #123c2f, #0f684f);
  color: #fff;
  font-size: 1.45rem;
  box-shadow: 0 16px 32px rgba(15, 104, 79, .22);
}

.auth-header h1 {
  margin: 0;
  color: #10231d;
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 2.7rem);
  letter-spacing: -.03em;
}

.auth-header p {
  margin: .65rem auto 0;
  color: #63716b;
  font-size: 1.05rem;
  max-width: 440px;
}

.auth-form {
  width: min(100%, 450px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.auth-field {
  width: 100%;
}

.auth-field label {
  display: block;
  margin-bottom: .45rem;
  color: #10231d;
  font-weight: 850;
  font-size: .98rem;
}

.auth-field input {
  display: block;
  width: 100%;
  min-height: 58px;
  border: 1px solid #d7e1db;
  border-radius: 18px;
  padding: .9rem 1rem;
  background: #fff;
  color: #10231d;
  font-size: 1rem;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.auth-field input:focus {
  border-color: #0f684f;
  box-shadow: 0 0 0 4px rgba(15, 104, 79, .10);
}

.auth-submit {
  width: 100%;
  min-height: 58px;
  border-radius: 999px;
  margin-top: .3rem;
  font-size: 1.02rem;
  font-weight: 850;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 575px) {
  .auth-page-pro {
    padding: 1.5rem 1rem;
    align-items: flex-start;
  }

  .auth-card-pro {
    border-radius: 26px;
    padding: 1.4rem;
  }

  .auth-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    font-size: 1.2rem;
  }

  .auth-header {
    margin-bottom: 1.4rem;
  }

  .auth-header h1 {
    font-size: 2rem;
  }

  .auth-header p {
    font-size: .98rem;
  }

  .auth-form {
    width: 100%;
  }

  .auth-field input,
  .auth-submit {
    min-height: 54px;
  }
}

