/* ============================================================
   MEENAKSHI MATRIMONY — SHARED COMPONENTS
   Header, Footer, Mobile Drawer, FAB, Kolam mark,
   Profile cards, badges, and premium micro-animations.
   ============================================================ */

/* --- Site header (Glassmorphic Sticky Header Across All Portals) --- */
.site-header,
.app-header,
.top-bar,
.app-topbar {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  background: var(--glass-bg, rgba(255, 255, 255, 0.95));
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--glass-border, rgba(212, 175, 55, 0.25));
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: box-shadow var(--duration-base, 0.3s) ease,
              background var(--duration-base, 0.3s) ease;
  will-change: transform; /* Prevents sticky glitching on iOS Safari */
}
/* Site header fixed height so content doesn't jump */
.site-header {
  height: 64px;
  display: flex;
  align-items: center;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 8px 32px rgba(128,0,32,0.12), 0 2px 8px rgba(0,0,0,0.06);
}
[data-theme="dark"] .site-header.scrolled {
  background: rgba(26, 10, 15, 0.98) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
}
.site-header-accent {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-gold);
  opacity: 0.85;
}
/* Mobile header height */
@media (max-width: 480px) {
  .site-header { height: 56px; }
}


/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-md);
  text-decoration: none;
}
.site-logo-img {
  height: 42px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  vertical-align: middle;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.08));
}
.brand .brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(128,0,32,0.3);
}
.brand .brand-word { color: var(--color-primary); }
.brand .brand-word em { color: var(--color-secondary); font-style: normal; }

/* Desktop nav */
.main-nav { display: flex; gap: var(--space-2); align-items: center; }
.main-nav a {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-text-light-muted);
  padding: 7px 12px;
  border-radius: var(--radius-base);
  transition: all var(--duration-fast) var(--ease-standard);
  position: relative;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 50%; right: 50%;
  height: 2px;
  background: var(--gradient-gold);
  border-radius: 2px;
  transition: left var(--duration-base) var(--ease-standard),
              right var(--duration-base) var(--ease-standard);
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after {
  left: 12px; right: 12px;
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
  color: var(--color-primary);
  background: rgba(128, 0, 32, 0.06);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}
.header-actions .btn {
  padding: 0.45rem 1.1rem;
  min-height: 38px;
  font-size: 0.85rem;
  line-height: 1.2;
  box-sizing: border-box;
}
.icon-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-border-light);
  background: var(--color-surface-light);
  cursor: pointer;
  font-size: var(--fs-sm); font-weight: 700;
  color: var(--color-text-light);
  transition: all var(--duration-fast) var(--ease-standard);
}
.icon-toggle:hover {
  border-color: var(--color-secondary);
  background: var(--color-bg-light);
  transform: scale(1.05);
  box-shadow: var(--shadow-glow-gold);
}

/* Language Pill Switch */
.app-lang-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-secondary);
  background: rgba(212, 175, 55, 0.08);
  color: var(--color-primary);
  font-weight: 800;
  font-size: var(--fs-xs);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-standard);
}
.app-lang-pill:hover {
  background: var(--gradient-gold);
  color: #1a0a0f;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.35);
}
.app-lang-pill .lang-ta { font-family: var(--font-tamil); font-weight: 700; font-size: 13px; }
.app-lang-pill .lang-divider { opacity: 0.5; font-size: 11px; }
.app-lang-pill .lang-en { font-family: var(--font-latin); font-weight: 800; letter-spacing: 0.04em; }

/* ================================================================
   USER APP HEADER (App Shell Header) & HEADER SLOT
   ================================================================ */
#header-slot {
  display: block;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
  margin: 0;
  padding: 0;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-shell > main.container {
  flex: 1;
  width: 100%;
  padding-top: var(--space-3);
  padding-bottom: calc(var(--space-6) + 70px);
}

.app-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  background: var(--glass-bg, rgba(255, 255, 255, 0.96));
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--glass-border, rgba(212, 175, 55, 0.25));
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  width: 100%;
}

.app-header-inner {
  height: 58px;
  padding-inline: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
}

.app-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.app-menu-btn {
  background: rgba(139, 30, 63, 0.06);
  border: 1px solid rgba(139, 30, 63, 0.15);
  border-radius: 8px;
  color: var(--color-primary, #8B1E3F);
  font-size: 18px;
  cursor: pointer;
  padding: 5px 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.2s ease;
}
.app-menu-btn:hover {
  background: var(--color-primary, #8B1E3F);
  color: #fff;
}

.app-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-light);
  background: var(--color-surface-light);
  color: var(--color-primary);
  cursor: pointer;
  padding: 0;
  transition: all var(--duration-fast);
}
.app-back-btn:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.app-brand-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.app-brand-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.app-brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--color-primary, #8B1E3F);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.app-brand-name em {
  color: #D4AF37;
  font-style: normal;
}

