/* ══════════════════════════════════════════════════════════════════════════════
   CustomFunForge — Master Stylesheet (Mobile-Optimized)
   Theme: Professional Electric Blue & Deep Purple
   Features: Floating Generator Boxes with Rounded Corners & Ambient Illumination
   ══════════════════════════════════════════════════════════════════════════════ */

*, *::before, *::after { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
  -webkit-tap-highlight-color: transparent;
}

:root {
  /* Dark Blue/Slate Base */
  --bg-dark:         #090b14;
  --bg-panel:        #101322;
  --bg-card:         #15192c;
  --bg-card-hover:   #1b213a;
  --border-subtle:   #222842;
  
  /* Blue & Purple Palette */
  --blue-core:       #3b82f6;
  --blue-light:      #60a5fa;
  --blue-glow:       rgba(59, 130, 246, 0.28);
  
  --purple-core:     #8b5cf6;
  --purple-light:    #a78bfa;
  --purple-accent:   #7c6af7;
  --purple-glow:     rgba(139, 92, 246, 0.32);
  
  --border-card:       rgba(124, 106, 247, 0.22);
  --border-card-hover: rgba(139, 92, 246, 0.7);
  
  --grad-primary:    linear-gradient(135deg, #3b82f6 0%, #7c6af7 55%, #a855f7 100%);
  --grad-card:       linear-gradient(180deg, #161b31 0%, #111425 100%);
  --grad-card-hover: linear-gradient(180deg, #1c223d 0%, #14182d 100%);
  --grad-glow:       radial-gradient(ellipse 70% 40% at 50% -10%, rgba(124, 106, 247, 0.16), transparent 75%);
  
  --text-main:       #f3f4f6;
  --text-muted:      #9ca3af;
  --text-dim:        #6b7280;
  
  --radius-xl:       22px;
  --radius-lg:       18px;
  --radius-md:       12px;
  --radius-sm:       8px;
  
  --font-main:       'Outfit', system-ui, -apple-system, sans-serif;
  --font-mono:       'JetBrains Mono', monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: 
    radial-gradient(ellipse 90% 50% at 50% -15%, rgba(124, 106, 247, 0.18), transparent 70%),
    radial-gradient(circle at 10% 85%, rgba(59, 130, 246, 0.08), transparent 40%),
    radial-gradient(circle at 90% 25%, rgba(168, 85, 247, 0.08), transparent 45%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* ── HEADER BAR ─────────────────────────────────────────────────────────────── */
.site-header {
  background: rgba(16, 19, 34, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  font-size: 1.6rem;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px var(--purple-glow));
}

.logo-wordmark {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.1;
}

.logo-name span {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-dim);
  font-weight: 600;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(124, 106, 247, 0.08);
  border: 1px solid rgba(124, 106, 247, 0.25);
  padding: 0.35rem 0.8rem;
  border-radius: 100px;
  font-size: 0.82rem;
  color: var(--purple-light);
  font-weight: 500;
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-dot {
  width: 7px;
  height: 7px;
  background: var(--blue-core);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--blue-core);
  flex-shrink: 0;
}

.lock-indicator {
  font-size: 0.78rem;
  color: var(--text-dim);
  background: rgba(255,255,255,0.03);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.btn-head-admin {
  background: rgba(124, 106, 247, 0.15);
  color: var(--purple-light);
  border: 1px solid rgba(124, 106, 247, 0.35);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-head-admin:hover {
  background: var(--purple-core);
  color: #fff;
  box-shadow: 0 0 15px var(--purple-glow);
}

.btn-head-logout {
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-head-logout:hover {
  color: #fff;
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.1);
}

/* ══════════════════════════════════════════════════════════════════════════════
   TITLE PAGE — SURROUND SHOWCASE (8 SPOTS AROUND CENTER BOX)
   ══════════════════════════════════════════════════════════════════════════════ */
.showcase-stage {
  flex: 1;
  max-width: 1380px;
  margin: 0 auto;
  padding: 2.25rem 1.25rem 3.5rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.showcase-intro {
  text-align: center;
  max-width: 720px;
  margin-bottom: 2rem;
}

.badge-pill {
  display: inline-block;
  background: rgba(124, 106, 247, 0.12);
  border: 1px solid rgba(124, 106, 247, 0.35);
  color: var(--purple-light);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 0.75rem;
}

.showcase-headline {
  font-size: clamp(1.85rem, 4vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.65rem;
  background: linear-gradient(135deg, #ffffff 40%, var(--purple-light) 75%, var(--blue-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.showcase-subtitle {
  color: var(--text-muted);
  font-size: clamp(0.92rem, 2vw, 1.05rem);
}

/* ── 3x3 SURROUND GRID (DESKTOP) ────────────────────────────────────────────── */
.surround-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 1.25rem;
  width: 100%;
  max-width: 1240px;
  align-items: stretch;
}

/* Spot Cards */
.spot-card {
  background: var(--grad-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  min-height: 165px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), 
              border-color 0.25s ease, 
              box-shadow 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  touch-action: manipulation;
}

.spot-card:hover, .spot-card:active {
  transform: translateY(-4px);
  border-color: var(--border-card-hover);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 28px var(--purple-glow), 0 0 45px var(--blue-glow);
}

.spot-inner {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 165px;
}

.spot-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
  background: rgba(16, 19, 34, 0.92);
  border: 1px solid rgba(139, 92, 246, 0.45);
  color: var(--purple-light);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.18rem 0.55rem;
  border-radius: 100px;
  backdrop-filter: blur(6px);
}

.spot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.45s ease;
}

.spot-card:hover .spot-img, .spot-card:active .spot-img {
  transform: scale(1.05);
}

.spot-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9, 11, 20, 0.95) 0%, rgba(9, 11, 20, 0.3) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  z-index: 5;
}

.spot-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  text-shadow: 0 2px 6px rgba(0,0,0,0.9);
}

.spot-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  color: var(--text-dim);
  padding: 1rem;
  text-align: center;
}

.placeholder-icon {
  font-size: 1.75rem;
  opacity: 0.7;
}

/* ── CENTER LOGIN / REQUEST CARD ────────────────────────────────────────────── */
.center-login-box {
  background: linear-gradient(150deg, #171b30 0%, #111425 100%);
  border: 1px solid rgba(139, 92, 246, 0.45);
  border-radius: var(--radius-xl);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 35px var(--purple-glow), 0 0 60px var(--blue-glow);
  position: relative;
  z-index: 20;
}

.box-header {
  text-align: center;
  margin-bottom: 1.35rem;
}

.box-icon {
  font-size: 2.1rem;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 14px var(--purple-glow));
  margin-bottom: 0.25rem;
}

.box-header h2 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.box-header p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Auth Tabs */
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-dark);
  border-radius: var(--radius-sm);
  padding: 4px;
  gap: 4px;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-subtle);
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.6rem 0.75rem;
  min-height: 44px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  touch-action: manipulation;
}

