/*
 * Self Support System (SSS) - Premium Crimson Maroon & Gold Theme
 * Styled exactly like the reference UI (Prabhakar Infra Associate Portal)
 */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Roboto:wght@400;500;700&display=swap');

.hindi-font {
  font-family: 'Noto Sans Devanagari', 'Plus Jakarta Sans', sans-serif !important;
  line-height: 1.85;
}

:root {
  /* Brand Dark Cyan & Vibrant Teal Palette */
  --bg-dark-cyan: #071C21;
  --bg-dark-surface: #0B252C;
  --bg-dark-card: rgba(13, 44, 53, 0.85);

  --cyan-bright: #00F0D0;
  --cyan-primary: #00D2C2;
  --cyan-glow: rgba(0, 240, 208, 0.4);
  --cyan-border: rgba(0, 240, 208, 0.25);
  --cyan-soft: rgba(0, 240, 208, 0.08);

  --primary-teal: #178393;
  --teal-dark: #0E5B66;
  --teal-light: #1E9DB0;
  --teal-gradient: linear-gradient(135deg, #071C21 0%, #0E3B46 50%, #07191E 100%);
  --teal-soft: #EBF8FA;

  --gold-accent: #D8A43A;
  --gold-light: #F5DA8C;
  --gold-button: #DDAD48;
  --gold-gradient: linear-gradient(90deg, #D8A43A 0%, #F5DA8C 100%);
  --cyan-text-gradient: linear-gradient(90deg, #00F0D0 0%, #22D3EE 100%);

  /* Backward Compatibility Aliases */
  --primary-maroon: var(--primary-teal);
  --maroon-dark: var(--teal-dark);
  --maroon-gradient: var(--teal-gradient);
  --gold-primary: var(--gold-accent);
  --navy-primary: var(--primary-teal);
  --navy-dark: var(--teal-dark);
  --text-main: var(--text-dark);
  --border-light: var(--border-color);
  --grad-gold: var(--gold-gradient);
  --status-danger: #C5221F;
  --status-success: #137333;
  --status-warning: #B06000;

  /* Neutrals & Surfaces */
  --bg-page: #F4F7F8;
  --bg-card: #FFFFFF;
  --text-dark: #1A252C;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --border-color: #E2E8F0;
  --border-subtle: #EDF2F7;

  /* Accent Action Buttons */
  --btn-blue: #0088FF;
  --btn-blue-hover: #0077E6;

  /* Typography */
  --font-family: 'Plus Jakarta Sans', 'Segoe UI', 'Roboto', sans-serif;

  --shadow-card: 0 4px 15px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 25px rgba(0, 240, 208, 0.12);
  --shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.35);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 50px;
}

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-family);
}

html,
body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-page);
  color: var(--text-dark);
  line-height: 1.5;
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--primary-teal);
  font-weight: 700;
}

a {
  color: var(--primary-teal);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--teal-dark);
}

/* Public Navbar */
.navbar {
  background: var(--teal-gradient);
  border-bottom: 3px solid var(--gold-accent);
  padding: 0.85rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.4rem;
  color: #FFFFFF;
}

.brand-logo-badge {
  width: 44px;
  height: 44px;
  background: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gold-accent);
  flex-shrink: 0;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--gold-accent);
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.06);
  box-shadow: 0 6px 16px rgba(216, 164, 58, 0.4);
}

.brand-text span {
  color: var(--gold-light);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  font-size: 1.3rem;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--gold-light);
}

.nav-menu {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  list-style: none;
}

.nav-menu a {
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
}

