/* =============================================
   KOPERASI ANEKA BAKTI — Teal Palette
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

:root {
  /* ─── PRIMARY: Teal ─── */
  --teal-dark:   #0A4F59;   /* sidebar darkest */
  --teal-deep:   #0D6374;   /* sidebar mid     */
  --teal:        #1A9BAD;   /* primary          */
  --teal-l:      #22B5C9;   /* lighter          */
  --teal-ll:     #47CCD9;   /* lightest         */
  --teal-pale:   #E0F5F7;   /* bg tint          */
  --teal-glow:   rgba(26,155,173,0.22);

  /* ─── ACCENT: Warm Coral/Orange ─── */
  --coral:       #E85D26;
  --coral-l:     #F47340;
  --coral-pale:  #FFF0EB;
  --coral-glow:  rgba(232,93,38,0.18);

  /* ─── SECONDARY: Soft Gold ─── */
  --gold:        #D4A017;
  --gold-l:      #F0BE3A;
  --gold-pale:   #FEFAE8;

  /* ─── DANGER ─── */
  --rose:        #DC2626;
  --rose-pale:   #FEF2F2;

  /* ─── NEUTRALS ─── */
  --white:  #FFFFFF;
  --bg:     #F0FAFB;         /* very faint teal tint */
  --bg2:    #DFF0F3;
  --border: #B8DDE2;
  --text:   #082830;
  --text2:  #2E6672;
  --text3:  #6AAAB5;

  /* ─── LAYOUT ─── */
  --sidebar-w:  272px;
  --radius:     16px;
  --radius-sm:  10px;
  --shadow:     0 2px 24px rgba(10,79,89,0.09);
  --shadow-md:  0 8px 40px rgba(10,79,89,0.14);
  --shadow-lg:  0 20px 60px rgba(10,79,89,0.22);
  --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,h6 { font-family: 'Sora', sans-serif; }

/* ═══════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════ */
.sidebar {
  position: fixed; top: 0; left: 0;
  width: var(--sidebar-w); height: 100vh;
  background: var(--teal-dark);
  display: flex; flex-direction: column;
  z-index: 1000;
  transition: var(--transition);
  overflow: hidden;
}

.sidebar::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 85% 15%, rgba(26,155,173,0.55) 0%, transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(232,93,38,0.15) 0%, transparent 48%),
    radial-gradient(ellipse at 50% 55%, rgba(34,181,201,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.sidebar::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='1' fill='rgba(255,255,255,0.04)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.sidebar-brand {
  padding: 26px 22px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.09);
  position: relative; z-index: 1;
}

.brand-inner { display: flex; align-items: center; gap: 14px; }

.brand-logo {
  width: 52px; height: 52px; flex-shrink: 0;
  filter: drop-shadow(0 4px 14px rgba(240,190,58,0.55));
  transition: var(--transition);
}
.brand-logo:hover { transform: scale(1.06) rotate(-2deg); }

.brand-text h5 {
  color: white; font-size: 14px; font-weight: 700;
  line-height: 1.25; margin: 0; letter-spacing: -0.2px;
}
.brand-text span {
  font-size: 10.5px; color: rgba(255,255,255,0.42);
  font-weight: 400; letter-spacing: 0.5px;
  font-family: 'DM Sans', sans-serif;
}

.sidebar-scroll {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  padding: 10px 0;
  position: relative; z-index: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.nav-group-label {
  padding: 14px 22px 5px;
  font-size: 9px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.30);
  font-family: 'Sora', sans-serif;
}

.nav-item { padding: 2px 10px; }

.nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.6);
  font-size: 13.5px; font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  position: relative; white-space: nowrap;
}
.nav-link:hover {
  color: white;
  background: rgba(255,255,255,0.09);
}
.nav-link.active {
  color: white;
  background: linear-gradient(135deg, rgba(26,155,173,0.7) 0%, rgba(34,181,201,0.55) 100%);
  box-shadow: 0 4px 18px rgba(26,155,173,0.4), inset 0 1px 0 rgba(255,255,255,0.15);
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.12);
}

.nav-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0;
  background: rgba(255,255,255,0.06);
  transition: var(--transition);
}
.nav-link.active .nav-icon { background: rgba(255,255,255,0.2); }
.nav-link:hover .nav-icon  { background: rgba(255,255,255,0.11); }

