/* ============================================================
   Phat Nappy Connect — Enterprise Community Portal Design System
   Theme: Luxury Obsidian & Polished Gold with Regal Purple Accents
   ============================================================ */

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

:root {
  /* Metallic Gold Palette */
  --gold: #C9A84C;
  --gold-light: #E8C96A;
  --gold-bright: #FFDF78;
  --gold-dim: #8A6E2F;
  --gold-dark: #634C18;
  --gold-gradient: linear-gradient(135deg, #FFDF78 0%, #C9A84C 50%, #8A6E2F 100%);
  --gold-gradient-soft: linear-gradient(135deg, rgba(201, 168, 76, 0.25) 0%, rgba(201, 168, 76, 0.05) 100%);
  --gold-glow: rgba(201, 168, 76, 0.28);
  --gold-border: rgba(201, 168, 76, 0.35);

  /* Regal Purple Heritage Palette */
  --purple-deep: #160728;
  --purple-dark: #2e1065;
  --purple-royal: #581c87;
  --purple-vivid: #7c3aed;
  --purple-light: #a855f7;
  --purple-glow: rgba(124, 58, 237, 0.35);
  --purple-gradient: linear-gradient(135deg, #a855f7 0%, #7c3aed 50%, #4c1d95 100%);
  --purple-badge-bg: rgba(124, 58, 237, 0.15);
  --purple-border: rgba(168, 85, 247, 0.35);

  /* Obsidian & Surface Palette */
  --black: #08080C;
  --black-card: rgba(15, 14, 23, 0.88);
  --black-raised: rgba(24, 22, 38, 0.95);
  --black-border: rgba(255, 255, 255, 0.08);
  --white: #FBF9F5;
  --white-dim: rgba(251, 249, 245, 0.65);
  --white-faint: rgba(251, 249, 245, 0.12);

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', sans-serif;

  /* Geometry & Shadows */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-xl: 36px;
  --radius-full: 9999px;

  --shadow-gold: 0 0 35px rgba(201, 168, 76, 0.18), 0 8px 32px rgba(0, 0, 0, 0.6);
  --shadow-purple: 0 0 40px rgba(124, 58, 237, 0.22), 0 10px 40px rgba(0, 0, 0, 0.7);
  --shadow-card: 0 12px 40px rgba(0, 0, 0, 0.55), 0 1px 0 rgba(201, 168, 76, 0.12) inset;
  --shadow-modal: 0 24px 80px rgba(0, 0, 0, 0.85), 0 0 50px rgba(124, 58, 237, 0.25);

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --black: #F4F1EA;
  --black-card: rgba(255, 255, 255, 0.92);
  --black-raised: rgba(245, 242, 235, 0.98);
  --black-border: rgba(0, 0, 0, 0.08);
  --white: #121218;
  --white-dim: rgba(18, 18, 24, 0.7);
  --white-faint: rgba(18, 18, 24, 0.08);
  --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.08);
}

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

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

body {
  background-color: var(--black);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul {
  list-style: none;
}

/* ── Ambient Radial Glow Mesh ── */
.bg-mesh {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: 
    radial-gradient(circle at 50% 12%, rgba(201, 168, 76, 0.15) 0%, transparent 55%),
    radial-gradient(circle at 85% 35%, rgba(124, 58, 237, 0.14) 0%, transparent 50%),
    radial-gradient(circle at 15% 65%, rgba(168, 85, 247, 0.10) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(201, 168, 76, 0.10) 0%, transparent 50%);
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* ── Nationwide Sub-Banner ── */
.nationwide-banner {
  background: linear-gradient(90deg, #160728 0%, #2e1065 25%, #581c87 50%, #2e1065 75%, #160728 100%);
  border-bottom: 1px solid var(--gold-border);
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 100;
}

.nationwide-banner .star {
  color: var(--gold-bright);
  font-size: 0.95rem;
  animation: starPulse 2.5s infinite ease-in-out;
}

@keyframes starPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; filter: drop-shadow(0 0 6px var(--gold-bright)); }
}

/* ── Top Navigation Bar ── */
header {
  position: sticky;
  top: 0;
  z-index: 90;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(8, 8, 12, 0.85);
  border-bottom: 1px solid rgba(201, 168, 76, 0.18);
  transition: var(--transition);
}

[data-theme="light"] header {
  background: rgba(244, 241, 234, 0.88);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

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

.nav-brand img {
  height: 48px;
  width: auto;
  filter: drop-shadow(0 2px 10px rgba(201, 168, 76, 0.3));
  transition: transform 0.3s ease;
}

.nav-brand:hover img {
  transform: scale(1.05);
}

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

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff 30%, var(--gold-light) 75%, var(--purple-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.01em;
}

.brand-subtitle {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold-light);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white-dim);
  transition: color 0.25s ease;
  position: relative;
  padding: 0.4rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--white);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gold-gradient);
  transition: width 0.25s ease;
  border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--black-border);
  color: var(--gold-light);
  border-radius: var(--radius-full);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  background: rgba(201, 168, 76, 0.15);
  border-color: var(--gold-border);
  transform: rotate(20deg);
}