.tab-btn.active {
  background: var(--bg-card);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.auth-panel { display: none; }
.auth-panel.active { display: block; animation: fadeIn 0.22s ease-out; }

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

/* Forms */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.form-group input {
  background: var(--bg-dark);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #fff;
  padding: 0.75rem 0.9rem;
  font-family: inherit;
  font-size: 16px; /* 16px prevents iOS Safari auto-zoom */
  outline: none;
  min-height: 46px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
  border-color: var(--purple-core);
  box-shadow: 0 0 0 3px var(--purple-glow);
}

.btn-submit-auth {
  background: var(--grad-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 4px 18px rgba(124, 106, 247, 0.4);
  margin-top: 0.25rem;
  touch-action: manipulation;
}

.btn-submit-auth:hover, .btn-submit-auth:active {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(124, 106, 247, 0.6);
}

.btn-request {
  background: linear-gradient(135deg, #0284c7 0%, #3b82f6 100%);
  box-shadow: 0 4px 18px rgba(59, 130, 246, 0.35);
}

.btn-request:hover, .btn-request:active {
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.55);
}

.request-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 0.25rem;
}

.auth-alert {
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

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

.alert-success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #86efac;
}

.auth-footer-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 1rem;
}

.auth-footer-note a {
  color: var(--purple-light);
  text-decoration: none;
  font-weight: 600;
  padding: 0.2rem 0;
}

.auth-footer-note a:hover {
  text-decoration: underline;
}

/* ══════════════════════════════════════════════════════════════════════════════
   MEMBER HUB CATALOG — FLOATING BOXES WITH ROUNDED CORNERS (BLUE & PURPLE)
   ══════════════════════════════════════════════════════════════════════════════ */
.member-container {
  flex: 1;
  max-width: 1380px;
  margin: 0 auto;
  padding: 2.25rem 1.5rem 4rem;
  width: 100%;
}

.welcome-toast {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #ddd6fe;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 4px 18px var(--purple-glow);
}

.member-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 1.25rem;
}

