/* =========================================================
   NEBANFIVE GLOBAL SERVICES — DESIGN SYSTEM
   Palette:  Green #0B6E3F (trust/CTA) · Red #E10600 (emergency/emphasis)
             Dark #1E1E1E · Light BG #F8FAFC · White · Gray #6B7280
   Type:     Plus Jakarta Sans (display) / Inter (body) / Lora italic (quotes)
   Signature: the "Care Path" — a soft continuous curved thread that runs
             through the hero and section dividers, visualising the
             uninterrupted line of care from hospital to home.
   ========================================================= */

:root {
  --nb-green: #0B6E3F;
  --nb-green-dark: #084F2D;
  --nb-green-light: #E7F3EC;
  --nb-red: #E10600;
  --nb-red-light: #FDEAEA;
  --nb-dark: #1E1E1E;
  --nb-bg: #F8FAFC;
  --nb-white: #FFFFFF;
  --nb-gray: #6B7280;

  --nb-font-display: 'Plus Jakarta Sans', sans-serif;
  --nb-font-body: 'Inter', sans-serif;
  --nb-font-quote: 'Lora', serif;

  --nb-radius-sm: 10px;
  --nb-radius-md: 18px;
  --nb-radius-lg: 28px;

  --nb-shadow-soft: 0 10px 30px rgba(11, 110, 63, 0.08);
  --nb-shadow-card: 0 4px 20px rgba(30, 30, 30, 0.06);

  --nb-gradient-care: linear-gradient(135deg, #0B6E3F 0%, #0f8a51 55%, #0B6E3F 100%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--nb-font-body);
  color: var(--nb-dark);
  background: var(--nb-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, .display-font {
  font-family: var(--nb-font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--nb-dark);
}

.eyebrow {
  font-family: var(--nb-font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nb-green);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--nb-red);
  display: inline-block;
  border-radius: 2px;
}

a { text-decoration: none; }
:focus-visible { outline: 3px solid var(--nb-red); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn-nb-primary {
  background: var(--nb-green);
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 0.95rem 2.2rem;
  border-radius: 50px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  box-shadow: 0 6px 20px rgba(11,110,63,0.2);
  letter-spacing: 0.01em;
}
.btn-nb-primary:hover { background: var(--nb-green-dark); color: #fff; transform: translateY(-3px); box-shadow: 0 12px 32px rgba(11,110,63,0.3); }

.btn-nb-outline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.5);
  color: #fff;
  font-weight: 600;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  transition: all 0.25s ease;
  backdrop-filter: blur(4px);
}
.btn-nb-outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; color: #fff; }

.btn-nb-emergency {
  background: var(--nb-red);
  color: #fff;
  font-weight: 700;
  padding: 0.7rem 1.4rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  animation: nb-pulse 2.4s infinite;
}
.btn-nb-emergency:hover { background: #c00500; color: #fff; }
@keyframes nb-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(225,6,0,0.35); }
  50% { box-shadow: 0 0 0 8px rgba(225,6,0,0); }
}

/* ---------- Navbar ---------- */
.nb-navbar {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.05);
  padding: 0.6rem 0;
  transition: padding 0.25s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.nb-navbar.nb-navbar-scrolled {
  background: #fff;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.nb-navbar .navbar-brand img { height: 46px; }
.nb-navbar .container {
  gap: 0.5rem;
}
.nb-navbar .navbar-collapse {
  flex-grow: 0;
}
.nb-navbar .nav-link {
  font-weight: 600;
  color: var(--nb-dark) !important;
  margin: 0;
  padding: 0.5rem 0.65rem;
  position: relative;
  font-size: 0.9rem;
  white-space: nowrap;
}
@media (min-width: 1200px) {
  .nb-navbar .nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
  }
}
.nb-navbar .nav-link::after {
  content: '';
  position: absolute; left: 0.65rem; bottom: 2px;
  width: calc(100% - 1.3rem); height: 2px; background: var(--nb-green);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.nb-navbar .nav-link:hover::after { transform: scaleX(1); }

.nb-navbar .dropdown-menu {
  border: none;
  border-radius: var(--nb-radius-sm);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  padding: 0.6rem 0;
  margin-top: 0;
  min-width: 200px;
}
.nb-navbar .dropdown-menu .dropdown-item {
  font-weight: 500;
  font-size: 0.88rem;
  padding: 0.5rem 1.2rem;
  color: var(--nb-dark);
  transition: background 0.15s;
}
.nb-navbar .dropdown-menu .dropdown-item:hover {
  background: var(--nb-green-light);
  color: var(--nb-green);
}
.nb-navbar .dropdown-menu .dropdown-divider {
  margin: 0.35rem 0;
}
.nb-navbar .dropdown-toggle::after {
  vertical-align: middle;
  font-size: 0.7rem;
}
@media (min-width: 992px) {
  .nb-navbar .dropdown:hover > .dropdown-menu {
    display: block;
  }
  .nb-navbar .dropdown > .dropdown-toggle:active {
    pointer-events: none;
  }
}

/* ---------- Hero + Care Path signature ---------- */
.nb-hero {
  position: relative;
  background: var(--nb-gradient-care);
  color: #fff;
  overflow: hidden;
  padding: 5rem 0 6rem;
}
@media (min-width: 992px) {
  .nb-hero {
    padding: 6rem 0 7.5rem;
  }
}
.nb-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.08) 0, transparent 45%),
                    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.05) 0, transparent 40%);
}
.nb-hero .care-path {
  position: absolute;
  bottom: -1px; left: 0; width: 100%; line-height: 0;
}
.nb-hero .badge {
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.12);
}
.nb-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.8vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  max-width: 620px;
  text-shadow: 0 2px 30px rgba(0,0,0,0.12);
}
.nb-hero .lead-text {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  max-width: 520px;
}
@media (min-width: 992px) {
  .nb-hero h1 { font-size: clamp(2.2rem, 3.6vw, 3.2rem); }
  .nb-hero .lead-text { font-size: 1.05rem; }
}

