/* ===================================================================
   SIDHARTHA EDUCATIONAL AND RESEARCH FEDERATION (SERF)
   Exclusive Imperial Academic Aesthetic
   Palette: Royal Berry / Wine Maroon & Noble Champagne Gold
   Zero Blue Shade Policy
   =================================================================== */

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

:root {
  /* Brand Spectrum (Derived from SERF Crest) */
  --serf-wine-midnight: #230111;
  --serf-wine-deep:     #3d021e;
  --serf-berry-dark:    #660432;
  --serf-berry-primary: #8f0646;
  --serf-berry-vivid:   #b30e58;
  --serf-berry-glow:    #d91870;
  --serf-berry-soft:    #fbf1f6;
  --serf-berry-border:  #eed0df;

  /* Noble Gold & Champagne (Federation Prestige) */
  --serf-gold-dark:     #9a7012;
  --serf-gold-antique:  #b58718;
  --serf-gold-primary:  #d4af37;
  --serf-gold-light:    #f1cc5b;
  --serf-gold-pale:     #fff9e8;
  --serf-gold-border:   #fae3a6;

  /* Compatibility Aliases (Prevents invalid gradients & white-on-light bugs) */
  --primary-midnight:   #230111;
  --primary-deep:       #3d021e;
  --primary-dark:       #660432;
  --primary-berry:      #8f0646;
  --primary-vivid:      #b30e58;
  --primary-glow:       #d91870;
  --primary-soft:       #fbf1f6;
  --primary-border:     #eed0df;

  --accent-gold:        #d4af37;
  --accent-gold-dark:   #9a7012;
  --accent-gold-light:  #f1cc5b;
  --accent-gold-pale:   #fff9e8;
  --accent-gold-border: #fae3a6;

  --border-subtle:      #ebdbe3;
  --font-heading:       'Outfit', sans-serif;

  /* Warm Rose/Ivory Canvas (Strictly No Cool Blue/Grey) */
  --bg-page:            #faf6f8;
  --bg-surface:         #ffffff;
  --bg-muted:           #f4ecf0;
  --border-delicate:    #ebdbe3;
  --border-strong:      #d6becb;

  /* Typography Colors */
  --text-charcoal:      #1c171a;
  --text-heading:       #38021c;
  --text-muted:         #5a4f56;
  --text-light:         #8a7d85;

  /* Status */
  --status-verified:    #15803d;
  --status-verified-bg: #ecfdf5;

  /* Fonts */
  --font-serif:         'Playfair Display', Georgia, serif;
  --font-display:       'Outfit', sans-serif;
  --font-body:          'Plus Jakarta Sans', sans-serif;

  /* Elevation Shadows with Warm Wine Undertone */
  --shadow-sm:          0 2px 8px rgba(61, 2, 30, 0.05);
  --shadow-md:          0 8px 24px rgba(61, 2, 30, 0.08);
  --shadow-lg:          0 16px 40px rgba(61, 2, 30, 0.12);
  --shadow-glow:        0 10px 30px rgba(179, 14, 88, 0.25);
  --shadow-gold:        0 8px 24px rgba(212, 175, 55, 0.3);

  /* Geometry */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-charcoal);
  line-height: 1.68;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--serf-berry-primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--serf-berry-vivid);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-heading);
  line-height: 1.25;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===================================================================
   TIER 1: REGAL UTILITY STRIP
   =================================================================== */
.serf-top-strip {
  background: var(--serf-wine-midnight);
  color: #eedee7;
  font-size: 0.82rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.serf-top-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.serf-top-credentials {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cred-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 600;
  color: #fff;
}

.cred-pill-gold {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--serf-gold-primary);
  color: var(--serf-gold-light);
}

.serf-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.serf-top-actions a {
  color: #f7e6f0;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.serf-top-actions a:hover {
  color: var(--serf-gold-light);
}

.strip-sep {
  color: rgba(255, 255, 255, 0.25);
}

