/* ==========================================================================
   No A.I. Army - Space and Sunlight Stellar Theme
   Shared Stylesheet for all PHP pages
   ========================================================================== */

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

:root {
  /* Color Palette */
  --bg-deep: #060913;
  --bg-navy: #0a0e1a;
  --bg-purple: #1a1040;
  --bg-card: rgba(16, 22, 48, 0.65);
  --bg-card-hover: rgba(24, 32, 66, 0.85);
  --bg-glass-input: rgba(10, 14, 26, 0.75);
  
  /* Stellar Gold Accents */
  --gold-primary: #efc07b;
  --gold-hover: #f7d59c;
  --gold-dark: #d49539;
  --gold-glow: rgba(239, 192, 123, 0.35);
  --gold-subtle: rgba(239, 192, 123, 0.15);
  
  /* Cosmic Highlights */
  --cyan-accent: #4fd1c5;
  --cyan-glow: rgba(79, 209, 197, 0.3);
  --purple-glow: rgba(121, 103, 232, 0.3);
  
  /* Text Colors */
  --text-main: #f0f4fc;
  --text-sub: #cbd5e1;
  --text-muted: #8493a8;
  
  /* Borders */
  --border-glass: rgba(239, 192, 123, 0.18);
  --border-glass-hover: rgba(239, 192, 123, 0.45);
  
  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Layout */
  --max-width: 1240px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-deep);
  color: var(--text-main);
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(ellipse at 15% 10%, rgba(26, 16, 64, 0.85) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 30%, rgba(14, 25, 55, 0.75) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 80%, rgba(20, 15, 45, 0.8) 0%, transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Starfield Effect */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background-image: 
    radial-gradient(1px 1px at 20px 30px, #fff, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 80px 120px, rgba(239, 192, 123, 0.9), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 150px 220px, #fff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 240px 80px, rgba(239, 192, 123, 0.8), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 310px 190px, #fff, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 420px 300px, rgba(121, 103, 232, 0.8), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 530px 40px, #fff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 670px 250px, rgba(239, 192, 123, 0.9), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 780px 110px, #fff, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 890px 360px, rgba(79, 209, 197, 0.8), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 980px 170px, #fff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 1100px 290px, rgba(239, 192, 123, 0.85), rgba(0,0,0,0));
  background-repeat: repeat;
  background-size: 1200px 400px;
  opacity: 0.65;
  animation: starTwinkle 8s infinite alternate ease-in-out;
}

@keyframes starTwinkle {
  0% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 0.75; transform: scale(1.01); }
  100% { opacity: 0.55; transform: scale(0.99); }
}

/* Content Container */
.site-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 9, 19, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  padding: 1rem 0;
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-deep);
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: 0 0 15px var(--gold-glow);
}

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

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 40%, var(--gold-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-primary);
  font-weight: 600;
  opacity: 0.9;
}

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

.nav-link {
  color: var(--text-sub);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-primary);
  background: rgba(239, 192, 123, 0.08);
}

.btn-cta {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  color: var(--bg-deep) !important;
  font-weight: 700;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: 0 0 15px var(--gold-glow);
  transition: var(--transition);
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-cta:hover {
  background: linear-gradient(135deg, var(--gold-hover), var(--gold-primary));
  box-shadow: 0 0 25px rgba(239, 192, 123, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(239, 192, 123, 0.1);
  color: var(--gold-primary);
  border: 1px solid var(--border-glass);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-secondary:hover {
  background: rgba(239, 192, 123, 0.2);
  border-color: var(--gold-primary);
  color: #fff;
}

/* Glass Cards */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: var(--transition);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glass-hover);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 20px var(--gold-subtle);
}

/* Hero Section */
.hero-section {
  padding: 4.5rem 0 3.5rem;
  text-align: center;
  position: relative;
}

.hero-tagline-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(239, 192, 123, 0.12);
  border: 1px solid rgba(239, 192, 123, 0.3);
  color: var(--gold-primary);
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 15px var(--gold-subtle);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.8rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff 30%, #f0d5a8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-sub);
  max-width: 680px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* Search Bar Component */
.search-container {
  max-width: 640px;
  margin: 0 auto 3rem;
  position: relative;
  z-index: 50;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-glass-input);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 50px;
  padding: 0.4rem 0.5rem 0.4rem 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  transition: var(--transition);
}

.search-box:focus-within {
  border-color: var(--gold-primary);
  box-shadow: 0 0 25px var(--gold-glow), 0 8px 32px rgba(0, 0, 0, 0.6);
}

.search-icon {
  color: var(--gold-primary);
  font-size: 1.2rem;
  margin-right: 0.75rem;
  display: flex;
  align-items: center;
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 1.05rem;
  font-family: var(--font-body);
  padding: 0.6rem 0;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-btn {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  color: var(--bg-deep);
  border: none;
  border-radius: 50px;
  padding: 0.7rem 1.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}

.search-btn:hover {
  background: linear-gradient(135deg, var(--gold-hover), var(--gold-primary));
  box-shadow: 0 0 15px var(--gold-glow);
}

/* Live Search Dropdown */
.search-results-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: rgba(10, 14, 28, 0.95);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--border-glass-hover);
  border-radius: var(--radius-md);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 20px var(--gold-subtle);
  max-height: 420px;
  overflow-y: auto;
  display: none;
  z-index: 1000;
}

