:root{
  --bg:#edf1f5;

  /* BRAND COLORS */
  --primary:#1f6fd1;        /* Blue theme */
  --primary-dark:#1557a6;
  --accent:#f28c1b;         /* Orange */
  --secondary:#1f6fd1;      /* Blue */

  --sidebar:#1f2937;
  --sidebar2:#111827;

  --card:#ffffff;
  --border:#e6e9ef;
  --text:#1b2430;
  --muted:#6b7785;

  --shadow: 0 8px 22px rgba(20,30,50,.08);
  --radius: 12px;
}


*{ box-sizing:border-box; }

body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Layout */
.app-layout{
  display:flex;
  min-height:100vh;
}

/* Mobile top bar (hamburger) */
.mobile-topbar{
  display:none;
  position: sticky;
  top: 0;
  z-index: 1200;
  height: 54px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 22px rgba(20,30,50,.08);
  padding: 0 12px;
  align-items: center;
  justify-content: space-between;
}
.mobile-topbar .brand{
  font-weight: 900;
  letter-spacing: .4px;
  color: var(--text);
  max-width: 70vw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mobile-topbar .btn-icon{
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.sidebar-overlay{
  display:none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 1100;
}

/* Sidebar */
.app-sidebar{
  width: 260px;
  background: linear-gradient(180deg, var(--sidebar), var(--sidebar2));
  color:#fff;
  padding: 18px 14px;
}

.sidebar-close{
  display:none;
  position:absolute;
  right: 10px;
  top: 10px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 22px;
  line-height: 0;
  cursor: pointer;
}

.app-brand{
  position: relative;
  text-align:center;
  font-weight:900;
  letter-spacing:.6px;
  font-size:20px;
  margin: 10px 0 18px;
}
.app-brand__group{
  font-weight: 900;
  letter-spacing: .6px;
  font-size: 18px;
  line-height: 1.2;
}
.app-brand__sub{
  margin-top: 6px;
  font-size: 12px;
  font-weight: 800;
  opacity: .85;
}

.app-nav{
  border-top:1px solid rgba(255,255,255,.10);
  padding-top:14px;
}

.app-nav a{
  display:flex;
  align-items:center;
  gap:10px;
  color: rgba(255,255,255,.88);
  text-decoration:none;
  padding: 12px 12px;
  border-radius: 8px;
  margin: 6px 0;
}

.app-nav a:hover{ background: rgba(255,255,255,.08); }
.app-nav a.active{ background: var(--primary); color:#fff; }

.app-nav .nav-title{
  margin: 14px 10px 6px;
  font-size: 12px;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: .8px;
}

.app-logout{
  margin-top:18px;
  border-top:1px solid rgba(255,255,255,.10);
  padding-top:14px;
}

.app-logout a{
  display:block;
  text-align:center;
  background:#e74c3c;
  color:#fff;
  text-decoration:none;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight:800;
}

.app-user{
  margin-top:18px;
  color: rgba(255,255,255,.75);
  font-size:13px;
  text-align:center;
}

/* Content */
.app-content{
  flex:1;
  padding: 18px 22px;
}

/* Cards */
.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration:none;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}
.btn:hover{ filter: brightness(0.98); }
.btn-primary{
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color:#fff;
  border:none;
}

.btn-primary:hover{
  filter: brightness(1.05);
}

.btn-danger{
  background:#e74c3c;
  color:#fff;
  border-color: transparent;
}
.btn-muted{
  background:#f4f6f9;
}

.alert{
  border-radius: 10px;
  padding: 12px 14px;
  margin: 12px 0;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
}
.alert-success{ border-color: rgba(34,197,94,.35); }
.alert-danger{ border-color: rgba(239,68,68,.35); }
.alert-warning{ border-color: rgba(245,158,11,.35); }

/* Responsive: off-canvas sidebar */
@media (max-width:900px){
  .mobile-topbar{ display:flex; }
  .app-layout{ min-height: calc(100vh - 54px); }

  .app-sidebar{
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1150;
    width: 280px;
    max-width: 86vw;
    overflow-y: auto;
    transform: translateX(-110%);
    transition: transform .18s ease;
  }

  body.sidebar-open .app-sidebar{ transform: translateX(0); }
  body.sidebar-open .sidebar-overlay{ display:block; }
  .sidebar-close{ display:inline-flex; align-items:center; justify-content:center; }

  .app-content{ padding: 14px 14px; }
}

/* =======================
   GLOBAL UI COMPONENTS
   ======================= */

.page{ display: grid; gap: 16px; }
.page .page-title{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px;
  font-weight: 900;
}

.form{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}
.form .row{
  display:grid;
  grid-template-columns: repeat(12, minmax(0,1fr));
  gap: 12px;
}
.form .col-12{ grid-column: span 12; }
.form .col-6{ grid-column: span 6; }
.form .col-4{ grid-column: span 4; }
.form .col-3{ grid-column: span 3; }

label{
  display:block;
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--text);
}

input[type="text"],
input[type="number"],
input[type="date"],
input[type="email"],
input[type="password"],
select,
textarea{
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  outline: none;
}

input:focus, select:focus, textarea:focus{
  border-color: rgba(46,135,200,.45);
  box-shadow: 0 0 0 3px rgba(46,135,200,.12);
}

.help{
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

.actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 12px;
}

/* Tables */
.table-wrap{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
table{ width: 100%; border-collapse: collapse; }
thead th{
  background: #f6f8fb;
  color: var(--text);
  text-align: left;
  font-weight: 900;
  font-size: 13px;
  padding: 12px 12px;
  border-bottom: 1px solid var(--border);
}
tbody td{
  padding: 12px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
tbody tr:hover{ background: #fafcff; }

.badge{
  display:inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  border: 1px solid var(--border);
  background:#fff;
}
.badge-success{ border-color: rgba(34,197,94,.35); color:#15803d; background: rgba(34,197,94,.10); }
.badge-warning{ border-color: rgba(245,158,11,.35); color:#b45309; background: rgba(245,158,11,.10); }
.badge-danger{ border-color: rgba(239,68,68,.35); color:#b91c1c; background: rgba(239,68,68,.10); }

/* Responsive form columns */
@media(max-width:900px){
  .form .col-6, .form .col-4, .form .col-3 { grid-column: span 12; }
}

/* Tabs */
.tabs{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}
.tab{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration:none;
  font-weight: 900;
  font-size: 13px;
  color: var(--text);
  background: #f4f6f9;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(20,30,50,.06);
  transition: transform .15s ease, filter .15s ease, background .15s ease;
}
.tab:hover{ filter: brightness(.98); transform: translateY(-1px); }
.tab.active{
  background: var(--primary);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 20px rgba(46,135,200,.25);
}
.tab.active .badge{
  border-color: rgba(255,255,255,.35);
  background: rgba(255,255,255,.20);
  color: #fff;
}

/* Loan aging button alignment helper */
.actions-align{
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  height: 44px;
}
.form input[type="date"]{ height: 44px; }

/* =======================
   LANDING PAGE
   ======================= */

/* container ya landing iwe katikati + max width */
.landing{
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 12px 28px;
  display: grid;
  gap: 16px;
}

/* hero yenye background laini juu */
.landing-hero{
  position: relative;
  overflow: hidden;
  padding: 22px 18px;
  background: linear-gradient(180deg, rgba(46,135,200,.10), rgba(255,255,255,1));
}

/* badge */
.landing-badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  color: var(--muted);
  margin-bottom: 10px;
}

/* icon/illustration kubwa juu */
.landing-illustration{
  font-size: 44px;
  line-height: 1;
  margin: 6px 0 10px;
}

/* title + subtitle zisiwe full width */
.landing-title{
  margin: 0 0 8px;
  font-size: 34px;
  letter-spacing: .2px;
}
.landing-subtitle{
  margin: 0 0 14px;
  max-width: 70ch;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.55;
}

/* buttons katikati */
.landing-cta{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.landing-note{
  margin-top: 12px;
  color: var(--muted);
  font-size: 12.5px;
}

/* grid ya features: desktop 2 columns, simu 1 column */
.landing-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
}

/* feature card layout */
.landing-feature{
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.landing-icon{
  font-size: 22px;
  line-height: 1;
}
.landing-feature-title{
  font-weight: 900;
  margin-bottom: 4px;
}
.landing-feature-text{
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.45;
}

/* responsive */
@media (max-width: 900px){
  .landing{ padding: 14px 10px 22px; }
  .landing-title{ font-size: 26px; }
  .landing-grid{ grid-template-columns: 1fr; }
  .landing-cta{ justify-content: flex-start; }
}

/* landing isiwe pana sana kwenye desktop kubwa */
@media (min-width: 1200px){
  .landing{ max-width: 980px; }
}

/* =======================
   CENTERED PAGES (Landing / Auth)
   ======================= */
.app-content--center{
  width: 100%;
  max-width: 1100px;   /* unaweza kubadili 960/1200 kulingana na ladha */
  margin: 0 auto;
}

/* Landing layout */
.landing{
  display: grid;
  gap: 18px;
  margin: 0 auto;
}

/* Hero card isiwe ndefu sana */
.landing-hero{
  padding: 22px;
}

/* CTA buttons katikati */
.landing-cta{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 12px;
}

/* Feature grid: 2 columns desktop, 1 column simu */
.landing-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 900px){
  .landing-grid{
    grid-template-columns: 1fr;
  }
}

/* =======================
   LANDING PAGE
   ======================= */

.landing{
  max-width: 1100px;          /* usiende mpaka mwisho wa screen */
  margin: 0 auto;
  padding: 24px 16px 40px;
  display: grid;
  gap: 16px;
}

/* hero card */
.landing-hero{
  text-align: center;         /* HII ndiyo ilikuwa inakukosea */
  padding: 22px 18px;
  position: relative;
  overflow: hidden;
}

/* background gradient laini juu ya hero */
.landing-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(900px 260px at 30% 10%, rgba(46,135,200,.14), transparent 60%),
              radial-gradient(900px 260px at 70% 0%, rgba(34,197,94,.10), transparent 60%);
  pointer-events:none;
}

.landing-hero > *{
  position: relative;
  z-index: 1;
}

.landing-badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  letter-spacing: .4px;
  color: var(--muted);
  margin-bottom: 10px;
}

/* icon/illustration kubwa juu */
.landing-hero .landing-illustration{
  font-size: 44px;
  line-height: 1;
  margin: 6px 0 8px;
}

.landing-title{
  margin: 8px 0 10px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
}

.landing-subtitle{
  margin: 0 auto;
  max-width: 760px;          /* maandishi yasitandazwe sana */
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.6;
}

/* buttons katikati */
.landing-cta{
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;    /* HII pia ni muhimu */
}

/* note katikati */
.landing-note{
  margin-top: 12px;
  color: var(--muted);
  font-size: 12.5px;
}

/* feature cards grid */
.landing-grid{
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0,1fr));
}

.landing-feature{
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.landing-icon{
  font-size: 22px;
  width: 34px;
  text-align: center;
}

.landing-feature-title{
  font-weight: 900;
  margin-bottom: 3px;
}

.landing-feature-text{
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

@media (max-width: 800px){
  .landing-grid{ grid-template-columns: 1fr; }
  .landing-hero{ padding: 18px 14px; }
}

/* ===== LANDING LOGO ===== */
.landing-logo {
  display: flex;
  justify-content: center;
  margin: 16px 0 10px;
}
/* Landing page logo */
.landing-logo{
  width: 140px;        /* ongeza hapa */
  max-width: 100%;
  height: auto;
  margin: 0 auto 16px;
  display: block;
}

.btn-accent{
  background: linear-gradient(135deg, var(--accent), #ff9f3f);
  color:#fff;
  border:none;
}

.btn-accent:hover{
  filter: brightness(1.05);
}

.btn-secondary{
  background: linear-gradient(135deg, var(--secondary), #3a86ff);
  color:#fff;
  border:none;
}

/* Meeting badges */
.badge-type.regular { border-color: rgba(59,130,246,.35); color:#1d4ed8; background: rgba(59,130,246,.10); }
.badge-type.special { border-color: rgba(245,158,11,.35); color:#b45309; background: rgba(245,158,11,.10); }
.badge-type.emergency { border-color: rgba(239,68,68,.35); color:#b91c1c; background: rgba(239,68,68,.10); }

.badge-status.scheduled { border-color: rgba(59,130,246,.35); color:#1d4ed8; background: rgba(59,130,246,.10); }
.badge-status.held { border-color: rgba(34,197,94,.35); color:#15803d; background: rgba(34,197,94,.10); }
.badge-status.cancelled { border-color: rgba(107,114,128,.35); color:#374151; background: rgba(107,114,128,.10); }

.table-wrap{ width:100%; overflow:auto; }
.table{ width:100%; border-collapse:collapse; }
.table th, .table td{ padding:10px; border-bottom:1px solid rgba(0,0,0,.08); vertical-align:top; }

.badge{ display:inline-block; padding:4px 10px; border-radius:999px; font-size:12px; font-weight:700; letter-spacing:.3px; }
.badge-success{ background:rgba(22,163,74,.12); color:#166534; }
.badge-danger{ background:rgba(220,38,38,.12); color:#7f1d1d; }

.nav-divider {
  height: 1px;
  background: rgba(255,255,255,.08);
  margin: 12px 0;
}

.nav-group {
  margin-bottom: 6px;
}

.nav-group-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: 0;
  color: #9fb0c9;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 10px 12px 8px;
  cursor: pointer;
}

.nav-group-toggle:hover {
  color: #ffffff;
}

.nav-group-toggle.active {
  color: #ffffff;
}

.nav-caret {
  font-size: 13px;
  transition: transform .2s ease;
}

.nav-caret.open {
  transform: rotate(180deg);
}

.nav-group-links {
  display: none;
  padding-bottom: 6px;
}

.nav-group-links.open {
  display: block;
}

.nav-group-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  margin: 4px 8px;
  color: #e8eefc;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.nav-group-links a:hover {
  background: rgba(255,255,255,.06);
  color: #ffffff;
  transform: translateX(2px);
}

.nav-group-links a.active {
  background: #4e7bff;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(78,123,255,.22);
}
.page-title--with-back{
display:flex;
align-items:center;
gap:12px;
flex-wrap:wrap;
}

/* =======================
   MODERN DASHBOARD
   ======================= */

.dashboard-modern{
  display:grid;
  gap:20px;
}

.hero-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
  padding:24px;
  border-radius:24px;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,.22), transparent 30%),
    linear-gradient(135deg, var(--primary), var(--primary-dark));
  color:#fff;
  box-shadow:0 18px 40px rgba(31,111,209,.22);
}

.hero-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.16);
  font-size:12px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.hero-title{
  margin:12px 0 8px;
  font-size:clamp(28px, 4vw, 40px);
  line-height:1.1;
}

.hero-subtitle{
  margin:0;
  max-width:720px;
  color:rgba(255,255,255,.88);
  font-size:15px;
  line-height:1.6;
}

.hero-card__actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.hero-card .btn{
  border-color:transparent;
}

.hero-card .btn-muted{
  background:rgba(255,255,255,.14);
  color:#fff;
}

.hero-card .btn-muted:hover{
  background:rgba(255,255,255,.20);
}

.hero-card .btn-primary{
  background:#fff;
  color:var(--primary-dark);
}

.hero-card .btn-primary:hover{
  filter:none;
  background:#f7fbff;
}

.stats-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:16px;
}

.stat-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:20px;
  box-shadow:var(--shadow);
  padding:18px;
}

.stat-card__label{
  color:var(--muted);
  font-size:13px;
  font-weight:800;
  margin-bottom:10px;
}

.stat-card__value{
  font-size:28px;
  font-weight:900;
  line-height:1.15;
  color:var(--text);
}

.stat-card__note{
  margin-top:8px;
  font-size:12.5px;
  color:var(--muted);
}

.stat-card--accent{
  background:linear-gradient(135deg, #f8fbff, #eef5ff);
  border-color:rgba(31,111,209,.18);
}

.dashboard-block{
  display:grid;
  gap:14px;
}

.dashboard-block__header{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.dashboard-block__header h3{
  margin:0;
  font-size:22px;
  line-height:1.2;
}

.dashboard-block__header p{
  margin:6px 0 0;
  color:var(--muted);
  font-size:14px;
}

.action-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:16px;
}

.action-grid--single{
  grid-template-columns:1fr;
}

.modern-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:22px;
  box-shadow:var(--shadow);
  padding:20px;
  display:flex;
  flex-direction:column;
  gap:12px;
  min-height:220px;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.modern-card:hover{
  transform:translateY(-3px);
  box-shadow:0 18px 30px rgba(20,30,50,.10);
  border-color:rgba(31,111,209,.16);
}

.modern-card--highlight{
  background:linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
  border-color:rgba(31,111,209,.18);
}

.modern-card__icon{
  width:52px;
  height:52px;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:24px;
  background:rgba(31,111,209,.10);
}

.modern-card h4{
  margin:0;
  font-size:18px;
}

.modern-card p{
  margin:0;
  color:var(--muted);
  line-height:1.55;
  flex:1;
}

.modern-card__count{
  font-size:32px !important;
  font-weight:900;
  color:var(--text) !important;
  line-height:1.1;
}

.finance-grid{
  display:grid;
  grid-template-columns:repeat(5, minmax(0,1fr));
  gap:16px;
}

.finance-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:20px;
  box-shadow:var(--shadow);
  padding:18px;
  display:grid;
  gap:10px;
}

.finance-card span{
  color:var(--muted);
  font-size:13px;
  font-weight:800;
}

.finance-card strong{
  font-size:22px;
  line-height:1.2;
}

.finance-card--danger{
  border-color:rgba(239,68,68,.18);
  background:linear-gradient(180deg, #fff, #fff6f6);
}

@media (max-width:1200px){
  .stats-grid,
  .action-grid,
  .finance-grid{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }
}

@media (max-width:700px){
  .hero-card{
    padding:18px;
    border-radius:18px;
  }

  .stats-grid,
  .action-grid,
  .finance-grid{
    grid-template-columns:1fr;
  }

  .modern-card{
    min-height:auto;
  }
}

.financial-panel{
  background: linear-gradient(135deg,#2563eb,#1d4ed8);
  color:#fff;
  padding:24px;
  border-radius:14px;
  margin-bottom:18px;
}

.financial-title{
  font-size:14px;
  opacity:.9;
  margin-bottom:6px;
}

.financial-amount{
  font-size:26px;
  font-weight:900;
}

.financial-grid{
  display:grid;
  grid-template-columns: repeat(4,1fr);
  gap:18px;
  margin-top:16px;
}

.financial-box{
  background:rgba(255,255,255,.12);
  padding:14px;
  border-radius:10px;
}
.dashboard-modern{
  padding: 24px;
  margin-top: 10px;
}
.financial-panel{
  margin-bottom: 25px;
}
/* =======================
   MODERN SIDEBAR NAV
   ======================= */

.app-nav{
  border-top:1px solid rgba(255,255,255,.08);
  padding-top:16px;
  display:grid;
  gap:6px;
}

/* main links */
.app-nav a{
  position:relative;
  display:flex;
  align-items:center;
  gap:12px;
  color:rgba(255,255,255,.88);
  text-decoration:none;
  padding:13px 14px;
  border-radius:14px;
  margin:0;
  font-weight:700;
  font-size:14px;
  transition:all .18s ease;
}

.app-nav a:hover{
  background:rgba(255,255,255,.07);
  color:#fff;
  transform:translateX(3px);
}

/* active link */
.app-nav a.active{
  background:linear-gradient(135deg, var(--primary), var(--primary-dark));
  color:#fff;
  box-shadow:0 12px 24px rgba(31,111,209,.24);
}

.app-nav a.active::before{
  content:"";
  position:absolute;
  left:8px;
  top:10px;
  bottom:10px;
  width:4px;
  border-radius:999px;
  background:rgba(255,255,255,.9);
}

/* divider */
.nav-divider{
  height:1px;
  background:rgba(255,255,255,.08);
  margin:10px 0;
}

/* nav group container */
.nav-group{
  display:grid;
  gap:4px;
}

/* group button */
.nav-group-toggle{
  width:100%;
  position:relative;
  display:flex;
  justify-content:space-between;
  align-items:center;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.06);
  color:#d9e4f7;
  font-size:12px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  padding:12px 14px;
  border-radius:14px;
  cursor:pointer;
  transition:all .18s ease;
}

.nav-group-toggle:hover{
  background:rgba(255,255,255,.08);
  color:#ffffff;
  transform:translateX(2px);
}

.nav-group-toggle.active{
  background:linear-gradient(135deg, rgba(31,111,209,.22), rgba(21,87,166,.20));
  border-color:rgba(31,111,209,.32);
  color:#ffffff;
  box-shadow:0 10px 22px rgba(31,111,209,.16);
}

/* caret */
.nav-caret{
  font-size:13px;
  transition:transform .2s ease;
  opacity:.9;
}

.nav-caret.open{
  transform:rotate(180deg);
}

/* sub links wrapper */
.nav-group-links{
  display:none;
  padding:4px 0 6px 0;
}

.nav-group-links.open{
  display:block;
}

/* sub links */
.nav-group-links a{
  position:relative;
  display:flex;
  align-items:center;
  gap:10px;
  padding:11px 14px 11px 18px;
  border-radius:12px;
  margin:4px 6px 4px 10px;
  color:#e8eefc;
  text-decoration:none;
  font-size:14px;
  font-weight:700;
  transition:all .18s ease;
}

.nav-group-links a:hover{
  background:rgba(255,255,255,.06);
  color:#ffffff;
  transform:translateX(3px);
}

.nav-group-links a.active{
  background:linear-gradient(135deg, var(--primary), var(--primary-dark));
  color:#ffffff;
  box-shadow:0 10px 22px rgba(31,111,209,.22);
}

.nav-group-links a.active::before{
  content:"";
  position:absolute;
  left:8px;
  top:8px;
  bottom:8px;
  width:4px;
  border-radius:999px;
  background:rgba(255,255,255,.9);
}
/* =======================
   PROFILE PAGE
   ======================= */

.profile-page{
  display:grid;
  gap:18px;
}

.profile-hero{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:16px;
  align-items:stretch;
}

.profile-hero__main,
.profile-hero__side{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:22px;
  box-shadow:var(--shadow);
  padding:20px;
}

.profile-hero__main{
  display:flex;
  align-items:center;
  gap:16px;
}

.profile-avatar{
  width:72px;
  height:72px;
  border-radius:22px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg, var(--primary), var(--primary-dark));
  color:#fff;
  font-size:28px;
  font-weight:900;
  flex:0 0 72px;
}

.profile-hero__name{
  margin:0 0 8px;
  font-size:26px;
  line-height:1.15;
}

.profile-hero__meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:10px;
}

.profile-hero__text{
  margin:0;
  color:var(--muted);
  line-height:1.6;
}

.profile-completion{
  display:grid;
  gap:12px;
}

.profile-completion__top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.profile-completion__label{
  font-size:13px;
  font-weight:800;
  color:var(--muted);
}

.profile-completion__value{
  font-size:30px;
  font-weight:900;
  line-height:1.1;
}

.progress{
  width:100%;
  height:10px;
  border-radius:999px;
  background:#eaf0f7;
  overflow:hidden;
}

.progress-bar{
  height:100%;
  border-radius:999px;
  background:linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.section-card__header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.section-card__header h3{
  margin:0;
  font-size:20px;
}

.section-card__header p{
  margin:6px 0 0;
  color:var(--muted);
  font-size:14px;
}

.summary-inline{
  margin-top:14px;
  color:var(--text);
  line-height:1.8;
}

.summary-sep{
  display:inline-block;
  margin:0 10px;
  color:var(--muted);
}

.empty-state{
  text-align:center;
  color:var(--muted);
  padding:28px 18px;
}

.profile-table th{
  width:280px;
  background:#f8fbff;
}

.badge-danger{
  border-color: rgba(239,68,68,.35);
  color:#b91c1c;
  background: rgba(239,68,68,.10);
}

.badge-warning{
  border-color: rgba(245,158,11,.35);
  color:#b45309;
  background: rgba(245,158,11,.10);
}

.text-danger{
  color:#b91c1c;
}

@media (max-width:900px){
  .profile-hero{
    grid-template-columns:1fr;
  }

  .profile-hero__main{
    align-items:flex-start;
  }

  .profile-table th{
    width:auto;
  }

  .summary-sep{
    display:none;
  }
}
/* =======================
   MEMBERS PAGE
   ======================= */

.members-page{
  display:grid;
  gap:18px;
}

.members-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}

.members-search{
  flex:1;
  min-width:min(100%, 520px);
}

.members-search__box{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.members-search__box input{
  flex:1;
  min-width:260px;
  height:44px;
}

.members-toolbar__meta{
  display:flex;
  align-items:center;
  gap:10px;
}

.members-table th,
.members-table td{
  vertical-align:middle;
}

.member-link{
  color:var(--text);
  text-decoration:none;
}

.member-link:hover{
  color:var(--primary-dark);
  text-decoration:underline;
}

.member-number{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  background:#f3f6fb;
  border:1px solid var(--border);
  font-weight:800;
  font-size:12px;
}

.row-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.empty-inline{
  text-align:center;
  color:var(--muted);
  padding:20px 10px;
}

.badge-role{
  background:rgba(31,111,209,.10);
  color:var(--primary-dark);
  border-color:rgba(31,111,209,.20);
}

@media (max-width:900px){
.members-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
}

.members-search{
  flex:1;
  min-width:min(100%, 520px);
  margin-right:12px;
}

.members-search__box{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.members-search__box input{
  flex:1;
  min-width:260px;
  height:44px;
}

.members-search__box .btn{
  min-width:100px;
}

.members-toolbar__meta{
  display:flex;
  align-items:center;
  gap:12px;
  margin-left:auto;
}
}

/* row action dropdown */
.action-menu{
  position:relative;
}

.action-menu__toggle{
  min-width:90px;
}

.action-menu__dropdown{
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  min-width:170px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:14px;
  box-shadow:0 14px 28px rgba(20,30,50,.12);
  padding:8px;
  z-index:100;
  opacity:0;
  visibility:hidden;
  transform:translateY(6px);
  transition:opacity .18s ease, transform .18s ease, visibility .18s ease;
}

/* hover au focus */
.action-menu:hover .action-menu__dropdown,
.action-menu:focus-within .action-menu__dropdown{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}

.action-menu__dropdown form{
  margin:0;
}

.action-menu__item{
  width:100%;
  border:none;
  background:#fff;
  text-align:left;
  padding:10px 12px;
  border-radius:10px;
  font-weight:700;
  cursor:pointer;
  transition:background .18s ease, color .18s ease;
}

.action-menu__item:hover{
  background:#f5f8fc;
}

.action-menu__item--danger{
  color:#b91c1c;
}

.action-menu__item--danger:hover{
  background:rgba(239,68,68,.08);
}

.action-menu__item--primary{
  color:var(--primary-dark);
}

.action-menu__item--primary:hover{
  background:rgba(31,111,209,.08);
}

/* =======================
   ADD MEMBER PAGE
   ======================= */

.member-add-page{
  display:grid;
  gap:18px;
}

.member-form-layout{
  display:grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap:18px;
  align-items:start;
}

.member-form-card{
  padding:20px;
}

.form-intro{
  padding:22px;
  display:grid;
  gap:14px;
}

.form-intro__icon{
  width:58px;
  height:58px;
  border-radius:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg, var(--primary), var(--primary-dark));
  color:#fff;
  font-size:26px;
  box-shadow:0 12px 24px rgba(31,111,209,.20);
}

.form-intro h3{
  margin:0;
  font-size:22px;
}

.form-intro p{
  margin:0;
  color:var(--muted);
  line-height:1.7;
}

.form-intro__tips{
  display:grid;
  gap:10px;
}

.form-tip{
  display:grid;
  gap:4px;
  padding:12px 14px;
  background:#f8fbff;
  border:1px solid rgba(31,111,209,.10);
  border-radius:14px;
}

.form-tip strong{
  font-size:14px;
  color:var(--text);
}

.form-tip span{
  color:var(--muted);
  font-size:13px;
  line-height:1.5;
}

.member-form-actions{
  margin-top:18px;
  justify-content:flex-start;
}

@media (max-width: 950px){
  .member-form-layout{
    grid-template-columns:1fr;
  }
}
/* =======================
   SHARES ADD PAGE
   ======================= */

.shares-add-page{
  display:grid;
  gap:18px;
}

.shares-layout{
  display:grid;
  grid-template-columns:0.9fr 1.1fr;
  gap:18px;
  align-items:start;
}

.shares-info{
  padding:22px;
  display:grid;
  gap:14px;
}

.shares-info__icon{
  width:56px;
  height:56px;
  border-radius:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,var(--primary),var(--primary-dark));
  color:#fff;
  font-size:24px;
}

.shares-info h3{
  margin:0;
  font-size:22px;
}

.shares-info p{
  margin:0;
  color:var(--muted);
  line-height:1.7;
}

.shares-info__tips{
  display:grid;
  gap:10px;
}

.shares-tip{
  padding:12px 14px;
  background:#f8fbff;
  border:1px solid rgba(31,111,209,.10);
  border-radius:14px;
  display:grid;
  gap:4px;
}

.shares-tip strong{
  font-size:14px;
}

.shares-tip span{
  font-size:13px;
  color:var(--muted);
}

.shares-form{
  padding:20px;
}

@media (max-width:900px){
  .shares-layout{
    grid-template-columns:1fr;
  }
}
/* =======================
   PENDING PAYMENTS PAGE
   ======================= */

.pending-payments-page{
  display:grid;
  gap:18px;
}

.pending-tabs-card{
  padding:14px;
}

.tabs-pending{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.tabs-pending .tab{
  display:flex;
  align-items:center;
  gap:6px;
}

.tabs-pending .badge{
  font-size:11px;
  padding:4px 8px;
}

.tabs-pending .badge.danger{
  background:rgba(239,68,68,.15);
  color:#b91c1c;
  border-color:rgba(239,68,68,.25);
}
/* =======================
   PENDING TAB TABLES
   ======================= */

.tab-content{
  display:grid;
  gap:16px;
}

.tab-content .card{
  border-radius:20px;
  box-shadow:var(--shadow);
}

.tab-content .table-wrap{
  border-radius:18px;
  overflow:auto;
  background:#fff;
}

.tab-content .table,
.tab-content table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  min-width:920px;
}

.tab-content thead th{
  position:sticky;
  top:0;
  z-index:2;
  background:#f8fbff;
  color:var(--text);
  font-size:12.5px;
  font-weight:900;
  letter-spacing:.02em;
  text-transform:uppercase;
  padding:14px 14px;
  border-bottom:1px solid var(--border);
  white-space:nowrap;
}

.tab-content tbody td{
  padding:14px 14px;
  border-bottom:1px solid #edf2f7;
  vertical-align:middle;
  background:#fff;
}

.tab-content tbody tr:hover td{
  background:#fbfdff;
}

.tab-content tbody tr:last-child td{
  border-bottom:none;
}

/* member name / ids */
.pending-member{
  display:grid;
  gap:4px;
}

.pending-member__name{
  font-weight:800;
  color:var(--text);
}

.pending-member__number{
  font-size:12px;
  color:var(--muted);
}

/* amount */
.amount{
  font-weight:900;
  color:var(--text);
  white-space:nowrap;
}

.amount.amount-danger{
  color:#b91c1c;
}

.amount.amount-primary{
  color:var(--primary-dark);
}

/* action area */
.table-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.table-actions .btn{
  min-height:38px;
  padding:9px 12px;
  border-radius:10px;
}

/* compact button */
.btn-sm{
  padding:8px 12px;
  min-height:36px;
  font-size:13px;
  border-radius:10px;
}

/* attachment button/link */
.attachment-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-weight:700;
  text-decoration:none;
  color:var(--primary-dark);
}

.attachment-link:hover{
  text-decoration:underline;
}

/* status chips */
.status-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  border:1px solid transparent;
  white-space:nowrap;
}

.status-chip--pending{
  color:#b45309;
  background:rgba(245,158,11,.12);
  border-color:rgba(245,158,11,.24);
}

.status-chip--approved{
  color:#166534;
  background:rgba(22,163,74,.12);
  border-color:rgba(22,163,74,.24);
}

.status-chip--rejected{
  color:#b91c1c;
  background:rgba(239,68,68,.12);
  border-color:rgba(239,68,68,.24);
}

.status-chip--info{
  color:var(--primary-dark);
  background:rgba(31,111,209,.10);
  border-color:rgba(31,111,209,.18);
}

/* summary bar above each table if available */
.pending-summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  padding:16px 18px;
  border:1px solid var(--border);
  border-radius:18px;
  background:#fff;
  box-shadow:var(--shadow);
}

.pending-summary__title{
  margin:0;
  font-size:18px;
  font-weight:900;
}

.pending-summary__text{
  margin:4px 0 0;
  color:var(--muted);
  font-size:13px;
}

.pending-summary__meta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* empty state */
.pending-empty{
  text-align:center;
  padding:36px 20px;
  color:var(--muted);
  background:#fff;
  border:1px solid var(--border);
  border-radius:20px;
  box-shadow:var(--shadow);
}

/* reject reason textarea area */
.inline-reject{
  display:grid;
  gap:8px;
  min-width:220px;
}

.inline-reject textarea,
.inline-reject input[type="text"]{
  min-height:40px;
}

/* mobile */
@media (max-width:900px){
  .tab-content .table,
  .tab-content table{
    min-width:760px;
  }

  .pending-summary{
    align-items:flex-start;
  }
}
/* =======================
   PAYMENTS PENDING PREMIUM
   ======================= */

.pending-payments-page{
  display:grid;
  gap:18px;
}

.pending-overview{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:18px;
}

.pending-overview__main{
  background:linear-gradient(135deg, var(--primary), var(--primary-dark));
  color:#fff;
  border-radius:24px;
  padding:24px;
  box-shadow:0 18px 40px rgba(31,111,209,.22);
}

.pending-overview__label{
  font-size:13px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  opacity:.9;
}

.pending-overview__value{
  font-size:48px;
  font-weight:900;
  line-height:1;
  margin:10px 0 12px;
}

.pending-overview__text{
  color:rgba(255,255,255,.88);
  line-height:1.7;
  max-width:620px;
}

.pending-overview__stats{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:14px;
}

.pending-mini-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:20px;
  box-shadow:var(--shadow);
  padding:18px;
  display:grid;
  gap:8px;
}