.nav-badge {
  margin-left: auto;
  background: var(--coral);
  color: white;
  font-size: 10px; font-weight: 800;
  padding: 2px 8px; border-radius: 20px;
  min-width: 20px; text-align: center;
  font-family: 'Sora', sans-serif;
  box-shadow: 0 2px 8px var(--coral-glow);
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
  0%, 100% { box-shadow: 0 2px 8px var(--coral-glow); }
  50%       { box-shadow: 0 2px 14px rgba(232,93,38,0.45); }
}

/* Sidebar User */
.sidebar-user {
  padding: 14px 10px;
  border-top: 1px solid rgba(255,255,255,0.08);
  position: relative; z-index: 1;
}
.user-card {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.09);
  transition: var(--transition);
}
.user-card:hover { background: rgba(255,255,255,0.1); }

.user-avatar-wrap { position: relative; }
.user-avatar {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--coral), var(--coral-l));
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800; color: white;
  font-family: 'Sora', sans-serif;
  box-shadow: 0 3px 12px var(--coral-glow);
}
.user-status-dot {
  position: absolute; bottom: -2px; right: -2px;
  width: 10px; height: 10px;
  background: #4ADE80; border-radius: 50%;
  border: 2px solid var(--teal-dark);
}
.user-info .name {
  color: white; font-size: 13px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px;
}
.user-info .role-badge {
  display: inline-block;
  background: rgba(26,155,173,0.35);
  color: rgba(255,255,255,0.85);
  font-size: 10px; padding: 1px 8px; border-radius: 4px;
  margin-top: 2px; font-weight: 500;
}

.logout-btn {
  margin-left: auto;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; color: rgba(255,255,255,0.35);
  text-decoration: none; transition: var(--transition);
  background: rgba(255,255,255,0.05);
}
.logout-btn:hover { background: rgba(220,38,38,0.22); color: #FCA5A5; }

/* ═══════════════════════════════════════
   MAIN LAYOUT
═══════════════════════════════════════ */
.main-content { margin-left: var(--sidebar-w); min-height: 100vh; transition: var(--transition); }

/* TOPBAR */
.topbar {
  height: 66px; background: var(--white);
  padding: 0 30px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 99;
  box-shadow: 0 1px 0 var(--border), 0 4px 20px rgba(10,79,89,0.05);
}
.topbar-left { display: flex; align-items: center; gap: 14px; }
.page-title  { font-size: 18px; font-weight: 700; color: var(--text); margin: 0; line-height: 1; }
.breadcrumb-nav {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text3); margin-top: 3px;
}
.breadcrumb-nav a { color: var(--teal); text-decoration: none; }
.breadcrumb-nav a:hover { color: var(--teal-deep); }
.breadcrumb-nav .sep { color: var(--text3); }

.topbar-right { display: flex; align-items: center; gap: 10px; }
.topbar-btn {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border); background: transparent;
  color: var(--text2); cursor: pointer; transition: var(--transition);
  text-decoration: none;
}
.topbar-btn:hover { background: var(--teal-pale); border-color: var(--teal); color: var(--teal); }
.topbar-btn.danger:hover { background: var(--rose-pale); border-color: var(--rose); color: var(--rose); }

.topbar-date {
  font-size: 12.5px; color: var(--text2);
  background: var(--bg); padding: 6px 14px;
  border-radius: 20px; border: 1px solid var(--border); font-weight: 500;
}

/* PAGE BODY */
.page-body { padding: 28px 30px 60px; }

