/* ═══════════════════════════════════════════════════════════
   SBM VIKASH GARHWA — Main stylesheet
   Indian Government palette: saffron (#FF6700), white, green (#138808)
   ═══════════════════════════════════════════════════════════ */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --saffron: #FF6700;
  --saffron-dark: #E55D00;
  --white: #FFFFFF;
  --green: #138808;
  --green-dark: #0F6606;
  --navy: #0A2A66;
  --gold: #FFCB05;
  --gray-50: #F8F9FA;
  --gray-100: #F1F3F5;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-500: #6B7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --red: #DC2626;
  --blue: #0047AB;
}

body {
  font-family: 'Hind', 'Noto Sans Devanagari', system-ui, sans-serif;
  background: var(--gray-50);
  color: var(--gray-900);
  line-height: 1.5;
  font-size: 15px;
}

a { color: var(--saffron-dark); text-decoration: none; }
a:hover { color: var(--saffron); }

/* ── TOPBAR ── */
.topbar {
  background: var(--navy);
  color: #fff;
  font-size: 12px;
}
.tb-in {
  max-width: 1280px;
  margin: 0 auto;
  padding: 6px 16px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.tb-links a { color: #fff; margin: 0 4px; opacity: 0.9; }
.tb-links a:hover { color: var(--gold); opacity: 1; }
.tb-right { display: flex; gap: 12px; align-items: center; }
.fc button {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  width: 26px; height: 22px;
  cursor: pointer;
  border-radius: 3px;
  margin-right: 2px;
}
.lang-btn a {
  color: #fff;
  padding: 2px 8px;
  border: 1px solid rgba(255,255,255,0.3);
  margin-left: 4px;
  border-radius: 3px;
}
.lang-btn a.on { background: var(--saffron); border-color: var(--saffron); }

/* tricolour strip */
.tribar {
  height: 4px;
  background: linear-gradient(
    to bottom,
    var(--saffron) 0 33%,
    #fff 33% 66%,
    var(--green) 66% 100%
  );
}

/* ── HEADER ── */
.site-header {
  background: linear-gradient(135deg, #fff 0%, #FFF7EE 100%);
  border-bottom: 2px solid var(--saffron);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.hdr-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
}
.logo-ring {
  width: 78px; height: 78px;
  border-radius: 50%;
  border: 3px solid var(--saffron);
  padding: 3px;
  background: #fff;
  position: relative;
}
.logo-ring img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
}
.logo-dot {
  position: absolute;
  bottom: 2px; right: 2px;
  width: 16px; height: 16px;
  background: var(--green);
  border-radius: 50%;
  border: 2px solid #fff;
}
.hdr-en { font-size: 13px; color: var(--gray-500); font-weight: 600; letter-spacing: 0.3px; }
.hdr-hi {
  font-family: 'Noto Sans Devanagari', 'Rajdhani', sans-serif;
  font-size: 22px; font-weight: 700;
  background: linear-gradient(90deg, var(--saffron), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 2px 0;
}
.vk-pill {
  display: inline-block;
  background: linear-gradient(90deg, var(--saffron) 0%, var(--gold) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 4px 14px;
  border-radius: 20px;
  margin: 6px 0 4px;
  box-shadow: 0 2px 4px rgba(255,103,0,0.3);
}
.vk-pill .st { color: #FFF; }
.hdr-sub { font-size: 12px; color: var(--gray-500); }

.hdr-right { text-align: right; }
.gbadges { display: flex; gap: 6px; justify-content: flex-end; margin-bottom: 8px; }
.gb {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 3px;
  color: #fff;
}
.gb-s { background: var(--saffron); }
.gb-g { background: var(--green); }
.hbtns { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.hbtn {
  padding: 7px 14px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  color: #fff !important;
  display: inline-block;
}
.hb-l { background: var(--blue); }
.hb-r { background: var(--green); }
.hb-d { background: var(--saffron); }
.hbtn:hover { transform: translateY(-1px); box-shadow: 0 3px 6px rgba(0,0,0,0.15); }

/* ── MAIN NAV ── */
.main-nav {
  background: linear-gradient(90deg, var(--saffron) 0%, var(--saffron-dark) 100%);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  position: relative;
  padding: 8px 0px;
}
.nav-in {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  align-items: center;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}
.main-nav a {
  color: #fff;
  padding: 7px 16px;
  font-weight: 600;
  font-size: 13px;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}
.main-nav a:hover {
  background: rgba(0,0,0,0.12);
  border-bottom-color: var(--gold);
  color: #fff;
}

/* Hamburger button — hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
  margin: 8px 0 8px auto;
  width: 42px; height: 42px;
}
.nav-hamburger span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.25s;
  transform-origin: center;
}
/* X animation */
.nav-hamburger.nav-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.nav-active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.nav-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 992px) {
  .nav-hamburger { display: flex; }
  .nav-in { flex-wrap: nowrap; padding: 0 12px; position: relative; }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: linear-gradient(180deg, var(--saffron-dark) 0%, #c94e00 100%);
    z-index: 999;
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    border-top: 1px solid rgba(255,255,255,0.2);
  }
  .nav-links.nav-open { display: flex; }
  .nav-links a {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    border-left: 4px solid transparent;
    font-size: 15px;
  }
  .nav-links a:hover {
    background: rgba(0,0,0,0.15);
    border-left-color: var(--gold);
    border-bottom-color: rgba(255,255,255,0.12);
  }
}

/* ── FLASH ── */
.flash-wrap {
  max-width: 1280px;
  margin: 14px auto 0;
  padding: 0 16px;
}
.flash {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 8px;
  font-weight: 500;
  border-left: 4px solid;
}
.flash-success { background: #ECFDF5; border-color: var(--green); color: #065F46; }
.flash-error   { background: #FEF2F2; border-color: var(--red); color: #991B1B; }
.flash-warning { background: #FEF3C7; border-color: #D97706; color: #92400E; }
.flash-info    { background: #DBEAFE; border-color: var(--blue); color: #1E40AF; }

/* ── MAIN ── */
.main-content {
  max-width: 1280px;
  margin: 20px auto;
  padding: 0 16px;
  min-height: 50vh;
}

/* ── CARDS / GENERIC ── */
.card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  margin-bottom: 16px;
}
.card-header {
  border-bottom: 2px solid var(--gray-200);
  padding-bottom: 10px;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.card-header h2, .card-header h3 { color: var(--navy); }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--saffron) 0%, var(--saffron-dark) 50%, var(--green) 100%);
  color: #fff;
  padding: 50px 24px;
  border-radius: 14px;
  text-align: center;
  margin-bottom: 24px;
  box-shadow: 0 4px 18px rgba(255,103,0,0.25);
}
.hero h1 {
  font-family: 'Rajdhani', 'Noto Sans Devanagari', sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.hero p { font-size: 17px; max-width: 760px; margin: 0 auto 18px; opacity: 0.95; }
.hero-cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero-cta a {
  background: #fff;
  color: var(--saffron-dark);
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}
.hero-cta a.alt { background: var(--green); color: #fff; }

/* ── STATS GRID ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.stat-card {
  background: #fff;
  border-radius: 10px;
  padding: 18px;
  text-align: center;
  border-top: 4px solid var(--saffron);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  transition: transform 0.2s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.stat-card.green { border-top-color: var(--green); }
.stat-card.blue  { border-top-color: var(--blue); }
.stat-card.red   { border-top-color: var(--red); }
.stat-card .num {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  margin: 4px 0;
}
.stat-card .lbl { font-size: 13px; color: var(--gray-500); }
.stat-card .ico { font-size: 28px; margin-bottom: 4px; }

/* ── GRIDS ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
@media (max-width: 700px) {
  .grid-2 { grid-template-columns: 1fr; }
}

/* ── FORMS ── */
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  color: var(--gray-700);
  margin-bottom: 5px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--gray-300);
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(255,103,0,0.15);
}

.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  background: var(--saffron);
  color: #fff;
  transition: all 0.2s;
}
.btn:hover { background: var(--saffron-dark); transform: translateY(-1px); }
.btn-green { background: var(--green); }
.btn-green:hover { background: var(--green-dark); }
.btn-blue { background: var(--blue); }
.btn-red { background: var(--red); }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-outline { background: #fff; color: var(--saffron); border: 1.5px solid var(--saffron); }
.btn-outline:hover { background: var(--saffron); color: #fff; }

/* ── BADGES ── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.b-pending    { background: #FFE7CC; color: #B45309; }
.b-processing { background: #DBEAFE; color: #1E40AF; }
.b-resolved,
.b-verified,
.b-completed,
.b-paid,
.b-active     { background: #D1FAE5; color: #065F46; }
.b-unpaid,
.b-failed,
.b-inactive   { background: #FEE2E2; color: #991B1B; }
.b-assigned   { background: #E0E7FF; color: #3730A3; }
.b-in_progress{ background: #FEF3C7; color: #92400E; }
.b-cancelled  { background: #F3F4F6; color: #4B5563; }

/* ── TABLES ── */
.table-wrap { overflow-x: auto; border-radius: 8px; }
table.tbl {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 13px;
}
table.tbl th {
  background: var(--navy);
  color: #fff;
  text-align: left;
  padding: 10px 12px;
  font-weight: 600;
  white-space: nowrap;
}
table.tbl td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--gray-200);
}
table.tbl tr:hover { background: var(--gray-50); }

/* ── SERVICE CATALOG CARDS ── */
.service-card {
  background: #fff;
  border-radius: 10px;
  border: 1.5px solid var(--gray-200);
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
  padding: 20px !important;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--saffron);
  box-shadow: 0 8px 24px rgba(255,103,0,0.15);
}
.service-card .ico {
  font-size: 36px;
  margin-bottom: 8px;
}
.service-card h3 {
  font-size: 17px;
  color: var(--navy);
  margin-bottom: 6px;
}
.service-card .desc {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 12px;
  min-height: 36px;
}
.service-card .price {
  font-size: 22px;
  font-weight: 800;
  color: var(--saffron-dark);
  margin-bottom: 4px;
}
.service-card .unit {
  font-size: 11px;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.service-card .cat-pill {
  position: absolute; top: 12px; right: 12px;
  background: var(--gray-100);
  color: var(--gray-700);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

/* ── CATEGORY CHIPS ── */
.cat-chips {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.cat-chip {
  padding: 8px 16px;
  background: #fff;
  border: 1.5px solid var(--gray-300);
  border-radius: 20px;
  color: var(--gray-700);
  font-weight: 600;
  font-size: 13px;
  transition: all 0.2s;
}
.cat-chip:hover, .cat-chip.active {
  background: var(--saffron);
  border-color: var(--saffron);
  color: #fff !important;
}

/* ── ADMIN PANEL ── */
.admin-wrap { display: grid; grid-template-columns: 240px 1fr; gap: 16px; min-height: 80vh; }
@media (max-width: 900px) { .admin-wrap { grid-template-columns: 1fr; } }
.admin-side {
  background: var(--navy);
  border-radius: 10px;
  padding: 14px;
  height: fit-content;
}
.admin-side a {
  display: block;
  padding: 10px 14px;
  color: #fff;
  border-radius: 6px;
  margin-bottom: 4px;
  font-size: 14px;
}
.admin-side a:hover, .admin-side a.active {
  background: var(--saffron);
  color: #fff;
}
.admin-side h4 {
  color: var(--gold);
  padding: 8px 14px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 8px;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--navy);
  color: #fff;
  margin-top: 50px;
  padding: 40px 16px 0;
}
.ft-cols {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}
.ft-c h4 { color: var(--gold); margin-bottom: 12px; }
.ft-c a { color: #ccc; line-height: 2; }
.ft-c a:hover { color: var(--gold); }
.ft-c p { color: #ccc; margin-bottom: 6px; font-size: 14px; }
.ft-bot {
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  padding: 16px;
  margin-top: 30px;
  font-size: 13px;
  color: #aaa;
}

/* ── UTILITIES ── */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.muted { color: var(--gray-500); }
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--gray-500);
}
.empty-state .ico { font-size: 56px; margin-bottom: 10px; }

/* ── SECTION HEADINGS ── */
.section-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 26px;
  color: var(--navy);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--saffron);
  display: inline-block;
}

/* mobile */
@media (max-width: 700px) {
  .hdr-main {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 10px;
  }
  .hdr-right {
    grid-column: 1 / -1;
    text-align: center;
  }
  .hdr-txt { text-align: left; }
  .gbadges, .hbtns { justify-content: center; }
  .hdr-hi { font-size: 17px; }
  .hdr-en { font-size: 11px; }
  .logo-ring { width: 60px; height: 60px; }
  .vk-pill { font-size: 11px; padding: 3px 10px; }
  .hbtn { padding: 6px 10px; font-size: 12px; }
  .hbtns { flex-wrap: wrap; gap: 4px; }
  /* topbar hide on very small screens */
  .tb-links { display: block; }
  .tb-in { justify-content: flex-end; }
}

/* ============ Additional component styles ============ */
.hero-sm { padding: 40px 0; }
.section-title { color: var(--navy); margin-top: 30px; border-bottom: 2px solid var(--saffron); padding-bottom: 8px; }
.back-link { display: inline-block; color: var(--navy); text-decoration: none; font-weight: 600; margin-bottom: 10px; }
.back-link:hover { color: var(--saffron); }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }
.narrow { max-width: 720px; margin: 0 auto; }
.full-width { width: 100%; }
.small { font-size: 0.85em; }
.muted { color: #666; }
.req { color: #d9534f; }

.empty-state { text-align: center; padding: 60px 20px; }
.empty-state h3 { color: #666; margin-bottom: 20px; }

.price-row { display: flex; align-items: baseline; gap: 6px; margin: 10px 0; }
.price { font-size: 1.4em; font-weight: 700; color: var(--green); }
.unit { color: #777; font-size: 0.9em; }
.price-box { background: linear-gradient(135deg, #f5fff5, #e9f7ea); border: 2px solid var(--green); padding: 15px; border-radius: 8px; margin: 15px 0; display: inline-block; }
.price-big { font-size: 2em; font-weight: 800; color: var(--green); }

.service-card { background: #fff; border: 1px solid #e0e0e0; border-radius: 10px; padding: 0; overflow: hidden; transition: all 0.25s; display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); border-color: var(--saffron); }
.service-img { width: 100%; height: 160px; object-fit: cover; background: #f5f5f5; }
.service-img.placeholder { display: flex; align-items: center; justify-content: center; font-size: 4em; color: #ccc; }
.service-card h3 { padding: 0 15px; margin: 10px 0 5px; }
.service-card p, .service-card .price-row, .service-card .card-actions { padding: 0 15px; }
.service-card .card-actions { padding: 12px 15px; display: flex; gap: 8px; margin-top: auto; border-top: 1px solid #f0f0f0; }
.cat-pill { display: inline-block; background: var(--navy); color: #fff; padding: 4px 10px; border-radius: 12px; font-size: 0.78em; margin: 12px 15px 0; font-weight: 600; }

.detail-img { width: 100%; height: 300px; object-fit: cover; border-radius: 10px; background: #f5f5f5; }
.detail-img.placeholder { display: flex; align-items: center; justify-content: center; font-size: 7em; color: #ccc; }
.meta-list { list-style: none; padding: 0; }
.meta-list li { padding: 8px 0; border-bottom: 1px dashed #ddd; }

.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 15px 0 25px; }
.cat-chip { display: inline-block; padding: 8px 16px; background: #f0f0f0; color: var(--navy); border-radius: 20px; text-decoration: none; font-weight: 600; font-size: 0.9em; transition: all 0.2s; border: 1px solid transparent; }
.cat-chip:hover { background: var(--saffron); color: #fff; }
.cat-chip.active { background: var(--navy); color: #fff; border-color: var(--saffron); }

.head-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; margin-bottom: 15px; }
.head-row h1 { margin: 0; }

.inline-form { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.inline-form select, .inline-form input { padding: 4px 6px; font-size: 0.85em; border: 1px solid #ccc; border-radius: 4px; max-width: 130px; }
.sm { font-size: 0.85em; }
.thumb { width: 50px; height: 50px; object-fit: cover; border-radius: 4px; border: 1px solid #ddd; }
.tbl-compact { font-size: 0.9em; }
.tbl-compact th, .tbl-compact td { padding: 6px 8px; }

.btn-row { display: flex; gap: 10px; margin-top: 20px; }
.field-error { color: #d9534f; font-size: 0.85em; margin-top: 4px; }
.auth-card { max-width: 480px; margin: 0 auto; }
.auth-card h2 { color: var(--navy); margin-top: 0; }

.b-cancelled, .b-failed, .b-inactive { background: #f8d7da; color: #842029; }
.b-completed, .b-resolved, .b-verified, .b-active, .b-paid { background: #d4edda; color: #155724; }
.b-pending, .b-unpaid { background: #fff3cd; color: #856404; }
.b-processing, .b-assigned, .b-in_progress { background: #cce5ff; color: #004085; }

/* ═══════════════════════════════════════════════════════════
 *  ADMIN UI 2.0 + AGENT/EMPLOYEE PORTAL  (overrides)
 *  Appended block — wins via CSS source order.
 * ═══════════════════════════════════════════════════════════ */

/* ── Header extra buttons (Agent / Employee) ── */
.hbtn.hb-a { background: #0d9488; color: #fff; }
.hbtn.hb-e { background: #7c3aed; color: #fff; }
.hbtn.hb-a:hover { background: #0f766e; }
.hbtn.hb-e:hover { background: #6d28d9; }

/* ── FLASH MESSAGES (modern) ── */
.flash-wrap {
  position: fixed;
  top: 84px;
  right: 18px;
  z-index: 9999;
  max-width: 420px;
  width: calc(100% - 36px);
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.flash {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 14px 14px 16px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.45;
  background: #fff;
  border-left: 5px solid #888;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15), 0 2px 6px rgba(0,0,0,0.08);
  pointer-events: auto;
  animation: flashIn 0.32s cubic-bezier(0.2,0.7,0.2,1.05);
  margin: 0;
}
.flash-icon { font-size: 18px; line-height: 1.2; flex-shrink: 0; }
.flash-text { flex: 1; word-wrap: break-word; }
.flash-close {
  background: transparent;
  border: 0;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: inherit;
  opacity: 0.55;
  padding: 0 4px;
  flex-shrink: 0;
}
.flash-close:hover { opacity: 1; }
.flash-success { background: #ECFDF5; border-color: #10B981; color: #065F46; }
.flash-error,
.flash-danger  { background: #FEF2F2; border-color: #EF4444; color: #991B1B; }
.flash-warning { background: #FEF3C7; border-color: #D97706; color: #92400E; }
.flash-info    { background: #DBEAFE; border-color: #3B82F6; color: #1E40AF; }
.flash-debug   { background: #F3F4F6; border-color: #6B7280; color: #374151; }
.flash-out { animation: flashOut 0.22s forwards; }
@keyframes flashIn {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
@keyframes flashOut {
  from { transform: translateX(0); opacity: 1; }
  to   { transform: translateX(120%); opacity: 0; }
}
@media (max-width: 600px) {
  .flash-wrap { top: auto; bottom: 12px; right: 12px; left: 12px; max-width: none; width: auto; }
  .flash { animation: flashInBottom 0.32s cubic-bezier(0.2,0.7,0.2,1.05); }
  @keyframes flashInBottom { from { transform: translateY(120%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
}

/* ── STAT-NUM / STAT-LABEL (template uses these names) ── */
.stat-card .stat-num {
  font-size: 30px;
  font-weight: 800;
  color: var(--navy, #0a2540);
  margin: 4px 0 2px;
  line-height: 1.1;
}
.stat-card .stat-label {
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* ── ADMIN WRAP / SIDEBAR (modern dark) ── */
.admin-wrap {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 20px;
  min-height: 85vh;
  margin-top: 8px;
}
@media (max-width: 960px) {
  .admin-wrap { grid-template-columns: 1fr; }
}

.admin-sidebar {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: #e2e8f0;
  border-radius: 14px;
  padding: 22px 14px;
  box-shadow: 0 6px 18px rgba(15,23,42,0.18);
  position: sticky;
  top: 14px;
  align-self: start;
  max-height: calc(100vh - 28px);
  overflow-y: auto;
}
.admin-brand {
  text-align: center;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 14px;
}
.admin-brand h3 {
  color: #fff;
  font-size: 20px;
  margin: 0 0 6px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.admin-brand .muted, .admin-brand p {
  color: #94a3b8 !important;
  font-size: 12px;
  margin: 2px 0;
}
.admin-nav { display: flex; flex-direction: column; gap: 4px; }
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  color: #cbd5e1;
  text-decoration: none;
  border-radius: 9px;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.18s ease;
  border-left: 3px solid transparent;
}
.admin-nav a:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
  transform: translateX(2px);
}
.admin-nav a.active {
  background: linear-gradient(90deg, rgba(255,103,0,0.22), rgba(255,103,0,0.06));
  color: #fff;
  border-left-color: #ff6700;
  box-shadow: inset 0 0 0 1px rgba(255,103,0,0.15);
}
.admin-nav a.logout {
  margin-top: 10px;
  background: rgba(239,68,68,0.10);
  color: #fca5a5;
}
.admin-nav a.logout:hover { background: rgba(239,68,68,0.22); color: #fff; }

/* ── ADMIN MAIN ── */
.admin-main {
  background: #f8fafc;
  border-radius: 14px;
  padding: 24px 26px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  min-width: 0;
}
.admin-main h1 {
  font-size: 24px;
  margin: 0 0 18px;
  color: #0f172a;
  font-weight: 700;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 12px;
}
.admin-main h3 {
  color: #0f172a;
  margin: 8px 0 12px;
  font-size: 17px;
}

/* ── STAT CARDS in admin panel ── */
.admin-main .stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.admin-main .stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  text-align: left;
  border-top: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15,23,42,0.06), 0 0 0 1px rgba(15,23,42,0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.admin-main .stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff6700, #138808);
}
.admin-main .stat-card:nth-child(2)::before { background: linear-gradient(90deg, #3B82F6, #6366F1); }
.admin-main .stat-card:nth-child(3)::before { background: linear-gradient(90deg, #F59E0B, #D97706); }
.admin-main .stat-card:nth-child(4)::before { background: linear-gradient(90deg, #10B981, #059669); }
.admin-main .stat-card:nth-child(5)::before { background: linear-gradient(90deg, #EC4899, #BE185D); }
.admin-main .stat-card:nth-child(6)::before { background: linear-gradient(90deg, #14B8A6, #0F766E); }
.admin-main .stat-card:nth-child(7)::before { background: linear-gradient(90deg, #8B5CF6, #6D28D9); }
.admin-main .stat-card:nth-child(8)::before { background: linear-gradient(90deg, #F43F5E, #BE123C); }
.admin-main .stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(15,23,42,0.10);
}

/* ── BADGES (status pills) ── */
.badge {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  background: #e2e8f0;
  color: #475569;
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge.b-pending    { background: #FEF3C7; color: #92400E; }
.badge.b-processing { background: #DBEAFE; color: #1E40AF; }
.badge.b-resolved,
.badge.b-completed,
.badge.b-verified,
.badge.b-active,
.badge.b-paid       { background: #D1FAE5; color: #065F46; }
.badge.b-failed,
.badge.b-cancelled,
.badge.b-inactive   { background: #FEE2E2; color: #991B1B; }
.badge.b-assigned   { background: #E0E7FF; color: #3730A3; }
.badge.b-in_progress { background: #FED7AA; color: #9A3412; }
.badge.b-on_leave   { background: #FEF3C7; color: #92400E; }
.badge.b-unpaid     { background: #FEE2E2; color: #991B1B; }
.badge.b-refunded   { background: #E0E7FF; color: #3730A3; }
.badge.b-success    { background: #D1FAE5; color: #065F46; }

/* ── TABLES (admin) ── */
.admin-main table.tbl {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15,23,42,0.06), 0 0 0 1px rgba(15,23,42,0.04);
  margin: 12px 0;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.admin-main table.tbl th {
  background: #0f172a;
  color: #f1f5f9;
  padding: 12px 14px;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: left;
  border: none;
}
.admin-main table.tbl td {
  padding: 12px 14px;
  border-top: 1px solid #f1f5f9;
  font-size: 14px;
  color: #334155;
  vertical-align: middle;
}
.admin-main table.tbl tr:hover td { background: #f8fafc; }
.admin-main table.tbl-compact th,
.admin-main table.tbl-compact td { padding: 8px 10px; font-size: 13px; }
.admin-main .thumb {
  width: 44px; height: 44px;
  object-fit: cover; border-radius: 6px;
  border: 1px solid #e2e8f0;
}
.admin-main .muted { color: #94a3b8; }
.admin-main small.muted { font-size: 12px; }

/* Inline forms in tables */
.inline-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.inline-form select.sm,
.inline-form input.sm {
  padding: 6px 9px; font-size: 12.5px;
  border: 1px solid #cbd5e1; border-radius: 6px;
  background: #fff; color: #0f172a;
  min-width: 90px;
}
.inline-form input.sm[type=text] { min-width: 130px; }
.inline-form select.sm:focus,
.inline-form input.sm:focus {
  outline: none; border-color: #ff6700;
  box-shadow: 0 0 0 3px rgba(255,103,0,0.15);
}

.btn-sm { padding: 6px 12px !important; font-size: 12.5px !important; }
.btn-outline {
  background: #fff; color: #0f172a;
  border: 1px solid #cbd5e1;
}
.btn-outline:hover { background: #f1f5f9; }

.head-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px; margin-bottom: 18px; flex-wrap: wrap;
}
.head-row h1 { margin: 0; padding: 0; border: none; }

/* Category chips */
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 20px; }
.cat-chip {
  padding: 7px 14px; background: #fff; color: #0f172a;
  border-radius: 999px; font-weight: 600; font-size: 13px;
  border: 1px solid #e2e8f0;
}

/* Forms in admin_form.html — improved spacing */
.admin-main .form-row,
form.form .form-row {
  margin-bottom: 14px;
  display: flex; flex-direction: column; gap: 5px;
}
form.form label {
  font-weight: 600; color: #0f172a; font-size: 13.5px;
}
form.form input[type=text],
form.form input[type=email],
form.form input[type=password],
form.form input[type=date],
form.form input[type=number],
form.form input[type=file],
form.form textarea,
form.form select {
  padding: 10px 12px; font-size: 14px;
  border: 1px solid #cbd5e1; border-radius: 8px;
  background: #fff; color: #0f172a;
  width: 100%; box-sizing: border-box;
  transition: border 0.15s, box-shadow 0.15s;
}
form.form input:focus, form.form select:focus, form.form textarea:focus {
  outline: none; border-color: #ff6700;
  box-shadow: 0 0 0 3px rgba(255,103,0,0.15);
}
form.form .req { color: #ef4444; }
form.form .field-error {
  color: #b91c1c; font-size: 12px; margin-top: 3px;
}
form.form .btn-row {
  display: flex; gap: 10px; margin-top: 18px;
}
.back-link {
  display: inline-block; color: #475569;
  font-weight: 600; margin-bottom: 8px; text-decoration: none;
}
.back-link:hover { color: #ff6700; }
.full-width { width: 100%; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }

/* ── AUTH CARDS (login / register / family) ── */
.auth-wrap {
  max-width: 460px;
  margin: 30px auto;
  padding: 0 16px;
}
.auth-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 10px 40px rgba(15,23,42,0.10), 0 2px 8px rgba(15,23,42,0.05);
  border-top: 4px solid #ff6700;
}
.auth-card.agent-card { border-top-color: #0d9488; }
.auth-card.employee-card { border-top-color: #7c3aed; }
.auth-card.admin-card { border-top-color: #0f172a; }
.auth-card h2 {
  text-align: center; margin: 0 0 6px;
  color: #0f172a; font-size: 22px;
}
.auth-card .auth-sub {
  text-align: center; color: #64748b;
  margin-bottom: 22px; font-size: 14px;
}
.auth-card .demo-hint {
  margin-top: 14px;
  padding: 10px 12px;
  background: #f1f5f9;
  border-left: 3px solid #94a3b8;
  border-radius: 6px;
  color: #475569;
  font-size: 12.5px;
  text-align: center;
}
.auth-switch {
  text-align: center; margin-top: 18px;
  font-size: 13.5px; color: #64748b;
}
.auth-switch a { color: #ff6700; font-weight: 600; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }

/* Portal selector tabs on login screens */
.portal-tabs {
  display: flex; gap: 6px;
  background: #f1f5f9; padding: 4px;
  border-radius: 10px; margin-bottom: 22px;
}
.portal-tabs a {
  flex: 1; text-align: center;
  padding: 9px 8px; font-size: 13px; font-weight: 600;
  color: #475569; text-decoration: none;
  border-radius: 7px; transition: all 0.15s;
}
.portal-tabs a.active {
  background: #fff; color: #0f172a;
  box-shadow: 0 1px 3px rgba(15,23,42,0.08);
}
.portal-tabs a:hover:not(.active) { background: rgba(255,255,255,0.5); }

/* ── AGENT / EMPLOYEE DASHBOARD ── */
.portal-wrap {
  max-width: 1100px; margin: 18px auto; padding: 0 16px;
}
.portal-header {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  color: #fff; padding: 24px 26px;
  border-radius: 14px; margin-bottom: 20px;
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
  box-shadow: 0 6px 18px rgba(13,148,136,0.20);
}
.portal-header.employee-header {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  box-shadow: 0 6px 18px rgba(124,58,237,0.20);
}
.portal-header img.avatar {
  width: 70px; height: 70px; border-radius: 50%;
  object-fit: cover; border: 3px solid rgba(255,255,255,0.4);
}
.portal-header .ph-meta h1 { margin: 0 0 4px; font-size: 22px; }
.portal-header .ph-meta p { margin: 2px 0; opacity: 0.92; font-size: 13.5px; }
.portal-header .ph-meta strong { color: #fff; }

.portal-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px; margin-bottom: 20px;
}
.portal-stat {
  background: #fff; padding: 18px; border-radius: 12px;
  text-align: center; box-shadow: 0 1px 3px rgba(15,23,42,0.06), 0 0 0 1px rgba(15,23,42,0.04);
  border-top: 3px solid #0d9488;
}
.portal-stat.alt-1 { border-top-color: #3B82F6; }
.portal-stat.alt-2 { border-top-color: #10B981; }
.portal-stat.alt-3 { border-top-color: #F59E0B; }
.portal-stat.alt-4 { border-top-color: #EC4899; }
.portal-stat .num {
  font-size: 28px; font-weight: 800; color: #0f172a;
}
.portal-stat .lbl {
  font-size: 12px; color: #64748b;
  text-transform: uppercase; letter-spacing: 0.4px; font-weight: 600;
}

/* ── FAMILY TABLE ── */
.family-card { background: #fff; padding: 20px; border-radius: 14px; box-shadow: 0 1px 3px rgba(15,23,42,0.06), 0 0 0 1px rgba(15,23,42,0.04); margin-bottom: 18px; }
.family-card h3 { margin: 0 0 14px; color: #0f172a; }
.family-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (max-width: 700px) {
  .family-row { grid-template-columns: 1fr; }
}
.empty-state {
  text-align: center; color: #94a3b8;
  padding: 30px 14px; font-size: 14px;
  background: #f8fafc; border-radius: 10px;
  border: 1px dashed #cbd5e1;
}
.agent-info-bar {
  background: linear-gradient(90deg, #fff7ed, #fef3c7);
  border-left: 4px solid #ff6700;
  padding: 14px 18px; border-radius: 10px;
  margin-bottom: 18px;
}
.agent-info-bar strong { color: #9a3412; }

/* Print-button-row */
.action-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }


/* ═══════════════════════════════════════════════════════════
 *  CUSTOM SERVICE REQUEST + AGENT PUBLIC REGISTRATION (v3)
 * ═══════════════════════════════════════════════════════════ */

/* CTA banner on services list */
.custom-svc-cta {
  background: linear-gradient(120deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid #6ee7b7;
  border-radius: 14px;
  padding: 20px 24px;
  margin: 8px 0 22px;
  display: flex; align-items: center;
  justify-content: space-between; gap: 16px; flex-wrap: wrap;
  box-shadow: 0 2px 10px rgba(16,185,129,0.08);
}
.custom-svc-cta .cta-text h3 { margin: 0 0 4px; color: #065f46; font-size: 18px; }
.custom-svc-cta .cta-text p  { margin: 0; color: #047857; font-size: 14px; }

/* Custom service request page */
.custom-svc-intro {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 22px;
  box-shadow: 0 6px 18px rgba(16,185,129,0.22);
}
.custom-svc-intro h1 { margin: 0 0 8px; font-size: 24px; }
.custom-svc-intro p  { margin: 0; opacity: 0.95; font-size: 14px; }
.custom-svc-intro strong { color: #fde68a; }

.csr-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 22px;
  align-items: start;
}
@media (max-width: 900px) {
  .csr-grid { grid-template-columns: 1fr; }
}

/* Highlighted price block */
.price-block {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 2px dashed #f59e0b;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 12px 0;
}
.price-input-wrap {
  display: flex; align-items: center; gap: 0;
}
.price-symbol {
  background: #f59e0b;
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  padding: 10px 14px;
  border-radius: 8px 0 0 8px;
}
.price-input-wrap input.price-input,
.price-input-wrap input[name=price] {
  flex: 1;
  border-radius: 0 8px 8px 0 !important;
  border-left: none !important;
  font-size: 17px !important;
  font-weight: 700;
}
.total-preview {
  margin-top: 12px;
  padding: 10px 14px;
  background: #fff;
  border-radius: 8px;
  text-align: right;
  font-size: 14px;
  color: #475569;
}
.total-preview strong {
  color: #059669;
  font-size: 18px;
  margin-left: 6px;
}

/* Form helpers — grid layout for compact rows */
.form-row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.form-row-grid .form-row { margin-bottom: 0; }
@media (max-width: 560px) {
  .form-row-grid { grid-template-columns: 1fr; }
}

/* Preview card */
.preview-card {
  background: #fff;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 1px 3px rgba(15,23,42,0.06), 0 0 0 1px rgba(15,23,42,0.04);
  position: sticky; top: 14px;
}
.preview-card h3 { margin: 0 0 14px; color: #0f172a; }
.preview-cat {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  background: #e0e7ff; color: #3730a3;
  padding: 3px 9px; border-radius: 999px;
  margin-bottom: 8px;
}
.preview-name {
  font-size: 19px; font-weight: 700;
  color: #0f172a; margin: 4px 0 6px;
  word-wrap: break-word;
}
.preview-desc {
  color: #475569; font-size: 13.5px;
  line-height: 1.5; margin-bottom: 14px;
  min-height: 40px;
}
.preview-price {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  padding: 12px 14px; border-radius: 10px;
  margin-bottom: 14px; text-align: center;
}
.preview-price #prevPrice {
  font-size: 26px; font-weight: 800; color: #92400e;
}
.preview-price .unit {
  font-size: 13px; color: #b45309;
  margin-left: 4px;
}
.preview-meta {
  font-size: 13.5px; color: #475569;
  display: flex; flex-direction: column; gap: 6px;
  border-top: 1px solid #e2e8f0; padding-top: 12px;
}
.preview-total {
  color: #059669; font-weight: 800; font-size: 16px;
}

/* Info card */
.info-card {
  margin-top: 14px;
  background: #f1f5f9; border-left: 4px solid #3b82f6;
  padding: 16px 18px; border-radius: 10px;
}
.info-card h4 { margin: 0 0 10px; color: #1e40af; }
.info-list {
  margin: 0; padding-left: 20px; color: #475569; font-size: 13.5px;
  line-height: 1.7;
}

/* Info-box inside agent register form */
.info-box {
  background: #eff6ff; border-left: 4px solid #3b82f6;
  padding: 12px 14px; border-radius: 8px;
  color: #1e3a8a; font-size: 13.5px;
  margin: 16px 0; line-height: 1.5;
}

/* Steps bar (wizard) */
.steps-bar {
  display: flex; align-items: center;
  justify-content: center; gap: 0;
  margin: 0 auto 22px; max-width: 600px;
}
.step {
  display: flex; flex-direction: column;
  align-items: center; gap: 6px;
  text-align: center; min-width: 90px;
}
.step-circle {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #e2e8f0; color: #94a3b8;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
  border: 2px solid #cbd5e1;
  transition: all 0.18s;
}
.step.active .step-circle {
  background: #ff6700; color: #fff; border-color: #ff6700;
  box-shadow: 0 0 0 4px rgba(255,103,0,0.18);
}
.step.done .step-circle {
  background: #10b981; color: #fff; border-color: #10b981;
}
.step-label {
  font-size: 12px; font-weight: 600;
  color: #94a3b8; max-width: 90px;
}
.step.active .step-label { color: #ff6700; }
.step.done .step-label   { color: #10b981; }
.step-line {
  height: 3px; flex: 1;
  background: #e2e8f0; margin: 0 8px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.step-line.done { background: #10b981; }

/* Family pills on registration confirmation */
.family-pill {
  background: #f8fafc; padding: 12px 14px;
  border-radius: 10px; margin-bottom: 10px;
  border-left: 3px solid #0d9488;
}
.family-pill strong { color: #0f172a; }
.muted-small {
  font-size: 12px; color: #64748b; margin-top: 4px;
}

/* Quick actions on citizen dashboard */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 18px 0 22px;
}
.qa-card {
  background: #fff;
  padding: 14px 16px;
  border-radius: 12px;
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
  border: 1px solid #e2e8f0;
  transition: all 0.18s;
  box-shadow: 0 1px 3px rgba(15,23,42,0.04);
}
.qa-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15,23,42,0.10);
  border-color: #cbd5e1;
}
.qa-card.qa-highlight {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: transparent;
}
.qa-card.qa-highlight .qa-text strong { color: #fff; }
.qa-card.qa-highlight .qa-text small  { color: rgba(255,255,255,0.85); }
.qa-card.qa-highlight .qa-ico         { background: rgba(255,255,255,0.18); }
.qa-ico {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: #f1f5f9;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.qa-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.qa-text strong { color: #0f172a; font-size: 14px; }
.qa-text small  { color: #64748b; font-size: 12px; }


/* ═══════════════════════════════════════════════════════════
 *  HOME-PAGE SLIDER (gallery-driven)
 * ═══════════════════════════════════════════════════════════ */
.home-slider {
  position: relative;
  width: 100%;
  height: 420px;
  margin: 0 auto 24px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(15,23,42,0.18);
  background: #0f172a;
}
@media (max-width: 700px) { .home-slider { height: 280px; border-radius: 10px; } }

.slides-wrap { position: absolute; inset: 0; }
.slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.7s ease;
  pointer-events: none;
}
.slide.active { opacity: 1; pointer-events: auto; z-index: 2; }
.slide img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.slide-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 30px 26px;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.78) 100%);
  color: #fff;
}
.slide-caption h3 {
  margin: 0 0 6px;
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.slide-caption p {
  margin: 0; font-size: clamp(13px, 1.6vw, 16px);
  opacity: 0.94; max-width: 800px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.slide-ward {
  display: inline-block; margin-top: 8px;
  background: rgba(255,103,0,0.92);
  padding: 3px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
}

.slider-arrow {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%; border: none;
  background: rgba(15,23,42,0.55); color: #fff;
  font-size: 28px; line-height: 1; cursor: pointer;
  z-index: 5; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.slider-arrow:hover { background: rgba(15,23,42,0.85); }
.slider-arrow.prev { left: 14px; }
.slider-arrow.next { right: 14px; }
@media (max-width: 600px) { .slider-arrow { width: 36px; height: 36px; font-size: 22px; } }

.slider-dots {
  position: absolute; bottom: 12px; left: 0; right: 0;
  display: flex; gap: 6px; justify-content: center;
  z-index: 5;
}
.dot {
  width: 10px; height: 10px;
  border-radius: 50%; border: none;
  background: rgba(255,255,255,0.45);
  cursor: pointer; padding: 0;
  transition: all 0.2s;
}
.dot.active { background: #ff6700; transform: scale(1.35); }

/* ═══════════════════════════════════════════════════════════
 *  GALLERY ADMIN GRID
 * ═══════════════════════════════════════════════════════════ */
.gallery-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px; margin-top: 16px;
}
.gallery-admin-card {
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 1px 3px rgba(15,23,42,0.06), 0 0 0 1px rgba(15,23,42,0.04);
  display: flex; flex-direction: column;
  transition: transform 0.18s, box-shadow 0.18s;
}
.gallery-admin-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(15,23,42,0.12);
}
.gallery-admin-card.featured {
  border: 2px solid #f59e0b;
  box-shadow: 0 4px 18px rgba(245,158,11,0.25);
}
.gac-thumb {
  position: relative;
  width: 100%; aspect-ratio: 16/10;
  overflow: hidden; background: #f1f5f9;
}
.gac-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.gac-feat-tag {
  position: absolute; top: 8px; right: 8px;
  background: #f59e0b; color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.gac-body { padding: 12px 14px; flex: 1; }
.gac-body h4 { margin: 0 0 4px; color: #0f172a; font-size: 15px; }
.gac-desc {
  font-size: 13px; color: #475569;
  margin: 6px 0; line-height: 1.4;
}
.gac-actions {
  display: flex; gap: 6px;
  padding: 10px 14px 14px;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════
 *  FAMILY MEMBER CARD (with all the new fields)
 * ═══════════════════════════════════════════════════════════ */
.form-section {
  background: #f8fafc;
  border-left: 3px solid #0d9488;
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 14px;
}
.form-section .fs-title {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.form-section .form-row { margin-bottom: 10px; }
.form-section .form-row:last-child { margin-bottom: 0; }

.family-card-detail {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #0d9488;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04);
}
.fcd-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 12px;
}
.fcd-photo {
  width: 52px; height: 52px;
  border-radius: 50%; object-fit: cover;
  background: #f1f5f9;
  border: 2px solid #e2e8f0;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
}
.fcd-photo.placeholder { color: #94a3b8; }
.fcd-name { flex: 1; min-width: 0; }
.fcd-name strong {
  display: block;
  color: #0f172a; font-size: 15px;
  margin-bottom: 4px;
}
.fcd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px 12px;
  background: #f8fafc;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 12.5px;
}
.fcd-grid div { display: flex; flex-direction: column; }
.fcd-grid .lbl {
  font-size: 11px; color: #94a3b8;
  font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.3px; margin-bottom: 2px;
}
.fcd-grid .val { color: #0f172a; font-weight: 600; }
.fcd-parents, .fcd-docs, .fcd-addr, .fcd-notes {
  font-size: 12.5px; color: #475569;
  padding: 6px 0; border-top: 1px solid #f1f5f9;
  line-height: 1.5;
}
.fcd-notes { font-style: italic; color: #64748b; }


/* ═══════════════════════════════════════════════════════════
 *  v4 — NEWS TICKER / WORK UPDATES / ID CARD / ACTIVITY LOG
 * ═══════════════════════════════════════════════════════════ */

/* ── News ticker (auto-scroll under header) ── */
.news-ticker {
  display: flex; align-items: center;
  background: linear-gradient(90deg, #0f172a, #1e293b);
  color: #fff; overflow: hidden;
  border-bottom: 2px solid #ff6700;
}
.news-label {
  flex-shrink: 0;
  background: #ff6700; color: #fff;
  font-weight: 800; font-size: 13px;
  padding: 9px 16px; letter-spacing: 0.5px;
  position: relative; z-index: 2;
  clip-path: polygon(0 0, 100% 0, 92% 100%, 0% 100%);
}
.news-track-wrap { flex: 1; overflow: hidden; }
.news-track {
  display: inline-flex; white-space: nowrap;
  animation: ticker 38s linear infinite;
  will-change: transform;
}
.news-ticker:hover .news-track { animation-play-state: paused; }
.news-item {
  padding: 9px 28px; font-size: 13.5px;
  display: inline-flex; align-items: center; gap: 6px;
}
.news-item a { color: #fff; text-decoration: none; }
.news-item a:hover { text-decoration: underline; }
.news-item.news-high   { color: #fde047; }
.news-item.news-urgent { color: #fca5a5; font-weight: 700; }
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Work update cards ── */
.work-card {
  background: #fff; border: 1px solid #e2e8f0;
  border-left: 4px solid #0d9488;
  border-radius: 10px; padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04);
}
.work-card.admin { border-left-color: #6366f1; }
.work-card-head {
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 10px; margin-bottom: 6px;
}
.work-card-head strong { color: #0f172a; font-size: 15px; }
.work-actions { display: flex; gap: 5px; flex-shrink: 0; }
.work-meta { font-size: 12.5px; color: #64748b; margin: 3px 0; }
.work-desc {
  font-size: 13.5px; color: #334155;
  margin: 8px 0; line-height: 1.5;
}
.work-time {
  font-size: 11.5px; color: #94a3b8;
  border-top: 1px solid #f1f5f9; padding-top: 6px; margin-top: 8px;
}
.worker-tag {
  font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: 999px;
  flex-shrink: 0;
}
.worker-tag.agent    { background: #ccfbf1; color: #0f766e; }
.worker-tag.employee { background: #ede9fe; color: #6d28d9; }

/* before / after images */
.work-images { display: flex; gap: 10px; margin: 10px 0; flex-wrap: wrap; }
.wi-box { position: relative; flex: 1; min-width: 120px; max-width: 200px; }
.wi-box img {
  width: 100%; height: 120px; object-fit: cover;
  border-radius: 8px; border: 1px solid #e2e8f0; display: block;
}
.wi-label {
  position: absolute; top: 6px; left: 6px;
  background: rgba(15,23,42,0.78); color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
  text-transform: uppercase;
}
.wi-label.after { background: rgba(16,185,129,0.92); }

.work-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px; margin-top: 14px;
}
.edit-thumb {
  width: 100%; max-width: 160px; height: 100px;
  object-fit: cover; border-radius: 8px;
  border: 1px solid #e2e8f0; margin-bottom: 6px; display: block;
}

/* ── Filter bar ── */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 8px;
  background: #fff; padding: 14px;
  border-radius: 12px; margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(15,23,42,0.06), 0 0 0 1px rgba(15,23,42,0.04);
  align-items: center;
}
.filter-bar select, .filter-bar input {
  padding: 8px 10px; border: 1px solid #cbd5e1;
  border-radius: 8px; font-size: 13px; background: #fff;
}
.filter-bar input[type=text] { min-width: 160px; flex: 1; }

/* ── Activity log chips ── */
.actor-chip, .action-chip {
  display: inline-block; font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px; text-transform: uppercase;
  letter-spacing: 0.3px;
}
.actor-chip { background: #e2e8f0; color: #475569; }
.actor-admin    { background: #dbeafe; color: #1e40af; }
.actor-agent    { background: #ccfbf1; color: #0f766e; }
.actor-employee { background: #ede9fe; color: #6d28d9; }
.actor-citizen  { background: #fef3c7; color: #92400e; }
.action-chip { background: #f1f5f9; color: #334155; }
.action-create { background: #d1fae5; color: #065f46; }
.action-edit   { background: #dbeafe; color: #1e40af; }
.action-update { background: #dbeafe; color: #1e40af; }
.action-delete { background: #fee2e2; color: #991b1b; }
.action-status { background: #fef3c7; color: #92400e; }
.action-approve{ background: #d1fae5; color: #065f46; }

/* row thumbnail in admin tables */
.row-thumb {
  width: 34px; height: 34px; border-radius: 6px;
  object-fit: cover; vertical-align: middle;
  margin-right: 4px; border: 1px solid #e2e8f0;
}

/* ── ID CARD (PM-JAY style) ── */
.idcard-actions { margin: 14px 0; text-align: center; }
.id-card {
  width: 540px; max-width: 100%;
  margin: 0 auto; background: #fff;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 12px 40px rgba(15,23,42,0.20);
  border: 1px solid #e2e8f0;
  font-family: 'Segoe UI', system-ui, sans-serif;
}
.idc-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px 10px; gap: 10px;
}
.idc-gov { display: flex; align-items: center; gap: 10px; }
.idc-emblem { font-size: 30px; }
.idc-gov-text { display: flex; flex-direction: column; line-height: 1.3; }
.idc-gov-text strong { font-size: 14px; color: #0f172a; }
.idc-gov-text span { font-size: 11px; color: #64748b; }
.idc-logo {
  background: linear-gradient(135deg,#ff6700,#138808);
  color: #fff; font-weight: 800; font-size: 13px;
  text-align: center; line-height: 1.1;
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.idc-band {
  background: linear-gradient(90deg,#0d9488,#0f766e);
  color: #fff; text-align: center;
  font-weight: 700; font-size: 14px; letter-spacing: 1px;
  padding: 7px;
}
.idc-band.emp { background: linear-gradient(90deg,#7c3aed,#6d28d9); }
.idc-body {
  display: flex; gap: 18px; padding: 20px 18px;
  position: relative;
  background:
    radial-gradient(circle at 75% 60%, rgba(19,136,8,0.06), transparent 60%);
}
.idc-photo {
  width: 110px; height: 130px; flex-shrink: 0;
  border-radius: 10px; overflow: hidden;
  border: 3px solid #0d9488; background: #f1f5f9;
}
.idc-band.emp + .idc-body .idc-photo { border-color: #7c3aed; }
.idc-photo img { width: 100%; height: 100%; object-fit: cover; }
.idc-photo-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; color: #94a3b8;
}
.idc-details { flex: 1; min-width: 0; }
.idc-name { font-size: 20px; font-weight: 800; color: #0f172a; margin-bottom: 8px; }
.idc-row { font-size: 13px; color: #334155; margin: 4px 0; }
.idc-row span { color: #64748b; }
.idc-barcode {
  padding: 6px 18px 4px; text-align: left;
}
.idc-bars {
  height: 46px; width: 80%;
  background: repeating-linear-gradient(90deg,
    #0f172a 0, #0f172a 2px, #fff 2px, #fff 4px,
    #0f172a 4px, #0f172a 7px, #fff 7px, #fff 9px,
    #0f172a 9px, #0f172a 10px, #fff 10px, #fff 13px);
}
.idc-code-text {
  font-family: monospace; font-size: 22px; font-weight: 700;
  letter-spacing: 2px; color: #0f172a; margin-top: 4px;
}
.idc-footer {
  background: #ff6700; color: #fff;
  text-align: center; font-size: 13px; font-weight: 600;
  padding: 9px;
}


/* old photo preview in edit forms */
.old-photo-box {
  background: #f8fafc; border: 1px dashed #cbd5e1;
  border-radius: 10px; padding: 12px 14px; margin-bottom: 16px;
}
.old-photo-thumb {
  display: block; max-width: 160px; max-height: 130px;
  border-radius: 8px; margin: 6px 0; border: 2px solid #e2e8f0;
  object-fit: cover;
}

/* ═══════════════════════════════════════════════════════════
 *  v5 — TASKS, PAYMENTS, ID CARD SIDE LOGO
 * ═══════════════════════════════════════════════════════════ */

/* ID card side logo (the Vikash Garhwa SBM circular logo) */
.idc-side-logo {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
  border: 2px solid #f1f5f9;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(15,23,42,0.08);
}

/* Task cards (admin + worker views) */
.task-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.task-card {
  background: #fff;
  border-radius: 12px; padding: 14px 16px;
  border-left: 4px solid #6366f1;
  box-shadow: 0 1px 3px rgba(15,23,42,0.06), 0 0 0 1px rgba(15,23,42,0.04);
  display: flex; flex-direction: column; gap: 6px;
}
.task-card.priority-urgent { border-left-color: #ef4444; }
.task-card.priority-high   { border-left-color: #f59e0b; }
.task-card.priority-medium { border-left-color: #6366f1; }
.task-card.priority-low    { border-left-color: #94a3b8; }
.task-card.status-completed { background: #f0fdf4; }
.task-card.status-overdue   { background: #fef2f2; }

.task-head {
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 8px;
}
.task-head strong { color: #0f172a; font-size: 15px; display: block; margin-bottom: 3px; }
.task-cat {
  font-size: 12.5px; color: #475569;
  background: #f1f5f9; padding: 3px 9px;
  border-radius: 999px; display: inline-block; align-self: flex-start;
}
.task-assignee { font-size: 13px; color: #334155; }
.task-desc { font-size: 13px; color: #334155; line-height: 1.5; margin: 4px 0; }
.task-meta { font-size: 12px; color: #64748b; }
.task-window {
  background: #fef3c7; border-left: 3px solid #f59e0b;
  padding: 8px 10px; border-radius: 6px;
  font-size: 12.5px; color: #92400e; line-height: 1.6;
}
.task-notes {
  background: #f8fafc; padding: 8px 10px;
  border-radius: 6px; font-size: 12.5px;
  color: #475569; border-left: 3px solid #94a3b8;
}
.task-notes.admin { border-left-color: #6366f1; background: #eef2ff; color: #3730a3; }
.task-img {
  width: 100%; max-height: 140px; object-fit: cover;
  border-radius: 8px; border: 1px solid #e2e8f0;
}
.task-actions { display: flex; gap: 6px; margin-top: 6px; }

.badge.prio-urgent { background: #fee2e2; color: #991b1b; }
.badge.prio-high   { background: #fef3c7; color: #92400e; }
.badge.prio-medium { background: #e0e7ff; color: #3730a3; }
.badge.prio-low    { background: #f1f5f9; color: #475569; }

.badge.b-assigned    { background: #e0e7ff; color: #3730a3; }
.badge.b-in_progress { background: #fed7aa; color: #9a3412; }
.badge.b-overdue     { background: #fee2e2; color: #991b1b; }
.badge.b-received    { background: #d1fae5; color: #065f46; }

.time-window-box {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 2px dashed #f59e0b;
  padding: 12px 14px; border-radius: 10px;
  margin-bottom: 14px;
}

/* Payment cards (agent self-serve view) */
.payment-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #10b981;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.payment-head {
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 8px; margin-bottom: 4px;
}
.payment-amount {
  font-size: 22px; font-weight: 800;
  color: #059669; margin: 4px 0;
}
.payment-meta { font-size: 12.5px; color: #64748b; margin: 2px 0; }
.payment-receipt {
  max-width: 100px; max-height: 80px; object-fit: cover;
  border-radius: 6px; margin-top: 8px;
  border: 1px solid #e2e8f0; display: block;
}

/* stat-card colour variants */
.stat-card.red   { border-left: 4px solid #ef4444; }
.stat-card.green { border-left: 4px solid #10b981; }


/* ═══════════════════════════════════════════════════════════
 *  v6 — Admin filter bar (shared) + City cascading
 * ═══════════════════════════════════════════════════════════ */
.admin-filter-bar {
  display: flex; flex-wrap: wrap; gap: 8px;
  background: #fff;
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(15,23,42,0.06), 0 0 0 1px rgba(15,23,42,0.04);
  align-items: center;
}
.admin-filter-bar input[type=text] {
  flex: 1; min-width: 200px;
  padding: 9px 12px; font-size: 14px;
  border: 1px solid #cbd5e1; border-radius: 8px;
}
.admin-filter-bar select {
  padding: 8px 10px; font-size: 13px;
  border: 1px solid #cbd5e1; border-radius: 8px;
  background: #fff; min-width: 140px;
}
.admin-filter-bar input:focus, .admin-filter-bar select:focus {
  outline: none; border-color: #ff6700;
  box-shadow: 0 0 0 3px rgba(255,103,0,0.15);
}

/* ═══════════════════════════════════════════════════════════
 *  v7 — Services search + name_hi + service form
 * ═══════════════════════════════════════════════════════════ */
.svc-search-bar {
  display: flex; flex-wrap: wrap; gap: 8px;
  background: #fff; padding: 12px 14px;
  border-radius: 12px; margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(15,23,42,0.06), 0 0 0 1px rgba(15,23,42,0.04);
  align-items: center;
}
.svc-search-bar input[type=text] {
  flex: 1; min-width: 220px;
  padding: 9px 12px; font-size: 14px;
  border: 1px solid #cbd5e1; border-radius: 8px;
}
.svc-search-bar input:focus {
  outline: none; border-color: #ff6700;
  box-shadow: 0 0 0 3px rgba(255,103,0,0.15);
}
.service-card .name-hi {
  color: #6b7280; font-size: 13px;
  margin: -4px 0 6px; font-weight: 500;
  font-family: 'Segoe UI', system-ui, sans-serif;
}

/* ═══════════════════════════════════════════════════════════
 *  v8 — Home banner, multi-upload, video tile, public gallery
 * ═══════════════════════════════════════════════════════════ */

/* Home banner — hero image above slider */
.home-banner {
  position: relative;
  width: 100%;
  max-height: 480px;
  margin: 0 auto 22px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(15,23,42,0.20);
}
.home-banner img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
}
.home-banner-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 36px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.78));
  color: #fff;
}
.home-banner-caption h2 {
  margin: 0 0 8px; font-size: clamp(22px, 3vw, 32px);
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.home-banner-caption p {
  margin: 0; font-size: clamp(14px, 1.8vw, 18px);
  max-width: 850px; opacity: 0.95;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
@media (max-width: 700px) {
  .home-banner-caption { padding: 16px 18px; }
}

/* Slider video element */
.home-slider .slide video {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* Multi-image upload preview thumbnails */
.multi-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px; margin-top: 10px;
}
.mp-thumb {
  position: relative;
  aspect-ratio: 1; overflow: hidden;
  border-radius: 8px; border: 1px solid #e2e8f0;
}
.mp-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.mp-thumb .mp-label {
  position: absolute; left: 4px; bottom: 4px;
  background: rgba(15,23,42,0.78); color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 999px;
}

/* Gallery admin: video tile + banner tag */
.gac-thumb .vid-ph {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #94a3b8; display: flex;
  align-items: center; justify-content: center;
  font-size: 60px;
}
.gac-media-tag {
  position: absolute; top: 8px; left: 8px;
  font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.5px;
  background: rgba(15,23,42,0.85); color: #fff;
}
.gac-media-tag.video { background: #7c3aed; }
.gac-media-tag.album { background: #0ea5e9; }
.gac-banner-tag {
  position: absolute; bottom: 8px; left: 8px;
  background: #ff6700; color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 999px;
}
.gallery-admin-card.banner { border-top: 4px solid #ff6700; }

.upload-actions {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 10px;
}
.btn-purple { background: #7c3aed; color: #fff; border-color: #7c3aed; }
.btn-purple:hover { background: #6d28d9; }
.btn-orange { background: #ff6700; color: #fff; border-color: #ff6700; }
.btn-orange:hover { background: #ea580c; }

/* Public gallery grid */
.public-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px; margin-top: 16px;
}
.public-gallery-card {
  background: #fff; border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15,23,42,0.06), 0 0 0 1px rgba(15,23,42,0.04);
  transition: transform 0.18s, box-shadow 0.18s;
}
.public-gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(15,23,42,0.12);
}
.pgc-media {
  position: relative; aspect-ratio: 4/3;
  overflow: hidden; background: #f1f5f9;
}
.pgc-media img, .pgc-media video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.pgc-media.video-tile { background: #0f172a; }
.pgc-tag {
  position: absolute; top: 8px; left: 8px;
  background: rgba(15,23,42,0.85); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 999px;
}
.pgc-tag.video { background: #7c3aed; }
.pgc-tag.album { background: #0ea5e9; }
.pgc-extras-strip {
  display: flex; gap: 4px; padding: 6px 8px;
  background: #f8fafc;
}
.pgc-extra {
  width: 50px; height: 40px; object-fit: cover;
  border-radius: 4px;
}
.pgc-body { padding: 12px 14px; }
.pgc-body h4 { margin: 0 0 4px; color: #0f172a; font-size: 15px; }
.pgc-meta {
  margin-top: 8px;
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}

/* EXTra */

.header_nav {
    display: flex;
    justify-content: space-between;
    width: 100%;

}

@media (max-width: 992px) {
  .header_nav {
   justify-content: flex-end;
  }
}

@media (max-width: 700px)
{
    .hdr-hi {
        font-size: 12px;
    }

    .hdr-right {
        grid-column: 1 / -1;
        text-align: center;
        display: flex;
        justify-content: space-between;
    }

    .hbtn {
        padding: 4px 6px !important;
        font-size: 12px;
        height: 32px;
        border-radius: 3px;
        line-height: 25px;
    }

    .gb {
    padding: 7px 6px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 3px;
    color: #fff;
}
}

@media (max-width: 365px) {
    .vk-pill {
        font-size: 10px;
        padding: 3px 5px;
    }
}