/* ---------- Inner page heroes ---------- */
.page-hero {
  position: relative;
  background: var(--nb-gradient-care);
  color: #fff;
  overflow: hidden;
  padding: 5rem 0 7rem;
}
@media (min-width: 992px) {
  .page-hero { padding: 6rem 0 8rem; }
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.08) 0%, transparent 45%);
}
.page-hero .care-path {
  position: absolute;
  bottom: -1px; left: 0; width: 100%; line-height: 0;
}
.page-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 30px rgba(0,0,0,0.12);
}
.page-hero .lead-text {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  max-width: 540px;
}
.page-hero .eyebrow { color: rgba(255,255,255,0.9); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.hero-phone {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
  white-space: nowrap;
  padding: 0.5rem 0;
  letter-spacing: 0.02em;
}
.hero-phone:hover { color: #fff; }

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  margin-top: 2rem;
}
@media (min-width: 992px) {
  .hero-visual {
    min-height: 440px;
    margin-top: 0;
  }
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.18;
  will-change: transform;
}
.hero-blob.blob-1 {
  width: 360px; height: 360px;
  background: radial-gradient(circle at 40% 30%, #fff, rgba(255,255,255,0.15));
  top: -20px; right: -30px;
  animation: heroFloat 8s ease-in-out infinite;
}
.hero-blob.blob-2 {
  width: 240px; height: 240px;
  background: radial-gradient(circle at 60% 40%, #fff, rgba(255,255,255,0.08));
  bottom: 0; left: -40px;
  animation: heroFloat 10s ease-in-out infinite reverse;
}
.hero-blob.blob-3 {
  width: 120px; height: 120px;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.2), transparent);
  top: 55%; right: 10%;
  animation: heroFloat 12s ease-in-out infinite 3s;
}
@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(14px, -20px) scale(1.06); }
  66% { transform: translate(-10px, 12px) scale(0.94); }
}
.hero-img-wrap {
  position: relative;
  width: 100%;
  border-radius: var(--nb-radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
  z-index: 1;
}
.hero-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
  pointer-events: none;
}
.hero-img {
  display: block;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

.care-path-track {
  position: relative;
  padding: 3rem 0;
}
.care-path-track svg { width: 100%; height: auto; display: block; }
.care-path-node {
  fill: #fff; stroke: var(--nb-green); stroke-width: 3;
}

/* ---------- Base Card (used in other views) ---------- */
.nb-card {
  background: #fff;
  border-radius: var(--nb-radius-md);
  box-shadow: 0 4px 16px rgba(30,30,30,0.04);
  padding: 1.8rem;
  height: 100%;
  border: 1px solid rgba(11,110,63,0.06);
}

/* ---------- Value Cards (Who We Are) ---------- */
.value-card {
  background: #fff;
  border-radius: var(--nb-radius-md);
  box-shadow: 0 4px 16px rgba(30,30,30,0.04);
  padding: 2rem 1.2rem;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(11,110,63,0.06);
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--nb-shadow-soft); }
.value-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--nb-green-light);
  color: var(--nb-green);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  transition: transform 0.3s ease, background 0.3s ease;
}
.value-card:hover .value-icon {
  transform: scale(1.08);
  background: var(--nb-green);
  color: #fff;
}
.value-card p { font-size: 0.9rem; }