.strip-link-gold {
  color: var(--serf-gold-light) !important;
  font-weight: 700 !important;
}

/* ===================================================================
   TIER 2: GRAND FEDERATION MASTHEAD
   =================================================================== */
.serf-masthead {
  background: #ffffff;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-delicate);
  box-shadow: 0 4px 16px rgba(61, 2, 30, 0.04);
}

.masthead-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr;
  align-items: center;
  gap: 24px;
}

/* Flanks */
.masthead-flank {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.masthead-flank-right {
  align-items: flex-end;
}

.flank-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--serf-berry-soft);
  border: 1px solid var(--serf-berry-border);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
}

.flank-badge i {
  font-size: 1.4rem;
  color: var(--serf-berry-primary);
}

.flank-badge strong {
  display: block;
  font-size: 0.84rem;
  color: var(--serf-wine-deep);
  line-height: 1.2;
}

.flank-badge span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Center Emblem & Title */
.masthead-center-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: left;
}

.emblem-halo {
  position: relative;
  flex-shrink: 0;
  padding: 4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--serf-gold-primary) 0%, var(--serf-berry-primary) 100%);
  box-shadow: 0 4px 16px rgba(143, 6, 70, 0.25);
  transition: transform var(--transition);
}

.masthead-center-brand:hover .emblem-halo {
  transform: scale(1.05);
}

.serf-main-logo {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: #ffffff;
  padding: 2px;
  display: block;
}

.serf-brand-text {
  display: flex;
  flex-direction: column;
}

.serf-pretitle {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--serf-gold-antique);
}

.serf-org-name {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--serf-berry-primary);
  line-height: 1.2;
  letter-spacing: -0.3px;
  margin: 2px 0 4px 0;
}

.serf-motto-ribbon {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--serf-berry-dark);
  letter-spacing: 0.8px;
}

.serf-motto-ribbon .dot {
  color: var(--serf-gold-primary);
}

/* Right CTA Boxes */
.masthead-cta-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--serf-berry-primary) 0%, var(--serf-wine-deep) 100%);
  color: #fff !important;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  min-width: 200px;
}

.masthead-cta-box:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.masthead-cta-box.cta-gold {
  background: linear-gradient(135deg, var(--serf-gold-antique) 0%, #87620f 100%);
}

.masthead-cta-box.cta-gold:hover {
  box-shadow: var(--shadow-gold);
}

.cta-box-icon {
  font-size: 1.3rem;
  color: var(--serf-gold-light);
}

.masthead-cta-box strong {
  display: block;
  font-size: 0.88rem;
  line-height: 1.2;
}

.masthead-cta-box span {
  font-size: 0.72rem;
  color: #f7e6ef;
}

/* ===================================================================
   TIER 3: COMMAND RIBBON (MAIN NAVIGATION)
   =================================================================== */
.serf-command-nav {
  background: linear-gradient(90deg, #1d010e 0%, #35021a 35%, #460323 70%, #240112 100%);
  border-top: 2px solid var(--serf-gold-primary);
  border-bottom: 2px solid rgba(212, 175, 55, 0.35);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 8px 24px rgba(22, 2, 12, 0.4);
}

.serf-command-nav .container {
  max-width: 100%;
  width: 100%;
  padding: 0 32px;
}

.nav-bar-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: 54px;
  height: 54px;
  width: 100%;
}

/* Mobile Menu Toggle Button */
.mobile-menu-btn {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid var(--serf-gold-primary);
  color: #fff;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.mobile-menu-btn:hover {
  background: var(--serf-gold-primary);
  color: var(--serf-wine-midnight);
}

/* Main Navigation Menu - Fills Horizontally Across Navbar */
.serf-menu {
  list-style: none;
  display: flex;
  align-items: stretch;
  height: 100%;
  margin: 0;
  padding: 0;
  flex: 1;
  gap: 0;
}

.menu-item {
  position: relative;
  display: flex;
  align-items: stretch;
  height: 100%;
  flex: 1;
  text-align: center;
}

.menu-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 6px;
  color: #fceef6 !important;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0 10px;
  letter-spacing: 0.2px;
  white-space: nowrap;
  transition: all 0.2s ease;
  border-bottom: 3px solid transparent;
  height: 100%;
  text-decoration: none;
  text-align: center;
}