.pending-mini-card span{
  font-size:13px;
  color:var(--muted);
  font-weight:800;
}

.pending-mini-card strong{
  font-size:28px;
  line-height:1.1;
}

.pending-tabs-shell{
  padding:14px;
}

.tabs-pending{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.tabs-pending .tab{
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.pending-pane{
  display:grid;
  gap:16px;
}

.pending-summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  padding:18px 20px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:20px;
  box-shadow:var(--shadow);
}

.pending-summary__title{
  margin:0;
  font-size:20px;
  font-weight:900;
}

.pending-summary__text{
  margin:6px 0 0;
  color:var(--muted);
  font-size:14px;
  line-height:1.6;
}

.pending-summary__meta{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

@media (max-width:950px){
  .pending-overview{
    grid-template-columns:1fr;
  }

  .pending-overview__stats{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }
}

@media (max-width:640px){
  .pending-overview__stats{
    grid-template-columns:1fr;
  }
}
/* =======================
   SOCIAL FUND ADD PAGE
   ======================= */

.social-add-page{
  display:grid;
  gap:18px;
}

.social-layout{
  display:grid;
  grid-template-columns:0.9fr 1.1fr;
  gap:18px;
  align-items:start;
}

.social-info{
  padding:22px;
  display:grid;
  gap:14px;
}

.social-info__icon{
  width:56px;
  height:56px;
  border-radius:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,var(--primary),var(--primary-dark));
  color:#fff;
  font-size:24px;
}

.social-info h3{
  margin:0;
  font-size:22px;
}

.social-info p{
  margin:0;
  color:var(--muted);
  line-height:1.7;
}

.social-info__tips{
  display:grid;
  gap:10px;
}

.social-tip{
  padding:12px 14px;
  background:#f8fbff;
  border:1px solid rgba(31,111,209,.10);
  border-radius:14px;
  display:grid;
  gap:4px;
}

.social-tip strong{
  font-size:14px;
}

.social-tip span{
  font-size:13px;
  color:var(--muted);
}

.social-form{
  padding:20px;
}

@media (max-width:900px){
  .social-layout{
    grid-template-columns:1fr;
  }
}
/* =======================
   EXPENSES PAGE
   ======================= */

.expenses-page{
  display:grid;
  gap:18px;
}

.expenses-summary-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.expenses-summary-bar__left{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  color:var(--text);
}

.expenses-summary-bar__right{
  display:flex;
  align-items:center;
  gap:10px;
}

.expenses-table th,
.expenses-table td{
  vertical-align:middle;
}
/* =======================
   EXPENSES ADD PAGE
   ======================= */

.expenses-add-page{
  display:grid;
  gap:18px;
}

.expenses-add-layout{
  display:grid;
  grid-template-columns:0.9fr 1.1fr;
  gap:18px;
}

.expense-info{
  padding:22px;
  display:grid;
  gap:14px;
}

.expense-info__icon{
  width:56px;
  height:56px;
  border-radius:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,var(--primary),var(--primary-dark));
  color:#fff;
  font-size:24px;
}

