/* ═══════════════════════════════════════════
   ToyTools — Professional Dark Studio UI
   build: 20260727-about-menu-v7
   ═══════════════════════════════════════════ */

.hidden { display: none !important; }

:root {
  --bg-base: #0B0F19;
  --bg-elevated: #111827;
  --bg-card: rgba(17, 24, 39, 0.72);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(99, 102, 241, 0.35);
  --text-primary: #F9FAFB;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;
  --accent-violet: #8B5CF6;
  --accent-indigo: #6366F1;
  --accent-blue: #3B82F6;
  --accent-cyan: #22D3EE;
  --accent-glow: rgba(99, 102, 241, 0.45);
  --gradient-primary: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #3B82F6 100%);
  --gradient-glass: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(139,92,246,0.08));
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --font-sans: 'Pretendard', 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
}

/* subtle grid instead of scanlines */
.scanlines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
}

.border-3 { border-width: 1px; }
.border-t-3 { border-top-width: 1px; }

/* ═══════════════════ ANIMATIONS ═══════════════════ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
@keyframes float-subtle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes shimmer-line {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.animate-fade-up { animation: fade-up 0.5s ease forwards; }
.animate-float-subtle { animation: float-subtle 6s ease-in-out infinite; }

.sadmin-page-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.sadmin-tag {
  display: inline-flex;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid var(--border-accent);
  color: var(--accent-indigo);
}

/* ═══════════════════ SITE HEADER ═══════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 25, 0.82);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--border-subtle);
}

.logo-mark {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-sm);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px var(--accent-glow);
}
.logo-mark svg { width: 1rem; height: 1rem; color: white; }

.logo-text {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.logo-sub {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ═══════════════════ NAVIGATION ═══════════════════ */
.desktop-main-nav {
  display: none;
  align-items: center;
  gap: 0.125rem;
  flex: 1;
  justify-content: center;
  max-width: 48rem;
  margin-left: 1rem;
  margin-right: 1rem;
}

@media (min-width: 1280px) {
  .desktop-main-nav {
    display: flex;
  }
}

.nav-pill {
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
.nav-pill:hover {
  color: var(--text-primary);
  background: var(--bg-glass);
  border-color: var(--border-subtle);
}
.nav-pill.active {
  color: var(--text-primary);
  background: rgba(99, 102, 241, 0.12);
  border-color: var(--border-accent);
}

.mobile-nav-item {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: background 0.15s, color 0.15s;
}
.mobile-nav-item:hover {
  background: var(--bg-glass);
  color: var(--text-primary);
}

.mobile-nav-panel {
  border-top: 1px solid var(--border-subtle);
  background: rgba(11, 15, 25, 0.95);
}

.admin-pill {
  color: var(--accent-cyan) !important;
  border-color: rgba(34, 211, 238, 0.25) !important;
  background: rgba(34, 211, 238, 0.08) !important;
}

/* ═══════════════════ SECTIONS ═══════════════════ */
.section {
  display: none;
  animation: fade-up 0.4s ease forwards;
  position: relative;
  z-index: 1;
}
.section.active { display: block; }

.section-surface {
  background: var(--bg-base);
}

/* ═══════════════════ HERO ═══════════════════ */
.hero-bg {
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(99, 102, 241, 0.18), transparent),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(139, 92, 246, 0.12), transparent),
    var(--bg-base);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-cyan);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.2);
}
.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  animation: glow-pulse 2s ease infinite;
}

.hero-title {
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-primary);
}
.hero-title-accent {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Glass CTA button (replaces toy-btn-3d for primary actions) */
.toy-btn-3d,
.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: white;
  background: var(--gradient-primary);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 24px rgba(99, 102, 241, 0.35), inset 0 1px 0 rgba(255,255,255,0.15);
  cursor: pointer;
  text-decoration: none;
  user-select: none;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  overflow: hidden;
}
.toy-btn-3d::before,
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent);
  pointer-events: none;
}
.toy-btn-3d:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.45), inset 0 1px 0 rgba(255,255,255,0.2);
}
.toy-btn-3d:active,
.toy-btn-3d.pressed,
.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.3);
}

.toy-btn-3d-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.8125rem;
  border-radius: var(--radius-sm);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-accent);
  background: var(--bg-glass);
}

/* ── Hero App Mockup ── */
.hero-mockup-wrap {
  perspective: 1200px;
}