.menu-link i.fa-angle-down {
  font-size: 0.72rem;
  color: var(--serf-gold-light);
  transition: transform 0.2s ease;
  margin-left: 3px;
}

.menu-item:hover > .menu-link,
.menu-link.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--serf-gold-light) !important;
  border-bottom-color: var(--serf-gold-primary);
}

.menu-item:hover > .menu-link i.fa-angle-down {
  transform: rotate(180deg);
  color: var(--serf-gold-primary);
}

/* Categorized / Mega Dropdowns */
.dropdown-pane {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 290px;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 18px 45px rgba(22, 2, 12, 0.26);
  border: 1px solid var(--border-delicate);
  border-top: 3px solid var(--serf-gold-primary);
  padding: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1001;
  pointer-events: none;
  text-align: left;
}

/* Hover bridge: prevents mouse gap dismissal */
.dropdown-pane::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.menu-item:hover > .dropdown-pane {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-wide {
  min-width: 580px;
  padding: 20px;
}

.dropdown-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.drop-group-title {
  display: block;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--serf-gold-antique);
  padding-bottom: 6px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border-delicate);
}

.drop-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-charcoal);
  transition: var(--transition);
  margin-bottom: 3px;
  text-decoration: none;
}

.drop-item i {
  font-size: 1.15rem;
  color: var(--serf-berry-primary);
  margin-top: 2px;
  flex-shrink: 0;
}

.drop-item strong {
  display: block;
  font-size: 0.88rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--serf-wine-deep);
  line-height: 1.25;
}

.drop-item span {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.drop-item:hover {
  background: var(--serf-berry-soft);
  transform: translateX(4px);
}

.drop-item.drop-highlight {
  background: var(--serf-gold-pale);
  border: 1px dashed var(--serf-gold-border);
}

.drop-item.drop-highlight i {
  color: var(--serf-gold-dark);
}

/* Nav Right Action Pill */
.nav-right-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-pill-enrol {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--serf-gold-light) 0%, var(--serf-gold-primary) 100%);
  color: #1e010f !important;
  font-size: 0.84rem;
  font-weight: 800;
  font-family: var(--font-display);
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.4);
  text-decoration: none;
}