.btn-nav-portal {
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.15) 0%, rgba(124, 58, 237, 0.25) 100%);
  border: 1px solid var(--gold-border);
  color: var(--white);
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-nav-portal:hover {
  background: var(--gold-gradient);
  color: var(--black);
  border-color: var(--gold-bright);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.4);
  transform: translateY(-1px);
}

/* ── Hero & Orbital Brand Stage ── */
.hero-stage {
  padding: 3.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.brand-hero {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-logo-container {
  position: relative;
  width: 250px;
  height: 250px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.brand-logo-glow {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.4) 0%, rgba(124, 58, 237, 0.25) 45%, transparent 70%);
  animation: pulseGlow 4s ease-in-out infinite alternate;
}

.hero__logo-ring-1 {
  position: absolute;
  width: 215px;
  height: 215px;
  border-radius: 50%;
  border: 1.5px solid rgba(201, 168, 76, 0.45);
  animation: spinSlow 24s linear infinite;
}

.hero__logo-ring-1::before {
  content: '';
  position: absolute;
  width: 9px;
  height: 9px;
  background: var(--gold-bright);
  border-radius: 50%;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 16px rgba(201, 168, 76, 1);
}

.hero__logo-ring-2 {
  position: absolute;
  width: 248px;
  height: 248px;
  border-radius: 50%;
  border: 1.5px dashed rgba(168, 85, 247, 0.4);
  animation: spinSlow 36s linear infinite reverse;
}

.hero__logo-ring-2::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--purple-light);
  border-radius: 50%;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 16px rgba(168, 85, 247, 1);
}

.brand-logo-img {
  position: relative;
  z-index: 3;
  width: 175px;
  height: 175px;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.8));
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.brand-logo-container:hover .brand-logo-img {
  transform: scale(1.06);
}

.hero-main-title {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 0.35rem;
  background: linear-gradient(135deg, #ffffff 25%, var(--gold-light) 75%, var(--purple-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-tagline-trio {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.hero-tagline-trio span {
  color: var(--white-dim);
}

.hero-tagline-trio span.gold {
  color: var(--gold-bright);
  font-weight: 700;
  text-shadow: 0 0 15px rgba(201, 168, 76, 0.4);
}

.hero-tagline-trio span.purple {
  color: var(--purple-light);
  font-weight: 700;
  text-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}

.hero-description {
  max-width: 680px;
  margin: 0 auto 2.25rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--white-dim);
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulseGlow {
  0% { transform: scale(0.92); opacity: 0.45; }
  100% { transform: scale(1.15); opacity: 0.85; }
}

/* ── Action Portal Gateway (Dual Action Cards) ── */
.portal-gateway-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto 4rem;
  width: 100%;
}

.action-card {
  background: var(--black-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.action-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold-gradient);
}

.action-card.card-purple::before {
  background: var(--purple-gradient);
}

.action-card:hover {
  border-color: rgba(201, 168, 76, 0.6);
  box-shadow: var(--shadow-gold);
  transform: translateY(-3px);
}

.action-card.card-purple:hover {
  border-color: rgba(168, 85, 247, 0.6);
  box-shadow: var(--shadow-purple);
}

.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.card-title {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
}

.card-tag-badge {
  font-size: 0.725rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(201, 168, 76, 0.15);
  border: 1px solid var(--gold-border);
  color: var(--gold-light);
}

.card-tag-badge.purple-badge {
  background: var(--purple-badge-bg);
  border-color: var(--purple-border);
  color: var(--purple-light);
}

.card-subtext {
  font-size: 0.825rem;
  color: var(--white-dim);
  margin-bottom: 1.25rem;
}

/* Demo Switcher Pills */
.demo-switcher {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.demo-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-full);
  padding: 0.25rem 0.65rem;
  font-size: 0.7rem;
  color: var(--white-dim);
  cursor: pointer;
  transition: var(--transition);
}

.demo-pill:hover, .demo-pill.active {
  background: var(--purple-royal);
  border-color: var(--purple-light);
  color: var(--white);
}

/* Forms & Inputs */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  margin-bottom: 0.4rem;
}

.form-input {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(10, 10, 15, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.2);
}