.nav-menu a:hover {
  color: var(--gold-light);
  background: rgba(255, 255, 255, 0.12);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-gold {
  background: linear-gradient(135deg, #D8A43A 0%, #F5DA8C 100%);
  color: #0F172A !important;
  font-weight: 800;
  border-radius: var(--radius-pill);
  padding: 0.85rem 2.2rem;
  border: none;
  box-shadow: 0 8px 25px rgba(216, 164, 58, 0.35);
  font-size: 1rem;
}

.btn-gold:hover {
  background: #D8A43A;
  color: #000000 !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(216, 164, 58, 0.5);
}

.btn-maroon,
.btn-navy,
.btn-teal {
  background: var(--primary-teal);
  color: #FFFFFF;
}

.btn-maroon:hover,
.btn-navy:hover,
.btn-teal:hover {
  background: var(--teal-dark);
  color: #FFFFFF;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--gold-accent);
  color: var(--gold-light);
}

.btn-outline:hover {
  background: var(--gold-accent);
  color: var(--teal-dark);
}

.btn-blue {
  background: var(--btn-blue);
  color: #FFFFFF;
  width: 100%;
  padding: 0.65rem;
  border-radius: 6px;
  font-weight: 600;
}

.btn-blue:hover {
  background: var(--btn-blue-hover);
  color: #FFFFFF;
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
}

.btn-cyan-glow {
  background: linear-gradient(135deg, #178393 0%, #0E5B66 100%);
  color: #FFFFFF !important;
  font-weight: 800;
  border-radius: var(--radius-pill);
  padding: 0.85rem 2.2rem;
  box-shadow: 0 8px 25px rgba(23, 131, 147, 0.35);
  border: none;
  font-size: 1rem;
}

.btn-cyan-glow:hover {
  background: linear-gradient(135deg, #0E5B66 0%, #0B192C 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(14, 91, 102, 0.45);
  color: #FFFFFF !important;
}

.btn-cyan-outline {
  background: #FFFFFF;
  color: #0E5B66 !important;
  font-weight: 800;
  border-radius: var(--radius-pill);
  padding: 0.85rem 2.2rem;
  border: 2px solid #0E5B66;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(14, 91, 102, 0.08);
}

.btn-cyan-outline:hover {
  background: #0E5B66;
  color: #FFFFFF !important;
  border-color: #0E5B66;
  box-shadow: 0 8px 25px rgba(14, 91, 102, 0.3);
  transform: translateY(-2px);
}

/* Public Main Container & Hero */
.main-wrapper {
  flex: 1;
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem;
}

/* Hero Minimal Light Theme Section */
.hero-dark-section {
  background: linear-gradient(135deg, #FFFFFF 0%, #F0FBFD 50%, #F5FAFC 100%);
  border-radius: var(--radius-lg);
  padding: 4rem 3rem 3rem 3rem;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--gold-accent);
  box-shadow: 0 15px 40px rgba(14, 91, 102, 0.08);
  margin-bottom: 2.5rem;
}

.hero-dark-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(23, 131, 147, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
  border-radius: 50%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-text-content {
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #0B192C;
  border: 1.5px solid var(--gold-accent);
  color: var(--gold-light);
  padding: 0.45rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 15px rgba(11, 25, 44, 0.15);
}

.hero-headline {
  color: #0F172A;
  font-size: 3.1rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.5px;
}

.hero-headline-gradient {
  background: linear-gradient(90deg, #0E5B66 0%, #178393 50%, #D8A43A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.hero-subtext {
  color: #334155;
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 620px;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero-visual {
  position: relative;
  text-align: center;
  z-index: 2;
}

.hero-visual img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  border: 3px solid #0B192C;
  box-shadow: 0 20px 45px rgba(11, 25, 44, 0.18), 0 0 0 3px var(--gold-accent);
  animation: floatHero 5s ease-in-out infinite;
}

@keyframes floatHero {
  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* 5-Pillars Highlight Bar */
.hero-pillars-bar {
  margin-top: 3.5rem;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--gold-accent);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.pillar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  border-right: 1px solid var(--border-subtle);
  transition: transform 0.2s ease;
}

.pillar-item:hover {
  transform: translateY(-3px);
}

.pillar-item:last-child {
  border-right: none;
}

.pillar-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0B192C 0%, #178393 100%);
  border: 2px solid var(--gold-accent);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  box-shadow: 0 4px 14px rgba(11, 25, 44, 0.2);
}

.pillar-title {
  color: #0F172A;
  font-weight: 800;
  font-size: 0.92rem;
}

/* Active Nav Indicator */
.nav-menu a.active {
  color: var(--cyan-bright) !important;
  border-bottom: 2px solid var(--cyan-bright);
}

/* Premium Clean Surface Cards for Public Pages */
.cyan-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-top: 4px solid var(--primary-teal);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  color: #0F172A;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.cyan-card:hover {
  transform: translateY(-5px);
  border-color: #CBD5E1;
  border-top-color: var(--gold-accent);
  box-shadow: 0 15px 35px rgba(23, 131, 147, 0.15);
}

.cyan-card.card-gold-accent {
  border-top: 4px solid var(--gold-accent);
}

/* Crisp Clean Icon Boxes */
.card-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: linear-gradient(135deg, #178393 0%, #0E5B66 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 6px 18px rgba(23, 131, 147, 0.22);
}

.card-icon-box.gold-icon {
  background: linear-gradient(135deg, #D8A43A 0%, #B8831A 100%);
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(216, 164, 58, 0.3);
}

/* Light Surface Section Badge */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #EBF8FA;
  border: 1px solid #B2EBF2;
  color: #0E5B66;
  padding: 0.4rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.hero h1 span {
  color: var(--gold-light);
}

.hero p {
  color: #F7FAFC;
  font-size: 1.15rem;
  max-width: 750px;
  margin: 0 auto 2rem auto;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Container & Grid Utilities & Responsive Single-View Fit */
.container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.85rem;
}

.grid-5 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.75rem;
}

/* Metric Cards & Tree Badge */
.metric-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-subtle);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 0;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.gold-card {
  border-left: 4px solid var(--gold-accent);
}

.metric-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--teal-gradient);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.metric-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-teal);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.metric-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tree-level-badge {
  display: inline-block;
  background: var(--teal-gradient);
  color: var(--gold-light);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  margin-right: 0.5rem;
}

/* APP WRAPPER & SIDEBAR */
.wrapper {
  display: flex;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 260px;
  height: 100%;
  background: var(--teal-gradient);
  padding: 10px 8px;
  transition: 0.3s;
  z-index: 999;
  overflow-y: auto;
}

.sidebar-header {
  display: none;
  justify-content: flex-end;
}

.close-btn {
  font-size: 28px;
  color: #fff;
  cursor: pointer;
}

.nav {
  list-style: none;
  padding: 0;
}

.nav-link {
  color: #FFFFFF;
  padding: 6px 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  border-radius: 8px;
  margin-bottom: 3px;
  font-weight: 500;
  font-size: 0.88rem;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--gold-light);
}