.hero-visual-custom {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}
.hero-visual-img,
.hero-visual-video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.about-toys-section {
  padding-top: 0.5rem;
}

.sadmin-landing-stat-row {
  padding: 0.75rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
}

.hero-mockup {
  position: relative;
  border-radius: var(--radius-xl);
  background: rgba(17, 24, 39, 0.65);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 24px 64px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(99, 102, 241, 0.12);
  overflow: hidden;
  transform: rotateY(-4deg) rotateX(2deg);
  animation: float-subtle 8s ease-in-out infinite;
}
.hero-mockup-glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle, rgba(99,102,241,0.15), transparent 60%);
  pointer-events: none;
}

.mockup-titlebar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--border-subtle);
}
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.mockup-dot-red { background: #EF4444; }
.mockup-dot-yellow { background: #F59E0B; }
.mockup-dot-green { background: #22C55E; }
.mockup-title {
  flex: 1;
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.mockup-body {
  display: grid;
  grid-template-columns: 48px 1fr;
  min-height: 280px;
}
.mockup-sidebar {
  background: rgba(0, 0, 0, 0.25);
  border-right: 1px solid var(--border-subtle);
  padding: 0.75rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.mockup-sidebar-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
}
.mockup-sidebar-icon.active {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--border-accent);
}

.mockup-editor {
  padding: 1rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.7;
  overflow: hidden;
}
.mockup-line { display: flex; gap: 1rem; }
.mockup-ln { color: var(--text-muted); min-width: 1.5rem; text-align: right; user-select: none; }
.mockup-code { color: var(--text-secondary); }
.mockup-kw { color: #C084FC; }
.mockup-fn { color: #60A5FA; }
.mockup-str { color: #34D399; }
.mockup-cm { color: #4B5563; }

.mockup-statusbar {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 1rem;
  font-size: 0.65rem;
  color: var(--text-muted);
  background: rgba(99, 102, 241, 0.1);
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
}

/* ── Stat cards ── */
.stat-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.stat-card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.1);
}
.stat-num {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.25rem;
}
.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ═══════════════════ SECTION HEADERS ═══════════════════ */
.section-header { text-align: center; }

.section-badge {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid var(--border-accent);
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-indigo);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.section-desc {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  max-width: 32rem;
  margin: 0 auto;
  line-height: 1.6;
}

/* ═══════════════════ PRODUCT CARDS ═══════════════════ */
.toy-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  cursor: default;
  overflow: hidden;
}
.toy-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--card-accent, var(--accent-indigo));
}
.toy-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
.toy-card-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  display: block;
  opacity: 0.9;
}
.toy-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.toy-card-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.55;
}
.toy-card-tag {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.15rem 0.55rem;
  font-size: 0.65rem;
  font-weight: 600;
  border-radius: 4px;
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent-indigo);
  border: 1px solid var(--border-accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ═══════════════════ DEV LOG CARDS ═══════════════════ */
.devlog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  cursor: pointer;
}
.devlog-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-accent);
}
.devlog-card-thumb {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(17,24,39,0.8));
  border-bottom: 1px solid var(--border-subtle);
}
.devlog-card-body { padding: 1rem 1.25rem 1.25rem; }
.devlog-card-title {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.devlog-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ═══════════════════ BOARD ═══════════════════ */
.board-table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.board-table {
  border-collapse: collapse;
  font-size: 0.8125rem;
  width: 100%;
}
.board-table thead {
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-muted);
}
.board-table th {
  padding: 0.65rem 0.75rem;
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: left;
}
.board-table td {
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}
.board-table tbody tr {
  cursor: pointer;
  transition: background 0.12s;
}
.board-table tbody tr:hover { background: var(--bg-glass); }
.board-table tbody tr:last-child td { border-bottom: none; }

.board-filter, .board-tab {
  padding: 0.35rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.board-filter:hover, .board-tab:hover {
  color: var(--text-primary);
  border-color: var(--border-accent);
}
.board-filter.active, .board-tab.active {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--border-accent);
  color: var(--text-primary);
}