/* ═══════════════════════════════════════
   CARDS
═══════════════════════════════════════ */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-head {
  padding: 18px 22px 15px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.card-head h5 {
  font-size: 15px; font-weight: 700; margin: 0; color: var(--text);
  display: flex; align-items: center; gap: 9px;
}
.card-head h5 i { color: var(--teal); font-size: 14px; }
.card-body { padding: 22px; }

/* ═══════════════════════════════════════
   STAT CARDS
═══════════════════════════════════════ */
.stat-grid { display: grid; gap: 16px; }
.stat-grid-4 { grid-template-columns: repeat(4, 1fr); }
.stat-grid-3 { grid-template-columns: repeat(3, 1fr); }

.stat-card {
  border-radius: var(--radius); padding: 24px;
  position: relative; overflow: hidden;
  transition: var(--transition); border: 1px solid transparent;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.stat-card.t-deep    { background: linear-gradient(140deg, var(--teal-dark) 0%, var(--teal-deep) 100%); }
.stat-card.t-teal    { background: linear-gradient(140deg, var(--teal-deep) 0%, var(--teal) 100%); }
.stat-card.t-coral   { background: linear-gradient(140deg, #B83A10 0%, var(--coral) 100%); }
.stat-card.t-gold    { background: linear-gradient(140deg, #9A7010 0%, var(--gold-l) 100%); }
.stat-card.white     { background: var(--white); border-color: var(--border); box-shadow: var(--shadow); }

.stat-card .deco  { position: absolute; right: -20px; top: -20px; width: 110px; height: 110px; border-radius: 50%; background: rgba(255,255,255,0.07); }
.stat-card .deco2 { position: absolute; right: 16px; bottom: -28px; width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,0.05); }

.stat-icon-wrap {
  width: 48px; height: 48px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 16px;
}
.stat-card.white .stat-icon-wrap.t-icon  { background: var(--teal-pale);  color: var(--teal); }
.stat-card.white .stat-icon-wrap.c-icon  { background: var(--coral-pale); color: var(--coral); }
.stat-card.white .stat-icon-wrap.g-icon  { background: var(--gold-pale);  color: var(--gold); }
.stat-card:not(.white) .stat-icon-wrap   { background: rgba(255,255,255,0.16); color: white; }

.stat-value {
  font-family: 'Sora', sans-serif; font-size: 26px; font-weight: 800;
  line-height: 1; margin-bottom: 5px;
}
.stat-card:not(.white) .stat-value { color: white; }
.stat-card.white .stat-value { color: var(--text); }
.stat-label { font-size: 12.5px; font-weight: 500; }
.stat-card:not(.white) .stat-label { color: rgba(255,255,255,0.62); }
.stat-card.white .stat-label { color: var(--text2); }

/* ═══════════════════════════════════════
   HERO BANNER
═══════════════════════════════════════ */
.hero-banner {
  border-radius: var(--radius); padding: 30px 34px;
  background: linear-gradient(120deg, var(--teal-dark) 0%, var(--teal-deep) 40%, var(--teal) 100%);
  position: relative; overflow: hidden;
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 24px;
}
.hero-banner::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 92% 50%, rgba(34,181,201,0.5) 0%, transparent 52%),
    radial-gradient(ellipse at 8%  80%, rgba(232,93,38,0.2) 0%, transparent 46%);
}
.hero-banner::after {
  content: '';
  position: absolute; right: -50px; top: -50px;
  width: 250px; height: 250px; border-radius: 50%;
  border: 50px solid rgba(255,255,255,0.05);
}
/* Coral accent bar */
.hero-banner .accent-bar {
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--coral) 35%, var(--gold-l) 65%, transparent 100%);
}
.hero-logo {
  width: 80px; height: 80px;
  filter: drop-shadow(0 8px 22px rgba(0,0,0,0.28));
  position: relative; z-index: 1; flex-shrink: 0;
}
.hero-text { position: relative; z-index: 1; flex: 1; }
.hero-text h3 { color: white; font-size: 22px; font-weight: 800; margin: 0 0 8px; }
.hero-text p  { color: rgba(255,255,255,0.62); font-size: 13.5px; margin: 0; }

.hero-stats { display: flex; gap: 14px; position: relative; z-index: 1; }
.hero-stat {
  text-align: center; padding: 13px 18px;
  border-radius: 13px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(6px);
  min-width: 110px;
}
.hero-stat .val { color: white; font-size: 18px; font-weight: 800; font-family: 'Sora', sans-serif; line-height: 1; }
.hero-stat .lbl { color: rgba(255,255,255,0.55); font-size: 11px; margin-top: 4px; font-weight: 500; }

/* ═══════════════════════════════════════
   TABLES
═══════════════════════════════════════ */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th {
  background: var(--bg);
  padding: 12px 18px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--text2); border-bottom: 2px solid var(--border);
  white-space: nowrap; font-family: 'Sora', sans-serif;
}
tbody td {
  padding: 14px 18px; border-bottom: 1px solid var(--bg2);
  vertical-align: middle; color: var(--text); font-size: 13.5px;
}
tbody tr:hover td { background: var(--teal-pale); }
tbody tr:last-child td { border-bottom: none; }