.app-header-title-wrap {
  flex: 1;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 4px;
}

.app-header-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--color-text-light);
  letter-spacing: -0.01em;
}

.app-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.app-header-accent {
  height: 2px;
  background: var(--gradient-gold, linear-gradient(90deg, #D4AF37, #F0C860));
  width: 100%;
}

@media (max-width: 600px) {
  .app-brand-name { display: none; }
  .app-header-inner { height: 54px; padding-inline: 12px; }
  .app-header-title { font-size: 13px; }
}


/* Hamburger Button */
.hamburger {
  display: none;
  background: transparent;
  border: 1.5px solid var(--color-border-light);
  border-radius: var(--radius-base);
  cursor: pointer;
  padding: 8px 10px;
  transition: border-color var(--duration-fast);
}
.hamburger:hover { border-color: var(--color-primary); }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text-light);
  margin: 5px 0;
  transition: all var(--duration-fast);
  border-radius: 2px;
}

/* --- Mobile Navigation Drawer & Overlay --- */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-base) var(--ease-standard), visibility var(--duration-base);
}
.mobile-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(85vw, 340px);
  z-index: 160;
  background: var(--color-surface-light);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--duration-base) var(--ease-standard);
}
.mobile-drawer.open { transform: translateX(0); }

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border-light);
  background: var(--color-bg-light);
}

.drawer-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border-light);
  background: var(--color-surface-light);
  color: var(--color-primary);
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--duration-fast);
}
.drawer-close-btn:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  transform: rotate(90deg);
}

.drawer-nav {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.drawer-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-base);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-text-light);
  text-decoration: none;
  background: var(--color-bg-light);
  transition: all var(--duration-fast);
}
.drawer-nav a:hover, .drawer-nav a[aria-current="page"] {
  background: rgba(128, 0, 32, 0.08);
  color: var(--color-primary);
  transform: translateX(4px);
}

.drawer-footer {
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--color-border-light);
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--color-bg-light);
}

@media (max-width: 900px) {
  .desktop-only { display: none !important; }
  .hamburger { display: block; }
}

/* --- Hero Kolam Signature (SVG line reveal) --- */
.kolam-signature path {
  fill: none;
  stroke: var(--color-secondary);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: kolam-draw 2.8s var(--ease-standard) forwards;
}
.kolam-signature .dot { fill: var(--color-primary); opacity: 0; animation: kolam-dot-in 0.4s ease forwards; }
.kolam-signature path:nth-child(2) { animation-delay: 0.18s; }
.kolam-signature path:nth-child(3) { animation-delay: 0.36s; }
@keyframes kolam-draw { to { stroke-dashoffset: 0; } }
@keyframes kolam-dot-in { to { opacity: 1; } }