.active-menu .nav-link {
  background: var(--gold-gradient);
  color: var(--teal-dark) !important;
  font-weight: 700;
}

.submenu {
  display: none;
  list-style: none;
  padding-left: 14px;
  margin-top: 2px;
  margin-bottom: 4px;
}

.has-submenu.open .submenu {
  display: block;
}

.nav-sublink {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  color: #FFFFFF;
  text-decoration: none;
  font-size: 13px;
  opacity: 0.95;
}

.nav-sublink:hover {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: var(--gold-light);
}

.has-submenu.open .submenu-toggle i.fa-chevron-down {
  transform: rotate(180deg);
  transition: 0.3s;
}

.support-box {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 15px;
  color: #fff;
  text-align: center;
  margin-top: 25px;
  background: rgba(0, 0, 0, 0.15);
}

.support-box i {
  font-size: 35px;
  color: var(--gold-light) !important;
  margin-bottom: 10px;
}

/* MAIN CONTENT AREA & TOPBAR */
.main {
  margin-left: 260px;
  width: calc(100% - 260px);
  min-width: calc(100% - 260px);
  flex: 1 1 auto;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  background: #FFFFFF;
  padding: 15px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  width: 100%;
}

.menu-btn {
  display: none;
  font-size: 22px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary-teal);
}

.profile-area {
  display: flex;
  align-items: center;
  gap: 25px;
}

.notification {
  position: relative;
  font-size: 22px;
  color: #333333;
}

.notification span {
  position: absolute;
  top: -8px;
  right: -8px;
  background: red;
  color: #fff;
  width: 18px;
  height: 18px;
  font-size: 10px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.user img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.content {
  padding: 20px;
  flex: 1;
  width: 100%;
}

/* BREADCRUMB HEADER */
.breadcrumb-title {
  font-size: 1.15rem;
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-title span {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.95rem;
}

/* DASHBOARD TOP SECTION */
.top-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.card {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 18px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-subtle);
}

.card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-teal);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 16px;
}