/* ═══════════════════════════════════════
   BADGES
═══════════════════════════════════════ */
.badge-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: 20px;
  font-size: 11.5px; font-weight: 600; white-space: nowrap;
}
.badge-pill.aktif    { background: #DCFCE7; color: #15803D; }
.badge-pill.pending  { background: #FEF3C7; color: #92400E; }
.badge-pill.nonaktif { background: var(--rose-pale); color: var(--rose); }
.badge-pill.teal     { background: var(--teal-pale); color: var(--teal-deep); }
.badge-pill.coral    { background: var(--coral-pale); color: var(--coral); }
.badge-pill.gold     { background: var(--gold-pale);  color: var(--gold); }

/* ═══════════════════════════════════════
   BUTTONS
═══════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-sm); border: none;
  font-size: 13.5px; font-weight: 600; cursor: pointer;
  transition: var(--transition); font-family: 'DM Sans', sans-serif;
  text-decoration: none; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--teal-deep), var(--teal-l));
  color: white; box-shadow: 0 4px 16px var(--teal-glow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px var(--teal-glow); color: white; }

.btn-coral {
  background: linear-gradient(135deg, #B83A10, var(--coral));
  color: white; box-shadow: 0 4px 16px var(--coral-glow);
}
.btn-coral:hover { transform: translateY(-1px); color: white; box-shadow: 0 8px 24px var(--coral-glow); }

.btn-gold {
  background: linear-gradient(135deg, #9A7010, var(--gold-l));
  color: white; box-shadow: 0 4px 16px rgba(212,160,23,0.28);
}
.btn-gold:hover { transform: translateY(-1px); color: white; }

.btn-outline {
  background: transparent; color: var(--text2);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-pale); }

.btn-sm   { padding: 7px 14px; font-size: 12px; border-radius: 8px; }
.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: 8px; justify-content: center; }

.btn-danger-soft  { background: var(--rose-pale);  color: var(--rose);  border: 1px solid #FECACA; }
.btn-danger-soft:hover  { background: var(--rose); color: white; }
.btn-success-soft { background: var(--teal-pale); color: var(--teal-deep); border: 1px solid var(--bg2); }
.btn-success-soft:hover { background: var(--teal); color: white; }

/* ═══════════════════════════════════════
   FORMS
═══════════════════════════════════════ */
.form-label {
  display: block; font-size: 12.5px; font-weight: 700; color: var(--text);
  margin-bottom: 7px; font-family: 'Sora', sans-serif; letter-spacing: 0.2px;
}
.form-label .opt {
  font-weight: 400; font-size: 11px; color: var(--text3); margin-left: 5px;
  background: var(--bg2); padding: 1px 8px; border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
}
.req { color: var(--coral); margin-left: 2px; }

.form-control, .form-select {
  width: 100%; padding: 11px 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; color: var(--text); background: var(--white);
  transition: var(--transition); font-family: 'DM Sans', sans-serif;
  outline: none; appearance: none;
}
.form-control::placeholder { color: var(--text3); }
.form-control:focus, .form-select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26,155,173,0.14);
}
.form-hint { font-size: 11.5px; color: var(--text3); margin-top: 5px; }

/* ═══════════════════════════════════════
   UPLOAD ZONE
═══════════════════════════════════════ */
.upload-zone {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 28px 20px; text-align: center; cursor: pointer;
  transition: var(--transition); background: var(--bg);
}
.upload-zone:hover    { border-color: var(--teal); background: var(--teal-pale); }
.upload-zone.uploaded { border-color: var(--teal); border-style: solid; background: var(--teal-pale); }

.upload-zone .uz-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin: 0 auto 12px; transition: var(--transition);
}
.upload-zone .uz-icon.default { background: var(--bg2); color: var(--text3); }
.upload-zone:hover .uz-icon.default { background: var(--teal-pale); color: var(--teal); }
.upload-zone.uploaded .uz-icon { background: var(--teal-pale); color: var(--teal); }

.up-preview { margin-top: 12px; border-radius: 10px; overflow: hidden; border: 2px solid var(--bg2); display: none; }
.up-preview img { width: 100%; max-height: 160px; object-fit: contain; background: var(--bg); }