.nav-pill-enrol:hover {
  background: linear-gradient(135deg, #ffffff 0%, var(--serf-gold-light) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
  color: #1a010d !important;
}

/* ===================================================================
   TIER 4: LIVE ANNOUNCEMENT TICKER TAPE
   =================================================================== */
.serf-live-ticker {
  background: var(--serf-wine-deep);
  color: #fff;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  font-size: 0.82rem;
  padding: 4px 0;
}

.ticker-container {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ticker-badge {
  background: var(--serf-gold-primary);
  color: var(--serf-wine-midnight);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: var(--radius-xs);
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.ticker-content-track {
  overflow: hidden;
  white-space: nowrap;
  flex-grow: 1;
}

.ticker-content-track marquee {
  color: #fcedf4;
}

/* ===================================================================
   PAGE HERO BANNERS (ALL INNER PAGES)
   Guarantees rich dark royal wine background beneath white typography
   =================================================================== */
.page-banner {
  background-color: #230111 !important;
  background: radial-gradient(circle at 50% 25%, #660432 0%, #3d021e 50%, #230111 100%) !important;
  color: #ffffff !important;
  padding: 65px 0 55px 0 !important;
  text-align: center !important;
  border-bottom: 4px solid #d4af37 !important;
  position: relative !important;
  overflow: hidden !important;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.1) 0%, transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(217, 24, 112, 0.15) 0%, transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 36px 36px, 36px 36px;
  pointer-events: none;
}

.page-banner .container {
  position: relative;
  z-index: 2;
}

.page-banner h1, .page-banner h2 {
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6) !important;
  font-family: var(--font-serif) !important;
  font-size: 2.8rem !important;
  font-weight: 800 !important;
  margin-top: 10px !important;
  margin-bottom: 12px !important;
  line-height: 1.2 !important;
}

.page-banner p {
  color: #f7e2ef !important;
  max-width: 760px !important;
  margin: 0 auto !important;
  font-size: 1.05rem !important;
  line-height: 1.65 !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4) !important;
}

.page-banner .section-badge {
  background: rgba(212, 175, 55, 0.22) !important;
  color: #f1cc5b !important;
  border: 1.5px solid rgba(212, 175, 55, 0.5) !important;
  font-weight: 700 !important;
  letter-spacing: 1.2px !important;
}

/* ===================================================================
   IMPERIAL GRAND HERO SECTION (TRI-COLUMN / ASYMMETRICAL)
   =================================================================== */
.imperial-hero {
  position: relative;
  background-color: #230111 !important;
  background: radial-gradient(circle at 50% 30%, #660432 0%, #3d021e 45%, #230111 100%) !important;
  color: #ffffff !important;
  padding: 80px 0 70px 0;
  overflow: hidden;
  border-bottom: 4px solid var(--serf-gold-primary);
}

.hero-guilloche-bg {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(217, 24, 112, 0.12) 0%, transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  pointer-events: none;
}

.imperial-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.85fr 1.35fr 1.05fr;
  align-items: center;
  gap: 36px;
}

/* Hero Column 1: Credentials Pillar */
.hero-creds-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cred-card-mini {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: var(--transition);
}

.cred-card-mini:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
  border-color: var(--serf-gold-light);
}

.cred-card-mini i {
  font-size: 1.8rem;
  color: var(--serf-gold-light);
  flex-shrink: 0;
}

.cred-card-mini strong {
  display: block;
  font-size: 0.92rem;
  color: #fff;
  line-height: 1.25;
}

.cred-card-mini span {
  font-size: 0.74rem;
  color: #ebdce4;
}

/* Hero Column 2: Center Proclamation */
.hero-center-proclamation {
  text-align: center;
  padding: 0 10px;
}

.hero-crown-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid var(--serf-gold-primary);
  color: var(--serf-gold-light);
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-main-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 18px;
}

.hero-main-title span {
  background: linear-gradient(135deg, #ffffff 0%, var(--serf-gold-light) 60%, var(--serf-gold-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc-lead {
  font-size: 1.05rem;
  color: #f2e2ec;
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto 28px auto;
}

.hero-cta-duo {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero Column 3: Interactive Fast-Track Portal Card */
.hero-portal-card {
  background: #ffffff !important;
  color: var(--text-charcoal) !important;
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  border: 2px solid var(--serf-gold-primary);
}

.hero-portal-card h3 {
  color: var(--serf-wine-deep) !important;
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  font-size: 1.15rem !important;
  margin: 0 !important;
}

.hero-portal-card p {
  color: var(--text-muted) !important;
}

.hero-portal-card span {
  color: var(--text-muted) !important;
}

.hero-portal-card label {
  color: var(--serf-wine-deep) !important;
}

.hero-portal-card .form-control {
  background: var(--bg-page) !important;
  color: var(--text-charcoal) !important;
  border: 1.5px solid var(--border-delicate) !important;
}

.portal-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 2px solid var(--serf-berry-soft);
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.portal-card-header i {
  color: var(--serf-berry-primary);
  font-size: 1.5rem;
}

.portal-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  background: var(--serf-berry-soft);
  padding: 4px;
  border-radius: var(--radius-sm);
}

.portal-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted) !important;
  padding: 7px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.portal-tab-btn.active {
  background: #ffffff !important;
  color: var(--serf-berry-primary) !important;
  box-shadow: var(--shadow-sm);
}