.card-title i {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--primary-teal);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.field label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.field p {
  margin-top: 3px;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 13.5px;
}

.contact-card {
  position: relative;
  overflow: hidden;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dark);
}

.contact-item i {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary-teal);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-avatar {
  position: absolute;
  right: 16px;
  top: 20px;
}

.contact-avatar img {
  width: 95px;
  height: 95px;
  border-radius: 50%;
  border: 4px solid #f3f3f3;
  object-fit: cover;
}

/* RANK BAR */
.rank {
  margin-top: 20px;
  margin-bottom: 20px;
  background: var(--rank-gradient);
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  font-size: 22px;
  color: var(--teal-dark);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* STATS CARDS */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat-card {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-subtle);
}

.stat-left {
  display: flex;
  gap: 15px;
  align-items: center;
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-teal);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
}

.stat-content h4 {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 4px;
}

.stat-content h2 {
  color: var(--primary-teal);
  font-size: 22px;
  font-weight: 700;
}

.gold-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #F5E4B0;
  color: #C7972A;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
}

/* FORM CONTROLS & INPUT BOXES */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  color: var(--text-dark);
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-teal);
  box-shadow: 0 0 0 3px rgba(23, 131, 147, 0.2);
}

.form-control[readonly] {
  background-color: #F8FAFC;
  color: var(--text-muted);
}

/* BADGES & TABLES */
.badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-success,
.badge-transferred {
  background: #E6F4EA;
  color: #137333;
}

.badge-warning,
.badge-pending {
  background: #FEF7E0;
  color: #B06000;
}

.badge-danger,
.badge-rejected {
  background: #FCE8E6;
  color: #C5221F;
}

.badge-info,
.badge-approved {
  background: #E8F0FE;
  color: #1A73E8;
}

.badge-under-review {
  background: #F3E8FF;
  color: #6B21A8;
}

.badge-processing {
  background: #E0F2FE;
  color: #0369A1;
}

.badge-cancelled {
  background: #F1F5F9;
  color: #475569;
}

.table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: #FFFFFF;
  width: 100%;
}

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.table th {
  background: var(--primary-teal);
  color: #FFFFFF;
  padding: 11px 16px;
  font-weight: 600;
  font-size: 13.5px;
  white-space: nowrap;
}

.table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13.5px;
}

.table tr:hover {
  background: #F8FAFC;
}

/* ALERTS */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-success {
  background: #E6F4EA;
  color: #137333;
  border: 1px solid #A8DADC;
}

.alert-danger {
  background: #FCE8E6;
  color: #C5221F;
  border: 1px solid #F8D7DA;
}

.alert-info {
  background: #E8F0FE;
  color: #1A73E8;
  border: 1px solid #BEE5EB;
}

.alert-warning {
  background: #FEF7E0;
  color: #B06000;
  border: 1px solid #FFEBAA;
}

/* MODAL OVERLAY & POPUPS */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(3px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop.show {
  display: flex;
}

.modal-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  max-width: 520px;
  width: 100%;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  animation: modalSlide 0.25s ease-out;
}

@keyframes modalSlide {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  background: var(--teal-gradient);
  color: #FFFFFF;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  color: #FFFFFF;
  font-size: 1.15rem;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  background: #F8FAFC;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* TIMELINE PROGRESS COMPONENT */
.timeline-stepper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  margin: 1.5rem 0;
  padding: 0 0.5rem;
}

.timeline-stepper::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 30px;
  right: 30px;
  height: 3px;
  background: #E2E8F0;
  z-index: 1;
}

.timeline-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.timeline-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #E2E8F0;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  border: 3px solid #FFFFFF;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.timeline-step.active .timeline-icon {
  background: var(--primary-teal);
  color: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(23, 131, 147, 0.25);
}

.timeline-step.completed .timeline-icon {
  background: #137333;
  color: #FFFFFF;
}

.timeline-step.rejected .timeline-icon {
  background: #C5221F;
  color: #FFFFFF;
}

.timeline-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 8px;
}