.btn-gold-solid {
  width: 100%;
  padding: 0.85rem 1.25rem;
  background: var(--gold-gradient);
  color: #08080C;
  font-weight: 800;
  font-size: 0.925rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition);
  box-shadow: 0 4px 18px rgba(201, 168, 76, 0.3);
}

.btn-gold-solid:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(201, 168, 76, 0.45);
}

.btn-purple-outline {
  width: 100%;
  padding: 0.85rem 1.25rem;
  background: rgba(124, 58, 237, 0.1);
  color: var(--purple-light);
  font-weight: 700;
  font-size: 0.925rem;
  border: 1px solid var(--purple-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.btn-purple-outline:hover {
  background: var(--purple-royal);
  color: var(--white);
  border-color: var(--purple-light);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

.card-footer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--white-dim);
}

.card-footer-actions a {
  color: var(--gold-light);
  transition: color 0.2s ease;
  font-weight: 600;
}

.card-footer-actions a:hover {
  color: var(--white);
  text-decoration: underline;
}

.status-msg {
  margin-top: 0.75rem;
  font-size: 0.825rem;
  text-align: center;
  min-height: 1.2rem;
  font-weight: 600;
}

.status-msg.success { color: #4ade80; }
.status-msg.error { color: #f87171; }

/* ── 3D Interactive Digital Business Card Showcase ── */
.digital-pass-section {
  padding: 3rem 0;
  text-align: center;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--purple-light);
  background: var(--purple-badge-bg);
  border: 1px solid var(--purple-border);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--white-dim);
  max-width: 600px;
  margin: 0 auto 2.25rem;
}

.card-flip-stage {
  perspective: 1200px;
  width: 100%;
  max-width: 480px;
  height: 270px;
  margin: 0 auto 1.5rem;
  cursor: pointer;
}

.card-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.card-flip-stage.flipped .card-flip-inner {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  background: linear-gradient(145deg, rgba(26, 12, 44, 0.95), rgba(10, 10, 15, 0.98));
  border: 1.5px solid var(--gold-border);
  box-shadow: var(--shadow-purple), inset 0 1px 0 rgba(201, 168, 76, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  overflow: hidden;
}

.card-face::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.25) 0%, transparent 60%);
  pointer-events: none;
}

.card-face-back {
  transform: rotateY(180deg);
  background: linear-gradient(145deg, rgba(15, 14, 25, 0.98), rgba(30, 10, 50, 0.95));
}

.card-face-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
}

.card-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(201, 168, 76, 0.15);
  border: 1px solid var(--gold-border);
  color: var(--gold-bright);
  font-size: 0.725rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.card-network-logo {
  height: 28px;
  width: auto;
}

.card-face-body {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  position: relative;
  z-index: 2;
}

.card-avatar-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-royal), var(--gold-dark));
  border: 2px solid var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}

.card-identity h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.15rem;
}

.card-identity p {
  font-size: 0.85rem;
  color: var(--gold-light);
  font-weight: 600;
}

.card-location-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: var(--white-dim);
  margin-top: 0.25rem;
}

.card-face-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.75rem;
}

.card-mic-token {
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--gold-dim);
  letter-spacing: 0.08em;
}

.card-flip-prompt {
  font-size: 0.75rem;
  color: var(--purple-light);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.card-controls {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.btn-card-ctrl {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--black-border);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-card-ctrl:hover {
  background: rgba(201, 168, 76, 0.2);
  border-color: var(--gold-border);
  color: var(--gold-bright);
}

/* ── Live Directory Explorer ── */
.directory-explorer-section {
  padding: 4rem 0;
  position: relative;
  z-index: 1;
}

.search-filter-bar {
  background: var(--black-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-card);
}

.search-input-wrapper {
  position: relative;
  margin-bottom: 1.25rem;
}

.search-input-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  color: var(--gold-light);
}

.search-main-input {
  width: 100%;
  padding: 0.9rem 1.1rem 0.9rem 2.8rem;
  background: rgba(10, 10, 15, 0.8);
  border: 1.5px solid var(--gold-border);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.search-main-input:focus {
  border-color: var(--purple-light);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.25);
}

.category-pills-row {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  scrollbar-width: thin;
}

.cat-pill-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--black-border);
  color: var(--white-dim);
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.cat-pill-btn:hover {
  background: rgba(201, 168, 76, 0.15);
  color: var(--gold-light);
  border-color: var(--gold-border);
}

.cat-pill-btn.active {
  background: var(--purple-gradient);
  color: #fff;
  border-color: var(--purple-light);
  box-shadow: 0 2px 12px rgba(124, 58, 237, 0.4);
}

/* Directory Grid */
.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.biz-card {
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.biz-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--purple-vivid));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.biz-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.biz-card:hover::before {
  opacity: 1;
}