.hero-left h1 {
  font-size: clamp(1.85rem, 3.5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
  background: linear-gradient(135deg, #ffffff 40%, var(--purple-light) 75%, var(--blue-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-left p {
  color: var(--text-muted);
  max-width: 640px;
  font-size: 0.98rem;
}

.stat-box {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.stat-num {
  font-size: 1.85rem;
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  line-height: 1;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-top: 0.3rem;
  display: block;
}

/* ── GENERATOR FLOATING BOXES ── */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.65rem;
}

.gen-hub-card {
  background: var(--grad-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(124, 106, 247, 0.08);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), 
              border-color 0.28s ease, 
              box-shadow 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
              background 0.28s ease;
  touch-action: manipulation;
}

/* Light up on hover & hold */
.gen-hub-card:hover, .gen-hub-card:active {
  transform: translateY(-6px);
  background: var(--grad-card-hover);
  border-color: var(--border-card-hover);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), 
              0 0 32px var(--purple-glow), 
              0 0 55px var(--blue-glow);
}

/* Top Thumbnail Container */
.card-thumb-wrap {
  aspect-ratio: 16 / 10;
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(124, 106, 247, 0.16);
}

.card-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gen-hub-card:hover .card-thumb-wrap img, .gen-hub-card:active .card-thumb-wrap img {
  transform: scale(1.05);
}

.card-thumb-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16, 19, 34, 0.75) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.gen-hub-card:hover .card-thumb-glow {
  opacity: 0.35;
}

.thumb-fallback-box {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--border-subtle);
  background: radial-gradient(circle at center, rgba(124, 106, 247, 0.08), transparent 70%);
}

.card-spot-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(16, 19, 34, 0.92);
  border: 1px solid rgba(139, 92, 246, 0.45);
  color: var(--purple-light);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.18rem 0.55rem;
  border-radius: 100px;
  backdrop-filter: blur(6px);
  z-index: 10;
}

/* Bottom Info Section */
.card-content {
  padding: 1.35rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  line-height: 1.25;
  color: #fff;
}

.card-description {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 1.25rem;
}

.card-actions {
  margin-top: auto;
}

.btn-launch-gen {
  background: var(--grad-primary);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.94rem;
  padding: 0.75rem 1rem;
  min-height: 48px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(124, 106, 247, 0.35);
  touch-action: manipulation;
}

.btn-launch-gen:hover, .btn-launch-gen:active {
  box-shadow: 0 6px 22px rgba(124, 106, 247, 0.6), 0 0 15px var(--blue-glow);
  transform: translateY(-1px);
}

/* ── STANDALONE AUTH PAGES (JOIN / LOGIN) ────────────────────────────────────── */
.auth-standalone-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}

.standalone-box {
  width: 100%;
  max-width: 440px;
}

.input-code {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  font-size: 1.15rem;
  text-align: center;
}

/* ── FOOTER ─────────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-panel);
  padding: 1.5rem 1.25rem;
  margin-top: auto;
}

.footer-inner {
  max-width: 1380px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 0.85rem;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
  padding: 0.3rem 0;
}

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

/* ══════════════════════════════════════════════════════════════════════════════
   MOBILE & RESPONSIVE BREAKPOINTS
   ══════════════════════════════════════════════════════════════════════════════ */

/* Tablets & Small Laptops (<= 1024px) */
@media (max-width: 1024px) {
  .surround-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    gap: 1rem;
  }
  .center-login-box {
    grid-column: 1 / -1;
    order: -1; /* Display login / request box on top */
    margin-bottom: 0.5rem;
  }
}

/* Mobile Screens (<= 768px) */
@media (max-width: 768px) {
  .header-inner {
    padding: 0.75rem 1rem;
  }
  
  .site-logo {
    gap: 0.5rem;
  }
  
  .logo-name {
    font-size: 1.15rem;
  }

  .showcase-stage {
    padding: 1.75rem 1rem 3rem;
  }

  .showcase-intro {
    margin-bottom: 1.5rem;
  }

  .center-login-box {
    padding: 1.65rem 1.25rem;
    border-radius: var(--radius-lg);
  }

  .surround-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }

  .spot-card {
    min-height: 135px;
    border-radius: var(--radius-md);
  }

  .spot-inner {
    min-height: 135px;
  }

  .spot-overlay {
    padding: 0.75rem;
  }

  .spot-title {
    font-size: 0.82rem;
  }

  .member-container {
    padding: 1.75rem 1rem 3rem;
  }

  .member-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.75rem;
  }

  .stat-box {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
  }

  .stat-num {
    font-size: 1.5rem;
  }

  .stat-label {
    margin-top: 0;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .gen-hub-card {
    border-radius: var(--radius-lg);
  }
}

/* Small Phones (<= 480px) */
@media (max-width: 480px) {
  .header-inner {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .header-right {
    width: 100%;
    justify-content: space-between;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }

  .user-pill {
    max-width: 140px;
  }

  .showcase-stage {
    padding: 1.25rem 0.75rem 2.5rem;
  }

  .surround-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }

  .spot-card {
    min-height: 120px;
  }

  .spot-inner {
    min-height: 120px;
  }

  .spot-badge {
    top: 6px;
    left: 6px;
    font-size: 0.68rem;
    padding: 0.12rem 0.45rem;
  }

  .spot-title {
    font-size: 0.78rem;
  }

  .center-login-box {
    padding: 1.5rem 1rem;
  }

  .box-header h2 {
    font-size: 1.25rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}