/* ===================================================================
   ACCREDITATION BADGES MOSAIC STRIP
   =================================================================== */
.accred-ribbon-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-delicate);
  padding: 28px 0;
  box-shadow: var(--shadow-sm);
}

.accred-seal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  align-items: center;
}

.accred-seal-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-page);
  border: 1px solid var(--border-delicate);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.accred-seal-card:hover {
  background: var(--serf-berry-soft);
  border-color: var(--serf-berry-border);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.seal-icon-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--serf-berry-primary) 0%, var(--serf-wine-deep) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.seal-body strong {
  display: block;
  font-size: 0.86rem;
  color: var(--serf-wine-midnight);
  line-height: 1.2;
}

.seal-body span {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* ===================================================================
   BENTO / MAGAZINE MOSAIC (FOUR CORE PILLARS)
   =================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: auto auto;
  gap: 26px;
}

.bento-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border-delicate);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.bento-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--serf-berry-border);
}

.bento-featured {
  grid-row: span 2;
  background: linear-gradient(180deg, #ffffff 0%, var(--serf-berry-soft) 100%);
  border: 2px solid var(--serf-berry-border);
}

.bento-card-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--serf-gold-antique);
  background: var(--serf-gold-pale);
  border: 1px solid var(--serf-gold-border);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
  width: fit-content;
}

.bento-title {
  font-size: 1.7rem;
  color: var(--serf-wine-deep);
  margin-bottom: 14px;
}

.bento-desc {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
  flex-grow: 1;
}

/* ===================================================================
   PROGRAMMES CATALOG (MATRIX WITH TABS)
   =================================================================== */
.prog-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.prog-tab-btn {
  background: #ffffff;
  border: 1px solid var(--border-delicate);
  color: var(--text-muted);
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: var(--transition);
}

.prog-tab-btn:hover, .prog-tab-btn.active {
  background: var(--serf-berry-primary);
  color: #ffffff;
  border-color: var(--serf-berry-primary);
  box-shadow: 0 4px 16px rgba(143, 6, 70, 0.3);
}

.prog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 26px;
}

.prog-card {
  background: #ffffff;
  border: 1px solid var(--border-delicate);
  border-radius: var(--radius-md);
  padding: 26px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.prog-card:hover {
  border-color: var(--serf-berry-border);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.prog-category-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--serf-gold-antique);
  background: var(--serf-gold-pale);
  border: 1px solid var(--serf-gold-border);
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
  text-transform: uppercase;
  width: fit-content;
}

.prog-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--serf-wine-deep);
  margin-bottom: 10px;
  line-height: 1.35;
}

.prog-meta {
  display: flex;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 16px 0 20px 0;
  padding-top: 14px;
  border-top: 1px solid var(--border-delicate);
}

.prog-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ===================================================================
   MEMBERSHIP TIERS MATRIX
   =================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 28px;
}

.pricing-card {
  background: #ffffff;
  border: 1px solid var(--border-delicate);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--serf-berry-border);
}

.pricing-card.featured {
  border: 2px solid var(--serf-berry-primary);
  box-shadow: 0 12px 36px rgba(143, 6, 70, 0.16);
  transform: scale(1.03);
}

.pricing-ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--serf-gold-primary);
  color: #fff;
  padding: 4px 18px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  letter-spacing: 0.6px;
  box-shadow: var(--shadow-sm);
}

.pricing-category {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--serf-wine-deep);
  margin-bottom: 8px;
}

.pricing-amount {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--serf-berry-primary);
  margin: 16px 0 6px 0;
  font-family: var(--font-display);
}

.pricing-validity {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 22px;
}

.pricing-divider {
  height: 1px;
  background: var(--border-delicate);
  margin: 20px 0;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 30px;
  flex-grow: 1;
}

.pricing-features li {
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.pricing-features li i {
  color: var(--serf-berry-primary);
  margin-top: 3px;
}

/* ===================================================================
   TICKET CARD CONFERENCES & EVENTS
   =================================================================== */
.event-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-delicate);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--serf-berry-border);
}