.expense-info h3{
  margin:0;
  font-size:22px;
}

.expense-info p{
  margin:0;
  color:var(--muted);
  line-height:1.7;
}

.expense-tips{
  display:grid;
  gap:10px;
}

.expense-tip{
  padding:12px 14px;
  background:#f8fbff;
  border:1px solid rgba(31,111,209,.10);
  border-radius:14px;
  display:grid;
  gap:4px;
}

.expense-tip strong{
  font-size:14px;
}

.expense-tip span{
  font-size:13px;
  color:var(--muted);
}

.expense-form{
  padding:20px;
}

@media (max-width:900px){
  .expenses-add-layout{
    grid-template-columns:1fr;
  }
}
/* =======================
   EXPENSES PENDING PAGE
   ======================= */

.expenses-pending-page{
  display:grid;
  gap:18px;
}

.expenses-pending-summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.expenses-pending-summary__left{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  color:var(--text);
}

.expenses-pending-summary__right{
  display:flex;
  align-items:center;
  gap:10px;
}

.expenses-pending-table th,
.expenses-pending-table td{
  vertical-align:middle;
}
/* =======================
   LOAN ELIGIBILITY PAGE
   ======================= */

.loans-eligibility-page{
  display:grid;
  gap:18px;
}

.loan-eligibility-layout{
  display:grid;
  grid-template-columns:0.9fr 1.1fr;
  gap:18px;
  align-items:start;
}

.loan-info-card{
  padding:22px;
  display:grid;
  gap:14px;
}

.loan-info-card__icon{
  width:56px;
  height:56px;
  border-radius:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,var(--primary),var(--primary-dark));
  color:#fff;
  font-size:24px;
}

.loan-info-card h3{
  margin:0;
  font-size:22px;
}

.loan-info-card p{
  margin:0;
  color:var(--muted);
  line-height:1.7;
}

.loan-tips{
  display:grid;
  gap:10px;
}

.loan-tip{
  padding:12px 14px;
  background:#f8fbff;
  border:1px solid rgba(31,111,209,.10);
  border-radius:14px;
  display:grid;
  gap:4px;
}

.loan-tip strong{
  font-size:14px;
}

.loan-tip span{
  font-size:13px;
  color:var(--muted);
}

.loan-cards-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:18px;
}

.loan-option-card{
  padding:20px;
  display:grid;
  gap:16px;
}

.loan-option-card__head{
  display:grid;
  gap:8px;
}

.loan-option-card__head h3{
  margin:0;
  font-size:20px;
}

.loan-option-card__badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:max-content;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(31,111,209,.10);
  color:var(--primary-dark);
  font-weight:800;
  font-size:12px;
}

.loan-amount-box{
  padding:16px;
  border-radius:16px;
  background:#f8fbff;
  border:1px solid rgba(31,111,209,.10);
  display:grid;
  gap:6px;
}

.loan-amount-box span{
  color:var(--muted);
  font-size:13px;
  font-weight:700;
}

.loan-amount-box strong{
  font-size:28px;
  line-height:1.1;
  color:var(--text);
}

.loan-state{
  padding:14px 16px;
  border-radius:14px;
  font-weight:700;
  line-height:1.6;
}

.loan-state--danger{
  background:rgba(239,68,68,.10);
  color:#b91c1c;
  border:1px solid rgba(239,68,68,.20);
}

.loan-state--warning{
  background:rgba(245,158,11,.10);
  color:#b45309;
  border:1px solid rgba(245,158,11,.20);
}

@media (max-width:950px){
  .loan-eligibility-layout{
    grid-template-columns:1fr;
  }

  .loan-cards-grid{
    grid-template-columns:1fr;
  }
}
/* =======================
   LOAN APPLY PAGE
   ======================= */

.loan-apply-page{
  display:grid;
  gap:18px;
}

.loan-apply-layout{
  display:grid;
  grid-template-columns:0.9fr 1.1fr;
  gap:18px;
  align-items:start;
}

.loan-apply-info{
  padding:22px;
  display:grid;
  gap:14px;
}

.loan-apply-info__icon{
  width:56px;
  height:56px;
  border-radius:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,var(--primary),var(--primary-dark));
  color:#fff;
  font-size:24px;
}

.loan-apply-info h3{
  margin:0;
  font-size:22px;
}

.loan-apply-info p{
  margin:0;
  color:var(--muted);
  line-height:1.7;
}

.loan-apply-summary{
  display:grid;
  gap:10px;
}

.loan-apply-summary__item{
  padding:14px 16px;
  border-radius:14px;
  background:#f8fbff;
  border:1px solid rgba(31,111,209,.10);
  display:grid;
  gap:5px;
}

.loan-apply-summary__item span{
  font-size:13px;
  color:var(--muted);
  font-weight:700;
}

.loan-apply-summary__item strong{
  font-size:24px;
  line-height:1.1;
  color:var(--text);
}

.loan-apply-form-card{
  padding:20px;
}

.guarantor-box{
  display:grid;
  gap:12px;
}

.guarantor-box__header h3{
  margin:0;
  font-size:18px;
}

.guarantor-search{
  max-width:360px;
}

.guarantor-list{
  border:1px solid var(--border);
  padding:12px;
  max-height:260px;
  overflow-y:auto;
  border-radius:14px;
  background:#fff;
}

.guarantor-item{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:8px;
  cursor:pointer;
  padding:8px 10px;
  border-radius:10px;
  transition:background .15s ease;
}

.guarantor-item:hover{
  background:#f8fbff;
}

@media (max-width:950px){
  .loan-apply-layout{
    grid-template-columns:1fr;
  }
}
/* =======================
   LOAN APPLY PAGE
   ======================= */

.loan-apply-page{
  display:grid;
  gap:18px;
}

.loan-apply-layout{
  display:grid;
  grid-template-columns:0.9fr 1.1fr;
  gap:18px;
  align-items:start;
}

.loan-apply-info{
  padding:22px;
  display:grid;
  gap:14px;
}

.loan-apply-info__icon{
  width:56px;
  height:56px;
  border-radius:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,var(--primary),var(--primary-dark));
  color:#fff;
  font-size:24px;
}

.loan-apply-info h3{
  margin:0;
  font-size:22px;
}

.loan-apply-info p{
  margin:0;
  color:var(--muted);
  line-height:1.7;
}

.loan-apply-summary{
  display:grid;
  gap:10px;
}

.loan-apply-summary__item{
  padding:14px 16px;
  border-radius:14px;
  background:#f8fbff;
  border:1px solid rgba(31,111,209,.10);
  display:grid;
  gap:5px;
}

.loan-apply-summary__item--primary{
  background:linear-gradient(180deg,#f8fbff 0%, #eef5ff 100%);
  border-color:rgba(31,111,209,.18);
}

.loan-apply-summary__item span{
  font-size:13px;
  color:var(--muted);
  font-weight:700;
}

.loan-apply-summary__item strong{
  font-size:24px;
  line-height:1.1;
  color:var(--text);
}

.loan-apply-form-card{
  padding:20px;
}

.guarantor-box{
  display:grid;
  gap:12px;
}

.guarantor-box__header h3{
  margin:0;
  font-size:18px;
}

.guarantor-search{
  max-width:360px;
}

.guarantor-list{
  border:1px solid var(--border);
  padding:12px;
  max-height:260px;
  overflow-y:auto;
  border-radius:14px;
  background:#fff;
}

.guarantor-item{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:8px;
  cursor:pointer;
  padding:8px 10px;
  border-radius:10px;
  transition:background .15s ease;
}

.guarantor-item:hover{
  background:#f8fbff;
}

@media (max-width:950px){
  .loan-apply-layout{
    grid-template-columns:1fr;
  }
}
/* LOAN SUCCESS PAGE */

.loan-success-card{
  text-align:center;
  max-width:520px;
  margin:auto;
}

.loan-success-icon{
  width:64px;
  height:64px;
  border-radius:50%;
  background:#22c55e;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:28px;
  margin:0 auto 12px auto;
}

.loan-success-text{
  color:var(--muted);
  margin-bottom:16px;
}

.loan-steps{
  text-align:left;
  margin-bottom:16px;
}

.loan-step{
  padding:10px 12px;
  border-radius:10px;
  background:#f8fafc;
  margin-bottom:8px;
}

.loan-step strong{
  display:block;
  font-size:14px;
}

.loan-step span{
  font-size:13px;
  color:var(--muted);
}

.loan-success-actions{
  justify-content:center;
  gap:10px;
}

.loan-success-help{
  margin-top:12px;
}
/* ======================
   REQUIRED ACTION CARD
   ====================== */

.required-section{
margin-top:20px;
}

.required-card{
display:flex;
gap:16px;
align-items:center;
background:#fff7ed;
border:1px solid #fed7aa;
}

.required-icon{
font-size:34px;
}

.required-content h4{
margin:0 0 6px;
}

.required-content p{
margin:0 0 6px;
color:var(--muted);
}
/* =======================
   UPLOAD SIGNED LOAN FORM
   ======================= */

.upload-loan-page{
  display:grid;
  gap:18px;
}

.upload-loan-layout{
  display:grid;
  grid-template-columns:0.9fr 1.1fr;
  gap:18px;
  align-items:start;
}

.upload-loan-info{
  padding:22px;
  display:grid;
  gap:14px;
}

.upload-loan-info__icon{
  width:56px;
  height:56px;
  border-radius:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,var(--primary),var(--primary-dark));
  color:#fff;
  font-size:24px;
}

.upload-loan-info h3{
  margin:0;
  font-size:22px;
}

.upload-loan-info p{
  margin:0;
  color:var(--muted);
  line-height:1.7;
}

.upload-loan-steps{
  display:grid;
  gap:10px;
}

.upload-loan-step{
  padding:12px 14px;
  background:#f8fbff;
  border:1px solid rgba(31,111,209,.10);
  border-radius:14px;
  display:grid;
  gap:4px;
}

.upload-loan-step strong{
  font-size:14px;
}

.upload-loan-step span{
  font-size:13px;
  color:var(--muted);
}

.upload-loan-form-card{
  padding:20px;
}

@media (max-width:950px){
  .upload-loan-layout{
    grid-template-columns:1fr;
  }
}
/* =======================
   LOAN PROGRESS TRACKER
   ======================= */