.timeline-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* PUBLIC FOOTER */
.footer {
  background: var(--teal-gradient);
  color: #CBD5E1;
  border-top: 3px solid var(--gold-accent);
  padding: 3rem 1.5rem 1.5rem 1.5rem;
  margin-top: auto;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer h4 {
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #E2E8F0;
}

.footer-links a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
}

/* RESPONSIVE BREAKPOINTS */
@media(max-width: 992px) {
  .nav-container {
    position: relative;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
    padding-top: 1rem;
    padding-bottom: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 0.75rem;
    align-items: stretch;
  }

  .nav-menu.show {
    display: flex;
  }

  .nav-menu a {
    display: block;
    text-align: center;
    padding: 0.65rem 1rem;
  }

  .nav-menu .btn {
    width: 100%;
    margin-top: 0.25rem;
  }

  .sidebar {
    left: -260px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  }

  .sidebar.show {
    left: 0;
  }

  .main {
    margin-left: 0;
    width: 100%;
  }

  .menu-btn {
    display: block;
  }

  .sidebar-header {
    display: flex;
  }

  body.sidebar-open {
    overflow: hidden;
  }

  .top-section {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3,
  .grid-4,
  .grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-avatar {
    position: static;
    text-align: center;
    margin-top: 12px;
    margin-left: auto;
    margin-right: auto;
  }

  footer[style*="margin-left: 260px"] {
    margin-left: 0 !important;
  }

  .main-wrapper {
    padding: 0 1rem;
    margin: 1.25rem auto;
  }
}

@media(max-width: 768px) {
  .brand-logo {
    font-size: 1.1rem;
  }

  .brand-logo-badge {
    width: 36px;
    height: 36px;
  }

  .hero {
    padding: 2rem 1.25rem;
    margin-bottom: 1.5rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero p {
    font-size: 0.98rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .details {
    grid-template-columns: 1fr;
  }

  .field[style*="grid-column: span 2"] {
    grid-column: span 1 !important;
  }

  .topbar {
    padding: 12px 15px;
  }

  .topbar h4 {
    font-size: 1rem;
  }

  .profile-area {
    gap: 10px;
  }

  .rank {
    font-size: 1rem;
    padding: 12px 10px;
  }

  .content {
    padding: 12px;
  }

  .card {
    padding: 14px;
  }

  .timeline-stepper {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .timeline-stepper::before {
    top: 15px;
    bottom: 15px;
    left: 20px;
    width: 3px;
    height: auto;
  }

  .timeline-step {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    text-align: left;
  }
}

@media(max-width: 480px) {
  .navbar {
    padding: 0.75rem 1rem;
  }

  .hero h1 {
    font-size: 1.45rem;
  }

  .metric-card {
    padding: 1rem;
    gap: 0.85rem;
  }

  .metric-icon {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }

  .metric-value {
    font-size: 1.3rem;
  }

  .metric-label {
    font-size: 0.8rem;
  }

  .table th,
  .table td {
    padding: 8px 10px;
    font-size: 12px;
  }
}

/* ==========================================================================
   GALLERY SECTION & LIGHTBOX STYLES
   ========================================================================== */

.gallery-filter-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.gallery-filter-btn {
  background: #FFFFFF;
  color: var(--primary-teal);
  border: 1.5px solid var(--border-color);
  padding: 0.55rem 1.35rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.gallery-filter-btn:hover {
  background: #EBF8FA;
  border-color: var(--primary-teal);
  transform: translateY(-2px);
}

.gallery-filter-btn.active {
  background: var(--teal-gradient);
  color: var(--gold-light);
  border-color: var(--gold-accent);
  box-shadow: 0 4px 15px rgba(23, 131, 147, 0.25);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-bottom: 3rem;
  align-items: stretch;
}

.gallery-item {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.gallery-card {
  width: 100%;
  height: 100%;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  display: flex;
  flex-direction: column;
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
  border-color: var(--primary-teal);
}

.gallery-img-box {
  position: relative;
  width: 100%;
  height: 250px;
  min-height: 240px;
  overflow: hidden;
  background: #071C21;
  border-radius: var(--radius-md);
}

.gallery-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-img-box img {
  transform: scale(1.08);
}

.gallery-img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(7, 28, 33, 0.85) 0%, rgba(7, 28, 33, 0.2) 100%);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.35s ease;
}

.gallery-card:hover .gallery-img-overlay {
  opacity: 1;
}

.gallery-zoom-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: var(--teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  border: none;
  cursor: pointer;
  transform: translateY(15px);
  transition: transform 0.35s ease, background 0.2s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.gallery-card:hover .gallery-zoom-btn {
  transform: translateY(0);
}

.gallery-zoom-btn:hover {
  background: #FFFFFF;
  color: var(--primary-teal);
}

.gallery-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(7, 28, 33, 0.82);
  color: var(--cyan-bright);
  border: 1px solid var(--cyan-border);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
  z-index: 2;
}

.gallery-content {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.gallery-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.gallery-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
  flex: 1;
}

.gallery-footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 20, 24, 0.92);
  backdrop-filter: blur(8px);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-modal.show {
  display: flex;
  opacity: 1;
}

.lightbox-container {
  max-width: 950px;
  width: 100%;
  background: var(--bg-dark-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--cyan-border);
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  position: relative;
  display: flex;
  flex-direction: column;
  animation: lightboxZoom 0.3s ease-out;
}

@keyframes lightboxZoom {
  from {
    transform: scale(0.92);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.lightbox-close-btn:hover {
  background: #FF4D4D;
  border-color: #FF4D4D;
  color: #FFFFFF;
}

.lightbox-img-holder {
  width: 100%;
  max-height: 65vh;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.lightbox-img-holder img {
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(7, 28, 33, 0.75);
  color: var(--cyan-bright);
  border: 1.5px solid var(--cyan-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s ease;
}

.lightbox-nav-btn:hover {
  background: var(--cyan-primary);
  color: #071C21;
}

.lightbox-prev {
  left: 15px;
}

.lightbox-next {
  right: 15px;
}

.lightbox-caption {
  padding: 1.5rem;
  background: var(--bg-dark-cyan);
  border-top: 1px solid var(--cyan-border);
  color: #FFFFFF;
}

.lightbox-category-tag {
  display: inline-block;
  color: var(--cyan-bright);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.35rem;
}

.lightbox-title {
  color: #FFFFFF;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.lightbox-desc {
  color: #B4D3DB;
  font-size: 0.95rem;
  line-height: 1.5;
}

@media(max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width: 576px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-filter-bar {
    gap: 0.5rem;
  }

  .gallery-filter-btn {
    padding: 0.45rem 0.95rem;
    font-size: 0.82rem;
  }

  .lightbox-nav-btn {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
}

/* ==========================================================================
   HUMAN-CRAFTED BESPOKE DESIGN & COMPLETE MOBILE RESPONSIVENESS (320px - 1440px)
   ========================================================================== */

/* 1. Mobile Sidebar Backdrop Overlay */
.sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(7, 28, 33, 0.78);
  backdrop-filter: blur(5px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sidebar-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

/* 2. Global Table Mobile Touch Scrolling & Auto-Wrap */
.table-container,
.table-responsive,
.card>div:has(> table) {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  border-radius: 12px !important;
  border: 1px solid var(--border-subtle) !important;
  background: #FFFFFF !important;
  margin-bottom: 1.25rem !important;
  width: 100% !important;
  display: block !important;
}

/* Custom Touch Scrollbar for Tables */
.table-container::-webkit-scrollbar,
.table-responsive::-webkit-scrollbar,
.card>div:has(> table)::-webkit-scrollbar {
  height: 6px;
}

.table-container::-webkit-scrollbar-track,
.table-responsive::-webkit-scrollbar-track {
  background: #F1F5F9;
  border-radius: 10px;
}

.table-container::-webkit-scrollbar-thumb,
.table-responsive::-webkit-scrollbar-thumb {
  background: var(--primary-teal);
  border-radius: 10px;
}

/* 3. Touch-Friendly Form Controls & Mobile Input Heights */
@media (max-width: 768px) {

  input[type="text"],
  input[type="number"],
  input[type="tel"],
  input[type="email"],
  input[type="password"],
  input[type="date"],
  select,
  textarea,
  .form-control {
    font-size: 16px !important;
    /* Prevents auto-zoom in iOS Safari */
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 10px;
  }

  .btn {
    min-height: 44px;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    border-radius: 10px;
  }
}

/* 4. Responsive Grid Stacking for Tablets & Phones */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    text-align: center;
  }

  .hero-subtext {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-pillars-bar {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.25rem !important;
  }

  .grid-5 {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {

  /* Public Navbar Mobile Enhancements */
  .navbar {
    padding: 0.75rem 1rem !important;
  }

  .brand-logo-img {
    width: 38px !important;
    height: 38px !important;
  }

  .brand-logo {
    font-size: 1.05rem !important;
  }

  /* Admin Quick Member Search Form on Topbar */
  .topbar form[action*="members.php"] {
    max-width: 100% !important;
    margin: 8px 0 !important;
    order: 3;
    width: 100%;
  }

  .topbar {
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  /* Dashboard Cards & Layout */
  .top-section {
    grid-template-columns: 1fr !important;
  }

  .stats {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .details {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5 {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .hero-pillars-bar {
    grid-template-columns: 1fr !important;
  }

  .pillar-item {
    border-right: none !important;
    border-bottom: 1px solid rgba(0, 240, 208, 0.15) !important;
    padding-bottom: 1rem !important;
  }

  .pillar-item:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
  }

  /* ID Card & Welcome Letter Scaling on Mobile */
  .id-card-wrapper {
    overflow-x: auto;
    padding: 0 10px;
  }

  #idCardFront {
    max-width: 100% !important;
  }

  #welcomeLetterDoc {
    border-width: 2px !important;
  }

  #welcomeLetterDoc>div {
    padding: 1.5rem 1.25rem !important;
  }

  /* Modal cards full width on mobile */
  .modal-card {
    max-width: 100% !important;
    margin: 0 10px !important;
  }

  .table {
    min-width: 560px;
  }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: 1.8rem !important;
  }

  .hero-dark-section {
    padding: 2.25rem 1.25rem 1.5rem 1.25rem !important;
    border-radius: 16px !important;
  }

  .cyan-card {
    padding: 1.35rem !important;
  }

  .card {
    padding: 14px !important;
    border-radius: 12px !important;
  }

  .badge {
    padding: 0.3rem 0.65rem !important;
    font-size: 0.72rem !important;
  }
}

/* 5. Human Micro-Interactions & Bespoke UI Details */
::selection {
  background: var(--gold-accent);
  color: var(--teal-dark);
}

.table th {
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.badge {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

/* ==========================================================================
   STATS HERO CARD COUNTER SECTION
   ========================================================================== */
.stats-hero-card {
  max-width: 680px;
  width: 100%;
  background: var(--teal-gradient);
  border: 2px solid var(--gold-accent);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  box-shadow: 0 15px 35px rgba(7, 28, 33, 0.25), 0 0 25px rgba(216, 164, 58, 0.15);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stats-hero-card::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(0, 240, 208, 0.18) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
  border-radius: 50%;
}

.stats-hero-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(7, 28, 33, 0.35), 0 0 35px rgba(0, 240, 208, 0.25);
}

.stats-icon-badge {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: var(--teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  flex-shrink: 0;
  border: 3px solid #FFFFFF;
  box-shadow: 0 8px 25px rgba(216, 164, 58, 0.4);
}

.stats-text-content {
  color: #FFFFFF;
}

.stats-number {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--gold-light);
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -1px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.stats-label {
  font-size: 1.3rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-top: 4px;
  letter-spacing: 0.5px;
}

.stats-sublabel {
  font-size: 0.88rem;
  color: #B4D3DB;
  margin-top: 6px;
  font-weight: 500;
}

@media (max-width: 576px) {
  .stats-hero-card {
    flex-direction: column;
    text-align: center;
    padding: 1.75rem 1.25rem;
    gap: 1.25rem;
  }

  .stats-icon-badge {
    width: 68px;
    height: 68px;
    font-size: 1.8rem;
  }

  .stats-number {
    font-size: 2.6rem;
  }

  .stats-label {
    font-size: 1.1rem;
  }
}