/* ==============================================================================
   CopySym (copysym.com) Design System & Stylesheet
   Kid-First Ergonomics, WCAG AAA High-Contrast, Gen-Z / Youngster Aesthetics
   ============================================================================== */

:root {
  /* Backgrounds & Surfaces */
  --bg-void: #090B10;
  --bg-surface: #121622;
  --bg-surface-elevated: #1A2030;
  --bg-card: rgba(26, 32, 48, 0.75);
  --bg-glass: rgba(18, 22, 34, 0.85);
  
  /* Vibrant Youngster / Cyber-Pop Accents */
  --neon-green: #00FF9D;
  --neon-green-glow: rgba(0, 255, 157, 0.35);
  --neon-purple: #A855F7;
  --neon-purple-glow: rgba(168, 85, 247, 0.35);
  --neon-cyan: #00F0FF;
  --neon-cyan-glow: rgba(0, 240, 255, 0.35);
  --neon-pink: #FF3388;
  --neon-pink-glow: rgba(255, 51, 136, 0.35);
  --neon-yellow: #FFD600;
  
  /* High-Contrast WCAG AAA Text Colors */
  --text-pure: #FFFFFF;
  --text-high: #F1F5F9;
  --text-med: #94A3B8;
  --text-dim: #64748B;
  
  /* Borders & Shadows */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(0, 255, 157, 0.5);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  
  /* Kid-Friendly Ergonomics */
  --hitbox-min: 52px;
  --glyph-size: 30px;
}

/* Reset & Viewport Constraints (Strict Zero Horizontal Scroll) */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  min-height: 100dvh;
  overflow-x: hidden;
  background-color: var(--bg-void);
  color: var(--text-high);
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(168, 85, 247, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 25%, rgba(0, 240, 255, 0.10) 0%, transparent 40%),
    radial-gradient(circle at 50% 85%, rgba(0, 255, 157, 0.08) 0%, transparent 50%);
  background-attachment: fixed;
  padding-bottom: calc(110px + env(safe-area-inset-bottom));
}

/* Layout Container */
.app-container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header & Navigation */
.site-header {
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 24px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-pure);
}

.logo-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 0 16px var(--neon-cyan-glow);
}

.brand-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(to right, #FFFFFF, #94A3B8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-sub-link {
  color: var(--neon-cyan);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.nav-sub-link:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 12px var(--neon-cyan-glow);
  transform: translateY(-2px);
}

.lang-pill {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-high);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  touch-action: manipulation;
  transition: all 0.2s ease;
}

.lang-pill:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 12px var(--neon-cyan-glow);
}

/* Hero Section */
.hero-banner {
  text-align: center;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 10px;
  letter-spacing: -1px;
}

.gradient-text {
  background: linear-gradient(90deg, var(--neon-green), var(--neon-cyan), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(15px, 2.5vw, 17px);
  color: var(--text-med);
  max-width: 600px;
  margin: 0 auto;
}

/* Sticky Generator Bar (Zero CLS) */
.sticky-generator-wrapper {
  position: sticky;
  top: 12px;
  z-index: 100;
  margin-bottom: 28px;
}

.generator-glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.generator-glass-card:focus-within {
  border-color: var(--neon-green);
  box-shadow: 0 0 24px var(--neon-green-glow);
}

.input-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.generator-input {
  flex: 1;
  height: 56px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0 18px;
  color: var(--text-pure);
  font-size: 20px;
  font-weight: 600;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
}

.generator-input::placeholder {
  color: var(--text-dim);
  font-weight: 400;
}

.btn-clear-input {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-med);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
  transition: all 0.2s ease;
}

.btn-clear-input:hover {
  color: var(--neon-pink);
  border-color: var(--neon-pink);
  background: rgba(255, 51, 136, 0.1);
}

/* Platform Target Selector Pills */
.platform-pills-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
}

.platform-pills-row::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.platform-pill {
  flex: 0 0 auto;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-med);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.platform-pill:hover {
  color: var(--text-pure);
  border-color: var(--neon-purple);
}

.platform-pill.active {
  background: linear-gradient(135deg, var(--neon-purple), #6366F1);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 0 14px var(--neon-purple-glow);
}

.platform-limit-tag {
  font-size: 11px;
  opacity: 0.8;
  background: rgba(0, 0, 0, 0.25);
  padding: 2px 6px;
  border-radius: 6px;
}

/* Live Font Stream Carousel (Natural page flow, zero nested scroll traps) */
.font-stream-container {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 100%;
}

.font-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  transition: all 0.15s ease;
}