.biz-card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.biz-card-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid var(--purple-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.biz-card-meta h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.15rem;
}

.biz-card-type {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--purple-light);
}

.biz-card-details {
  font-size: 0.825rem;
  color: var(--white-dim);
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.biz-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.85rem;
}

.biz-rating-stars {
  color: var(--gold-bright);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

.btn-biz-view {
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid var(--gold-border);
  color: var(--gold-light);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.775rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-biz-view:hover {
  background: var(--gold-gradient);
  color: var(--black);
  border-color: var(--gold-bright);
}

/* ── Four Pillars of Economic Empowerment ── */
.pillars-section {
  padding: 4rem 0;
  background: linear-gradient(180deg, transparent 0%, rgba(22, 7, 40, 0.5) 50%, transparent 100%);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.pillar-card {
  background: var(--black-card);
  border: 1px solid var(--purple-border);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.pillar-card:hover {
  border-color: var(--gold-border);
  box-shadow: var(--shadow-purple);
  transform: translateY(-5px);
}

.pillar-icon-box {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.pillar-icon-box img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(201, 168, 76, 0.4));
  transition: transform 0.3s ease;
}

.pillar-card:hover .pillar-icon-box img {
  transform: scale(1.1);
}

.pillar-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

.pillar-desc {
  font-size: 0.875rem;
  color: var(--white-dim);
  line-height: 1.6;
}

/* ── Our Mission Banner & Solidarity Fist ── */
.mission-showcase-section {
  padding: 3rem 0;
}

.mission-box {
  background: linear-gradient(135deg, rgba(30, 10, 60, 0.95), rgba(10, 10, 18, 0.98));
  border: 2px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  box-shadow: var(--shadow-gold);
  position: relative;
  overflow: hidden;
}

.mission-emblem-wrapper {
  flex-shrink: 0;
}

.mission-emblem-img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(201, 168, 76, 0.5));
}

.mission-content h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold-bright);
  margin-bottom: 0.6rem;
}

.mission-content p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--white);
  margin-bottom: 1.25rem;
}

/* ── Live Community Impact Metrics ── */
.metrics-section {
  padding: 3rem 0;
}

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

.metric-card {
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
}

.metric-card:hover {
  border-color: var(--purple-border);
  transform: translateY(-2px);
}

.metric-value {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.metric-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white-dim);
}

/* ── Extracted Assets Catalog Hub ── */
.assets-gallery-section {
  padding: 4rem 0;
}

.assets-filter-bar {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.assets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.asset-card {
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.asset-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.asset-preview {
  height: 150px;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  position: relative;
  cursor: pointer;
}

.asset-preview img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.asset-card:hover .asset-preview img {
  transform: scale(1.08);
}

.asset-badge-type {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid var(--black-border);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  color: var(--gold-light);
}

.asset-info {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.asset-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.asset-desc {
  font-size: 0.75rem;
  color: var(--white-dim);
  margin-bottom: 0.85rem;
}

.asset-actions {
  display: flex;
  gap: 0.4rem;
}

.btn-asset-action {
  flex: 1;
  padding: 0.35rem 0;
  font-size: 0.725rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--black-border);
  color: var(--white);
  transition: var(--transition);
}

.btn-asset-action:hover {
  background: var(--purple-royal);
  border-color: var(--purple-light);
}

/* ── Modals & Dialogs ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-window {
  background: var(--black-raised);
  border: 1.5px solid var(--gold-border);
  border-radius: var(--radius-lg);
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  box-shadow: var(--shadow-modal);
  position: relative;
  transform: scale(0.95) translateY(20px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.open .modal-window {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--black-border);
  color: var(--white);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: #ef4444;
  border-color: #ef4444;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast-item {
  background: rgba(15, 14, 25, 0.95);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-gold);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  pointer-events: auto;
  animation: slideInToast 0.3s ease-out;
}

@keyframes slideInToast {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ── Footer ── */
footer.portal-footer {
  border-top: 1px solid var(--black-border);
  background: rgba(8, 8, 12, 0.95);
  padding: 3rem 0 2rem;
  position: relative;
  z-index: 1;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--white-dim);
}

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

.footer-copy {
  font-size: 0.8rem;
  color: var(--white-dim);
}

/* ── Responsive Adaptations ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero-main-title { font-size: 2.4rem; }
  .brand-logo-container { width: 200px; height: 200px; }
  .hero__logo-ring-1 { width: 175px; height: 175px; }
  .hero__logo-ring-2 { width: 200px; height: 200px; }
  .brand-logo-img { width: 140px; height: 140px; }
  .mission-box { flex-direction: column; text-align: center; }
  .card-flip-stage { height: 290px; }
}