.cat-tag {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  font-size: 0.65rem;
  font-weight: 600;
  border-radius: 4px;
  white-space: nowrap;
}
.cat-chat { background: rgba(59, 130, 246, 0.15); color: #60A5FA; }
.cat-skin { background: rgba(139, 92, 246, 0.15); color: #A78BFA; }
.cat-bug { background: rgba(245, 158, 11, 0.15); color: #FBBF24; }
.cat-brag { background: rgba(34, 197, 94, 0.15); color: #4ADE80; }
.cat-notice { background: rgba(99, 102, 241, 0.2); color: #818CF8; }

.board-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.board-list-view.hidden,
.board-detail-view.hidden {
  display: none;
}

.board-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  color: var(--text-secondary);
}
.board-back-btn:hover { color: var(--accent-indigo); }
.board-back-btn-bottom {
  margin-top: 2rem;
  margin-bottom: 0;
}

.board-detail-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.board-post-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.board-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1rem;
}
.board-post-body {
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text-secondary);
}

.post-notice-badge {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  font-size: 0.6rem;
  font-weight: 700;
  background: rgba(99, 102, 241, 0.25);
  color: #A5B4FC;
  border-radius: 4px;
  margin-right: 0.35rem;
  text-transform: uppercase;
}

.comment-item {
  padding: 0.75rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
}
.comment-nick { font-weight: 600; color: var(--accent-violet); }
.comment-time { font-size: 0.7rem; color: var(--text-muted); }

/* ── Forms ── */
.form-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}
.form-input {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-family: inherit;
  background: rgba(0, 0, 0, 0.25);
  color: var(--text-primary);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus {
  outline: none;
  border-color: var(--accent-indigo);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* ═══════════════════ SKIN CARDS ═══════════════════ */
.skin-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  transition: border-color 0.25s, transform 0.25s;
}
.skin-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
}
.skin-card-preview {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
}
.skin-card-info { padding: 1.25rem; }
.skin-card-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}
.skin-card-gen {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.12rem 0.45rem;
  font-size: 0.6rem;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-indigo);
  border-radius: 4px;
  text-transform: uppercase;
}
.skin-card-desc {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.skin-owned-label {
  margin-top: 0.75rem;
  display: block;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #4ADE80;
}
.skin-buy-btn { margin-top: 0.75rem; width: 100%; }

.support-banner {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: none;
}
.support-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  font-weight: 500;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.15s;
}
.support-link:hover {
  color: var(--text-primary);
  border-color: var(--border-accent);
  transform: none;
  box-shadow: none;
}
.support-link-coffee {
  background: rgba(99, 102, 241, 0.1);
  border-color: var(--border-accent);
  color: var(--accent-indigo);
}

/* ═══════════════════ FOOTER ═══════════════════ */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
}
.footer-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  transition: all 0.2s;
}
.footer-icon:hover {
  color: var(--text-primary);
  border-color: var(--border-accent);
  background: var(--bg-glass);
  transform: translateY(-2px);
}
.footer-text-link {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.15s;
}
.footer-text-link:hover { color: var(--accent-indigo); }

/* ═══════════════════ MODALS ═══════════════════ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal.hidden { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
}
.modal-content {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  max-height: 85vh;
  overflow-y: auto;
  width: 100%;
  animation: fade-up 0.3s ease;
  color: var(--text-primary);
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-glass);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
}
.modal-close:hover {
  color: var(--text-primary);
  border-color: var(--border-accent);
  transform: none;
}

/* ── Board Write Modal (Large) ── */
.board-write-modal {
  width: min(92vw, 72rem);
  height: 85vh;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.75rem 1.25rem;
  overflow: hidden;
}

.board-write-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.board-write-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  gap: 1rem;
}

.board-write-meta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-shrink: 0;
}

.board-write-meta-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 768px) {
  .board-write-meta-row {
    grid-template-columns: 1fr 1fr;
  }
  .board-write-meta-row > div:last-child {
    grid-column: 1 / -1;
  }
}

.board-write-editor-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  gap: 0.625rem;
}

.board-write-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.write-toolbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.write-toolbar-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-accent);
  background: rgba(99, 102, 241, 0.1);
}

.write-toolbar-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.write-drop-zone {
  position: relative;
  flex: 1;
  min-height: 450px;
  display: flex;
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.2);
  transition: border-color 0.2s, background 0.2s;
  overflow: hidden;
}
.write-drop-zone.drag-over {
  border-color: var(--accent-indigo);
  background: rgba(99, 102, 241, 0.08);
}
.write-drop-zone.drag-over .write-drop-overlay {
  opacity: 1;
  pointer-events: none;
}