.font-card:hover {
  border-color: var(--neon-cyan);
  background: var(--bg-surface-elevated);
  transform: translateY(-2px);
}

.font-meta {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.font-label {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
  display: block;
}

.font-preview-text {
  font-size: 19px;
  color: var(--text-pure);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  max-width: 100%;
}

.btn-copy-variant {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--neon-green);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-copy-variant:hover {
  background: var(--neon-green);
  color: #000000;
  box-shadow: 0 0 12px var(--neon-green-glow);
  transform: scale(1.05);
}

.btn-copy-variant.copied {
  background: var(--neon-green) !important;
  color: #000000 !important;
  transform: scale(1.1);
}

/* Search Bar & Category Tabs */
.catalog-section {
  margin-top: 32px;
}

.search-bar-wrapper {
  position: relative;
  margin-bottom: 20px;
}

.search-input {
  width: 100%;
  height: 52px;
  background: var(--bg-surface);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 0 50px 0 22px;
  color: var(--text-pure);
  font-size: 17px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
}

.search-input:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 20px var(--neon-cyan-glow);
}

.search-icon-badge {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  pointer-events: none;
  color: var(--text-med);
}

.search-spellcheck-hint {
  display: none;
  margin-top: 8px;
  padding-left: 20px;
  font-size: 13px;
  color: var(--neon-yellow);
  font-weight: 600;
}

.category-tabs-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 2px 14px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
}

.category-tabs-bar::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.cat-tab {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-high);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cat-tab:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--neon-purple);
  transform: translateY(-2px);
}

.cat-tab.active {
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 0 18px var(--neon-pink-glow);
  transform: scale(1.05);
}

.cat-tab-icon {
  font-size: 20px;
}

/* Symbol Grid (Kid-First 52px Hitboxes) */
.symbol-grid-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0 14px;
}

.grid-title {
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.symbol-count-badge {
  font-size: 12px;
  background: var(--bg-surface-elevated);
  color: var(--neon-green);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-weight: 700;
}

.symbol-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--hitbox-min), 1fr));
  gap: 10px;
  margin-bottom: 36px;
}

.sym-btn {
  width: 100%;
  height: var(--hitbox-min);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-pure);
  font-size: var(--glyph-size);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  position: relative;
  transition: all 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sym-btn:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 16px var(--neon-cyan-glow);
  transform: translateY(-3px) scale(1.06);
  z-index: 2;
}

.sym-btn:active {
  transform: scale(0.92);
}

.sym-badge-copied {
  display: none;
}

/* Joyful Copy Confirmation Flash */
.sym-btn.just-copied {
  background: var(--neon-green) !important;
  color: #000000 !important;
  border-color: var(--neon-green) !important;
  box-shadow: 0 0 20px var(--neon-green-glow) !important;
  transform: scale(1.15) !important;
  z-index: 5;
}

.sym-btn.just-copied::after {
  content: '✓';
  position: absolute;
  top: -6px;
  right: -6px;
  background: #000000;
  color: var(--neon-green);
  font-size: 12px;
  font-weight: 900;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
  animation: popIn 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Floating Accumulation Tray ("My Symbols Tray") */
.floating-tray-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(18, 22, 34, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 2px solid var(--border-subtle);
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.5);
  padding: 12px 16px;
  padding-bottom: max(14px, env(safe-area-inset-bottom));
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.tray-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.tray-icon-box {
  font-size: 24px;
  background: var(--bg-surface-elevated);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
}

.tray-content-scroll {
  flex: 1;
  min-width: 0;
  height: 48px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  font-size: 22px;
  color: var(--text-pure);
  white-space: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.tray-content-scroll::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.tray-placeholder {
  font-size: 14px;
  color: var(--text-dim);
  font-style: italic;
}

.tray-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-tray-copy {
  height: 48px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--neon-green), #00C875);
  color: #090B10;
  border: none;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  touch-action: manipulation;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 16px var(--neon-green-glow);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-tray-copy:hover {
  transform: scale(1.05);
  box-shadow: 0 0 24px var(--neon-green-glow);
}

.btn-tray-copy:active {
  transform: scale(0.96);
}

.btn-tray-clear {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-med);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
  transition: all 0.2s ease;
}

.btn-tray-clear:hover {
  color: var(--neon-pink);
  border-color: var(--neon-pink);
  background: rgba(255, 51, 136, 0.15);
}

/* FAQ Section */
.faq-section {
  margin-top: 48px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}

.faq-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-pure);
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-high);
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  touch-action: manipulation;
}