.event-header {
  background: linear-gradient(135deg, var(--serf-wine-deep) 0%, var(--serf-wine-midnight) 100%);
  color: #fff;
  padding: 16px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.event-type-tag {
  background: var(--serf-gold-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}

.event-date-badge {
  font-size: 0.84rem;
  font-weight: 600;
  color: #ffd8ec;
}

.event-body {
  padding: 26px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.event-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--serf-wine-deep);
  margin-bottom: 12px;
  line-height: 1.35;
}

.event-venue {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.event-venue i {
  color: var(--serf-berry-primary);
}

.event-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 22px;
  flex-grow: 1;
}

/* ===================================================================
   BUTTONS & BADGES
   =================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: 1.5px solid transparent;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--serf-berry-primary) 0%, var(--serf-wine-deep) 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(143, 6, 70, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--serf-berry-vivid) 0%, var(--serf-berry-primary) 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(143, 6, 70, 0.45);
}

.btn-gold {
  background: linear-gradient(135deg, var(--serf-gold-primary) 0%, var(--serf-gold-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--serf-gold-light) 0%, var(--serf-gold-primary) 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(212, 175, 55, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--serf-berry-primary);
  border-color: var(--serf-berry-primary);
}

.btn-outline:hover {
  background: var(--serf-berry-soft);
  color: var(--serf-wine-deep);
}

.btn-white {
  background: #ffffff;
  color: var(--serf-berry-primary);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  background: var(--serf-berry-soft);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 7px 16px;
  font-size: 0.84rem;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1.05rem;
}

/* ===================================================================
   SECTION UTILITIES & TITLES
   =================================================================== */
.section-padding {
  padding: 80px 0;
}

.section-title-wrap {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 50px auto;
}

.section-badge {
  display: inline-block;
  padding: 6px 18px;
  background: var(--serf-berry-soft);
  color: var(--serf-berry-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  border: 1px solid var(--serf-berry-border);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--serf-wine-deep);
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 30px;
  border: 1px solid var(--border-delicate);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card-icon-box {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--serf-berry-soft) 0%, #f6dce9 100%);
  color: var(--serf-berry-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  border: 1px solid var(--serf-berry-border);
}

.card:hover .card-icon-box {
  background: var(--serf-berry-primary);
  color: #fff;
  transform: scale(1.05);
}

/* Feature List */
.feature-list {
  list-style: none;
  margin: 16px 0;
}

.feature-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  font-size: 0.94rem;
  color: var(--text-muted);
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--serf-berry-primary);
  font-weight: bold;
}

/* Forms */
.form-container {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 44px;
  border: 1px solid var(--border-delicate);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 22px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--serf-wine-deep);
  margin-bottom: 8px;
}

label .required {
  color: var(--serf-berry-primary);
}

.form-control {
  width: 100%;
  padding: 13px 18px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-charcoal);
  background: var(--bg-page);
  border: 1.5px solid var(--border-delicate);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--serf-berry-primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(143, 6, 70, 0.12);
}

textarea.form-control {
  min-height: 120px;
}

/* Tables */
.table-responsive {
  overflow-x: auto;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.custom-table th, .custom-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-delicate);
  font-size: 0.92rem;
}

.custom-table th {
  background: var(--serf-berry-soft);
  color: var(--serf-wine-midnight);
  font-weight: 700;
  font-family: var(--font-display);
}

.custom-table tr:hover {
  background: #fdfafd;
}

/* Certificate Verification Box */
.cert-verify-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 44px;
  border: 2px solid var(--serf-gold-primary);
  box-shadow: 0 12px 40px rgba(61, 2, 30, 0.1);
  max-width: 760px;
  margin: 0 auto;
}

.cert-card-result {
  background: #ffffff;
  border: 2px solid var(--serf-berry-primary);
  border-radius: var(--radius-md);
  padding: 34px;
  margin-top: 30px;
  box-shadow: var(--shadow-md);
}