.search-results-dropdown.active {
  display: block;
  animation: fadeInDown 0.2s ease-out;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  text-decoration: none;
  color: var(--text-main);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: rgba(239, 192, 123, 0.12);
  padding-left: 1.5rem;
}

.search-result-info {
  flex: 1;
}

.search-result-name {
  font-weight: 600;
  color: #fff;
  font-size: 0.98rem;
}

.search-result-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Stats Section */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.stat-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, rgba(20, 26, 56, 0.7), rgba(12, 16, 36, 0.7));
}

.stat-icon {
  font-size: 2rem;
  color: var(--gold-primary);
  margin-bottom: 0.5rem;
  display: inline-block;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 0.3rem;
  background: linear-gradient(180deg, #ffffff, var(--gold-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  color: var(--text-sub);
  font-size: 0.95rem;
  font-weight: 500;
}

/* Browse by Letter Grid */
.section-header {
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 1rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.letters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
  gap: 0.75rem;
  margin-bottom: 4rem;
}

.letter-card {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}

.letter-card:hover, .letter-card.active {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  color: var(--bg-deep);
  border-color: var(--gold-primary);
  box-shadow: 0 0 15px var(--gold-glow);
  transform: translateY(-3px);
}

/* Developer Card Grid */
.dev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.dev-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dev-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dev-avatar-img {
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-primary);
  box-shadow: 0 0 10px var(--gold-subtle);
}

.dev-initial-avatar {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  border: 2px solid var(--gold-primary);
  box-shadow: 0 0 10px var(--gold-subtle);
  flex-shrink: 0;
}

.dev-card-info {
  flex: 1;
  overflow: hidden;
}

.dev-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  transition: var(--transition);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dev-name:hover {
  color: var(--gold-primary);
}

.dev-badge-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.3rem;
  flex-wrap: wrap;
}

.game-count-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  background: rgba(79, 209, 197, 0.15);
  border: 1px solid rgba(79, 209, 197, 0.3);
  color: var(--cyan-accent);
  border-radius: 20px;
}

.github-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  background: rgba(239, 192, 123, 0.15);
  border: 1px solid var(--border-glass);
  color: var(--gold-primary);
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.dev-games-preview {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.game-tag {
  font-size: 0.75rem;
  color: var(--text-sub);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.link-arrow {
  font-size: 0.85rem;
  color: var(--gold-primary);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: var(--transition);
}

.dev-card:hover .link-arrow {
  gap: 0.6rem;
}

/* Pagination Component */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.page-link:hover, .page-link.active {
  background: var(--gold-primary);
  color: var(--bg-deep);
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px var(--gold-glow);
}

.page-link.disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* Profile Page Layout */
.profile-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  margin: 2rem 0 4rem;
}

.profile-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.profile-avatar-box {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.profile-avatar-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 1.25rem;
}

.profile-avatar-wrap::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px dashed var(--gold-primary);
  animation: rotateRing 20s linear infinite;
}

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

.social-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.social-btn:hover {
  background: rgba(239, 192, 123, 0.15);
  border-color: var(--gold-primary);
  color: var(--gold-hover);
}

.social-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.claim-cta-box {
  background: linear-gradient(135deg, rgba(239, 192, 123, 0.15), rgba(26, 16, 64, 0.6));
  border: 1px solid var(--gold-primary);
  text-align: center;
}

.claim-cta-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--gold-primary);
  margin-bottom: 0.5rem;
}

.claim-cta-desc {
  font-size: 0.85rem;
  color: var(--text-sub);
  margin-bottom: 1.25rem;
}

.profile-main-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.profile-header-card {
  padding: 2.5rem;
}

.profile-title-h1 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: rgba(79, 209, 197, 0.12);
  border: 1px solid rgba(79, 209, 197, 0.3);
  color: var(--cyan-accent);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.profile-bio-text {
  font-size: 1.1rem;
  color: var(--text-sub);
  line-height: 1.8;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.game-item-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
}

.game-item-card:hover {
  background: rgba(239, 192, 123, 0.1);
  border-color: var(--gold-primary);
  transform: translateY(-2px);
}

