/* ==========================================================================
   SEGi Dental Society — Global Design System (`css/global.css`)
   Theme Tokens, Edge-to-Edge Navigation, Responsive Drawer & Admin Docks
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Base Tokens, Color Variables & Theme Engine
   -------------------------------------------------------------------------- */
:root {
  --bg-main: #090a0d;
  --bg-card: rgba(18, 20, 26, 0.75);
  --bg-card-hover: rgba(28, 30, 40, 0.9);
  --navbar-bg: rgba(9, 10, 13, 0.85);
  --mobile-nav-bg: rgba(9, 10, 13, 0.96);
  
  /* Institutional Maroon & Gold Palette */
  --maroon-deep: #42060f;
  --maroon-base: #6b0b1a;
  --maroon-vibrant: #9e1027;
  --maroon-bright: #e11d48;
  --maroon-glow: rgba(158, 16, 39, 0.35);
  
  --gold-accent: #d49a37;
  --gold-subtle: rgba(212, 154, 55, 0.15);
  --segi-orange: #c77202;
  --segi-teal: #0284c7;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-crimson: rgba(225, 29, 72, 0.35);
  --shadow-card: 0 16px 36px rgba(0, 0, 0, 0.5);
  --aura-color: rgba(158, 16, 39, 0.22);
  
  --radius-lg: 16px;
  --radius-md: 10px;
}

body.light-theme {
  --bg-main: #f4f6f9;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: #ffffff;
  --navbar-bg: rgba(255, 255, 255, 0.9);
  --mobile-nav-bg: rgba(255, 255, 255, 0.98);
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-crimson: rgba(158, 16, 39, 0.25);
  --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.08);
  --aura-color: rgba(158, 16, 39, 0.1);
}

/* --------------------------------------------------------------------------
   2. Reset, Base Typography & Background Aura
   -------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  position: relative;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  overflow-x: clip;
}

body.theme-transitioning {
  transition: background-color 0.5s ease, color 0.5s ease;
}

/* --------------------------------------------------------------------------
   Pre-Render Security Veil / Page Guard Loading Shield
   -------------------------------------------------------------------------- */
#pageGuardVeil {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-main, #090a0d);
  z-index: 99999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  pointer-events: all;
}