.faq-question:hover {
  color: var(--neon-cyan);
}

.faq-answer {
  padding: 0 20px 16px;
  color: var(--text-med);
  font-size: 15px;
  line-height: 1.6;
}

/* Toast Notification */
.toast-popup {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: #00FF9D;
  color: #090B10;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 25px rgba(0, 255, 157, 0.4);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-popup.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Site Footer */
.site-footer {
  margin-top: 60px;
  border-top: 1px solid var(--border-subtle);
  padding: 32px 0 20px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.footer-logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--neon-green);
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-dim);
  max-width: 480px;
  margin-top: 4px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--text-med);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--neon-cyan);
}

.footer-copy {
  font-size: 13px;
  color: var(--text-dim);
}

/* Header Nav */
.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0;
  max-width: 100%;
}

.header-nav::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.nav-sub-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-high);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  touch-action: manipulation;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-sub-link:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--neon-cyan);
  color: var(--text-pure);
  box-shadow: 0 0 14px var(--neon-cyan-glow);
  transform: translateY(-2px);
}

.footer-links {
  display: flex;
  align-items: flex-start;
  gap: 36px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 16px 0;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.footer-col strong {
  color: var(--neon-cyan);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

/* Character Inspector Modal */
.inspector-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.inspector-backdrop.active {
  display: flex !important;
}

.inspector-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 30px var(--neon-purple-glow);
  overflow: hidden;
  animation: popIn 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.inspector-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.inspector-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inspector-heading {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-pure);
  margin: 0;
}

.btn-close-inspector {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}

.btn-close-inspector:hover {
  color: var(--text-pure);
  background: rgba(255, 255, 255, 0.1);
}

.inspector-body {
  padding: 20px;
}

.inspector-glyph-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  border: 1px solid var(--border-subtle);
}

.inspector-large-glyph {
  font-size: 64px;
  line-height: 1;
}

.btn-insp-copy-main {
  background: var(--neon-green);
  color: #000000;
  border: none;
  padding: 8px 18px;
  font-weight: 800;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.inspector-specs-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.spec-label {
  font-size: 13px;
  color: var(--text-med);
  font-weight: 600;
}

.spec-val {
  font-family: 'JetBrains Mono', monospace;
  color: var(--neon-cyan);
  font-size: 14px;
}

.btn-copy-code {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-pure);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-copy-code:hover {
  background: var(--neon-cyan);
  color: #000000;
}

/* Feedback Card */
.feedback-card {
  margin-top: 36px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.12), rgba(0, 240, 255, 0.08));
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.feedback-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.feedback-icon {
  font-size: 32px;
}

.feedback-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-pure);
  margin: 0;
}

.feedback-subtitle {
  font-size: 13px;
  color: var(--text-med);
  margin-top: 4px;
}

.feedback-input-row {
  display: flex;
  gap: 10px;
}

.feedback-input {
  flex: 1;
  height: 48px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0 16px;
  color: var(--text-pure);
  font-size: 14px;
  outline: none;
}

.feedback-input:focus {
  border-color: var(--neon-purple);
  box-shadow: 0 0 12px var(--neon-purple-glow);
}

.btn-feedback-submit {
  background: var(--neon-purple);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-md);
  padding: 0 20px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn-feedback-submit:hover {
  background: #B86BFC;
  transform: translateY(-2px);
  box-shadow: 0 0 16px var(--neon-purple-glow);
}

.feedback-confirmation {
  margin-top: 10px;
  color: var(--neon-green);
  font-weight: 700;
  font-size: 14px;
}

/* ASCII Art Gallery & Monospace Containers */
.ascii-art-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin: 28px 0;
}

.ascii-art-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.ascii-art-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.ascii-art-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--neon-cyan);
}

.ascii-scroll-container {
  overflow-x: auto;
  overflow-y: hidden;
  white-space: pre;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 240, 255, 0.4) rgba(255, 255, 255, 0.04);
  background: #050608;
  border-radius: var(--radius-sm);
  padding: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.35;
  color: var(--text-pure);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 14px;
}

.ascii-scroll-container::-webkit-scrollbar {
  height: 6px;
}

.ascii-scroll-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 3px;
}