.loan-progress-card{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:18px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:22px;
  box-shadow:var(--shadow);
  padding:20px;
}

.loan-progress-steps{
  display:grid;
  gap:14px;
}

.loan-step-item{
  position:relative;
  display:grid;
  grid-template-columns:18px 1fr;
  gap:12px;
  align-items:flex-start;
}

.loan-step-item__dot{
  width:14px;
  height:14px;
  border-radius:50%;
  margin-top:4px;
  background:#dbe3ee;
  border:2px solid #dbe3ee;
}

.loan-step-item.done .loan-step-item__dot{
  background:#22c55e;
  border-color:#22c55e;
}

.loan-step-item.current .loan-step-item__dot{
  background:#fff;
  border-color:var(--primary);
  box-shadow:0 0 0 4px rgba(31,111,209,.10);
}

.loan-step-item__content strong{
  display:block;
  margin-bottom:4px;
  font-size:15px;
}

.loan-step-item__content span{
  color:var(--muted);
  font-size:13px;
  line-height:1.5;
}

.loan-progress-side{
  display:grid;
  gap:14px;
  align-content:start;
}

.loan-progress-status{
  padding:16px;
  border-radius:16px;
  background:#f8fbff;
  border:1px solid rgba(31,111,209,.10);
  display:grid;
  gap:6px;
}

.loan-progress-status span{
  color:var(--muted);
  font-size:13px;
  font-weight:700;
}

.loan-progress-status strong{
  font-size:24px;
  line-height:1.1;
}

@media (max-width:950px){
  .loan-progress-card{
    grid-template-columns:1fr;
  }
}

/* =======================
   LOANS PENDING PAGE
   ======================= */

.loans-pending-page{
  display:grid;
  gap:18px;
}

.loans-pending-summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.loans-pending-summary__left{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  color:var(--text);
}

.loans-pending-summary__right{
  display:flex;
  align-items:center;
  gap:10px;
}

.loans-pending-table th,
.loans-pending-table td{
  vertical-align:middle;
}

.loan-muted{
  color:var(--muted);
  font-size:13px;
}

.guarantor-list-mini{
  margin:0;
  padding-left:18px;
}

.guarantor-list-mini li{
  margin-bottom:4px;
}

.empty-state{
  text-align:center;
  padding:36px 20px;
}

.empty-icon{
  font-size:38px;
  margin-bottom:10px;
}
/* =======================
   ALL LOANS PAGE
   ======================= */

.loans-all-page{
  display:grid;
  gap:18px;
}