.dev-file-drop {
  position: relative;
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.dev-file-drop:hover,
.dev-file-drop.drag-over {
  border-color: var(--accent-indigo);
  background: rgba(99, 102, 241, 0.08);
}
.dev-file-drop.has-file {
  border-color: rgba(34, 197, 94, 0.5);
  background: rgba(34, 197, 94, 0.06);
}
.dev-file-drop-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  text-align: center;
}
.dev-file-drop-text {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.dev-file-name {
  font-size: 0.8125rem;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  color: #a5b4fc;
  word-break: break-all;
}

.dev-pack-type-field {
  border: none;
  margin: 0;
  padding: 0;
}
.dev-pack-type-tabs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}
@media (min-width: 480px) {
  .dev-pack-type-tabs {
    grid-template-columns: 1fr 1fr;
  }
}
.dev-pack-type-option {
  display: block;
  cursor: pointer;
}
.dev-pack-type-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.dev-pack-type-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.dev-pack-type-option input:checked + .dev-pack-type-label {
  border-color: rgba(99, 102, 241, 0.6);
  background: rgba(99, 102, 241, 0.12);
  color: #e0e7ff;
}
.dev-pack-type-label:hover {
  border-color: rgba(99, 102, 241, 0.4);
}
.dev-code-textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.5;
}
.dev-form-hint {
  margin-top: 0.375rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.dev-scan-warning {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.1);
  color: #fecaca;
  font-size: 0.8125rem;
  line-height: 1.5;
}
.dev-scan-warning strong {
  color: #fca5a5;
}
.dev-pack-badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.25);
}
.dev-pack-badge--package {
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.25);
}

.write-body-input {
  flex: 1;
  width: 100%;
  min-height: 450px;
  padding: 1rem 1.125rem;
  resize: none;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9375rem;
  line-height: 1.65;
  outline: none;
}
.write-body-input::placeholder {
  color: var(--text-muted);
}

.write-drop-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--accent-indigo);
  font-size: 0.875rem;
  font-weight: 500;
  background: rgba(11, 15, 25, 0.85);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.write-image-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.625rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  flex-shrink: 0;
  max-height: 120px;
  overflow-y: auto;
}
.write-image-preview.hidden { display: none; }

.write-preview-item {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}
.write-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.write-preview-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 0.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s;
}
.write-preview-remove:hover {
  background: #ef4444;
}

.board-write-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  padding-top: 0.25rem;
  border-top: 1px solid var(--border-subtle);
  flex-shrink: 0;
}
.board-write-action-btn {
  min-width: 6rem;
  justify-content: center;
}
.board-write-submit {
  min-width: 7.5rem;
}

.board-post-body .post-inline-img {
  display: block;
  max-width: 100%;
  margin: 1rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

/* ═══════════════════ AUTH ═══════════════════ */
.auth-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid transparent;
  font-family: inherit;
  white-space: nowrap;
}
.auth-btn-sm { padding: 0.35rem 0.7rem; font-size: 0.75rem; }
.auth-btn-primary {
  background: var(--gradient-primary);
  color: white;
  border-color: rgba(255,255,255,0.1);
}
.auth-btn-primary:hover { opacity: 0.92; }
.auth-btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-subtle);
}
.auth-btn-outline:hover {
  color: var(--text-primary);
  border-color: var(--border-accent);
  background: var(--bg-glass);
}
.auth-btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
}
.auth-btn-ghost:hover { color: var(--text-primary); }

.auth-header-group {
  display: none;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.5rem;
}

@media (min-width: 768px) {
  .auth-header-group:not(.hidden) {
    display: flex;
  }
}

.auth-cash-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid var(--border-accent);
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-indigo);
}

.auth-user-nick { color: var(--text-primary); }

.charge-option {
  padding: 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  line-height: 1.4;
}
.charge-option:hover {
  border-color: var(--border-accent);
  background: rgba(99, 102, 241, 0.08);
}
.charge-option.selected {
  border-color: var(--accent-indigo);
  background: rgba(99, 102, 241, 0.15);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
}