/* --- Profile Teaser Cards --- */
.profile-teaser-card {
  background: var(--color-surface-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-card);
  transition: transform var(--duration-base) var(--ease-bounce),
              box-shadow var(--duration-base) var(--ease-standard);
  position: relative;
}
.profile-teaser-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-card-hover);
}
.profile-teaser-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-standard);
}
.profile-teaser-card:hover img { transform: scale(1.04); }
.profile-teaser-body { padding: var(--space-4); }
.profile-role-tag {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.profile-role-tag.bride {
  background: linear-gradient(135deg, #e91e8c, #c2185b);
  color: #fff;
}
.profile-role-tag.groom {
  background: linear-gradient(135deg, #1565c0, #0d47a1);
  color: #fff;
}

/* --- Floating Action Button (FAB) --- */
.fab {
  position: fixed;
  right: var(--space-5);
  bottom: 150px !important;
  z-index: 999;
  display: inline-flex;

  align-items: center;
  gap: var(--space-2);
  background: var(--gradient-primary);
  color: #fff;
  padding: 0.9em 1.6em;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 28px rgba(128,0,32,0.45);
  font-weight: 700;
  font-size: var(--fs-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.04em;
  overflow: hidden;
  animation: fab-bounce-in 0.7s var(--ease-bounce) both;
}
.fab::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255,255,255,0.12);
  transform: scale(2.5);
  opacity: 0;
  animation: fab-pulse 2.5s ease-in-out infinite;
}
.fab::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: fab-shine 3s ease-in-out infinite;
}
.fab:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 14px 36px rgba(128,0,32,0.55);
}
@keyframes fab-bounce-in {
  0% { opacity: 0; transform: scale(0.5) translateY(40px); }
  60% { opacity: 1; transform: scale(1.1) translateY(-4px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes fab-pulse {
  0%, 100% { transform: scale(1); opacity: 0; }
  50% { transform: scale(2.8); opacity: 0.08; }
}
@keyframes fab-shine {
  0% { left: -100%; }
  50%, 100% { left: 160%; }
}

/* --- Badges --- */
.badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #d4edda, #c3e6cb);
  color: #155724;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* --- Contact Details Blur Overlay --- */
.contact-blur-box {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-base);
  border: 1px dashed var(--color-border-light);
  padding: var(--space-4);
}
.contact-blur-content { filter: blur(6px); user-select: none; pointer-events: none; }
.contact-unlock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  text-align: center;
  z-index: 5;
}

/* --- Site Footer --- */
.site-footer {
  background: var(--color-bg-dark);
  color: var(--color-text-dark-muted);
  padding-block: var(--space-8) var(--space-6);
}
.site-footer a { color: var(--color-text-dark); text-decoration: none; transition: color var(--duration-fast); }
.site-footer a:hover { color: var(--color-secondary); }
.site-footer h4 { color: #fff; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: var(--space-4); }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: var(--space-6); }
.footer-bottom {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border-dark);
  font-size: var(--fs-xs);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-5); }
}
@media (max-width: 480px), (max-width: 375px) {
  .footer-grid { grid-template-columns: 1fr !important; gap: var(--space-5); text-align: left; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .fab { right: 12px; padding: 0.8em 1.3em; font-size: 0.82rem; }
}

/* --- Scroll header shadow --- */
@media (prefers-reduced-motion: no-preference) {
  .fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--duration-slow) var(--ease-standard),
                transform var(--duration-slow) var(--ease-standard);
  }
  .fade-up.visible { opacity: 1; transform: none; }
}

/* ============================================================
   REDESIGNED HEADER ACTIONS & ACCESSIBILITY CONTRAST FIXES
   ============================================================ */
.app-header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.app-lang-pill-v2 {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--gradient-gold);
  color: #1A1416;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  font-size: var(--fs-xs);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.25);
  transition: all var(--duration-fast) var(--ease-standard);
  user-select: none;
}
.app-lang-pill-v2:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}
.app-lang-pill-v2 .lang-divider {
  opacity: 0.5;
  font-weight: 400;
}
.app-lang-pill-v2 .lang-option {
  transition: opacity var(--duration-fast);
}

[data-lang="ta"] .app-lang-pill-v2 .lang-ta { font-weight: 900; opacity: 1; }
[data-lang="ta"] .app-lang-pill-v2 .lang-en { opacity: 0.6; font-weight: 500; }
[data-lang="en"] .app-lang-pill-v2 .lang-en { font-weight: 900; opacity: 1; }
[data-lang="en"] .app-lang-pill-v2 .lang-ta { opacity: 0.6; font-weight: 500; }

.app-theme-btn-v2, .app-notif-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-surface-light);
  color: var(--color-text-light);
  border: 1px solid var(--color-border-light);
  cursor: pointer;
  position: relative;
  transition: all var(--duration-fast) var(--ease-standard);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.app-theme-btn-v2:hover, .app-notif-btn:hover {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  transform: translateY(-1px);
}
.app-theme-btn-v2 .icon-sun, .app-theme-btn-v2 .icon-moon {
  transition: transform var(--duration-base);
}
[data-theme="dark"] .app-theme-btn-v2 .icon-sun { display: block; }
[data-theme="dark"] .app-theme-btn-v2 .icon-moon { display: none; }
[data-theme="light"] .app-theme-btn-v2 .icon-sun { display: none; }
[data-theme="light"] .app-theme-btn-v2 .icon-moon { display: block; }

.notif-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: var(--color-error);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--color-surface-light);
}

/* Form inputs & select text contrast accessibility fixes */
select, input, textarea {
  color: var(--color-text-light) !important;
  background-color: var(--color-surface-light) !important;
  border-color: var(--color-border-light) !important;
}
select option {
  color: #241B1E !important;
  background-color: #FFFFFF !important;
}
[data-theme="dark"] select option {
  color: #F2ECE3 !important;
  background-color: #2B2124 !important;
}
.card {
  color: var(--color-text-light);
  background: var(--color-surface-light);
}