/* ---------- Service Cards ---------- */
.service-card {
  background: #fff;
  border-radius: var(--nb-radius-md);
  box-shadow: 0 4px 16px rgba(30,30,30,0.04);
  padding: 2rem;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(11,110,63,0.06);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--nb-shadow-soft); }
.service-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--nb-green-light);
  color: var(--nb-green);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.2rem;
  transition: transform 0.3s ease;
}
.service-card:hover .service-icon { transform: scale(1.06); }
.service-card h5 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.service-card p { font-size: 0.88rem; line-height: 1.6; }
.service-link {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--nb-green);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease;
}
.service-link:hover { gap: 8px; color: var(--nb-green-dark); }

/* ---------- Stats Section ---------- */
.stats-section {
  background: var(--nb-green-light);
  position: relative;
}
.stats-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 30% 50%, rgba(11,110,63,0.04) 0%, transparent 50%);
  pointer-events: none;
}
.nb-stat {
  text-align: center;
  padding: 0.5rem 0;
}
.nb-stat .num {
  font-family: var(--nb-font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--nb-green);
  line-height: 1.1;
}
@media (min-width: 768px) {
  .nb-stat .num { font-size: 2.8rem; }
}
.nb-stat .label {
  color: var(--nb-gray);
  font-weight: 600;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}
@media (min-width: 768px) {
  .nb-stat .label { font-size: 0.95rem; }
}

/* ---------- Why Choose Us Cards ---------- */
.why-card {
  background: #fff;
  border-radius: var(--nb-radius-md);
  padding: 1.8rem 2rem;
  border: 1px solid rgba(11,110,63,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 12px rgba(30,30,30,0.03);
}
.why-card:hover {
  transform: translateX(6px);
  box-shadow: var(--nb-shadow-soft);
}
.why-num {
  font-family: var(--nb-font-display);
  font-weight: 800;
  color: var(--nb-red);
  font-size: 1.3rem;
  line-height: 1.4;
  flex-shrink: 0;
}
.why-card h6 { font-size: 1rem; }
.why-card p { font-size: 0.88rem; line-height: 1.6; }

/* ---------- Sections ---------- */
.nb-section { padding: 5rem 0; }
@media (min-width: 992px) {
  .nb-section { padding: 6.5rem 0; }
}
.nb-section-alt { background: var(--nb-white); }

.nb-quote {
  font-family: var(--nb-font-quote);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--nb-dark);
}

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: #fff;
  border-radius: var(--nb-radius-md);
  padding: 2.2rem;
  box-shadow: 0 4px 20px rgba(30,30,30,0.04);
  border-left: 4px solid var(--nb-red);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 0.6rem; right: 1.5rem;
  font-size: 5rem;
  line-height: 1;
  color: rgba(11,110,63,0.06);
  font-family: var(--nb-font-quote);
  pointer-events: none;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--nb-shadow-soft); }
.stars {
  color: #f59e0b;
  font-size: 0.85rem;
  letter-spacing: 3px;
  margin-bottom: 1rem;
}
.testimonial-text {
  font-family: var(--nb-font-quote);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--nb-dark);
  margin-bottom: 1rem;
}
.testimonial-author {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--nb-gray);
}

/* ---------- CTA / Newsletter ---------- */
.cta-section {
  background: var(--nb-gradient-care);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  z-index: 1;
}
.cta-text {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  max-width: 480px;
}
.cta-form {
  display: flex;
  gap: 0.75rem;
  max-width: 440px;
  justify-content: center;
}
.cta-input {
  flex: 1;
  padding: 0.9rem 1.3rem;
  border-radius: 50px;
  border: none;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: background 0.25s ease;
}
.cta-input::placeholder { color: rgba(255,255,255,0.5); }
.cta-input:focus { background: rgba(255,255,255,0.22); }
.cta-btn {
  background: #fff;
  color: var(--nb-green);
  border: none;
  font-weight: 700;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-size: 0.95rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  white-space: nowrap;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }

/* ---------- Emergency banner ---------- */
.nb-emergency-banner {
  background: var(--nb-red-light);
  border-top: 3px solid var(--nb-red);
  border-bottom: 3px solid var(--nb-red);
  padding: 1.4rem 0;
}
.nb-emergency-banner strong { color: var(--nb-red); }