.cash-display {
  padding: 1rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-align: center;
}
.mypage-profile {
  padding: 1rem;
  background: var(--bg-glass);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.mypage-modal .modal-content {
  max-height: min(90vh, 820px);
  overflow-y: auto;
}

.mypage-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.mypage-header-cash {
  text-align: right;
  flex-shrink: 0;
}

.mypage-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  padding: 0.25rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.mypage-tab {
  flex: 1;
  padding: 0.55rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: calc(var(--radius-md) - 2px);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  font-family: inherit;
}

.mypage-tab:hover {
  color: var(--text-primary);
}

.mypage-tab.active {
  color: #fff;
  background: rgba(99, 102, 241, 0.25);
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.35);
}

.mypage-panel {
  /* tab panel */
}

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

.mypage-panel:not(.hidden) {
  animation: fadeIn 0.2s ease;
}

.mypage-section + .mypage-section {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.mypage-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.2);
}

.mypage-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.mypage-table th,
.mypage-table td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.mypage-table th {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
}

.mypage-table tbody tr:last-child td {
  border-bottom: none;
}

.mypage-owned-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.5rem;
}

.mypage-owned-card {
  padding: 0.75rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  font-weight: 600;
}

#auth-view-login.hidden,
#auth-view-signup.hidden {
  display: none;
}

.skin-owned-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.55rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #4ADE80;
}

.terms-content {
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--text-secondary);
  max-height: 60vh;
  overflow-y: auto;
}
.terms-content h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 1.25rem 0 0.5rem;
}
.terms-content h3:first-child { margin-top: 0; }
.terms-content ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
}

/* ═══════════════════ ADMIN ═══════════════════ */
.admin-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.admin-panel-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}
.admin-board-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.75rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  color: var(--text-secondary);
}
.admin-board-item button {
  padding: 0.2rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: #F87171;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 4px;
  cursor: pointer;
}
.admin-delete-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #F87171;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-top: 0.75rem;
}

/* ═══════════════════ SUPER ADMIN DASHBOARD ═══════════════════ */
#admin.section { padding: 0; }
#admin .sadmin-layout { min-height: calc(100vh - 4rem); }

.sadmin-layout {
  display: flex;
  background: #0f1419;
}

.sadmin-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: #111827;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  padding: 1.25rem 0.875rem;
  position: sticky;
  top: 4rem;
  height: calc(100vh - 4rem);
  overflow-y: auto;
}

.sadmin-sidebar-head {
  padding: 0.5rem 0.75rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 0.75rem;
}

.sadmin-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #A5B4FC;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

.sadmin-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #f9fafb;
  line-height: 1.3;
}

.sadmin-subtitle {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.sadmin-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}

.sadmin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.65rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #9ca3af;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.sadmin-nav-item:hover {
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.04);
}
.sadmin-nav-item.active {
  color: #e0e7ff;
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.25);
}

.sadmin-sidebar-exit {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding: 0.65rem 0.75rem;
  font-size: 0.8125rem;
  color: #6b7280;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s, border-color 0.15s;
}
.sadmin-sidebar-exit:hover {
  color: #d1d5db;
  border-color: rgba(255, 255, 255, 0.12);
}

.sadmin-main {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  max-height: calc(100vh - 4rem);
}

.sadmin-content {
  padding: 1.5rem 1.75rem 2rem;
}

.sadmin-page-head {
  margin-bottom: 1.5rem;
}
.sadmin-page-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: #f9fafb;
}
.sadmin-page-desc {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.sadmin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.875rem;
  margin-bottom: 1.5rem;
}