#pageGuardVeil.veil-cleared {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.guard-crest {
  position: relative;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guard-spin-ring {
  position: absolute;
  inset: 0;
  border: 3px solid rgba(212, 154, 55, 0.18);
  border-top-color: var(--gold-accent, #d49a37);
  border-radius: 50%;
  animation: pageGuardSpin 0.9s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes pageGuardSpin {
  to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   Anti-Scraping, Print Suppression & Asset Protection Shields
   -------------------------------------------------------------------------- */
@media print {
  html, body {
    display: none !important;
    visibility: hidden !important;
    background: #000000 !important;
  }
}

img, svg, picture, .brand-logo, .brand-emblem, .committee-card img {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

.vault-watermark-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  opacity: 0.016;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='380' height='140' viewBox='0 0 380 140'%3E%3Ctext x='20' y='70' fill='%23ffffff' font-family='sans-serif' font-size='10.5' font-weight='600' letter-spacing='0.14em' transform='rotate(-18 20 70)'%3ESEGi DENTAL SOCIETY • ARCHITECTURE PROTECTED%3C/text%3E%3C/svg%3E");
  background-repeat: repeat;
}

body.light-theme .vault-watermark-overlay {
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='380' height='140' viewBox='0 0 380 140'%3E%3Ctext x='20' y='70' fill='%23000000' font-family='sans-serif' font-size='10.5' font-weight='600' letter-spacing='0.14em' transform='rotate(-18 20 70)'%3ESEGi DENTAL SOCIETY • ARCHITECTURE PROTECTED%3C/text%3E%3C/svg%3E");
}


body.theme-transitioning::before {
  transition: background 0.5s ease;
}

body::before {
  content: "";
  position: absolute;
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
  width: min(750px, 100vw);
  height: 550px;
  background: radial-gradient(circle, var(--aura-color) 0%, rgba(9, 10, 13, 0) 70%);
  z-index: -1;
  pointer-events: none;
  transition: background 0.3s ease;
}

@media (max-width: 768px) {
  body::before {
    width: 100vw;
    height: 380px;
    top: -80px;
  }
}

/* --------------------------------------------------------------------------
   3. Top Utility Strip (with Dark-Mode Inversion)
   -------------------------------------------------------------------------- */
.top-utility-bar {
  width: 100%;
  background: #000000;
  color: #94a3b8;
  font-size: 0.74rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-utility-bar,
.top-utility-bar a,
.top-utility-bar svg,
.top-utility-bar span {
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

body:not(.light-theme) .top-utility-bar {
  background: #ffffff;
  color: #334155;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

body:not(.light-theme) .top-utility-bar .utility-link { color: #334155; }
body:not(.light-theme) .top-utility-bar .utility-link:hover { color: var(--maroon-bright, #e11d48); }
body:not(.light-theme) .top-utility-bar .utility-divider { color: rgba(0, 0, 0, 0.25); }
body:not(.light-theme) .top-utility-bar .utility-tag { color: #b45309; }
body:not(.light-theme) .top-utility-bar .social-icon-btn { color: #334155; }
body:not(.light-theme) .top-utility-bar .social-icon-btn:hover { color: var(--maroon-bright, #e11d48); }
body:not(.light-theme) .top-utility-bar .utility-badge { color: #0f172a; }
body:not(.light-theme) .top-utility-bar .toggle-track {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.2);
}

.utility-container {
  width: 100%;
  max-width: 100%;
  padding: 0 clamp(1.2rem, 3.5vw, 3rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

.utility-left,
.utility-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.utility-link {
  color: #94a3b8;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.utility-link:hover {
  color: #ffffff;
}

.utility-divider {
  color: rgba(255, 255, 255, 0.2);
}

.utility-tag {
  color: var(--gold-accent, #d49a37);
  font-weight: 600;
}

.utility-badge {
  font-weight: 600;
  color: #e2e8f0;
}

.utility-socials {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.social-icon-btn {
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}

.social-icon-btn:hover {
  color: var(--maroon-bright, #e11d48);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   4. Animated Theme Switcher Button
   -------------------------------------------------------------------------- */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  outline: none;
}

.toggle-track {
  width: 54px;
  height: 28px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  box-sizing: border-box;
  cursor: pointer;
  transition: background 0.35s ease, border-color 0.35s ease;
}

body.light-theme .toggle-track {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.35);
}

.toggle-icon {
  font-size: 0.75rem;
  user-select: none;
  z-index: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

body.light-theme .toggle-icon.sun { opacity: 1; transform: scale(1.1); }
body.light-theme .toggle-icon.moon { opacity: 0.4; transform: scale(0.9); }
body:not(.light-theme) .toggle-icon.moon { opacity: 1; transform: scale(1.1); }
body:not(.light-theme) .toggle-icon.sun { opacity: 0.4; transform: scale(0.9); }

.toggle-thumb {
  position: absolute;
  top: 2px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--maroon-bright, #e11d48);
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.4);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, box-shadow 0.3s ease;
}

body.light-theme .toggle-thumb {
  transform: translateX(25px);
  background: #f59e0b;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.45);
}

/* --------------------------------------------------------------------------
   5. Edge-to-Edge Navigation Header (3-Track CSS Grid)
   -------------------------------------------------------------------------- */
.segi-portal-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: #090a0d;
  border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  transition: background 0.3s ease, border-color 0.3s ease;
}

body.light-theme .segi-portal-navbar {
  background: #ffffff !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.04);
}

.nav-container {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0.7rem clamp(1.2rem, 3.5vw, 3.5rem);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  box-sizing: border-box;
  position: relative;
}

/* Track 1: Brand Cluster (Unified 46px Height) */
.brand-cluster {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-shrink: 0;
}

.segi-uni-brand {
  display: flex;
  align-items: center;
}

.uni-logo-img,
.brand-logo-img {
  height: 46px !important;
  max-height: 46px !important;
  width: auto !important;
  object-fit: contain;
  display: block;
}

.brand-divider {
  width: 1px;
  height: 32px;
  background: rgba(0, 0, 0, 0.12);
}

body:not(.light-theme) .brand-divider {
  background: rgba(255, 255, 255, 0.15);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

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

.brand-name {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--maroon-deep, #42060f);
  line-height: 1.2;
}

body:not(.light-theme) .brand-name {
  color: #f8fafc;
}

.brand-sub {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--gold-accent, #d49a37);
  font-weight: 700;
}

/* Track 2: Navigation Links */
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.2rem, 2.4vw, 2.8rem);
  margin: 0 1rem;
}

.nav-links .nav-item {
  color: var(--maroon-base, #6b0b1a);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.75rem 0;
  position: relative;
  transition: color 0.2s ease;
  white-space: nowrap;
}

body:not(.light-theme) .nav-links .nav-item {
  color: #94a3b8;
}

.nav-links .nav-item:hover {
  color: var(--maroon-bright, #e11d48);
}

.nav-links .nav-item.active {
  color: var(--maroon-bright, #e11d48) !important;
  font-weight: 800;
}

.nav-links .nav-item.active::after {
  content: "";
  position: absolute;
  bottom: -0.65rem;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--maroon-bright, #e11d48);
  border-radius: 2px 2px 0 0;
}

/* Navigation Dropdown Menu (Initiatives) */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: inherit;
}

.dropdown-chevron-icon {
  width: 14px;
  height: 14px;
  transition: transform 0.25s ease;
  pointer-events: none;
  display: inline-block;
}

.nav-dropdown:hover .dropdown-chevron-icon,
.nav-dropdown:focus-within .dropdown-chevron-icon {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  min-width: 180px;
  padding: 0.5rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.2s ease;
  z-index: 1000;
}

body:not(.light-theme) .dropdown-menu {
  background: #0f1117;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.6);
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-link {
  display: block;
  padding: 0.65rem 1.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--maroon-base, #6b0b1a);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

body:not(.light-theme) .dropdown-link {
  color: #cbd5e1;
}

.dropdown-link:hover {
  background-color: rgba(107, 11, 26, 0.06);
  color: var(--maroon-bright, #e11d48);
}

body:not(.light-theme) .dropdown-link:hover {
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--gold-accent, #d49a37);
}

.dropdown-link.active {
  color: var(--maroon-bright, #e11d48);
  font-weight: 700;
  background-color: rgba(107, 11, 26, 0.05);
}

/* Track 3: Search Actions */
.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  flex-shrink: 0;
}

.nav-search-expandable {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.search-expand-input {
  width: 0;
  opacity: 0;
  padding: 0.45rem 0;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.04);
  color: #0f172a;
  font-size: 0.82rem;
  outline: none;
  font-family: inherit;
  pointer-events: none;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.2s ease, 
              padding 0.3s ease, 
              border-color 0.2s ease;
}

body:not(.light-theme) .search-expand-input {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
}

.nav-search-expandable.is-expanded .search-expand-input {
  width: 210px;
  opacity: 1;
  padding: 0.45rem 2.4rem 0.45rem 0.9rem;
  border-color: var(--maroon-bright, #e11d48);
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(107, 11, 26, 0.08);
  pointer-events: auto;
}

body:not(.light-theme) .nav-search-expandable.is-expanded .search-expand-input {
  background: rgba(255, 255, 255, 0.12);
}

.search-expand-trigger {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--maroon-base, #6b0b1a);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  z-index: 2;
  position: absolute;
  right: 0;
}

body:not(.light-theme) .search-expand-trigger {
  color: #94a3b8;
}

.search-expand-trigger:hover {
  color: var(--maroon-bright, #e11d48);
  background: rgba(107, 11, 26, 0.06);
}

/* --------------------------------------------------------------------------
   6. Mobile Hamburger Button & Responsive Drawer
   -------------------------------------------------------------------------- */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 19px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 105;
}

.menu-toggle .bar {
  width: 100%;
  height: 2.5px;
  background-color: var(--maroon-deep, #42060f);
  border-radius: 999px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.2s ease, 
              background-color 0.3s ease;
  transform-origin: center;
}

body:not(.light-theme) .menu-toggle .bar {
  background-color: #f8fafc;
}

.menu-toggle.open .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.open .bar:nth-child(2) { opacity: 0; }
.menu-toggle.open .bar:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

.mobile-nav-search {
  display: none;
}

@media (max-width: 992px) {
  .top-utility-bar { display: none; }
  .brand-divider, .segi-uni-brand { display: none; }

  .nav-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.75rem 1.25rem !important;
  }

  .nav-search-expandable { display: none !important; }
  .menu-toggle { display: flex !important; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    flex-direction: column;
    padding: 1.5rem 1.75rem 2rem;
    gap: 1.25rem;
    align-items: flex-start;
    margin: 0;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 99;
  }

  body:not(.light-theme) .nav-links {
    background: #090a0d;
    border-bottom-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  }

  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links .nav-item {
    font-size: 0.95rem;
    width: 100%;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  }

  body:not(.light-theme) .nav-links .nav-item {
    border-bottom-color: rgba(255, 255, 255, 0.04);
  }

  .nav-links .nav-item.active::after {
    display: none;
  }

  .nav-links .nav-dropdown {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .nav-links .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--maroon-bright, #e11d48);
    background: transparent;
    border-radius: 0;
    padding: 0.25rem 0 0.25rem 1rem;
    margin: 0.25rem 0 0.5rem 0.5rem;
    width: 100%;
    min-width: 0;
  }

  .nav-links .dropdown-link {
    padding: 0.45rem 0;
    font-size: 0.9rem;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.05);
  }

  body:not(.light-theme) .nav-links .dropdown-link {
    border-bottom-color: rgba(255, 255, 255, 0.05);
  }

  .mobile-nav-search {
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: 0.5rem;
    position: relative;
  }

  .mobile-search-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    padding: 0.65rem 2.5rem 0.65rem 0.85rem;
    font-size: 0.88rem;
    color: #0f172a;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s ease, background-color 0.2s ease;
  }

  body:not(.light-theme) .mobile-search-input {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    color: #f8fafc;
  }

  .mobile-search-input:focus {
    border-color: var(--maroon-bright, #e11d48);
    background: #ffffff;
  }

  body:not(.light-theme) .mobile-search-input:focus {
    background: rgba(255, 255, 255, 0.1);
  }

  .mobile-search-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--maroon-base, #6b0b1a);
    padding: 0.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
  }

  body:not(.light-theme) .mobile-search-btn {
    color: #94a3b8;
  }

  .mobile-search-btn:hover {
    color: var(--maroon-bright, #e11d48);
  }
}

/* --------------------------------------------------------------------------
   7. Shared Layout Containers, Section Headers & Core Buttons
   -------------------------------------------------------------------------- */
.section, 
.page-content {
  max-width: 1100px;
  margin: 5rem auto;
  padding: 0 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

.section-header, 
.page-header {
  margin-bottom: 2.5rem;
}

.section-tag {
  color: var(--maroon-bright);
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.section-header h2, 
.page-header h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-top: 0.3rem;
  color: var(--text-main);
}

.section-subtext {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.95rem;
  margin-top: 0.35rem;
}

.btn {
  padding: 0.8rem 1.6rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--maroon-bright), var(--maroon-deep));
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(158, 16, 39, 0.35);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(225, 29, 72, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

body.light-theme .btn-secondary {
  background: rgba(0, 0, 0, 0.04);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  display: inline-block;
}

/* Grid & Content Constraints */
.grid,
.cards-grid,
.tier-grid,
#objectivesBanner {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.card,
.council-card,
.objective-card {
  max-width: 100%;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* --------------------------------------------------------------------------
   8. Shared Admin Controls & Floating Dock
   -------------------------------------------------------------------------- */
.admin-only {
  display: none !important;
}

body.is-admin .admin-only {
  display: flex !important;
}

.admin-dock {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(15, 18, 26, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.35rem 0.65rem;
  border-radius: 9999px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  z-index: 1050;
  white-space: nowrap;
}

.admin-dock-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 0.2rem;
}

.admin-dock-user {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-accent, #eab308);
  cursor: default;
}

.admin-dock-btn {
  position: relative;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
  border-radius: 50%;
  color: #f8fafc;
  font-size: 1.15rem;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.admin-dock-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-dock-logout:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
}

.dock-btn-dirty {
  background: rgba(234, 179, 8, 0.25) !important;
  border-color: rgba(234, 179, 8, 0.6) !important;
  color: var(--gold-accent, #eab308) !important;
  animation: dockDirtyPulse 2s infinite ease-in-out;
}

.dock-btn-dirty:hover {
  background: rgba(234, 179, 8, 0.4) !important;
}

.dock-dirty-counter {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

@keyframes dockDirtyPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.4);
  }
  50% {
    box-shadow: 0 0 10px 3px rgba(234, 179, 8, 0.3);
  }
}

/* Floating Tooltip Bubble & Pointer */
.admin-dock-btn[data-tooltip]::after,
.admin-dock-user[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 11px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #0b0e14;
  color: var(--gold-accent, #eab308);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--gold-accent, #eab308);
  box-shadow: 0 4px 20px rgba(128, 0, 0, 0.45);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1100;
}

.admin-dock-btn[data-tooltip]::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  border-width: 5px 5px 0 5px;
  border-style: solid;
  border-color: var(--gold-accent, #eab308) transparent transparent transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1100;
}

.admin-dock-btn:hover::after,
.admin-dock-btn:hover::before,
.admin-dock-user:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   Universal 4-Corner Card Admin Controls
   ========================================================================== */

/* Outer Card Container Pre-requisite */
.council-card,
.obj-card,
.timeline-card,
.tenure-card,
.tenure-mini-card,
.treatment-card,
.tier1-card,
.tier2-card,
.tier3-card,
.merch-card,
.pillar-card {
  position: relative !important;
}

/* Base Corner Button */
.card-corner-btn {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 25;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Light Theme Styling */
body.light-theme .card-corner-btn {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: var(--text-main, #1e293b);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Dark Theme Styling */
body:not(.light-theme) .card-corner-btn {
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f8fafc;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.card-corner-btn:hover {
  transform: scale(1.1);
}

/* 1. Top-Left: Remove / Delete */
.corner-top-left {
  top: 10px;
  left: 10px;
  color: #dc2626 !important;
}
.corner-top-left:hover {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
  color: #ffffff !important;
}

/* 2. Top-Right: Edit / Save */
.card-corner-btn.corner-top-right,
.corner-top-right {
  top: 10px;
  right: 10px;
  display: flex !important;
  color: var(--gold-accent, #b45309) !important;
}
.corner-top-right:hover {
  background: var(--maroon-bright, #800000) !important;
  border-color: var(--maroon-bright, #800000) !important;
  color: #ffffff !important;
}
.corner-top-right.is-saving-state,
.is-editing .corner-top-right,
.is-editing .card-corner-btn.corner-top-right {
  display: flex !important;
  background: #16a34a !important;
  border-color: #16a34a !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(22, 163, 74, 0.45) !important;
}
.corner-top-right.is-saving-state:hover,
.is-editing .corner-top-right:hover,
.is-editing .card-corner-btn.corner-top-right:hover {
  background: #15803d !important;
  border-color: #15803d !important;
  color: #ffffff !important;
}

/* 3. Bottom-Right: Visibility Eye */
.corner-bottom-right {
  bottom: 10px;
  right: 10px;
  color: #64748b !important;
}
.corner-bottom-right:hover {
  background: #0284c7 !important;
  border-color: #0284c7 !important;
  color: #ffffff !important;
}
.corner-bottom-right.is-card-hidden,
.is-hidden-card .corner-bottom-right {
  background: #f59e0b !important;
  border-color: #f59e0b !important;
  color: #ffffff !important;
}

/* 4. Bottom-Left: Undo / Discard */
.corner-bottom-left {
  bottom: 10px;
  left: 10px;
  color: #2563eb !important;
  display: none; /* Only visible when card is editing or dirty */
}
.corner-bottom-left:hover {
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
}
.is-editing .corner-bottom-left,
.is-dirty .corner-bottom-left {
  display: flex !important;
}

/* 5. Loading State & Spinning Hourglass */
.card-corner-btn.is-loading {
  pointer-events: none !important;
  opacity: 0.85 !important;
}
.card-corner-btn.is-loading svg {
  animation: spinHourglass 1.4s infinite cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

@keyframes spinHourglass {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(180deg); }
  100% { transform: rotate(360deg); }
}

/* Hidden Card Watermark */
.card-hidden-watermark {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(245, 158, 11, 0.9);
  color: #090a0d;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  z-index: 24;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.is-hidden-card {
  position: relative !important;
  opacity: 0.88 !important;
  border: 1.5px dashed #f59e0b !important;
}

.is-hidden-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-color: rgba(15, 23, 42, 0.45);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(245, 158, 11, 0.16) 0,
    rgba(245, 158, 11, 0.16) 12px,
    transparent 12px,
    transparent 24px
  );
  background-size: 34px 34px;
  animation: diagonalStripesScroll 2.5s linear infinite;
  pointer-events: none;
  z-index: 22;
}

@keyframes diagonalStripesScroll {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: -34px -34px;
  }
}

/* Absolute Admin Exclusion for Public Users */
body:not(.is-admin) .admin-only,
body:not(.is-admin) .card-corner-btn,
body:not(.is-admin) .card-ctrl-btn,
body:not(.is-admin) .card-delete-btn,
body:not(.is-admin) .treatment-admin-actions,
body:not(.is-admin) .sponsor-admin-actions,
body:not(.is-admin) .merch-admin-actions,
body:not(.is-admin) .admin-dock,
body:not(.is-admin) [data-admin-only] {
  display: none !important;
}

/* --------------------------------------------------------------------------
   8.5. Universal Administrative Toast Notifications
   -------------------------------------------------------------------------- */
.faculty-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 99999;
  pointer-events: none;
  max-width: 90vw;
}

.faculty-toast {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-card, rgba(0, 0, 0, 0.12));
  color: var(--text-main, #1e293b);
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  pointer-events: auto;
  animation: toastSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-left: 4px solid var(--gold-accent, #b45309);
  min-width: 260px;
  max-width: 400px;
}

body:not(.light-theme) .faculty-toast {
  background: #111827;
  border-color: rgba(255, 255, 255, 0.15);
  color: #f8fafc;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.faculty-toast.toast-positive {
  border-left-color: #16a34a !important;
}
.faculty-toast.toast-warning {
  border-left-color: #f59e0b !important;
}
.faculty-toast.toast-critical {
  border-left-color: #dc2626 !important;
}
.faculty-toast.toast-info {
  border-left-color: #0284c7 !important;
}

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

@media (max-width: 640px) {
  .faculty-toast-container {
    bottom: 16px;
    right: 16px;
    left: 16px;
  }
  .faculty-toast {
    min-width: unset;
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   9. Footer & Global Legal Attribution
   -------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2.8rem 1.5rem;
  margin-top: 6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 1.5rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--maroon-bright);
}

/* --------------------------------------------------------------------------
   10. Native In-Site Anonymous Feedback Modal & Floating Trigger
   -------------------------------------------------------------------------- */
body.faculty-body .floating-feedback-pill,
.faculty-layout ~ .floating-feedback-pill {
  display: none !important;
}

.floating-feedback-pill {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 990;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem;
  background: rgba(66, 6, 15, 0.92);
  color: #ffffff;
  border: 1px solid var(--gold-accent, #d49a37);
  border-radius: 9999px;
  box-shadow: 0 8px 24px rgba(66, 6, 15, 0.4), 0 0 16px rgba(212, 154, 55, 0.2);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
  user-select: none;
}

body.light-theme .floating-feedback-pill {
  background: rgba(255, 255, 255, 0.95);
  color: var(--maroon-base, #6b0b1a);
  border: 1px solid rgba(158, 16, 39, 0.35);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12), 0 0 12px rgba(158, 16, 39, 0.15);
}

.floating-feedback-pill:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 32px rgba(66, 6, 15, 0.55), 0 0 24px rgba(212, 154, 55, 0.35);
}

.floating-feedback-pill:active {
  transform: translateY(0) scale(0.98);
}

.feedback-pill-icon {
  font-size: 1.1rem;
}

/* Modal Overlay */
.feedback-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 10, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.feedback-modal-overlay.is-active,
.feedback-modal-overlay.active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.feedback-modal-card {
  background: #0d1017;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg, 16px);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7), 0 0 32px rgba(158, 16, 39, 0.2);
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.feedback-modal-overlay.is-active .feedback-modal-card,
.feedback-modal-overlay.active .feedback-modal-card {
  transform: scale(1);
}

body.light-theme .feedback-modal-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18), 0 0 24px rgba(158, 16, 39, 0.1);
}

.feedback-modal-header {
  padding: 1.4rem 1.6rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(66, 6, 15, 0.35) 0%, transparent 100%);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

body.light-theme .feedback-modal-header {
  background: linear-gradient(180deg, rgba(158, 16, 39, 0.08) 0%, transparent 100%);
}

.feedback-modal-title-wrap h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feedback-modal-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.btn-feedback-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.btn-feedback-close:hover {
  color: var(--maroon-bright);
  background: rgba(255, 255, 255, 0.06);
}

/* Modal Form Body */
.feedback-modal-body {
  padding: 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.feedback-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.feedback-field-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.feedback-field-hint {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
}

.feedback-input,
.feedback-textarea {
  width: 100%;
  padding: 0.75rem 0.95rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md, 10px);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s ease;
}

body.light-theme .feedback-input,
body.light-theme .feedback-textarea {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.12);
  color: #0f172a;
}

.feedback-input:focus,
.feedback-textarea:focus {
  border-color: var(--maroon-bright);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.15);
}

body.light-theme .feedback-input:focus,
body.light-theme .feedback-textarea:focus {
  background: #ffffff;
  border-color: var(--maroon-base);
  box-shadow: 0 0 0 3px rgba(107, 11, 26, 0.12);
}

.feedback-textarea {
  resize: vertical;
  min-height: 105px;
  line-height: 1.5;
}

/* Dynamic Question Card in Public Modal */
.survey-card-question {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md, 10px);
  transition: all 0.2s ease;
}

body.light-theme .survey-card-question {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
}

.survey-card-question.has-error {
  border-color: #e11d48 !important;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.18) !important;
}

.req-star {
  color: #e11d48;
  font-weight: 700;
  margin-left: 4px;
}

.field-error-msg {
  color: #e11d48;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 4px;
}

.survey-radio-group,
.survey-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.2rem;
}

.survey-radio-label,
.survey-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-main);
  cursor: pointer;
  padding: 0.45rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  transition: all 0.15s ease;
}

body.light-theme .survey-radio-label,
body.light-theme .survey-checkbox-label {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.08);
  color: #0f172a;
}

.survey-radio-label:hover,
.survey-checkbox-label:hover {
  border-color: var(--gold-accent);
  background: rgba(212, 154, 55, 0.06);
}

.survey-radio-label input,
.survey-checkbox-label input {
  accent-color: var(--maroon-base, #8b0000);
  cursor: pointer;
}

/* Interactive 1–5 Star Rating */
.star-rating-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.25rem;
}

.star-btn {
  background: transparent;
  border: none;
  font-size: 2.3rem;
  line-height: 1;
  color: #475569; /* Slate-600 in dark mode for a clearly visible star silhouette */
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.15s ease, filter 0.15s ease;
  padding: 0.1rem 0.2rem;
  border-radius: 8px;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.star-btn:focus {
  outline: none;
}

.star-btn:focus-visible {
  outline: 2px solid #f59e0b;
  outline-offset: 2px;
}

/* Light Theme Inactive Star — Crisp, unmistakable slate-300 outline/body */
body.light-theme .star-btn {
  color: #cbd5e1;
}

/* Hover & Active States (Vibrant Golden Amber) — Explicitly scoped for both light & dark themes to defeat body specificity */
.star-btn.is-active,
.star-btn.is-hover,
body.light-theme .star-btn.is-active,
body.light-theme .star-btn.is-hover {
  color: #f59e0b !important;
  filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.55));
}

.star-btn:hover {
  transform: scale(1.22);
}

.star-btn:active {
  transform: scale(0.92);
}

.star-label-desc {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-accent, #d49a37);
  margin-left: 0.5rem;
}

body.light-theme .star-label-desc {
  color: #b45309;
}

.btn-clear-star {
  background: transparent;
  border: none;
  color: var(--text-muted, #94a3b8);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-decoration: underline;
  transition: color 0.15s ease;
}

.btn-clear-star:hover {
  color: #ef4444;
}

/* Privacy Assurance Pill */
.privacy-assurance-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-md, 10px);
  color: #10b981;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.35;
}

body.light-theme .privacy-assurance-pill {
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.3);
  color: #047857;
}

/* Cooldown Notice Banner */
.feedback-cooldown-banner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-md, 10px);
  color: #fbbf24;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.4;
}

body.light-theme .feedback-cooldown-banner {
  background: #fffbeb;
  border-color: #fde68a;
  color: #b45309;
}

/* Character Counter */
.feedback-char-count {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: right;
  margin-top: 0.25rem;
  font-variant-numeric: tabular-nums;
}

/* Modal Footer */
.feedback-modal-footer {
  padding: 1.1rem 1.6rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.2);
}

body.light-theme .feedback-modal-footer {
  background: #f8fafc;
}

.btn-feedback-cancel {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-md, 10px);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-feedback-cancel:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.btn-feedback-submit {
  background: linear-gradient(135deg, var(--maroon-base, #6b0b1a) 0%, var(--maroon-bright, #e11d48) 100%);
  color: #ffffff;
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-md, 10px);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(158, 16, 39, 0.3);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-feedback-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(158, 16, 39, 0.45);
}

.btn-feedback-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Global Toast Notification */
.global-feedback-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #0b0f17;
  border: 1px solid #10b981;
  color: #ffffff;
  padding: 0.8rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), 0 0 20px rgba(16, 185, 129, 0.25);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 2500;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

body.light-theme .global-feedback-toast {
  background: #ffffff;
  color: #0f172a;
  border-color: #059669;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.15), 0 0 16px rgba(16, 185, 129, 0.2);
}

.global-feedback-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.global-feedback-toast.toast-warning {
  border-color: #f59e0b;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), 0 0 20px rgba(245, 158, 11, 0.25);
}

/* ==========================================================================
   Universal SVG Icon Sprite System (`images/icons.svg`)
   ========================================================================== */
.icon {
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
  stroke: currentColor;
}

/* Sizing Modifiers */
.icon-xs { width: 13px; height: 13px; }
.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 20px; height: 20px; }
.icon-lg { width: 24px; height: 24px; }
.icon-xl { width: 48px; height: 48px; }

/* Color Helpers */
.text-muted {
  color: var(--text-muted, #94a3b8);
}
.text-crimson {
  color: var(--maroon-bright, #e11d48);
}
.text-gold {
  color: var(--gold-accent, #d49a37);
}
.text-teal {
  color: var(--segi-teal, #0284c7);
}
.text-success {
  color: #10b981;
}
.text-warning {
  color: #f59e0b;
}
.text-critical {
  color: #ef4444;
}