/* ═══════════════════════════════════════
   MODALS
═══════════════════════════════════════ */
.modal-content { border: none !important; border-radius: 20px !important; overflow: hidden; box-shadow: var(--shadow-lg); }
.modal-header-custom {
  padding: 22px 28px 18px;
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 100%);
  position: relative; overflow: hidden;
}
.modal-header-custom::before {
  content: ''; position: absolute; right: -30px; top: -30px;
  width: 130px; height: 130px; border-radius: 50%;
  background: rgba(255,255,255,0.07);
}
.modal-header-custom h5 {
  color: white; font-size: 17px; font-weight: 700;
  margin: 0; display: flex; align-items: center; gap: 10px;
}
.modal-body-custom { padding: 28px; }
.modal-footer-custom {
  padding: 16px 28px 24px; display: flex; gap: 10px;
  justify-content: flex-end; border-top: 1px solid var(--border);
}

/* ═══════════════════════════════════════
   PROGRESS
═══════════════════════════════════════ */
.progress-bar-custom { height: 10px; background: var(--bg2); border-radius: 20px; overflow: hidden; }
.progress-fill {
  height: 100%; border-radius: 20px;
  background: linear-gradient(90deg, var(--teal-deep), var(--teal-l));
  transition: width 0.6s ease;
}

/* ═══════════════════════════════════════
   ALERTS
═══════════════════════════════════════ */
.alert {
  padding: 13px 18px; border-radius: var(--radius-sm);
  display: flex; align-items: center; gap: 12px;
  font-size: 13.5px; margin-bottom: 20px; border: 1px solid transparent;
}
.alert-success { background: #F0FDF4; color: #15803D; border-color: #A7F3D0; }
.alert-danger  { background: var(--rose-pale); color: var(--rose); border-color: #FECACA; }
.alert-warning { background: var(--gold-pale); color: #78500A; border-color: #FDE68A; }

/* ═══════════════════════════════════════
   EMPTY STATE
═══════════════════════════════════════ */
.empty-state { text-align: center; padding: 56px 20px; }
.empty-icon {
  width: 72px; height: 72px; border-radius: 20px;
  background: var(--bg2);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: var(--text3); margin: 0 auto 16px;
}
.empty-state h6 { font-size: 15px; color: var(--text2); margin-bottom: 6px; }
.empty-state p  { font-size: 13px; color: var(--text3); }

/* ═══════════════════════════════════════
   PAGE HEADER
═══════════════════════════════════════ */
.page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 24px;
}
.page-header h4 { font-size: 20px; font-weight: 800; color: var(--text); margin: 0; }
.page-header p  { font-size: 13px; color: var(--text2); margin: 4px 0 0; }

.divider-text {
  display: flex; align-items: center; gap: 12px;
  color: var(--text3); font-size: 12.5px; margin: 20px 0;
}
.divider-text::before, .divider-text::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ═══════════════════════════════════════
   MOBILE
═══════════════════════════════════════ */
.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.55); z-index: 999;
  backdrop-filter: blur(3px);
}
.sidebar-overlay.show { display: block; }
.mobile-toggle {
  display: none; width: 38px; height: 38px;
  border-radius: 10px; border: 1.5px solid var(--border);
  background: transparent; cursor: pointer;
  align-items: center; justify-content: center; color: var(--text2);
}

@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.show { transform: translateX(0); box-shadow: var(--shadow-lg); }
  .main-content { margin-left: 0; }
  .mobile-toggle { display: flex; }
  .topbar { padding: 0 18px; }
  .page-body { padding: 18px 18px 60px; }
  .stat-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-stats  { display: none; }
}
@media (max-width: 640px) {
  .stat-grid-4, .stat-grid-3 { grid-template-columns: 1fr 1fr; }
  .hero-banner  { padding: 18px; }
  .hero-text h3 { font-size: 17px; }
  .hero-logo    { width: 54px; height: 54px; }
}

/* ═══════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in   { animation: fadeInUp 0.42s ease forwards; }
.fade-in-1 { animation: fadeInUp 0.42s 0.06s ease both; }
.fade-in-2 { animation: fadeInUp 0.42s 0.12s ease both; }
.fade-in-3 { animation: fadeInUp 0.42s 0.18s ease both; }
.fade-in-4 { animation: fadeInUp 0.42s 0.24s ease both; }

/* Bootstrap overrides */
.btn-close { background: none; opacity: 0.7; }
.btn-close:hover { opacity: 1; }