.sadmin-stat-card {
  background: #1a1f2e;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  padding: 1rem 1.125rem;
  transition: border-color 0.15s;
}
.sadmin-stat-card:hover { border-color: rgba(99, 102, 241, 0.3); }
.sadmin-stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #6b7280;
}
.sadmin-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f3f4f6;
  margin-top: 0.35rem;
  font-variant-numeric: tabular-nums;
}
.sadmin-stat-value.accent { color: #818cf8; }

.sadmin-card {
  background: #1a1f2e;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.sadmin-card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #f3f4f6;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sadmin-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}
.sadmin-subtab {
  padding: 0.4rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #9ca3af;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.sadmin-subtab:hover { color: #e5e7eb; }
.sadmin-subtab.active {
  color: #c7d2fe;
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.35);
}

.sadmin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  align-items: center;
}
.sadmin-search {
  flex: 1;
  min-width: 180px;
  max-width: 320px;
}

.sadmin-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
}
.sadmin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}
.sadmin-table th {
  text-align: left;
  padding: 0.65rem 0.85rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #6b7280;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}
.sadmin-table td {
  padding: 0.7rem 0.85rem;
  color: #d1d5db;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}
.sadmin-table tr:last-child td { border-bottom: none; }
.sadmin-table tr:hover td { background: rgba(255, 255, 255, 0.02); }

.sadmin-status {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  border-radius: 999px;
  white-space: nowrap;
}
.sadmin-status-pending { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.sadmin-status-approved { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.sadmin-status-rejected { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.sadmin-status-active { background: rgba(99, 102, 241, 0.15); color: #a5b4fc; }
.sadmin-status-banned { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.sadmin-status-normal { background: rgba(34, 197, 94, 0.12); color: #86efac; }

.sadmin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.sadmin-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #d1d5db;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: all 0.15s;
}
.sadmin-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}
.sadmin-btn-primary {
  color: #c7d2fe;
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.35);
}
.sadmin-btn-primary:hover { background: rgba(99, 102, 241, 0.25); }
.sadmin-btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fecaca;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.sadmin-btn-danger:hover { background: rgba(239, 68, 68, 0.28); }

.sadmin-toggle {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}
.sadmin-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.sadmin-toggle-slider {
  position: absolute;
  inset: 0;
  background: #374151;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s;
}
.sadmin-toggle-slider::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}
.sadmin-toggle input:checked + .sadmin-toggle-slider {
  background: #6366f1;
}
.sadmin-toggle input:checked + .sadmin-toggle-slider::before {
  transform: translateX(18px);
}

.sadmin-item-thumb {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.sadmin-urgent-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.sadmin-urgent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
}
.sadmin-urgent-item.urgent {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.06);
}

.sadmin-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 1024px) {
  .sadmin-layout { flex-direction: column; }
  .sadmin-sidebar {
    width: 100%;
    height: auto;
    position: relative;
    top: 0;
    max-height: none;
  }
  .sadmin-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .sadmin-nav-item { flex: 1 1 auto; min-width: 140px; }
  .sadmin-main { max-height: none; }
  .sadmin-grid-2 { grid-template-columns: 1fr; }
}

.sadmin-user-detail dt {
  font-size: 0.7rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  margin-top: 0.75rem;
}
.sadmin-user-detail dd {
  font-size: 0.875rem;
  color: #e5e7eb;
  margin-top: 0.15rem;
}

.sadmin-empty {
  text-align: center;
  padding: 2rem;
  color: #6b7280;
  font-size: 0.875rem;
}

/* ═══════════════════ TOAST ═══════════════════ */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  padding: 0.75rem 1.5rem;
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  animation: fade-up 0.3s ease;
  white-space: nowrap;
}
.toast.hidden { display: none; }

/* ═══════════════════ UTILITY OVERRIDES ═══════════════════ */
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent-indigo); }
.link-subtle {
  color: var(--accent-indigo);
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.link-subtle:hover { text-decoration: underline; }

.mobile-menu-btn {
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-glass);
  color: var(--text-secondary);
  transition: all 0.15s;
}
.mobile-menu-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-accent);
}

/* ═══════════════════ ABOUT SECTION ═══════════════════ */
.about-panel.hidden { display: none; }

.section-header-compact {
  margin-bottom: 0;
}

.section-header-compact .section-desc {
  margin-top: 0.35rem;
}

.about-vision-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .about-vision-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .about-vision-hero {
    grid-column: span 2;
  }
}

.about-vision-card {
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

.about-vision-hero {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.14), rgba(139, 92, 246, 0.08));
  border-color: var(--border-accent);
}

.about-vision-kicker {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-indigo);
  margin-bottom: 0.75rem;
}

.about-vision-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.about-vision-text {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.9375rem;
}

.about-vision-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.about-vision-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
}

.about-vision-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--accent-indigo);
  margin-bottom: 0.75rem;
}

.about-info-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .about-info-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.about-info-card {
  padding: 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  min-height: 220px;
}

.about-info-icon {
  width: 1.35rem;
  height: 1.35rem;
  color: var(--accent-cyan);
  margin-bottom: 0.85rem;
}

.about-info-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
}

.about-info-text {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.65;
}