/* ─── Table Responsive & Scroll Container Utilities ─── */
.table-responsive,
.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
  border-radius: var(--radius-lg);
}
.table-responsive > table,
.table-wrap > table,
.table-responsive .data-table,
.table-wrap .data-table,
.table-responsive .audit-table,
.table-wrap .audit-table {
  width: 100%;
  min-width: 580px;
  border-collapse: collapse;
}
@media (max-width: 480px) {
  .table-responsive > table,
  .table-wrap > table,
  .table-responsive .data-table,
  .table-wrap .data-table,
  .table-responsive .audit-table,
  .table-wrap .audit-table {
    min-width: 500px;
  }
}

/* ─── Profile Badges & Subscription Package Icons ─────────── */
.badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, rgba(39, 174, 96, 0.15), rgba(46, 204, 113, 0.25));
  color: #1e824c;
  border: 1px solid rgba(39, 174, 96, 0.4);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(39, 174, 96, 0.15);
  white-space: nowrap;
}
[data-theme="dark"] .badge-verified {
  background: rgba(39, 174, 96, 0.25);
  color: #2ecc71;
  border-color: rgba(46, 204, 113, 0.5);
}

.pkg-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 12px;
  white-space: nowrap;
  letter-spacing: 0.2px;
}
.pkg-badge-platinum {
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.2), rgba(155, 89, 182, 0.3));
  color: #8e44ad;
  border: 1px solid rgba(155, 89, 182, 0.45);
}
[data-theme="dark"] .pkg-badge-platinum {
  background: rgba(155, 89, 182, 0.35);
  color: #d6a2e8;
  border-color: rgba(155, 89, 182, 0.6);
}

.pkg-badge-gold {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(240, 200, 96, 0.3));
  color: #b78700;
  border: 1px solid rgba(212, 175, 55, 0.5);
}
[data-theme="dark"] .pkg-badge-gold {
  background: rgba(212, 175, 55, 0.3);
  color: #f0c860;
  border-color: rgba(240, 200, 96, 0.6);
}

.pkg-badge-silver {
  background: linear-gradient(135deg, rgba(149, 165, 166, 0.2), rgba(189, 195, 199, 0.3));
  color: #5d6d7e;
  border: 1px solid rgba(149, 165, 166, 0.45);
}
[data-theme="dark"] .pkg-badge-silver {
  background: rgba(149, 165, 166, 0.3);
  color: #bdc3c7;
  border-color: rgba(189, 195, 199, 0.5);
}

.pkg-badge-basic {
  background: rgba(0, 0, 0, 0.05);
  color: var(--color-text-light-muted, #7f8c8d);
  border: 1px solid var(--color-border-light, #e2e8f0);
}
[data-theme="dark"] .pkg-badge-basic {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 255, 255, 0.15);
}

/* ============================================================
   APP SHELL & APP SIDEBAR STYLES (TEAM HEAD & CONSOLES)
   ============================================================ */
.app-shell {
  display: flex;
  min-height: 100vh;
  background: var(--color-bg, #f8fafc);
}

.app-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: #070B14;
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 20px 16px;
  border-right: 1px solid rgba(30, 95, 90, 0.2);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 300;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-sidebar .brand-mark {
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.app-sidebar .glyph {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1E5F5A, #8B1E3F);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(30, 95, 90, 0.4);
}

.app-sidebar .name {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.2;
}

.app-sidebar .role-tag {
  font-size: 10px;
  font-weight: 600;
  color: #5DF5E8;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 2px;
}

.app-sidebar .nav-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.app-sidebar .nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.app-sidebar .nav-link:hover {
  background: rgba(30, 95, 90, 0.22);
  color: #5DF5E8;
  transform: translateX(2px);
}

.app-sidebar .nav-link.active {
  background: linear-gradient(135deg, rgba(30, 95, 90, 0.45), rgba(13, 58, 55, 0.6));
  color: #fff;
  font-weight: 600;
  border: 1px solid rgba(45, 155, 148, 0.4);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.app-sidebar .nav-link .icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.app-sidebar .sidebar-footer {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  padding-top: 14px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-scrim {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 290;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.app-main {
  flex: 1;
  min-width: 0;
  padding: 24px;
  background: var(--color-bg, #f8fafc);
}

/* Mobile responsive drawer behavior for app-sidebar */
@media (max-width: 768px) {
  .app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    transform: translateX(-100%);
    z-index: 300;
  }
  .app-sidebar.open {
    transform: translateX(0);
  }
  .sidebar-scrim.open {
    display: block;
    opacity: 1;
  }
}