/* ---------- Footer ---------- */
.nb-footer {
  background: #0d1512;
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 1.5rem;
}
.nb-footer h5 { color: #fff; font-family: var(--nb-font-display); margin-bottom: 1.2rem; }
.nb-footer a { color: rgba(255,255,255,0.7); }
.nb-footer a:hover { color: var(--nb-red); }
.nb-footer .brand-line { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 2.5rem; padding-top: 1.5rem; font-size: 0.85rem; }

/* ---------- Floating buttons ---------- */
.nb-floating-buttons {
  position: fixed; right: 22px; bottom: 22px; z-index: 1050;
  display: flex; flex-direction: column; gap: 12px;
}
.nb-float-btn {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.4rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
}
.nb-float-btn:hover { transform: scale(1.08); color: #fff; }
.nb-float-btn.whatsapp { background: #25D366; }
.nb-float-btn.call { background: var(--nb-green); }
.nb-float-btn.top { background: var(--nb-dark); display: none; }

/* ---------- Booking stepper ---------- */
.nb-stepper { display: flex; justify-content: space-between; margin-bottom: 2.5rem; }
.nb-step {
  flex: 1; text-align: center; position: relative; font-weight: 600; color: var(--nb-gray); font-size: 0.85rem;
}
.nb-step .circle {
  width: 34px; height: 34px; border-radius: 50%; background: #eee; color: var(--nb-gray);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 8px;
  font-family: var(--nb-font-display); font-weight: 700;
}
.nb-step.active .circle, .nb-step.done .circle { background: var(--nb-green); color: #fff; }
.nb-step.active { color: var(--nb-green); }

.form-step { display: none; }
.form-step.active { display: block; animation: fadeIn 0.35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px);} to { opacity: 1; transform: translateY(0);} }

/* ---------- Accordion (FAQs) ---------- */
.accordion-item {
  border: none;
  background: transparent;
  margin-bottom: 0.75rem;
}
.accordion-button {
  background: #fff;
  border-radius: var(--nb-radius-sm) !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 1rem 1.25rem;
  box-shadow: var(--nb-shadow-card);
  color: var(--nb-dark);
}
.accordion-button:not(.collapsed) {
  background: var(--nb-green-light);
  color: var(--nb-green);
  box-shadow: none;
}
.accordion-button:focus { box-shadow: 0 0 0 3px rgba(11,110,63,0.15); }
.accordion-button::after {
  background-size: 1rem;
}
.accordion-body {
  background: #fff;
  border-radius: 0 0 var(--nb-radius-sm) var(--nb-radius-sm);
  padding: 0 1.25rem 1.25rem;
}

/* ---------- Button: dark outline (on light bg) ---------- */
.btn-nb-outline-dark {
  background: transparent;
  border: 1.5px solid var(--nb-green);
  color: var(--nb-green);
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  transition: all 0.25s ease;
}
.btn-nb-outline-dark:hover { background: var(--nb-green); color: #fff; }

/* ---------- Small icon wrap (contact details) ---------- */
.icon-wrap-sm {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--nb-green-light);
  color: var(--nb-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ---------- Green section background ---------- */
.nb-section-green {
  background: var(--nb-gradient-care);
  color: #fff;
}
.nb-section-green h2, .nb-section-green h3 { color: #fff; }
.nb-section-green .lead-text { color: rgba(255,255,255,0.85); }

.form-control, .form-select {
  border-radius: var(--nb-radius-sm);
  padding: 0.7rem 1rem;
  border: 1px solid #e2e8f0;
}
.form-control:focus, .form-select:focus {
  border-color: var(--nb-green);
  box-shadow: 0 0 0 4px rgba(11,110,63,0.12);
}

/* ---------- Admin sidebar (premium) ---------- */
.nb-admin-sidebar {
  width: 250px;
  background: var(--nb-gradient-care);
  color: #fff;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 1040;
  overflow-y: auto;
}
.nb-admin-sidebar .sidebar-brand {
  padding: 1.5rem 1.5rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}
.nb-admin-sidebar .sidebar-brand img {
  height: 44px;
  background: #fff;
  padding: 6px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.nb-admin-sidebar .sidebar-brand-text {
  font-size: 0.82rem;
  opacity: 0.75;
  margin-top: 0.4rem;
  letter-spacing: 0.02em;
}
.nb-admin-sidebar .sidebar-nav {
  padding: 0.75rem 0.75rem;
  flex: 1;
}
.nb-admin-sidebar .sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 1rem;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border-radius: 10px;
  margin-bottom: 2px;
}
.nb-admin-sidebar .sidebar-nav a:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}
.nb-admin-sidebar .sidebar-nav a.active {
  color: #fff;
  background: rgba(255,255,255,0.15);
  font-weight: 600;
}
.nb-admin-sidebar .sidebar-nav a i { width: 20px; text-align: center; font-size: 1rem; }
.nb-admin-sidebar .nav-section-title {
  padding: 1rem 1.25rem 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
}
.nb-admin-sidebar .sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.nb-admin-sidebar .sidebar-footer a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0;
  transition: color 0.2s;
}
.nb-admin-sidebar .sidebar-footer a:hover { color: #fff; }

.nb-admin-main {
  margin-left: 250px;
  flex: 1;
  background: #f4f7fb;
  min-height: 100vh;
}
.nb-admin-topbar {
  background: #fff;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
  position: sticky;
  top: 0;
  z-index: 1030;
}
.nb-admin-topbar .topbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nb-admin-topbar .page-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--nb-dark);
  margin: 0;
}
.nb-admin-topbar .topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nb-admin-topbar .admin-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--nb-gradient-care);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.nb-admin-body { padding: 2rem; }

.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--nb-dark);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0.25rem;
}