.about-info-meta {
  margin-top: 0.85rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.about-info-link {
  display: inline-block;
  margin-top: 0.35rem;
  color: var(--accent-indigo);
  font-size: 0.875rem;
  font-weight: 500;
}

.about-info-link:hover {
  text-decoration: underline;
}

.about-info-map {
  position: relative;
  overflow: hidden;
}

.about-map-graphic {
  position: relative;
  height: 88px;
  margin-bottom: 1rem;
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(34, 211, 238, 0.08)),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 24px);
  border: 1px solid var(--border-subtle);
}

.about-map-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -60%);
  font-size: 1.5rem;
}

/* ═══════════════════ SUB TABS ═══════════════════ */
.sub-tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.25rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  width: fit-content;
  max-width: 100%;
}
.sub-tab {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  white-space: nowrap;
}
.sub-tab:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }
.sub-tab.active {
  color: var(--text-primary);
  background: rgba(99, 102, 241, 0.15);
  box-shadow: inset 0 0 0 1px var(--border-accent);
}

/* ═══════════════════ GLASS PANELS ═══════════════════ */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.panel-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ═══════════════════ MARKET CARDS ═══════════════════ */
.market-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.market-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
}
.market-card-preview {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  position: relative;
}
.market-card-body { padding: 1.25rem; }
.market-card-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-indigo);
  margin-bottom: 0.35rem;
}
.market-card-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}
.market-card-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}
.market-card-price {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-indigo);
}

/* ═══════════════════ DEVELOPER DASHBOARD ═══════════════════ */
.dash-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
}
.dash-card-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.dash-card-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

#dev-submit-btn.is-loading {
  opacity: 0.75;
  cursor: wait;
  pointer-events: none;
}

.dev-guide-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.55;
}
.dev-guide-list strong {
  color: var(--accent-indigo);
  font-weight: 600;
}
.dev-guide-list code {
  font-size: 0.75rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent-indigo);
}
.dev-guide-note {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.dev-my-extensions-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 320px;
  overflow-y: auto;
}
.dev-ext-empty {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
  padding: 1.5rem 0.5rem;
}
.dev-ext-item {
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
}
.dev-ext-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.dev-ext-item-name {
  font-size: 0.875rem;
  color: var(--text-primary);
}
.dev-ext-status {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.dev-ext-status--pending {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}
.dev-ext-status--approved {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
}
.dev-ext-status--rejected {
  background: rgba(248, 113, 113, 0.15);
  color: #f87171;
}

.dev-ext-item-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dev-ext-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.doc-link {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8125rem;
  transition: all 0.15s;
}
.doc-link:hover {
  border-color: var(--border-accent);
  background: var(--bg-glass);
  color: var(--text-primary);
}
.doc-link strong { color: var(--text-primary); display: block; margin-bottom: 0.1rem; }

/* ═══════════════════ FAQ ACCORDION ═══════════════════ */
.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}
.faq-item:last-child { border-bottom: none; }
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.faq-question:hover { color: var(--accent-indigo); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.faq-item.open .faq-answer {
  max-height: 200px;
  padding-bottom: 0.85rem;
}
.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.2s;
  color: var(--text-muted);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }

/* ═══════════════════ CHANGELOG ═══════════════════ */
.changelog-list { display: flex; flex-direction: column; gap: 0; }
.changelog-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-subtle);
}
.changelog-item:last-child { border-bottom: none; }
.changelog-version {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-indigo);
  margin-bottom: 0.25rem;
}
.changelog-date {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
}
.changelog-notes {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 0.35rem;
}

/* ═══════════════════ GUIDE STEPS ═══════════════════ */
.guide-step {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-subtle);
}
.guide-step:last-child { border-bottom: none; }
.guide-step-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-indigo);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
}
.guide-step-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  font-size: 0.9375rem;
}
.guide-step-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ═══════════════════ FOOTER GRID ═══════════════════ */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 3rem; }
}
.footer-col-title {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.footer-text-link {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  padding: 0.25rem 0;
  transition: color 0.15s;
  text-decoration: none;
  display: block;
}
.footer-text-link:hover { color: var(--accent-indigo); }
a.footer-text-link { display: block; }

/* ═══════════════════ RESPONSIVE ═══════════════════ */
@media (max-width: 1024px) {
  .hero-mockup { transform: none; animation: none; }
}
@media (max-width: 640px) {
  .toy-btn-3d, .btn-primary {
    width: 100%;
    justify-content: center;
  }
  .mockup-editor { font-size: 0.65rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