.cert-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--status-verified-bg);
  color: var(--status-verified);
  font-weight: 700;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  border: 1px solid #86efac;
}

/* ===================================================================
   SYSTEM ALERTS & NOTIFICATIONS
   =================================================================== */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  line-height: 1.5;
  box-shadow: var(--shadow-sm);
}

.alert i {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.alert-danger {
  background: #fdf2f7;
  color: #8f0646;
  border: 1.5px solid #f2bccf;
  border-left: 5px solid #b30e58;
}

.alert-success {
  background: #f0fdf4;
  color: #166534;
  border: 1.5px solid #bbf7d0;
  border-left: 5px solid #16a34a;
}

/* ===================================================================
   ADMIN CONSOLE LAYOUT
   =================================================================== */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 260px;
  background: linear-gradient(180deg, var(--serf-wine-midnight) 0%, var(--serf-wine-deep) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  border-right: 1px solid rgba(212, 175, 55, 0.25);
}

.admin-sidebar-header {
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-nav {
  list-style: none;
  padding: 16px 12px;
  margin: 0;
  flex-grow: 1;
}

.admin-nav-item {
  margin-bottom: 6px;
}

.admin-nav-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #dec8d5;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  transition: var(--transition);
}

.admin-nav-item a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--serf-gold-light);
  transform: translateX(4px);
}

.admin-nav-item.active a {
  background: linear-gradient(90deg, var(--serf-berry-primary) 0%, var(--serf-berry-vivid) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(143, 6, 70, 0.4);
}

.admin-main {
  flex-grow: 1;
  background: var(--bg-page);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.admin-topbar {
  background: #ffffff;
  padding: 18px 30px;
  border-bottom: 1px solid var(--border-delicate);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.admin-content {
  padding: 30px;
  flex-grow: 1;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-delicate);
  transition: var(--transition);
}

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

.stat-val {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--serf-wine-midnight);
  font-family: var(--font-display);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 4px;
}

/* ===================================================================
   MAIN FOOTER
   =================================================================== */
.main-footer {
  background: linear-gradient(180deg, var(--serf-wine-deep) 0%, var(--serf-wine-midnight) 100%);
  color: #ecdce5;
  padding: 80px 0 30px 0;
  border-top: 5px solid var(--serf-gold-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-logo {
  height: 64px;
  width: auto;
  border-radius: 50%;
  border: 2px solid var(--serf-gold-primary);
}

.footer-brand-title {
  color: #ffffff;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
}

.footer-tagline {
  color: var(--serf-gold-light);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-desc {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #dec8d5;
}

.footer-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--serf-gold-primary);
  border-radius: 2px;
}

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

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #dec8d5;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--serf-gold-light);
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #dec8d5;
}

.footer-contact-item i {
  color: var(--serf-gold-primary);
  margin-top: 5px;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: #bdabb5;
}

.footer-accred-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.footer-mini-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.74rem;
  padding: 3px 10px;
  border-radius: 4px;
  color: #eedee7;
}

/* ===================================================================
   RESPONSIVE DESIGN
   =================================================================== */
@media (max-width: 1200px) {
  .masthead-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .masthead-flank-left, .masthead-flank-right {
    display: none;
  }
  .masthead-center-brand {
    justify-content: center;
  }
  .imperial-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-creds-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-featured {
    grid-row: auto;
  }
}

@media (min-width: 1101px) and (max-width: 1280px) {
  .menu-link {
    padding: 0 8px;
    font-size: 0.85rem;
  }
  .nav-pill-enrol {
    padding: 7px 14px;
    font-size: 0.8rem;
  }
}