/* Welcome banner */
.admin-welcome {
  background: var(--nb-gradient-care);
  border-radius: 16px;
  padding: 1.75rem 2rem;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}
.admin-welcome::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 50%);
}
.admin-welcome h4 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}
.admin-welcome p {
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  margin: 0;
}
.admin-welcome .welcome-date {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  text-align: right;
}

/* Premium stat cards */
.admin-stat {
  background: #fff;
  border-radius: 14px;
  padding: 1.35rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}
.admin-stat:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.admin-stat .stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}
.admin-stat .stat-info { flex: 1; }
.admin-stat .stat-num {
  font-size: 1.65rem;
  font-weight: 800;
  font-family: var(--nb-font-display);
  line-height: 1.15;
  color: var(--nb-dark);
}
.admin-stat .stat-label {
  font-size: 0.8rem;
  color: var(--nb-gray);
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Premium tables */
.admin-table-wrap {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  overflow: hidden;
}
.admin-table-wrap .table { margin: 0; }
.admin-table-wrap .table th {
  background: #f8fafc;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--nb-gray);
  border-bottom: 1px solid #eef2f6;
  padding: 0.85rem 1.25rem;
}
.admin-table-wrap .table td {
  padding: 0.85rem 1.25rem;
  vertical-align: middle;
  font-size: 0.88rem;
  border-bottom: 1px solid #f1f4f8;
}
.admin-table-wrap .table tr:last-child td { border-bottom: none; }
.admin-table-wrap .table tr:hover td { background: #f8fafc; }
.admin-table-wrap .table .badge {
  font-weight: 600;
  font-size: 0.72rem;
  padding: 0.3rem 0.7rem;
  border-radius: 50px;
}

/* Mobile sidebar overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 1039;
}

@media (max-width: 991px) {
  .nb-admin-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  .nb-admin-sidebar.open { transform: translateX(0); }
  .sidebar-overlay.open { display: block; }
  .nb-admin-main { margin-left: 0; }
  .sidebar-toggle { display: block; }
  .nb-admin-body { padding: 1rem; }
}

/* ---------- Premium admin login ---------- */
.admin-login-page {
  display: flex;
  min-height: 100vh;
  background: #f1f5f9;
}
.admin-login-left {
  flex: 1;
  background: var(--nb-gradient-care);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.admin-login-left::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.08) 0%, transparent 50%);
}
.admin-login-left .login-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 400px;
}
.admin-login-left .login-hero-content h1 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.admin-login-left .login-hero-content p { color: rgba(255,255,255,0.8); line-height: 1.7; }
.admin-login-right {
  width: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.admin-login-card {
  width: 100%;
  max-width: 380px;
}
.admin-login-card .card-header {
  text-align: center;
  margin-bottom: 1.5rem;
}
.admin-login-card .card-header img {
  height: 48px;
  background: #fff;
  padding: 6px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.admin-login-card .card-header h4 { margin-top: 1rem; font-size: 1.15rem; }
.admin-login-card .card-header p { font-size: 0.85rem; color: var(--nb-gray); margin: 0; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

@media (max-width: 767px) {
  .admin-login-left { display: none; }
  .admin-login-right { width: 100%; padding: 1.5rem; }
}

/* ---------- Accessibility / motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Dark mode ---------- */
body.dark-mode {
  background: #10151a;
  color: #e5e7eb;
}
body.dark-mode .nb-card,
body.dark-mode .nb-navbar,
body.dark-mode .nb-section-alt {
  background: #161d24;
  color: #e5e7eb;
}
body.dark-mode h1, body.dark-mode h2, body.dark-mode h3, body.dark-mode h4 { color: #f8fafc; }