.loans-overview-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.loans-overview-bar__left{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.loans-overview-bar__right{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.loans-all-table th,
.loans-all-table td{
  vertical-align:middle;
}

.loan-muted{
  color:var(--muted);
  font-size:13px;
}
/* =======================
   LOAN BALANCE PAGE
   ======================= */

.loan-balance-page{
  display:grid;
  gap:18px;
}

.loan-balance-overview{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:18px;
}

.loan-balance-hero{
  background:linear-gradient(135deg, var(--primary), var(--primary-dark));
  color:#fff;
  border-radius:24px;
  padding:24px;
  box-shadow:0 18px 40px rgba(31,111,209,.22);
}

.loan-balance-hero__label{
  font-size:13px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  opacity:.92;
  margin-bottom:10px;
}

.loan-balance-hero__status{
  margin-bottom:14px;
}

.loan-balance-hero__status .badge{
  background:rgba(255,255,255,.18);
  color:#fff;
  border-color:rgba(255,255,255,.22);
}

.loan-balance-hero__text{
  color:rgba(255,255,255,.92);
  line-height:1.7;
}

.loan-balance-stats{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
}

.loan-balance-stat{
  background:#fff;
  border:1px solid var(--border);
  border-radius:20px;
  box-shadow:var(--shadow);
  padding:18px;
  display:grid;
  gap:8px;
}

.loan-balance-stat span{
  font-size:13px;
  color:var(--muted);
  font-weight:800;
}

.loan-balance-stat strong{
  font-size:28px;
  line-height:1.1;
}

.loan-balance-stat--success{
  background:rgba(34,197,94,.08);
  border-color:rgba(34,197,94,.18);
}

.loan-balance-stat--danger{
  background:rgba(239,68,68,.06);
  border-color:rgba(239,68,68,.14);
}

.loan-balance-table th,
.loan-balance-table td{
  vertical-align:middle;
}

@media (max-width:950px){
  .loan-balance-overview{
    grid-template-columns:1fr;
  }
}
/* =======================
   FINES ADD PAGE
   ======================= */

.fines-add-page{
  display:grid;
  gap:18px;
}

.fines-add-layout{
  display:grid;
  grid-template-columns:0.9fr 1.1fr;
  gap:18px;
  align-items:start;
}

.fine-info-card{
  padding:22px;
  display:grid;
  gap:14px;
}

.fine-info-card__icon{
  width:56px;
  height:56px;
  border-radius:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,var(--primary),var(--primary-dark));
  color:#fff;
  font-size:24px;
}

.fine-info-card h3{
  margin:0;
  font-size:22px;
}

.fine-info-card p{
  margin:0;
  color:var(--muted);
  line-height:1.7;
}

.fine-tips{
  display:grid;
  gap:10px;
}

.fine-tip{
  padding:12px 14px;
  background:#f8fbff;
  border:1px solid rgba(31,111,209,.10);
  border-radius:14px;
  display:grid;
  gap:4px;
}

.fine-tip strong{
  font-size:14px;
}

.fine-tip span{
  font-size:13px;
  color:var(--muted);
}

.fine-form-card{
  padding:20px;
}

@media (max-width:950px){
  .fines-add-layout{
    grid-template-columns:1fr;
  }
}
/* =======================
   FINES INDEX PAGE
   ======================= */

.fines-index-page{
  display:grid;
  gap:18px;
}

.fines-overview-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.fines-overview-bar__left{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.fines-overview-bar__right{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.fines-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.fines-search-form{
  width:100%;
}

.fines-search-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.fines-search-row input{
  flex:1;
  min-width:260px;
}

.fines-search-row select{
  min-width:180px;
}

.fines-table th,
.fines-table td{
  vertical-align:middle;
}

@media (max-width:900px){
  .fines-search-row{
    flex-direction:column;
    align-items:stretch;
  }

  .fines-search-row input,
  .fines-search-row select,
  .fines-search-row .btn{
    width:100%;
  }
}
/* =======================
   MEETINGS INDEX PAGE
   ======================= */

.meetings-page{
  display:grid;
  gap:18px;
}

.meetings-filter-card{
  padding:0;
}

.meetings-summary-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.meetings-summary-bar__left{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  color:var(--text);
}

.meetings-summary-bar__right{
  display:flex;
  align-items:center;
  gap:10px;
}

.meetings-table th,
.meetings-table td{
  vertical-align:middle;
}
/* =======================
   MEETING SHOW PAGE
   ======================= */

.meeting-show-page{
  display:grid;
  gap:18px;
}

.meeting-show-layout{
  display:grid;
  gap:18px;
}

.meeting-main-card{
  padding:20px;
}

.meeting-main-grid{
  display:grid;
  grid-template-columns:repeat(12, minmax(0,1fr));
  gap:14px;
}

.meeting-info-box{
  grid-column:span 4;
  padding:14px 16px;
  border-radius:16px;
  background:#f8fbff;
  border:1px solid rgba(31,111,209,.10);
}

.meeting-info-box--full{
  grid-column:span 12;
}

.meeting-info-box__label{
  font-size:12px;
  font-weight:800;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.05em;
  margin-bottom:6px;
}

.meeting-info-box__value{
  line-height:1.6;
  color:var(--text);
}

.meeting-sections{
  display:grid;
  gap:16px;
}

.meeting-section-card{
  padding:0;
  overflow:hidden;
}

.meeting-section-card__header{
  padding:16px 18px;
  border-bottom:1px solid var(--border);
  background:#fbfcfe;
}

.meeting-section-card__header h3{
  margin:0;
  font-size:18px;
}

.meeting-section-card__body{
  padding:18px;
  line-height:1.7;
  color:var(--text);
  white-space:normal;
  word-break:break-word;
}

@media (max-width:900px){
  .meeting-info-box{
    grid-column:span 12;
  }
}

/* =======================
   MEETING CREATE PAGE
   ======================= */

.meeting-create-page{
  display:grid;
  gap:18px;
}

/* =======================
   MEETING ATTENDANCE PAGE
   ======================= */

.meeting-attendance-page{
  display:grid;
  gap:18px;
}

.meeting-attendance-info{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  color:var(--text);
}

.attendance-table th,
.attendance-table td{
  vertical-align:middle;
}

.attendance-table td strong{
  display:block;
}

.attendance-table select,
.attendance-table input[type="text"]{
  width:100%;
}

@media (max-width:900px){
  .attendance-table{
    min-width:720px;
  }
}

/* =======================
   GROUP SETTINGS PAGE
   ======================= */

.group-settings-page{
  display:grid;
  gap:18px;
}

.group-settings-layout{
  display:grid;
  grid-template-columns:0.9fr 1.1fr;
  gap:18px;
  align-items:start;
}

.group-settings-info{
  padding:22px;
  display:grid;
  gap:14px;
}

.group-settings-info__icon{
  width:56px;
  height:56px;
  border-radius:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,var(--primary),var(--primary-dark));
  color:#fff;
  font-size:24px;
}

.group-settings-info h3{
  margin:0;
  font-size:22px;
}

.group-settings-info p{
  margin:0;
  color:var(--muted);
  line-height:1.7;
}

.group-settings-tips{
  display:grid;
  gap:10px;
}

.group-settings-tip{
  padding:12px 14px;
  background:#f8fbff;
  border:1px solid rgba(31,111,209,.10);
  border-radius:14px;
  display:grid;
  gap:4px;
}

.group-settings-tip strong{
  font-size:14px;
}

.group-settings-tip span{
  font-size:13px;
  color:var(--muted);
}

.group-settings-form-card{
  padding:20px;
}

.group-settings-section{
  display:grid;
  gap:14px;
  margin-bottom:20px;
  padding-bottom:20px;
  border-bottom:1px solid var(--border);
}

.group-settings-section:last-of-type{
  margin-bottom:0;
  padding-bottom:0;
  border-bottom:none;
}

@media (max-width:950px){
  .group-settings-layout{
    grid-template-columns:1fr;
  }
}

/* =======================
   FINES PAY PAGE
   ======================= */

.fine-pay-page{
  display:grid;
  gap:18px;
}

.fine-pay-layout{
  display:grid;
  grid-template-columns:0.9fr 1.1fr;
  gap:18px;
  align-items:start;
}

.fine-pay-side{
  padding:22px;
  display:grid;
  gap:14px;
  background:linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.fine-pay-side__icon{
  width:56px;
  height:56px;
  border-radius:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg, #ef4444, #dc2626);
  color:#fff;
  font-size:24px;
  box-shadow:0 12px 24px rgba(239,68,68,.18);
}

.fine-pay-side__content h3{
  margin:0;
  font-size:22px;
}

.fine-pay-side__content p{
  margin:0;
  color:var(--muted);
  line-height:1.7;
}

.fine-pay-amount-box{
  padding:16px 18px;
  border-radius:16px;
  background:linear-gradient(135deg, rgba(239,68,68,.08), rgba(245,158,11,.08));
  border:1px solid rgba(239,68,68,.14);
  display:grid;
  gap:6px;
}

.fine-pay-amount-box span{
  font-size:13px;
  color:var(--muted);
  font-weight:800;
}

.fine-pay-amount-box strong{
  font-size:30px;
  line-height:1.1;
  color:var(--text);
}

.fine-pay-note{
  padding:14px 16px;
  border-radius:14px;
  background:#fff7ed;
  border:1px solid #fed7aa;
  color:#9a3412;
  line-height:1.6;
  font-size:14px;
}

.fine-pay-form-card{
  padding:20px;
}

.fine-pay-form-card__header{
  margin-bottom:16px;
}

.fine-pay-form-card__header h3{
  margin:0 0 6px;
  font-size:20px;
}

.fine-pay-form-card__header p{
  margin:0;
  color:var(--muted);
  line-height:1.6;
}

.fine-pay-form{
  background:transparent;
  border:none;
  box-shadow:none;
  padding:0;
}

.fine-upload-box{
  position:relative;
  display:flex;
  align-items:center;
  gap:14px;
  padding:18px;
  border:2px dashed #cbd5e1;
  border-radius:18px;
  background:#f8fafc;
  overflow:hidden;
  transition:border-color .18s ease, background .18s ease, transform .18s ease;
  min-height:92px;
}

.fine-upload-box:hover{
  border-color:var(--primary);
  background:#f8fbff;
  transform:translateY(-1px);
}

.fine-upload-box__icon{
  width:52px;
  height:52px;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(31,111,209,.10);
  color:var(--primary-dark);
  font-size:22px;
  flex:0 0 52px;
}

.fine-upload-box__content{
  display:grid;
  gap:4px;
}

.fine-upload-box__content strong{
  font-size:15px;
  color:var(--text);
}

.fine-upload-box__content span{
  font-size:13px;
  color:var(--muted);
}

.fine-upload-box__input{
  position:absolute;
  inset:0;
  opacity:0;
  cursor:pointer;
}

.fine-pay-actions{
  margin-top:18px;
  justify-content:space-between;
}

@media (max-width:950px){
  .fine-pay-layout{
    grid-template-columns:1fr;
  }
}

@media (max-width:640px){
  .fine-upload-box{
    align-items:flex-start;
  }

  .fine-pay-actions{
    flex-direction:column;
  }

  .fine-pay-actions .btn{
    width:100%;
  }

  .fine-pay-amount-box strong{
    font-size:24px;
  }
}
/* =======================
   LANDING PAGE MODERN
   ======================= */

.landing-modern{
  display:grid;
  gap:22px;
}

.landing-hero-modern{
  position:relative;
  overflow:hidden;
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:24px;
  padding:32px;
  border-radius:28px;
  background:
    radial-gradient(circle at top right, rgba(37,99,235,.14), transparent 28%),
    radial-gradient(circle at bottom left, rgba(16,185,129,.10), transparent 24%),
    linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

.landing-hero-modern::before{
  content:"";
  position:absolute;
  top:-80px;
  right:-80px;
  width:220px;
  height:220px;
  border-radius:50%;
  background:rgba(37,99,235,.08);
  pointer-events:none;
}

.landing-hero-modern__content{
  position:relative;
  z-index:1;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:18px;
}

.landing-badge{
  width:fit-content;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 14px;
  border-radius:999px;
  background:rgba(37,99,235,.10);
  color:var(--primary-dark);
  font-size:13px;
  font-weight:800;
}

.landing-title-modern{
  margin:0;
  font-size:clamp(32px, 5vw, 52px);
  line-height:1.08;
  letter-spacing:-.02em;
  color:var(--text);
}

.landing-subtitle-modern{
  margin:0;
  max-width:720px;
  font-size:17px;
  line-height:1.8;
  color:var(--muted);
}

.landing-cta-modern{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:6px;
}

.landing-cta-modern .btn{
  min-height:48px;
  padding:0 18px;
  display:inline-flex;
  align-items:center;
  gap:9px;
  border-radius:14px;
  font-weight:800;
}

.landing-note-modern{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:14px 16px;
  border-radius:16px;
  background:#eff6ff;
  border:1px solid #bfdbfe;
  color:#1e3a8a;
  line-height:1.7;
  font-size:14px;
}

.landing-note-modern i{
  margin-top:3px;
  flex:0 0 auto;
}

.landing-hero-modern__visual{
  position:relative;
  z-index:1;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:18px;
}

.landing-logo-wrap{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:220px;
  padding:24px;
  border-radius:24px;
  background:linear-gradient(135deg, rgba(255,255,255,.95), rgba(248,250,252,.92));
  border:1px solid rgba(148,163,184,.18);
  box-shadow:0 18px 40px rgba(15,23,42,.08);
}

.landing-logo-modern{
  width:min(100%, 240px);
  max-height:220px;
  object-fit:contain;
  display:block;
}

.landing-quick-stats{
  display:grid;
  gap:12px;
}

.landing-stat-card{
  display:flex;
  align-items:center;
  gap:14px;
  padding:14px 16px;
  border-radius:18px;
  background:#ffffff;
  border:1px solid rgba(226,232,240,.95);
  box-shadow:0 10px 24px rgba(15,23,42,.05);
}

.landing-stat-card__icon{
  width:46px;
  height:46px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(37,99,235,.10);
  color:var(--primary-dark);
  font-size:18px;
  flex:0 0 46px;
}

.landing-stat-card strong{
  display:block;
  color:var(--text);
  font-size:15px;
}

.landing-stat-card small{
  display:block;
  color:var(--muted);
  font-size:13px;
  margin-top:2px;
}

.landing-highlights{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:18px;
}

.landing-highlight-card{
  padding:24px 20px;
  border-radius:22px;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.landing-highlight-card:hover{
  transform:translateY(-4px);
  box-shadow:0 18px 36px rgba(15,23,42,.08);
}

.landing-highlight-card__icon{
  width:58px;
  height:58px;
  border-radius:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:24px;
  margin-bottom:16px;
}

.landing-highlight-card__icon.users{
  background:rgba(59,130,246,.12);
  color:#2563eb;
}

.landing-highlight-card__icon.shares{
  background:rgba(16,185,129,.12);
  color:#059669;
}

.landing-highlight-card__icon.loans{
  background:rgba(245,158,11,.14);
  color:#d97706;
}

.landing-highlight-card__icon.reports{
  background:rgba(168,85,247,.12);
  color:#7c3aed;
}

.landing-highlight-card h3{
  margin:0 0 10px;
  font-size:18px;
  color:var(--text);
}

.landing-highlight-card p{
  margin:0;
  color:var(--muted);
  line-height:1.75;
  font-size:14px;
}

.landing-bottom-band{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:14px;
  padding:18px 20px;
  border-radius:22px;
  background:linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color:#fff;
}

.landing-bottom-band__item{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:46px;
  text-align:center;
  font-weight:700;
  color:rgba(255,255,255,.94);
}

.landing-bottom-band__item i{
  color:#93c5fd;
}

@media (max-width:1100px){
  .landing-hero-modern{
    grid-template-columns:1fr;
  }

  .landing-highlights{
    grid-template-columns:repeat(2, 1fr);
  }

  .landing-bottom-band{
    grid-template-columns:repeat(2, 1fr);
  }
}

@media (max-width:640px){
  .landing-hero-modern{
    padding:20px;
    border-radius:22px;
  }

  .landing-title-modern{
    font-size:30px;
  }

  .landing-subtitle-modern{
    font-size:15px;
  }

  .landing-cta-modern{
    flex-direction:column;
  }

  .landing-cta-modern .btn{
    width:100%;
    justify-content:center;
  }

  .landing-logo-wrap{
    min-height:170px;
    padding:18px;
  }

  .landing-highlights{
    grid-template-columns:1fr;
  }

  .landing-bottom-band{
    grid-template-columns:1fr;
  }

  .landing-bottom-band__item{
    justify-content:flex-start;
  }
}

/* =======================
   LOGIN PAGE
   ======================= */

.login-page{
  min-height:calc(100vh - 120px);
  display:grid;
  align-items:center;
}

.login-shell{
  max-width:1080px;
  margin:0 auto;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0;
  overflow:hidden;
  padding:0;
  border-radius:28px;
}

.login-shell__visual{
  position:relative;
  padding:34px 30px;
  background:
    radial-gradient(circle at top right, rgba(37,99,235,.15), transparent 30%),
    radial-gradient(circle at bottom left, rgba(16,185,129,.10), transparent 24%),
    linear-gradient(135deg, #f8fbff 0%, #eef6ff 100%);
  border-right:1px solid var(--border);
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:18px;
}

.login-brand-badge{
  width:fit-content;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 14px;
  border-radius:999px;
  background:rgba(37,99,235,.10);
  color:var(--primary-dark);
  font-size:13px;
  font-weight:800;
}

.login-logo-wrap{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:180px;
  padding:18px;
  border-radius:24px;
  background:rgba(255,255,255,.78);
  border:1px solid rgba(148,163,184,.18);
  box-shadow:0 18px 40px rgba(15,23,42,.06);
}

.login-logo-modern{
  width:min(100%, 220px);
  max-height:180px;
  object-fit:contain;
  display:block;
}

.login-visual-title{
  margin:0;
  font-size:34px;
  line-height:1.1;
  color:var(--text);
}

.login-visual-subtitle{
  margin:0;
  color:var(--muted);
  font-size:15px;
  line-height:1.8;
}

.login-visual-points{
  display:grid;
  gap:12px;
  margin-top:6px;
}

.login-point{
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 16px;
  border-radius:18px;
  background:#fff;
  border:1px solid rgba(226,232,240,.95);
  box-shadow:0 10px 24px rgba(15,23,42,.04);
}

.login-point__icon{
  width:46px;
  height:46px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(37,99,235,.10);
  color:var(--primary-dark);
  font-size:18px;
  flex:0 0 46px;
}

.login-point strong{
  display:block;
  color:var(--text);
  font-size:15px;
}

.login-point small{
  display:block;
  color:var(--muted);
  font-size:13px;
  margin-top:2px;
}

.login-shell__form{
  padding:34px 30px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  background:#fff;
}

.login-form-head{
  margin-bottom:18px;
}

.login-form-head h2{
  margin:0 0 6px;
  font-size:28px;
  color:var(--text);
}

.login-form-head p{
  margin:0;
  color:var(--muted);
  line-height:1.7;
}

.login-form-modern{
  background:transparent;
  border:none;
  box-shadow:none;
  padding:0;
}

.input-icon-wrap{
  position:relative;
}

.input-icon{
  position:absolute;
  top:50%;
  left:14px;
  transform:translateY(-50%);
  width:20px;
  height:20px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--muted);
  pointer-events:none;
}

.input-icon-wrap input{
  padding-left:44px;
}

.login-actions{
  justify-content:space-between;
  gap:12px;
  margin-top:10px;
}

.login-divider{
  position:relative;
  text-align:center;
  margin:22px 0 18px;
}

.login-divider::before{
  content:"";
  position:absolute;
  top:50%;
  left:0;
  right:0;
  height:1px;
  background:var(--border);
}

.login-divider span{
  position:relative;
  z-index:1;
  display:inline-block;
  padding:0 12px;
  background:#fff;
  color:var(--muted);
  font-size:13px;
  font-weight:700;
}

.login-extra-links{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.login-extra-links .btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
}

@media (max-width:920px){
  .login-shell{
    grid-template-columns:1fr;
  }

  .login-shell__visual{
    border-right:none;
    border-bottom:1px solid var(--border);
  }
}

@media (max-width:640px){
  .login-shell{
    border-radius:22px;
  }

  .login-shell__visual,
  .login-shell__form{
    padding:22px 18px;
  }

  .login-visual-title{
    font-size:28px;
  }

  .login-actions{
    flex-direction:column;
  }

  .login-actions .btn{
    width:100%;
    justify-content:center;
  }

  .login-extra-links{
    flex-direction:column;
  }

  .login-extra-links .btn{
    width:100%;
    justify-content:center;
  }
}
/* =======================
   REQUEST ACTIVATION PAGE
   ======================= */

.activation-page{
  min-height:calc(100vh - 120px);
  display:grid;
  align-items:center;
}

.activation-shell{
  max-width:1080px;
  margin:0 auto;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0;
  overflow:hidden;
  padding:0;
  border-radius:28px;
}

.activation-shell__visual{
  position:relative;
  padding:34px 30px;
  background:
    radial-gradient(circle at top right, rgba(37,99,235,.15), transparent 30%),
    radial-gradient(circle at bottom left, rgba(16,185,129,.10), transparent 24%),
    linear-gradient(135deg, #f8fbff 0%, #eef6ff 100%);
  border-right:1px solid var(--border);
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:18px;
}

.activation-brand-badge{
  width:fit-content;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 14px;
  border-radius:999px;
  background:rgba(37,99,235,.10);
  color:var(--primary-dark);
  font-size:13px;
  font-weight:800;
}

.activation-icon-wrap{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:170px;
  padding:18px;
  border-radius:24px;
  background:rgba(255,255,255,.78);
  border:1px solid rgba(148,163,184,.18);
  box-shadow:0 18px 40px rgba(15,23,42,.06);
}

.activation-icon-main{
  width:96px;
  height:96px;
  border-radius:28px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg, var(--primary), var(--primary-dark));
  color:#fff;
  font-size:40px;
  box-shadow:0 18px 35px rgba(37,99,235,.22);
  transition:transform .2s ease;
}

.activation-icon-main:hover{
  transform:scale(1.05);
}

.activation-visual-title{
  margin:0;
  font-size:34px;
  line-height:1.1;
  color:var(--text);
}

.activation-visual-subtitle{
  margin:0;
  color:var(--muted);
  font-size:15px;
  line-height:1.8;
}

.activation-visual-points{
  display:grid;
  gap:12px;
  margin-top:6px;
}

.activation-point{
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 16px;
  border-radius:18px;
  background:#fff;
  border:1px solid rgba(226,232,240,.95);
  box-shadow:0 10px 24px rgba(15,23,42,.04);
}

.activation-point__icon{
  width:46px;
  height:46px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(37,99,235,.10);
  color:var(--primary-dark);
  font-size:18px;
  flex:0 0 46px;
}

.activation-point strong{
  display:block;
  color:var(--text);
  font-size:15px;
}

.activation-point small{
  display:block;
  color:var(--muted);
  font-size:13px;
  margin-top:2px;
}

.activation-shell__form{
  padding:34px 30px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  background:#fff;
}

.activation-form-head{
  margin-bottom:18px;
}

.activation-form-head h2{
  margin:0 0 6px;
  font-size:28px;
  color:var(--text);
}

.activation-form-head p{
  margin:0;
  color:var(--muted);
  line-height:1.7;
}

.activation-form-modern{
  background:transparent;
  border:none;
  box-shadow:none;
  padding:0;
}

.activation-actions{
  justify-content:space-between;
  gap:12px;
  margin-top:10px;
}

.activation-link-alert{
  display:grid;
  gap:12px;
}

.activation-link-alert__head{
  display:flex;
  align-items:flex-start;
  gap:10px;
  line-height:1.6;
}

.activation-open-link{
  width:fit-content;
  display:inline-flex;
  align-items:center;
  gap:8px;
}

@media (max-width:920px){
  .activation-shell{
    grid-template-columns:1fr;
  }

  .activation-shell__visual{
    border-right:none;
    border-bottom:1px solid var(--border);
  }
}

@media (max-width:640px){
  .activation-shell{
    border-radius:22px;
  }

  .activation-shell__visual,
  .activation-shell__form{
    padding:22px 18px;
  }

  .activation-visual-title{
    font-size:28px;
  }

  .activation-actions{
    flex-direction:column;
  }

  .activation-actions .btn{
    width:100%;
    justify-content:center;
  }

  .activation-open-link{
    width:100%;
    justify-content:center;
  }
}

/* =======================
   REGISTER GROUP PAGE
   ======================= */

.register-group-page{
  min-height:calc(100vh - 120px);
  display:grid;
  align-items:center;
}

.register-group-shell{
  max-width:1180px;
  margin:0 auto;
  display:grid;
  grid-template-columns:.95fr 1.05fr;
  gap:0;
  overflow:hidden;
  padding:0;
  border-radius:28px;
}

.register-group-shell__visual{
  position:relative;
  padding:34px 30px;
  background:
    radial-gradient(circle at top right, rgba(37,99,235,.15), transparent 30%),
    radial-gradient(circle at bottom left, rgba(16,185,129,.10), transparent 24%),
    linear-gradient(135deg, #f8fbff 0%, #eef6ff 100%);
  border-right:1px solid var(--border);
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:18px;
}

.register-group-badge{
  width:fit-content;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 14px;
  border-radius:999px;
  background:rgba(37,99,235,.10);
  color:var(--primary-dark);
  font-size:13px;
  font-weight:800;
}

.register-group-visual-icon-wrap{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:180px;
  padding:18px;
  border-radius:24px;
  background:rgba(255,255,255,.78);
  border:1px solid rgba(148,163,184,.18);
  box-shadow:0 18px 40px rgba(15,23,42,.06);
}

.register-group-visual-icon{
  width:96px;
  height:96px;
  border-radius:28px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg, var(--primary), var(--primary-dark));
  color:#fff;
  font-size:40px;
  box-shadow:0 18px 35px rgba(37,99,235,.22);
}

.register-group-visual-title{
  margin:0;
  font-size:34px;
  line-height:1.1;
  color:var(--text);
}

.register-group-visual-subtitle{
  margin:0;
  color:var(--muted);
  font-size:15px;
  line-height:1.8;
}

.register-group-points{
  display:grid;
  gap:12px;
  margin-top:6px;
}

.register-group-point{
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 16px;
  border-radius:18px;
  background:#fff;
  border:1px solid rgba(226,232,240,.95);
  box-shadow:0 10px 24px rgba(15,23,42,.04);
}

.register-group-point__icon{
  width:46px;
  height:46px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(37,99,235,.10);
  color:var(--primary-dark);
  font-size:18px;
  flex:0 0 46px;
}

.register-group-point strong{
  display:block;
  color:var(--text);
  font-size:15px;
}

.register-group-point small{
  display:block;
  color:var(--muted);
  font-size:13px;
  margin-top:2px;
}

.register-group-shell__form{
  padding:34px 30px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  background:#fff;
}

.register-group-form-head{
  margin-bottom:18px;
}

.register-group-form-head h2{
  margin:0 0 6px;
  font-size:28px;
  color:var(--text);
}

.register-group-form-head p{
  margin:0;
  color:var(--muted);
  line-height:1.7;
}

.register-group-form-modern{
  background:transparent;
  border:none;
  box-shadow:none;
  padding:0;
}

.register-group-section{
  padding:18px;
  border:1px solid var(--border);
  border-radius:20px;
  background:linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.register-group-section + .register-group-section{
  margin-top:16px;
}

.register-group-section__head{
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin-bottom:16px;
}

.register-group-section__badge{
  width:36px;
  height:36px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(37,99,235,.10);
  color:var(--primary-dark);
  font-weight:800;
  flex:0 0 36px;
}

.register-group-section__head h3{
  margin:0 0 4px;
  font-size:18px;
  color:var(--text);
}

.register-group-section__head p{
  margin:0;
  color:var(--muted);
  line-height:1.6;
  font-size:14px;
}

.register-group-actions{
  justify-content:space-between;
  gap:12px;
  margin-top:18px;
  flex-wrap:wrap;
}

@media (max-width:980px){
  .register-group-shell{
    grid-template-columns:1fr;
  }

  .register-group-shell__visual{
    border-right:none;
    border-bottom:1px solid var(--border);
  }
}

@media (max-width:640px){
  .register-group-shell{
    border-radius:22px;
  }

  .register-group-shell__visual,
  .register-group-shell__form{
    padding:22px 18px;
  }

  .register-group-visual-title{
    font-size:28px;
  }

  .register-group-actions{
    flex-direction:column;
  }

  .register-group-actions .btn{
    width:100%;
    justify-content:center;
  }
}

/* =======================
   CREATE GROUP PAGE
   ======================= */

.create-group-page{
  display:grid;
  gap:18px;
}

.create-group-layout{
  display:grid;
  grid-template-columns:.95fr 1.05fr;
  gap:18px;
  align-items:start;
}

.create-group-info-card{
  padding:22px;
  display:grid;
  gap:16px;
  background:
    radial-gradient(circle at top right, rgba(37,99,235,.10), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.create-group-info-card__icon{
  width:64px;
  height:64px;
  border-radius:20px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg, var(--primary), var(--primary-dark));
  color:#fff;
  font-size:28px;
  box-shadow:0 14px 28px rgba(37,99,235,.18);
}

.create-group-info-card__content h3{
  margin:0 0 8px;
  font-size:24px;
  color:var(--text);
}

.create-group-info-card__content p{
  margin:0;
  color:var(--muted);
  line-height:1.75;
}

.create-group-tips{
  display:grid;
  gap:12px;
}

.create-group-tip{
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:14px 16px;
  border-radius:16px;
  background:#fff;
  border:1px solid rgba(226,232,240,.95);
  box-shadow:0 10px 24px rgba(15,23,42,.04);
  color:var(--muted);
  line-height:1.6;
}

.create-group-tip__icon{
  width:36px;
  height:36px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(37,99,235,.10);
  color:var(--primary-dark);
  font-size:15px;
  flex:0 0 36px;
}

.create-group-form-card{
  padding:22px;
}

.create-group-form-head{
  margin-bottom:16px;
}

.create-group-form-head h3{
  margin:0 0 6px;
  font-size:22px;
  color:var(--text);
}

.create-group-form-head p{
  margin:0;
  color:var(--muted);
  line-height:1.7;
}

.create-group-form-modern{
  background:transparent;
  border:none;
  box-shadow:none;
  padding:0;
}

.create-group-actions{
  justify-content:space-between;
  gap:12px;
  margin-top:14px;
  flex-wrap:wrap;
}

@media (max-width:920px){
  .create-group-layout{
    grid-template-columns:1fr;
  }
}

@media (max-width:640px){
  .create-group-info-card,
  .create-group-form-card{
    padding:18px;
  }

  .create-group-info-card__content h3{
    font-size:20px;
  }

  .create-group-actions{
    flex-direction:column;
  }

  .create-group-actions .btn{
    width:100%;
    justify-content:center;
  }
}
/* =======================
   REPORTS INDEX PAGE
   ======================= */

.reports-page{
  display:grid;
  gap:18px;
}

.reports-hero{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  padding:24px;
  background:
    radial-gradient(circle at top right, rgba(37,99,235,.12), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

.reports-hero__content{
  display:grid;
  gap:10px;
}

.reports-hero__badge{
  width:fit-content;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 14px;
  border-radius:999px;
  background:rgba(37,99,235,.10);
  color:var(--primary-dark);
  font-size:13px;
  font-weight:800;
}

.reports-hero__content h2{
  margin:0;
  font-size:30px;
  color:var(--text);
}

.reports-hero__content p{
  margin:0;
  max-width:760px;
  color:var(--muted);
  line-height:1.8;
}

.reports-hero__icon{
  width:74px;
  height:74px;
  border-radius:22px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg, var(--primary), var(--primary-dark));
  color:#fff;
  font-size:30px;
  box-shadow:0 16px 30px rgba(37,99,235,.18);
  flex:0 0 74px;
}

.reports-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:18px;
}

.report-card{
  display:grid;
  gap:16px;
  padding:22px;
  border-radius:22px;
  transition:transform .18s ease, box-shadow .18s ease;
  background:#fff;
}

.report-card:hover{
  transform:translateY(-3px);
  box-shadow:0 18px 36px rgba(15,23,42,.08);
}

.report-card__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.report-card__icon{
  width:58px;
  height:58px;
  border-radius:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:24px;
}

.report-card--member .report-card__icon{
  background:rgba(59,130,246,.12);
  color:#2563eb;
}

.report-card--group .report-card__icon{
  background:rgba(16,185,129,.12);
  color:#059669;
}

.report-card--loan .report-card__icon{
  background:rgba(245,158,11,.14);
  color:#d97706;
}

.report-card--income .report-card__icon{
  background:rgba(168,85,247,.12);
  color:#7c3aed;
}

.report-card__tag{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  padding:0 12px;
  border-radius:999px;
  background:#f8fafc;
  border:1px solid var(--border);
  color:var(--muted);
  font-size:12px;
  font-weight:800;
}

.report-card h3{
  margin:0;
  font-size:20px;
  color:var(--text);
}

.report-card p{
  margin:0;
  color:var(--muted);
  line-height:1.75;
}

.report-card__features{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.report-card__features span{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:8px 12px;
  border-radius:999px;
  background:#f8fafc;
  border:1px solid rgba(226,232,240,.95);
  color:var(--text);
  font-size:13px;
  font-weight:700;
}

.report-card__locked{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border-radius:14px;
  background:#fff7ed;
  border:1px solid #fed7aa;
  color:#9a3412;
  font-size:14px;
  font-weight:700;
  width:fit-content;
}

@media (max-width:920px){
  .reports-grid{
    grid-template-columns:1fr;
  }

  .reports-hero{
    flex-direction:column;
    align-items:flex-start;
  }
}

@media (max-width:640px){
  .reports-hero,
  .report-card{
    padding:18px;
  }

  .reports-hero__content h2{
    font-size:24px;
  }

  .report-card .btn{
    width:100%;
    justify-content:center;
  }
}
/* =======================
   MEMBER STATEMENT REPORT
   ======================= */

.member-statement-page{
  display:grid;
  gap:18px;
}

.member-statement-hero{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  padding:24px;
  background:
    radial-gradient(circle at top right, rgba(37,99,235,.12), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

.member-statement-hero__content{
  display:grid;
  gap:10px;
}

.member-statement-hero__badge{
  width:fit-content;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 14px;
  border-radius:999px;
  background:rgba(37,99,235,.10);
  color:var(--primary-dark);
  font-size:13px;
  font-weight:800;
}

.member-statement-hero__content h2{
  margin:0;
  font-size:30px;
  color:var(--text);
}

.member-statement-hero__content p{
  margin:0;
  max-width:760px;
  color:var(--muted);
  line-height:1.8;
}

.member-statement-hero__icon{
  width:74px;
  height:74px;
  border-radius:22px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg, var(--primary), var(--primary-dark));
  color:#fff;
  font-size:30px;
  box-shadow:0 16px 30px rgba(37,99,235,.18);
  flex:0 0 74px;
}

.member-statement-filter-card{
  padding:20px;
}

.member-statement-filter-form{
  background:transparent;
  border:none;
  box-shadow:none;
  padding:0;
}

.member-statement-filter-row{
  align-items:end;
}

.member-statement-filter-actions{
  display:flex;
  gap:10px;
  align-items:end;
  flex-wrap:wrap;
}

.member-statement-select{
  width:100%;
  padding-left:44px !important;
}

.member-statement-readonly{
  min-height:46px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:0 14px;
  border:1px solid var(--border);
  border-radius:14px;
  background:#f8fafc;
  color:var(--text);
  font-weight:700;
}

.member-statement-readonly i{
  color:var(--primary);
}

.member-statement-summary-card{
  display:grid;
  gap:18px;
  padding:22px;
}

.member-statement-summary-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  flex-wrap:wrap;
}

.member-statement-summary-head h3{
  margin:0 0 8px;
  font-size:24px;
  color:var(--text);
}

.member-statement-summary-head p{
  margin:0;
  color:var(--muted);
  line-height:1.7;
}

.member-statement-period{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border-radius:999px;
  background:#f8fafc;
  border:1px solid var(--border);
  color:var(--text);
  font-weight:700;
}

.summary-separator{
  margin:0 8px;
  color:#94a3b8;
}

.member-statement-export-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.member-statement-totals{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:16px;
}

.member-total-card{
  display:flex;
  gap:14px;
  align-items:flex-start;
  padding:18px;
  border-radius:20px;
  border:1px solid rgba(226,232,240,.95);
  background:#fff;
  box-shadow:0 10px 24px rgba(15,23,42,.04);
}

.member-total-card__icon{
  width:54px;
  height:54px;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:22px;
  flex:0 0 54px;
}

.member-total-card--shares .member-total-card__icon{
  background:rgba(59,130,246,.12);
  color:#2563eb;
}

.member-total-card--social .member-total-card__icon{
  background:rgba(16,185,129,.12);
  color:#059669;
}

.member-total-card--fines .member-total-card__icon{
  background:rgba(245,158,11,.14);
  color:#d97706;
}

.member-total-card h4{
  margin:0 0 8px;
  color:var(--text);
  font-size:16px;
}

.member-total-card .count{
  font-size:26px;
  font-weight:800;
  color:var(--text);
  line-height:1.15;
}

.member-total-card p{
  margin:8px 0 0;
  color:var(--muted);
  line-height:1.6;
  font-size:14px;
}

.member-statement-section-card{
  padding:20px;
}

.member-statement-section-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:14px;
  flex-wrap:wrap;
}

.member-statement-section-head h3{
  margin:0;
  font-size:20px;
  color:var(--text);
}

.member-statement-section-tag{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  padding:0 12px;
  border-radius:999px;
  background:#f8fafc;
  border:1px solid var(--border);
  color:var(--muted);
  font-size:12px;
  font-weight:800;
}

.table-wrap{
  width:100%;
  overflow-x:auto;
}

.member-statement-empty{
  border-radius:16px;
  padding:16px;
  background:#f8fafc;
}

@media (max-width:980px){
  .member-statement-totals{
    grid-template-columns:1fr;
  }

  .member-statement-hero{
    flex-direction:column;
    align-items:flex-start;
  }
}

@media (max-width:640px){
  .member-statement-hero,
  .member-statement-filter-card,
  .member-statement-summary-card,
  .member-statement-section-card{
    padding:18px;
  }

  .member-statement-hero__content h2{
    font-size:24px;
  }

  .member-statement-filter-actions{
    flex-direction:column;
    align-items:stretch;
  }

  .member-statement-filter-actions .btn,
  .member-statement-export-actions .btn{
    width:100%;
    justify-content:center;
  }

  .member-statement-export-actions{
    flex-direction:column;
  }

  .member-total-card .count{
    font-size:22px;
  }
}

/* =======================
   GROUP FINANCIAL REPORT
   ======================= */

.group-financial-page{
  display:grid;
  gap:18px;
}

.group-financial-hero{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  padding:24px;
  background:
    radial-gradient(circle at top right, rgba(37,99,235,.12), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

.group-financial-hero__content{
  display:grid;
  gap:10px;
}

.group-financial-hero__badge{
  width:fit-content;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 14px;
  border-radius:999px;
  background:rgba(37,99,235,.10);
  color:var(--primary-dark);
  font-size:13px;
  font-weight:800;
}

.group-financial-hero__content h2{
  margin:0;
  font-size:30px;
  color:var(--text);
}

.group-financial-hero__content p{
  margin:0;
  max-width:760px;
  color:var(--muted);
  line-height:1.8;
}

.group-financial-hero__icon{
  width:74px;
  height:74px;
  border-radius:22px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg, var(--primary), var(--primary-dark));
  color:#fff;
  font-size:30px;
  box-shadow:0 16px 30px rgba(37,99,235,.18);
  flex:0 0 74px;
}

.group-financial-filter-card{
  padding:20px;
}

.group-financial-filter-form{
  background:transparent;
  border:none;
  box-shadow:none;
  padding:0;
}

.group-financial-filter-row{
  align-items:end;
}

.group-financial-filter-actions{
  display:flex;
  gap:10px;
  align-items:end;
  flex-wrap:wrap;
}

.group-financial-stats{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:16px;
}

.group-financial-stat-card{
  display:flex;
  align-items:flex-start;
  gap:14px;
  padding:18px;
  border-radius:20px;
  box-shadow:0 10px 24px rgba(15,23,42,.04);
}

.group-financial-stat-card__icon{
  width:54px;
  height:54px;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:22px;
  flex:0 0 54px;
}

.group-financial-stat-card--shares .group-financial-stat-card__icon{
  background:rgba(59,130,246,.12);
  color:#2563eb;
}

.group-financial-stat-card--social .group-financial-stat-card__icon{
  background:rgba(16,185,129,.12);
  color:#059669;
}

.group-financial-stat-card--fines .group-financial-stat-card__icon{
  background:rgba(245,158,11,.14);
  color:#d97706;
}

.group-financial-stat-card--loan .group-financial-stat-card__icon{
  background:rgba(168,85,247,.12);
  color:#7c3aed;
}

.group-financial-stat-card h4{
  margin:0 0 8px;
  color:var(--text);
  font-size:16px;
}

.group-financial-stat-card .amount{
  font-size:18px;
  font-weight:800;
  color:var(--text);
  line-height:1.2;
  word-break:break-word;
}

.group-financial-table-card{
  padding:20px;
}

.group-financial-table-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:14px;
  flex-wrap:wrap;
}

.group-financial-table-head h3{
  margin:0;
  font-size:20px;
  color:var(--text);
}

.group-financial-table-tag{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  padding:0 12px;
  border-radius:999px;
  background:#f8fafc;
  border:1px solid var(--border);
  color:var(--muted);
  font-size:12px;
  font-weight:800;
}

.group-financial-table tbody tr:hover{
  background:#f8fbff;
}

@media (max-width:980px){
  .group-financial-stats{
    grid-template-columns:repeat(2, 1fr);
  }

  .group-financial-hero{
    flex-direction:column;
    align-items:flex-start;
  }
}

@media (max-width:640px){
  .group-financial-hero,
  .group-financial-filter-card,
  .group-financial-table-card{
    padding:18px;
  }

  .group-financial-hero__content h2{
    font-size:24px;
  }

  .group-financial-filter-actions{
    flex-direction:column;
    align-items:stretch;
  }

  .group-financial-filter-actions .btn{
    width:100%;
    justify-content:center;
  }

  .group-financial-stats{
    grid-template-columns:1fr;
  }

  .group-financial-stat-card .amount{
    font-size:21px;
  }
}
.group-financial-page{
  display:grid;
  gap:18px;
  width:100%;
  max-width:100%;
  min-width:0;
}

.group-financial-page > *{
  min-width:0;
}

.group-financial-hero,
.group-financial-filter-card,
.group-financial-table-card{
  width:100%;
  max-width:100%;
  min-width:0;
  overflow:hidden;
}

.group-financial-stats{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:16px;
  width:100%;
  max-width:100%;
  min-width:0;
}

.group-financial-filter-row{
  align-items:end;
}

.group-financial-filter-row > [class*="col-"]{
  min-width:0;
}

.group-financial-filter-actions{
  display:flex;
  gap:10px;
  align-items:end;
  flex-wrap:wrap;
  min-width:0;
}

.table-wrap{
  width:100%;
  max-width:100%;
  overflow-x:auto;
}

/* =======================
   INCOME EXPENSE REPORT
   ======================= */

.income-expense-page{
  display:grid;
  gap:18px;
}

.income-expense-hero{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  padding:24px;
  background:
  radial-gradient(circle at top right, rgba(37,99,235,.12), transparent 28%),
  linear-gradient(135deg,#ffffff 0%,#f8fbff 100%);
}

.income-expense-badge{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding:8px 14px;
  border-radius:999px;
  background:rgba(37,99,235,.1);
  color:var(--primary-dark);
  font-weight:800;
  font-size:13px;
}

.income-expense-hero__icon{
  width:72px;
  height:72px;
  border-radius:22px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,var(--primary),var(--primary-dark));
  color:#fff;
  font-size:30px;
}

.income-expense-filter-card{
  padding:20px;
}

.income-expense-filter-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:end;
}

.income-expense-stats{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}

.income-expense-stat-card{
  display:flex;
  gap:14px;
  padding:18px;
  align-items:flex-start;
}

.income-expense-stat-card__icon{
  width:50px;
  height:50px;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:22px;
}

.income-expense-stat-card--social .income-expense-stat-card__icon{
  background:rgba(16,185,129,.12);
  color:#059669;
}

.income-expense-stat-card--fine .income-expense-stat-card__icon{
  background:rgba(245,158,11,.14);
  color:#d97706;
}

.income-expense-stat-card--income .income-expense-stat-card__icon{
  background:rgba(59,130,246,.12);
  color:#2563eb;
}

.income-expense-stat-card--expense .income-expense-stat-card__icon{
  background:rgba(239,68,68,.12);
  color:#dc2626;
}

.income-expense-stat-card--balance .income-expense-stat-card__icon{
  background:rgba(168,85,247,.12);
  color:#7c3aed;
}

.income-expense-stat-card h4{
  margin:0 0 6px;
  font-size:14px;
}

.income-expense-stat-card .amount{
  font-size:18px;
  font-weight:800;
}

.income-expense-table-card{
  padding:20px;
}

.income-expense-table-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:14px;
}

.income-expense-table-tag{
  padding:6px 12px;
  border-radius:999px;
  background:#f8fafc;
  border:1px solid var(--border);
  font-size:12px;
  font-weight:800;
}

@media (max-width:900px){

  .income-expense-stats{
    grid-template-columns:1fr;
  }

}

/* =======================
   PROFILE EDIT VALIDATION
   ======================= */

.identity-feedback{
  display:block;
  margin-top:6px;
  min-height:18px;
  font-size:12.5px;
  line-height:1.45;
  font-weight:700;
}

.identity-feedback.is-checking{
  color:#b45309;
}

.identity-feedback.is-valid{
  color:#15803d;
}

.identity-feedback.is-error{
  color:#b91c1c;
}

input.input-valid,
select.input-valid{
  border-color:rgba(34,197,94,.45);
  box-shadow:0 0 0 3px rgba(34,197,94,.10);
}

input.input-error,
select.input-error{
  border-color:rgba(239,68,68,.45);
  box-shadow:0 0 0 3px rgba(239,68,68,.10);
}

.btn[disabled],
.btn:disabled,
button[disabled],
button:disabled{
  opacity:.65;
  cursor:not-allowed;
  pointer-events:none;
}

/* =======================
   PROFILE EDIT PAGE
   ======================= */

.profile-edit-page{
  display:grid;
  gap:18px;
}

.profile-edit-hero{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  padding:24px;
  background:
    radial-gradient(circle at top right, rgba(37,99,235,.12), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

.profile-edit-hero__content{
  display:grid;
  gap:10px;
}

.profile-edit-hero__badge{
  width:fit-content;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 14px;
  border-radius:999px;
  background:rgba(37,99,235,.10);
  color:var(--primary-dark);
  font-size:13px;
  font-weight:800;
}

.profile-edit-hero__content h2{
  margin:0;
  font-size:30px;
  color:var(--text);
}

.profile-edit-hero__content p{
  margin:0;
  max-width:760px;
  color:var(--muted);
  line-height:1.8;
}

.profile-edit-hero__icon{
  width:74px;
  height:74px;
  border-radius:22px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg, var(--primary), var(--primary-dark));
  color:#fff;
  font-size:30px;
  box-shadow:0 16px 30px rgba(37,99,235,.18);
  flex:0 0 74px;
}

.profile-edit-form{
  background:transparent;
  border:none;
  box-shadow:none;
  padding:0;
  display:grid;
  gap:16px;
}

.profile-edit-section{
  padding:20px;
  display:grid;
  gap:16px;
}

.profile-edit-section__head{
  display:flex;
  align-items:flex-start;
  gap:12px;
}

.profile-edit-section__badge{
  width:38px;
  height:38px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(37,99,235,.10);
  color:var(--primary-dark);
  font-weight:800;
  flex:0 0 38px;
}

.profile-edit-section__head h3{
  margin:0 0 4px;
  font-size:20px;
  color:var(--text);
}

.profile-edit-section__head p{
  margin:0;
  color:var(--muted);
  line-height:1.6;
  font-size:14px;
}

.profile-edit-select{
  width:100%;
  padding-left:44px !important;
}

.profile-edit-actions{
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.identity-feedback{
  display:block;
  margin-top:8px;
  font-size:13px;
  line-height:1.5;
}

@media (max-width:980px){
  .profile-edit-hero{
    flex-direction:column;
    align-items:flex-start;
  }
}

@media (max-width:640px){
  .profile-edit-hero,
  .profile-edit-section{
    padding:18px;
  }

  .profile-edit-hero__content h2{
    font-size:24px;
  }

  .profile-edit-actions{
    flex-direction:column;
  }

  .profile-edit-actions .btn{
    width:100%;
    justify-content:center;
  }
}
.profile-readonly-field{
  position:relative;
}

.profile-readonly-field__icon{
  position:absolute;
  top:50%;
  left:14px;
  transform:translateY(-50%);
  width:20px;
  height:20px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--muted);
  pointer-events:none;
}

.profile-readonly-field input{
  width:100%;
  min-height:46px;
  padding:0 14px 0 44px;
  border:1px solid var(--border);
  border-radius:14px;
  background:#f8fafc;
  color:#475569;
  font-weight:700;
  cursor:not-allowed;
  opacity:1;
}
/* LOGIN ALERT MESSAGE */

.login-alert{
  margin-top:12px;
  padding:12px 14px;
  border-radius:8px;
  font-size:14px;
  line-height:1.45;
  font-weight:500;
  border:1px solid transparent;
}

.login-alert-danger{
  background:#fef2f2;
  border-color:#fecaca;
  color:#991b1b;
}

.login-alert i{
  margin-right:6px;
}

/* animation ndogo ili message ionekane vizuri */

.login-alert{
  animation: loginAlertFade .25s ease;
}

@keyframes loginAlertFade{
  from{
    opacity:0;
    transform:translateY(-4px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}
.login-alert{
  margin-top:12px;
  margin-bottom:10px;
  padding:12px 14px;
  border-radius:8px;
  font-size:14px;
  line-height:1.45;
  font-weight:500;
  border:1px solid transparent;
}

.login-alert-danger{
  background:#fef2f2;
  border-color:#fecaca;
  color:#991b1b;
}

.login-alert{
  animation: loginAlertFade .25s ease;
}

@keyframes loginAlertFade{
  from{
    opacity:0;
    transform:translateY(-4px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}
/* =======================
   ADMIN GROUPS MANAGEMENT
   ======================= */

.admin-groups-page{
  display:grid;
  gap:18px;
}

.admin-groups-overview{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:16px;
}

.admin-groups-stat{
  display:flex;
  align-items:center;
  gap:14px;
  padding:18px;
  border-radius:20px;
}

.admin-groups-stat__icon{
  width:52px;
  height:52px;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:22px;
  flex:0 0 52px;
}

.admin-groups-stat__label{
  font-size:13px;
  color:var(--muted);
  font-weight:800;
  margin-bottom:4px;
}

.admin-groups-stat__value{
  font-size:24px;
  font-weight:900;
  color:var(--text);
  line-height:1;
}

.admin-groups-stat--all .admin-groups-stat__icon{
  background:rgba(59,130,246,.12);
  color:#2563eb;
}

.admin-groups-stat--active .admin-groups-stat__icon{
  background:rgba(16,185,129,.12);
  color:#059669;
}

.admin-groups-stat--inactive .admin-groups-stat__icon{
  background:rgba(239,68,68,.12);
  color:#dc2626;
}

.admin-groups-stat--expired .admin-groups-stat__icon{
  background:rgba(245,158,11,.14);
  color:#d97706;
}

.admin-groups-filter-card{
  padding:20px;
}

.admin-groups-filter-form{
  background:transparent;
  border:none;
  box-shadow:none;
  padding:0;
}

.admin-groups-filter-actions{
  display:flex;
  align-items:end;
}

.admin-groups-table-card{
  padding:20px;
}

.admin-groups-name{
  display:grid;
  gap:4px;
}

.admin-groups-name strong{
  color:var(--text);
}

.admin-groups-name small{
  color:var(--muted);
  font-size:12px;
}

.admin-groups-subscription-form{
  display:grid;
  gap:10px;
}

.admin-groups-subscription-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}

.admin-groups-inline-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.admin-groups-row-actions{
  display:grid;
  gap:8px;
}

.muted-text{
  color:var(--muted);
}

.status-chip--neutral{
  color:#475569;
  background:rgba(148,163,184,.12);
  border-color:rgba(148,163,184,.24);
}

@media (max-width:1100px){
  .admin-groups-overview{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }
}

@media (max-width:700px){
  .admin-groups-overview{
    grid-template-columns:1fr;
  }
}


/* =======================
   PDF REPORT SHARED STYLE
   ======================= */

.pdf-report{
  font-family: DejaVu Sans, Arial, sans-serif;
  font-size:12px;
  color:#1f2937;
  padding:16px;
  background:#ffffff;
}

.pdf-report-title{
  font-size:22px;
  font-weight:800;
  color:#111827;
  margin:0 0 10px;
  line-height:1.2;
}

.pdf-report-subtitle{
  margin:0 0 14px;
  color:#6b7280;
  font-size:12px;
  line-height:1.6;
}

.pdf-report-period-box{
  display:inline-block;
  padding:10px 14px;
  background:#eff6ff;
  border:1px solid #bfdbfe;
  border-radius:6px;
  color:#1e3a8a;
  font-size:12px;
  margin-bottom:16px;
}

.pdf-report-divider{
  height:2px;
  background:#2563eb;
  margin:0 0 22px;
}

.pdf-report-section-title{
  font-size:16px;
  font-weight:800;
  color:#111827;
  margin:0 0 14px;
  padding-bottom:8px;
  border-bottom:1px solid #e5e7eb;
}

/* clean summary table like income-expense pdf */
.pdf-summary-table-clean{
  width:100%;
  border-collapse:collapse;
  margin-bottom:18px;
}

.pdf-summary-table-clean td{
  border:1px solid #d1d5db;
  padding:14px 12px;
  vertical-align:middle;
}

.pdf-summary-table-clean td:first-child{
  width:60%;
  font-weight:700;
  color:#1f2937;
}

.pdf-summary-table-clean td:last-child{
  width:40%;
  text-align:right;
  font-weight:800;
  color:#111827;
  white-space:nowrap;
}

.pdf-row-highlight td{
  background:#e8eef8;
  color:#284b9b;
}

.pdf-row-success td{
  background:#e8f3ec;
  color:#1f6b42;
}

.pdf-row-warning td{
  background:#fff4e8;
  color:#9a3412;
}

.pdf-report-footer{
  margin-top:18px;
  text-align:right;
  color:#6b7280;
  font-size:11px;
}
/* =======================
   LOAN APPLICATION FORM
   ======================= */

@page{
  size:A4;
  margin:18mm;
}

.loan-form-doc{
  font-family: Arial, sans-serif;
  font-size:13px;
  line-height:1.45;
  color:#111827;
  background:#fff;
}

.loan-form-container{
  width:100%;
  max-width:820px;
  margin:0 auto;
}

.loan-form-header{
  text-align:center;
  margin-bottom:14px;
  padding-bottom:14px;
  border-bottom:2px solid #2563eb;
}

.loan-form-brand{
  font-size:20px;
  font-weight:900;
  color:#111827;
  margin-bottom:4px;
}

.loan-form-group{
  font-size:14px;
  font-weight:700;
  color:#374151;
  margin-bottom:6px;
}

.loan-form-title{
  font-size:16px;
  font-weight:900;
  color:#1d4ed8;
  letter-spacing:.3px;
}

.loan-form-meta{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
  margin:14px 0 18px;
}

.loan-form-meta__item{
  border:1px solid #d1d5db;
  border-radius:10px;
  padding:10px 12px;
  background:#f8fafc;
}

.loan-form-meta__item span{
  display:block;
  font-size:12px;
  color:#6b7280;
  margin-bottom:4px;
}

.loan-form-meta__item strong{
  display:block;
  font-size:14px;
  color:#111827;
}

.loan-form-section{
  margin-top:16px;
}

.loan-form-section__title{
  margin:0 0 8px;
  font-weight:900;
  color:#111827;
  font-size:14px;
  padding:8px 10px;
  background:#eff6ff;
  border-left:4px solid #2563eb;
}

.loan-form-table{
  width:100%;
  border-collapse:collapse;
  margin-top:6px;
  page-break-inside:avoid;
}

.loan-form-table,
.loan-form-table th,
.loan-form-table td{
  border:1px solid #111827;
}

.loan-form-table th,
.loan-form-table td{
  padding:8px;
  vertical-align:top;
}

.loan-form-table th{
  width:32%;
  background:#f3f4f6;
  text-align:left;
  font-weight:700;
}

.loan-form-table--plain,
.loan-form-table--plain td{
  border:none !important;
  padding:6px 0;
}

.loan-form-text{
  margin:8px 0 0;
  font-size:12px;
  line-height:1.6;
}

.signature-line{
  height:34px;
}

.loan-form-actions{
  margin-top:18px;
  text-align:center;
}

.loan-form-actions a,
.loan-form-actions button{
  display:inline-block;
  padding:10px 14px;
  margin:0 6px;
  border:1px solid #111827;
  background:#fff;
  cursor:pointer;
  text-decoration:none;
  color:#111827;
  font-weight:700;
  border-radius:8px;
}

.loan-form-actions a.primary{
  background:#2563eb;
  color:#fff;
  border-color:#2563eb;
}

.page-break{
  page-break-before:always;
}

.avoid-break{
  page-break-inside:avoid;
}

@media print{
  .loan-form-actions{
    display:none;
  }
}
/* =======================
   LOAN APPLICATION FORM
   ======================= */

@page{
  size:A4;
  margin:18mm;
}

.loan-form-doc{
  font-family: Arial, sans-serif;
  font-size:13px;
  line-height:1.45;
  color:#111827;
  background:#fff;
}

.loan-form-container{
  width:100%;
  max-width:820px;
  margin:0 auto;
}

.loan-form-header{
  text-align:center;
  margin-bottom:14px;
  padding-bottom:14px;
  border-bottom:2px solid #2563eb;
}

.loan-form-brand{
  font-size:20px;
  font-weight:900;
  color:#111827;
  margin-bottom:4px;
}

.loan-form-group{
  font-size:14px;
  font-weight:700;
  color:#374151;
  margin-bottom:6px;
}

.loan-form-title{
  font-size:16px;
  font-weight:900;
  color:#1d4ed8;
  letter-spacing:.3px;
}

.loan-form-meta{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
  margin:14px 0 18px;
}

.loan-form-meta__item{
  border:1px solid #d1d5db;
  border-radius:10px;
  padding:10px 12px;
  background:#f8fafc;
}

.loan-form-meta__item span{
  display:block;
  font-size:12px;
  color:#6b7280;
  margin-bottom:4px;
}

.loan-form-meta__item strong{
  display:block;
  font-size:14px;
  color:#111827;
}

.loan-form-section{
  margin-top:16px;
}

.loan-form-section__title{
  margin:0 0 8px;
  font-weight:900;
  color:#111827;
  font-size:14px;
  padding:8px 10px;
  background:#eff6ff;
  border-left:4px solid #2563eb;
}

.loan-form-table{
  width:100%;
  border-collapse:collapse;
  margin-top:6px;
  page-break-inside:avoid;
}

.loan-form-table,
.loan-form-table th,
.loan-form-table td{
  border:1px solid #111827;
}

.loan-form-table th,
.loan-form-table td{
  padding:8px;
  vertical-align:top;
}

.loan-form-table th{
  width:32%;
  background:#f3f4f6;
  text-align:left;
  font-weight:700;
}

.loan-form-table--plain,
.loan-form-table--plain td{
  border:none !important;
  padding:6px 0;
}

.loan-form-text{
  margin:8px 0 0;
  font-size:12px;
  line-height:1.6;
}

.signature-line{
  height:34px;
}

.passport-box{
  width:72px;
  height:88px;
  border:1px dashed #374151;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:11px;
  color:#6b7280;
  margin:auto;
}

.loan-form-actions{
  margin-top:18px;
  text-align:center;
}

.loan-form-actions a,
.loan-form-actions button{
  display:inline-block;
  padding:10px 14px;
  margin:0 6px;
  border:1px solid #111827;
  background:#fff;
  cursor:pointer;
  text-decoration:none;
  color:#111827;
  font-weight:700;
  border-radius:8px;
}

.loan-form-actions a.primary{
  background:#2563eb;
  color:#fff;
  border-color:#2563eb;
}

.page-break{
  page-break-before:always;
}

.avoid-break{
  page-break-inside:avoid;
}

@media print{
  .loan-form-actions{
    display:none;
  }
}

/* =======================
   INITIAL BALANCES IMPORT
   ======================= */

.initial-balances-page{
  display:grid;
  gap:18px;
}

.initial-balances-intro{
  display:flex;
  align-items:flex-start;
  gap:14px;
  padding:22px;
  background:
    radial-gradient(circle at top right, rgba(37,99,235,.10), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.initial-balances-intro__icon{
  width:58px;
  height:58px;
  border-radius:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,var(--primary),var(--primary-dark));
  color:#fff;
  font-size:26px;
  flex:0 0 58px;
  box-shadow:0 14px 28px rgba(31,111,209,.18);
}

.initial-balances-intro__content h3{
  margin:0 0 8px;
  font-size:22px;
  color:var(--text);
}

.initial-balances-intro__content p{
  margin:0;
  color:var(--muted);
  line-height:1.7;
}

.initial-balances-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:18px;
}

.initial-balance-card{
  padding:0;
  overflow:hidden;
}

.initial-balance-card__head{
  padding:18px 20px;
  border-bottom:1px solid var(--border);
  background:#fbfcfe;
  display:grid;
  gap:8px;
}

.initial-balance-card__head h3{
  margin:0;
  font-size:20px;
  color:var(--text);
}

.initial-balance-card__head p{
  margin:0;
  color:var(--muted);
  line-height:1.6;
  font-size:14px;
}

.initial-balance-card__badge{
  width:fit-content;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  padding:0 12px;
  border-radius:999px;
  background:rgba(31,111,209,.10);
  color:var(--primary-dark);
  font-size:12px;
  font-weight:800;
}

.initial-balance-card__badge--green{
  background:rgba(16,185,129,.12);
  color:#059669;
}

.initial-balance-card__badge--orange{
  background:rgba(245,158,11,.14);
  color:#d97706;
}

.initial-balance-card__badge--red{
  background:rgba(239,68,68,.12);
  color:#dc2626;
}

.initial-balance-card__body{
  padding:20px;
  display:grid;
  gap:16px;
}

.initial-balance-list{
  margin:0;
  padding-left:18px;
  color:var(--text);
  line-height:1.75;
  font-size:14px;
}

.initial-balance-list li{
  margin-bottom:6px;
}

.initial-balance-list code{
  background:#f3f4f6;
  padding:2px 6px;
  border-radius:6px;
  font-size:12px;
  color:#111827;
}

.initial-balance-form{
  background:transparent;
  border:none;
  box-shadow:none;
  padding:0;
}

.initial-balances-note{
  padding:16px 18px;
  background:#fffbeb;
  border:1px solid #fde68a;
  color:#92400e;
  line-height:1.7;
}

.initial-balances-note strong{
  color:#78350f;
}

@media (max-width:950px){
  .initial-balances-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width:640px){
  .initial-balances-intro{
    padding:18px;
    flex-direction:column;
  }

  .initial-balance-card__head,
  .initial-balance-card__body{
    padding:18px;
  }
}

.initial-balances-lockbox{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  padding:20px;
}

.initial-balances-lockbox__left{
  display:grid;
  gap:10px;
}

.initial-balances-lockbox__title{
  font-size:18px;
  font-weight:800;
  color:var(--text);
}

.initial-balances-lockbox__actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.initial-balances-status{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:42px;
  padding:10px 14px;
  border-radius:12px;
  font-weight:700;
  font-size:14px;
}

.initial-balances-status--locked{
  background:rgba(239,68,68,.10);
  color:#b91c1c;
  border:1px solid rgba(239,68,68,.22);
}

.initial-balances-status--open{
  background:rgba(16,185,129,.10);
  color:#047857;
  border:1px solid rgba(16,185,129,.22);
}

.initial-balances-batches{
  padding:0;
  overflow:hidden;
}

.initial-balances-batches__head{
  padding:18px 20px;
  border-bottom:1px solid var(--border);
  background:#fbfcfe;
}

.initial-balances-batches__head h3{
  margin:0 0 6px;
  color:var(--text);
  font-size:20px;
}

.initial-balances-batches__head p{
  margin:0;
  color:var(--muted);
  line-height:1.6;
  font-size:14px;
}

.initial-balances-table-wrap{
  width:100%;
  overflow-x:auto;
}

.initial-balances-table{
  width:100%;
  border-collapse:collapse;
}

.initial-balances-table th,
.initial-balances-table td{
  padding:14px 16px;
  text-align:left;
  border-bottom:1px solid var(--border);
  vertical-align:middle;
}

.initial-balances-table thead th{
  background:#f8fafc;
  color:var(--text);
  font-size:13px;
  font-weight:800;
}

.initial-balances-table tbody td{
  font-size:14px;
  color:var(--text);
}

.initial-balances-empty{
  padding:20px;
  color:var(--muted);
}

.initial-balances-locked-note{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:32px;
  padding:0 10px;
  border-radius:999px;
  background:#f3f4f6;
  color:#6b7280;
  font-size:12px;
  font-weight:700;
}

.btn-sm{
  min-height:34px;
  padding:0 12px;
  font-size:13px;
}

@media (max-width:800px){
  .initial-balances-lockbox{
    flex-direction:column;
  }

  .initial-balances-lockbox__actions{
    width:100%;
  }
}
.seo-content{
  margin-top:30px;
  line-height:1.7;
}
.password-label-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
}

.password-label-row label{
  margin:0;
}

.forgot-password-link{
  font-size:13px;
  font-weight:600;
  color:#2563eb;
  text-decoration:none;
  white-space:nowrap;
}

.forgot-password-link:hover{
  text-decoration:underline;
  color:#1d4ed8;
}

.password-wrap{
  position:relative;
}

.password-wrap input{
  padding-left:48px !important;
  padding-right:48px !important;
}

.password-wrap .input-icon{
  position:absolute;
  left:14px;
  top:50%;
  transform:translateY(-50%);
  color:#64748b;
  z-index:2;
  width:18px;
  height:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:none;
}

.password-wrap .toggle-password{
  position:absolute;
  top:50%;
  right:10px;
  transform:translateY(-50%);
  width:32px;
  height:32px;
  border:none;
  background:transparent;
  color:#64748b;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  padding:0;
  z-index:3;
  border-radius:8px;
}

.password-wrap .toggle-password:hover{
  color:#1e293b;
  background:rgba(148,163,184,.08);
}

.password-wrap .toggle-password:focus{
  outline:none;
}

.password-wrap .toggle-password i{
  font-size:15px;
  line-height:1;
  pointer-events:none;
}

@media (max-width:640px){
  .password-label-row{
    flex-direction:column;
    align-items:flex-start;
  }
}
/* =========================
   PRICING PAGE
   ========================= */

.pricing-page{
  display:grid;
  gap:22px;
}

.pricing-hero{
  padding:28px;
  background:
    radial-gradient(circle at top right, rgba(37,99,235,.10), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.pricing-title{
  margin:14px 0 10px;
  font-size:40px;
  line-height:1.1;
  color:var(--text);
}

.pricing-subtitle{
  margin:0;
  max-width:950px;
  color:var(--muted);
  font-size:17px;
  line-height:1.8;
}

.pricing-hero__actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:20px;
}

.pricing-cards{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:22px;
  align-items:stretch;
}

.pricing-card{
  position:relative;
  padding:26px;
  display:flex;
  flex-direction:column;
}

.pricing-card--featured{
  border:2px solid rgba(37,99,235,.18);
  box-shadow:0 18px 40px rgba(37,99,235,.10);
}

.pricing-card__badge{
  position:absolute;
  top:14px;
  right:14px;
  background:#2563eb;
  color:#fff;
  font-size:12px;
  font-weight:800;
  padding:6px 10px;
  border-radius:999px;
}

.pricing-card__title{
  margin:0 0 14px;
  font-size:24px;
  color:var(--text);
}

.pricing-card__price{
  font-size:38px;
  font-weight:800;
  color:#1d4ed8;
  margin-bottom:10px;
}

.pricing-card__price span{
  display:block;
  font-size:14px;
  font-weight:600;
  color:var(--muted);
  margin-top:4px;
}

.pricing-card__note{
  margin:0 0 18px;
  color:var(--muted);
  line-height:1.7;
}

.pricing-card__features{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:12px;
}

.pricing-card__features li{
  display:flex;
  gap:10px;
  align-items:flex-start;
  color:var(--text);
  line-height:1.6;
}

.pricing-card__features i{
  color:#16a34a;
  margin-top:2px;
}

.pricing-card__footer{
  margin-top:auto;
  padding-top:22px;
}

.pricing-info-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:22px;
  align-items:stretch;
}

.pricing-info-card{
  padding:24px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.pricing-info-card h3{
  margin:0 0 6px;
  font-size:22px;
  color:var(--text);
}

.pricing-info-card h3 i{
  color:#2563eb;
  margin-right:8px;
}

.pricing-info-card p{
  margin:0;
  color:var(--muted);
  line-height:1.7;
}

.pricing-info-box{
  background:#eff6ff;
  border-left:4px solid #2563eb;
  padding:14px 16px;
  border-radius:8px;
  color:#111827;
  margin-top:6px;
}

.pricing-small-note{
  font-size:13px;
  margin-top:4px !important;
}

.pricing-contact-list{
  margin:0;
  padding-left:18px;
  color:var(--text);
  line-height:1.8;
}

.pricing-faq{
  padding:24px;
}

.pricing-faq h3{
  margin:0 0 18px;
  font-size:24px;
  color:var(--text);
}

.pricing-faq__item{
  padding:14px 0;
  border-top:1px solid var(--border);
}

.pricing-faq__item:first-of-type{
  border-top:none;
  padding-top:0;
}

.pricing-faq__item strong{
  display:block;
  margin-bottom:6px;
  color:var(--text);
}

.pricing-faq__item p{
  margin:0;
  color:var(--muted);
  line-height:1.7;
}

@media (max-width:900px){
  .pricing-cards,
  .pricing-info-grid{
    grid-template-columns:1fr;
  }

  .pricing-title{
    font-size:32px;
  }
}

@media (max-width:640px){
  .pricing-hero{
    padding:20px;
  }

  .pricing-title{
    font-size:28px;
  }

  .pricing-subtitle{
    font-size:15px;
  }
}
/* ===== PREMIUM TOGGLE ===== */
.pricing-toggle{
  display:flex;
  background:#f1f5f9;
  border-radius:999px;
  padding:4px;
  width:max-content;
  margin:16px 0 12px;
  box-shadow:inset 0 2px 6px rgba(0,0,0,0.06);
}

.toggle-btn{
  position:relative;
  border:none;
  padding:9px 18px;
  border-radius:999px;
  background:transparent;
  font-weight:700;
  font-size:13px;
  cursor:pointer;
  color:#475569;
  transition:all .25s ease;
}

.toggle-btn.active{
  background:#2563eb;
  color:#fff;
  box-shadow:0 6px 14px rgba(37,99,235,.35);
}

.toggle-btn:hover:not(.active){
  color:#1e293b;
}

.toggle-btn:last-child::after{
  content:"SAVE 17%";
  position:absolute;
  top:-8px;
  right:-6px;
  font-size:9px;
  background:#16a34a;
  color:#fff;
  padding:2px 6px;
  border-radius:999px;
  font-weight:800;
}

.pricing-yearly-note{
  background:#ecfdf5;
  color:#166534;
  font-size:13px;
  font-weight:700;
  padding:6px 10px;
  border-radius:8px;
  margin-bottom:10px;
  display:inline-block;
}

/* ===== PAYMENT CARDS ===== */
.payment-method-card{
  border:1px solid #dbeafe;
  background:#ffffff;
  border-radius:16px;
  padding:16px;
  margin-top:12px;
  box-shadow:0 8px 20px rgba(15,23,42,0.04);
  display:flex;
  flex-direction:column;
  gap:8px;
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.payment-method-card:hover{
  transform:translateY(-3px);
  box-shadow:0 16px 30px rgba(37,99,235,.10);
  border-color:#93c5fd;
}

.payment-method-card__top{
  display:flex;
  align-items:center;
  gap:10px;
}

.payment-method-card__logo{
  width:42px;
  height:42px;
  object-fit:contain;
  border-radius:8px;
  background:#ffffff;
  border:1px solid #e5e7eb;
  padding:5px;
  flex-shrink:0;
}

.payment-method-card__title-wrap{
  min-width:0;
}

.payment-method-card__top strong{
  display:block;
  font-size:15px;
  color:#111827;
}

.payment-method-card__sub{
  font-size:12px;
  color:#6b7280;
  margin-top:2px;
}

.payment-method-card__verified{
  margin-left:auto;
  display:inline-flex;
  align-items:center;
  gap:5px;
  font-size:11px;
  font-weight:700;
  color:#15803d;
  background:#ecfdf5;
  border:1px solid #bbf7d0;
  padding:4px 8px;
  border-radius:999px;
  white-space:nowrap;
}

.payment-method-card__verified i{
  font-size:12px;
}

.payment-method-card__number-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.payment-method-card__number{
  font-size:24px;
  font-weight:800;
  color:#1d4ed8;
  letter-spacing:.5px;
  word-break:break-word;
}

.payment-method-card__name{
  color:#111827;
  font-size:14px;
  line-height:1.6;
}

.copy-btn{
  border:none;
  background:#eff6ff;
  color:#1d4ed8;
  font-weight:700;
  font-size:13px;
  border-radius:10px;
  padding:8px 12px;
  display:inline-flex;
  align-items:center;
  gap:6px;
  cursor:pointer;
  transition:all .2s ease;
}

.copy-btn:hover{
  background:#dbeafe;
}

.copy-btn.copied{
  background:#dcfce7;
  color:#166534;
}

.pricing-info-box--success{
  background:#ecfdf5;
  border-left:4px solid #16a34a;
  color:#166534;
}

@media (max-width:640px){
  .payment-method-card__number{
    font-size:20px;
  }

  .payment-method-card__verified{
    margin-left:0;
  }

  .payment-method-card__top{
    flex-wrap:wrap;
  }
}

/* ===== CONTACT GRID ===== */

.contact-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:14px;
  margin-top:10px;
}

.contact-item{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px;
  border-radius:12px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  transition:all .2s ease;
}

.contact-item:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 18px rgba(0,0,0,0.05);
  border-color:#93c5fd;
}

/* ICONS */
.contact-icon{
  width:40px;
  height:40px;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#eff6ff;
  color:#2563eb;
  font-size:16px;
  flex-shrink:0;
}

.contact-icon.whatsapp{
  background:#ecfdf5;
  color:#16a34a;
}

.contact-icon.email{
  background:#fef3c7;
  color:#d97706;
}

.contact-icon.web{
  background:#ede9fe;
  color:#7c3aed;
}

/* TEXT */
.contact-label{
  font-size:12px;
  color:#6b7280;
  font-weight:600;
}

.contact-value{
  font-size:14px;
  font-weight:700;
  color:#111827;
  word-break:break-word;
}

/* RESPONSIVE */
@media (max-width:640px){
  .contact-grid{
    grid-template-columns:1fr;
  }
}

/* ===== TERMS PAGE ===== */

.terms-page{
  display:grid;
  gap:20px;
}

.terms-hero{
  padding:26px;
  background:
    radial-gradient(circle at top right, rgba(37,99,235,.10), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.terms-title{
  margin:12px 0 8px;
  font-size:34px;
  color:var(--text);
}

.terms-subtitle{
  margin:0;
  color:var(--muted);
  max-width:800px;
  line-height:1.8;
}

.terms-content{
  padding:24px;
}

.terms-block{
  margin-bottom:20px;
}

.terms-block h3{
  margin-bottom:8px;
  font-size:20px;
  color:#1d4ed8;
}

.terms-block p{
  margin:0 0 10px;
  color:var(--text);
  line-height:1.8;
}

.terms-block ul{
  padding-left:18px;
  margin:0;
  line-height:1.8;
}

@media (max-width:640px){
  .terms-title{
    font-size:26px;
  }
}