.ascii-scroll-container::-webkit-scrollbar-thumb {
  background: rgba(0, 240, 255, 0.35);
  border-radius: 3px;
}

.ascii-scroll-container::-webkit-scrollbar-thumb:hover {
  background: var(--neon-cyan);
}

.btn-copy-art {
  background: var(--bg-surface);
  border: 1px solid var(--neon-green);
  color: var(--neon-green);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  align-self: flex-start;
  transition: all 0.15s ease;
}

.btn-copy-art:hover {
  background: var(--neon-green);
  color: #000000;
  box-shadow: 0 0 14px var(--neon-green-glow);
}

/* Alt Codes Table */
.alt-table-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(168, 85, 247, 0.4) rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
  margin: 24px 0;
}

.alt-table-wrap::-webkit-scrollbar {
  height: 6px;
}

.alt-table-wrap::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 3px;
}

.alt-table-wrap::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.35);
  border-radius: 3px;
}

.alt-table-wrap::-webkit-scrollbar-thumb:hover {
  background: var(--neon-purple);
}

.alt-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.alt-table th, .alt-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.alt-table th {
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  color: var(--neon-cyan);
  text-transform: uppercase;
}

.alt-table td {
  font-size: 14px;
}

.alt-glyph {
  font-size: 26px;
  line-height: 1;
}

.alt-code-badge {
  background: rgba(168, 85, 247, 0.15);
  color: var(--neon-purple);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
}

/* Platform Bio Meters */
.bio-meter-wrap {
  margin: 16px 0;
  background: var(--bg-surface);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.bio-meter-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.bio-meter-bar-outer {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.bio-meter-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--neon-green);
  transition: width 0.2s ease, background 0.2s ease;
}

.bio-meter-bar-fill.warning {
  background: #FFB800;
}

.bio-meter-bar-fill.overflow {
  background: #FF3366;
}

/* ==============================================================================
   MULTI-DEVICE RESPONSIVE BREAKPOINTS (Mobile, Tablet, Web)
   Strictly Enforces 48px+ Hitboxes, Zero Horizontal Scroll & Smooth Scaling
   ============================================================================== */

/* Responsive Site Header & Nav Wrap (< 860px) */
@media (max-width: 860px) {
  .site-header {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 0;
  }
  .brand-logo {
    order: 1;
  }
  .header-actions {
    order: 2;
  }
  .header-nav {
    order: 3;
    width: 100%;
    padding: 4px 0 6px 0;
  }
}

/* Tablet & iPad Scaling (600px - 1024px) */
@media (min-width: 600px) {
  .symbol-grid {
    grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
    gap: 10px;
  }
  .sym-btn {
    height: 56px;
    font-size: 30px;
  }
  .font-stream-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .ascii-art-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

/* Large Tablet & Desktop / Web Scaling (1024px+) */
@media (min-width: 1024px) {
  .symbol-grid {
    grid-template-columns: repeat(auto-fill, minmax(62px, 1fr));
    gap: 12px;
  }
  .sym-btn {
    height: 62px;
    font-size: 34px;
  }
  .font-stream-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .ascii-art-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

/* Mobile Ergonomics (< 640px) */
@media (max-width: 640px) {
  .generator-glass-card {
    padding: 12px;
  }
  .generator-input {
    height: 50px;
    font-size: 16px;
  }
  .font-stream-container {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .font-preview-text {
    font-size: 18px;
  }
  .symbol-grid {
    grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
    gap: 8px;
  }
  .sym-btn {
    height: 50px;
    font-size: 28px;
  }
  .tray-inner {
    gap: 8px;
  }
  .btn-tray-copy {
    padding: 0 14px;
    font-size: 13px;
  }
  .feedback-input-row {
    flex-direction: column;
  }
  .btn-feedback-submit {
    height: 48px;
  }
  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
  }
  .footer-col {
    align-items: center;
    text-align: center;
  }
}

/* Small Phone Optimization (< 480px) */
@media (max-width: 480px) {
  .floating-tray-bar {
    padding: 8px 10px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }
  .tray-inner {
    gap: 6px;
  }
  .tray-icon-box {
    display: none;
  }
  .tray-content-scroll {
    height: 42px;
    font-size: 18px;
    padding: 0 8px;
  }
  .btn-tray-copy {
    height: 42px;
    padding: 0 12px;
    font-size: 12px;
    gap: 4px;
  }
  .btn-tray-clear {
    width: 42px;
    height: 42px;
    min-width: 42px;
  }
}