@media (max-width: 1100px) {
  .nav-bar-inner {
    position: relative;
    padding: 0 16px;
    min-height: 54px;
    height: 54px;
    align-items: center;
  }

  .mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid var(--serf-gold-primary);
    color: #fff;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
  }

  .mobile-menu-btn:hover {
    background: var(--serf-gold-primary);
    color: var(--serf-wine-midnight);
  }

  .serf-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--serf-wine-midnight);
    flex-direction: column;
    padding: 12px 18px 24px 18px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55);
    border-top: 1px solid rgba(212, 175, 55, 0.35);
    max-height: 80vh;
    overflow-y: auto;
    z-index: 9999;
    height: auto;
  }

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

  .menu-item {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    height: auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .menu-link {
    width: 100%;
    padding: 14px 10px;
    height: auto;
    justify-content: space-between;
    font-size: 0.95rem;
  }

  .menu-link:hover, .menu-link.active {
    background: rgba(255, 255, 255, 0.06);
    border-bottom-color: transparent;
  }

  .dropdown-pane {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: rgba(0, 0, 0, 0.25);
    min-width: 100%;
    border-radius: 8px;
    padding: 10px;
    margin: 4px 0 12px 0;
    display: none; /* Collapsed by default on mobile */
    pointer-events: auto;
  }

  .dropdown-pane::before {
    display: none;
  }

  .menu-item.dropdown-open > .dropdown-pane {
    display: block !important;
  }

  .menu-item.dropdown-open > .menu-link i.fa-angle-down {
    transform: rotate(180deg);
    color: var(--serf-gold-primary);
  }

  .dropdown-wide {
    min-width: 100%;
    padding: 10px;
  }

  .dropdown-grid-2col {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .drop-item strong {
    color: #fff;
  }

  .drop-item span {
    color: #eedbe6;
  }

  .drop-item:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .nav-right-pills {
    margin-left: auto;
    padding-left: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-creds-column {
    grid-template-columns: 1fr;
  }
  .hero-main-title {
    font-size: 2.3rem;
  }
}

/* ===================================================================
   ADMIN MODAL DIALOGS & ACTIONS
   =================================================================== */
.admin-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(22, 2, 12, 0.75);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: adminModalFadeIn 0.2s ease forwards;
}

.admin-modal-overlay.active {
  display: flex !important;
}

.admin-modal {
  background: #ffffff;
  border-radius: var(--radius-md, 12px);
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  overflow: hidden;
  animation: adminModalSlideUp 0.25s ease forwards;
}

.admin-modal-header {
  background: linear-gradient(135deg, var(--serf-wine-midnight, #230111) 0%, var(--serf-wine-deep, #3d021e) 100%);
  color: #ffffff;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--serf-gold-primary, #d4af37);
  flex-shrink: 0;
}

.admin-modal-title {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.admin-modal-close {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}

.admin-modal-close:hover {
  background: var(--serf-berry-primary, #8f0646);
  color: #ffffff;
}

.admin-modal-body {
  padding: 24px 28px;
  overflow-y: auto;
  flex-grow: 1;
}

.admin-modal-footer {
  padding: 16px 28px;
  background: #faf5f8;
  border-top: 1px solid var(--border-delicate, #ebdbe3);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-shrink: 0;
}

@keyframes adminModalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes adminModalSlideUp {
  from { transform: translateY(16px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.btn-action {
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  text-decoration: none;
  transition: 0.2s ease;
  line-height: 1.3;
}

.btn-action-edit {
  background: #fdf2f7;
  color: var(--serf-berry-primary, #8f0646);
  border: 1px solid var(--serf-berry-border, #f2bccf);
}

.btn-action-edit:hover {
  background: var(--serf-berry-primary, #8f0646);
  color: #ffffff;
  border-color: var(--serf-berry-primary, #8f0646);
}

.btn-action-delete {
  background: #fff5f5;
  color: #c53030;
  border: 1px solid #feb2b2;
}

.btn-action-delete:hover {
  background: #c53030;
  color: #ffffff;
  border-color: #c53030;
}

.btn-action-activate {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.btn-action-activate:hover {
  background: #16a34a;
  color: #ffffff;
  border-color: #16a34a;
}