.game-icon {
  font-size: 1.5rem;
  color: var(--gold-primary);
  background: rgba(239, 192, 123, 0.1);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.game-title {
  font-weight: 600;
  font-size: 0.98rem;
  color: #fff;
  word-break: break-word;
}

/* Forms (Contact & Claim) */
.form-container {
  max-width: 680px;
  margin: 3rem auto 5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  background: var(--bg-glass-input);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 15px var(--gold-glow);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

.form-control[readonly] {
  opacity: 0.7;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.05);
}

/* Alert Boxes */
.alert {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.alert-success {
  background: rgba(79, 209, 197, 0.15);
  border: 1px solid rgba(79, 209, 197, 0.4);
  color: #a7f3d0;
}

.alert-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: rgba(4, 6, 14, 0.95);
  border-top: 1px solid var(--border-glass);
  padding: 4rem 0 2rem;
  position: relative;
  z-index: 10;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col-brand .brand-title {
  margin-bottom: 0.75rem;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 340px;
  line-height: 1.6;
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-link {
  color: var(--text-sub);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--gold-primary);
  padding-left: 0.3rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Mobile Responsive */
@media (max-width: 992px) {
  .hero-title { font-size: 2.8rem; }
  .stats-grid { grid-template-columns: 1fr; gap: 1rem; }
  .profile-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .hero-title { font-size: 2.2rem; }
  .header-inner { flex-direction: column; align-items: flex-start; }
  .nav-links { width: 100%; overflow-x: auto; padding-bottom: 0.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .search-box { padding-left: 1rem; }
}

/* ===== Footer/Legal Page Compatibility Classes ===== */
.navbar { position: sticky; top: 0; z-index: 100; background: rgba(6,9,19,0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--border-glass); padding: 0 24px; }
.nav-inner { max-width: var(--max-width); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; height: 64px; }
.nav-logo { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700; color: var(--gold-primary); text-decoration: none; letter-spacing: 0.02em; }
.nav-logo:hover { color: var(--gold-hover); }

.form-card { max-width: 600px; margin: 40px auto; background: var(--bg-card); border: 1px solid var(--border-glass); border-radius: var(--radius-md); padding: 40px; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; color: var(--text-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.form-group input, .form-group textarea { width: 100%; padding: 12px 16px; background: var(--bg-glass-input, rgba(10,14,26,0.6)); border: 1px solid var(--border-glass); border-radius: 8px; color: var(--text-main); font-family: 'Inter', sans-serif; font-size: 0.95rem; transition: border-color 0.3s; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--gold-primary); }
.form-group textarea { min-height: 120px; resize: vertical; }

.btn-submit { display: block; width: 100%; padding: 14px; background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark)); color: #060913; border: none; border-radius: var(--radius-md); font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; cursor: pointer; transition: transform 0.3s; }
.btn-submit:hover { transform: scale(1.02); }

.btn-claim { display: block; width: 100%; padding: 14px; background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark)); color: #060913; border: none; border-radius: var(--radius-md); font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; cursor: pointer; text-decoration: none; text-align: center; transition: transform 0.3s; }
.btn-claim:hover { transform: scale(1.02); }

.alert { padding: 14px 20px; border-radius: 8px; margin-bottom: 20px; font-size: 0.9rem; }
.alert-success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); color: #4ade80; }
.alert-error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #f87171; }

.footer { border-top: 1px solid var(--border-glass); padding: 60px 24px 24px; color: var(--text-muted); font-size: 0.85rem; }
.footer a { color: var(--gold-dark); text-decoration: none; }
.footer a:hover { color: var(--gold-hover); }

.letter-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 60px; }
.letter-grid a { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: var(--bg-card); border: 1px solid var(--border-glass); border-radius: 8px; color: var(--gold-primary); text-decoration: none; font-weight: 600; font-size: 1rem; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); transition: all 0.3s; }
.letter-grid a:hover { background: rgba(239,192,123,0.15); border-color: var(--gold-primary); transform: translateY(-2px); }

.subtitle { text-align: center; color: var(--text-muted); margin-bottom: 32px; font-size: 0.95rem; }
.section { padding: 40px 0; }

.search-bar { width: 100%; padding: 16px 24px; background: var(--bg-card); border: 1px solid var(--border-glass); border-radius: 50px; color: var(--text-main); font-size: 1rem; font-family: 'Inter', sans-serif; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); transition: border-color 0.3s, box-shadow 0.3s; }
.search-bar:focus { outline: none; border-color: var(--gold-primary); box-shadow: 0 0 0 3px rgba(239,192,123,0.1); }
.search-bar::placeholder { color: var(--text-muted); }
.search-wrap { max-width: 560px; margin: 0 auto 40px; position: relative; }
.search-results { position: absolute; top: 100%; left: 0; right: 0; margin-top: 8px; background: rgba(15,15,30,0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--border-glass); border-radius: var(--radius-md); max-height: 400px; overflow-y: auto; display: none; }
.search-results a { display: flex; justify-content: space-between; padding: 12px 20px; color: var(--text-main); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.05); transition: background 0.2s; }
.search-results a:hover { background: rgba(239,192,123,0.1); }

.stats { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; margin-bottom: 60px; }
.stat { text-align: center; }
.stat .num { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 700; color: var(--gold-primary); }
.stat .label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 8px 14px; background: var(--bg-card); border: 1px solid var(--border-glass); border-radius: 8px; color: var(--text-main); text-decoration: none; font-size: 0.9rem; transition: all 0.3s; }
.pagination a:hover, .pagination .current { background: rgba(239,192,123,0.15); border-color: var(--gold-primary); color: var(--gold-primary); }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .stats { gap: 24px; }
  .letter-grid a { width: 38px; height: 38px; font-size: 0.9rem; }
  .form-card { padding: 24px; }
}
