/* ══════════════════════════════════════════════════════════════
   Prompt Matrix — Premium Dark Theme
   Inspired by viewer.html design language + 3D animations
   ══════════════════════════════════════════════════════════════ */

:root {
  /* Core palette (viewer.html-inspired) */
  --bg: #09090b;
  --bg2: #0f0f14;
  --surface: #16161e;
  --surface2: #1e1e2a;
  --surface3: #282838;
  --border: #2a2a3a;
  --border2: #3a3a50;

  /* Text */
  --text: #f0f0f5;
  --text2: #a8a8be;
  --text3: #6a6a82;

  /* Accent (indigo from viewer + purple blend) */
  --accent: #6366f1;
  --accent2: #818cf8;
  --accent3: #a5b4fc;
  --accent-dim: rgba(99,102,241,0.12);
  --accent-glow: rgba(99,102,241,0.25);

  /* Semantic */
  --blue: #3b82f6;
  --blue-bg: rgba(59,130,246,0.12);
  --green: #10b981;
  --green-bg: rgba(16,185,129,0.12);
  --gold: #f59e0b;
  --gold-bg: rgba(245,158,11,0.12);
  --red: #ef4444;
  --red-bg: rgba(239,68,68,0.12);
  --pink: #f472b6;
  --pink-bg: rgba(244,114,182,0.12);
  --pro: linear-gradient(135deg, #f59e0b, #ef4444);
  --free: #10b981;

  /* Geometry */
  --r: 12px;
  --r-sm: 8px;
  --r-xs: 6px;
  --shadow: 0 4px 24px rgba(0,0,0,0.35);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px rgba(99,102,241,0.15);

  /* Font */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', 'Helvetica Neue', sans-serif;
  --mono: 'JetBrains Mono', 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  --t: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  background:
    radial-gradient(1400px 1000px at 50% -10%, rgba(99,102,241,0.12), transparent 60%),
    radial-gradient(1000px 800px at -10% 30%, rgba(59,130,246,0.08), transparent 60%),
    radial-gradient(900px 700px at 110% 70%, rgba(168,85,247,0.1), transparent 60%),
    linear-gradient(180deg, #050509 0%, #09090b 100%);
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.04em; margin: 0; }
a { color: var(--accent2); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--accent3); }
img { max-width: 100%; display: block; }
::selection { background: var(--accent); color: white; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border2); }

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 100px; border: none;
  font-family: var(--font); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.25s ease; white-space: nowrap;
  position: relative; overflow: hidden; letter-spacing: 0.005em;
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.05));
  opacity: 0; transition: opacity var(--t);
}
.btn:hover::after { opacity: 1; }
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent2); transform: translateY(-2px); box-shadow: 0 8px 30px var(--accent-glow); }
.btn-secondary { background: var(--surface2); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--accent); background: var(--surface3); }
.btn-ghost { background: transparent; color: var(--text2); border: 1px solid transparent; }
.btn-ghost:hover { color: var(--text); background: var(--surface2); }
.btn-gold { background: var(--pro); color: white; font-weight: 700; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(245,158,11,0.35); }
.btn-danger { background: var(--red); color: white; }
.btn-danger:hover { background: #dc2626; }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-big { padding: 18px 32px; font-size: 15px; font-weight: 600; }
.btn-icon { padding: 8px; width: 36px; height: 36px; justify-content: center; border-radius: 50%; }
.btn-icon.active { color: var(--accent); background: var(--accent-dim); }

/* Glowing button variants (reference design) */
.btn-primary-glow {
  color: #04111a;
  background: linear-gradient(180deg, #a5b4fc, #6366f1);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.22) inset, 0 14px 40px -8px rgba(99,102,241,0.6), 0 0 60px -10px rgba(99,102,241,0.5);
}
.btn-primary-glow:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.32) inset, 0 20px 50px -8px rgba(99,102,241,0.8), 0 0 80px -10px rgba(99,102,241,0.7);
}
.btn-ghost-glow {
  color: var(--text);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
}
.btn-ghost-glow:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(99,102,241,0.5);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(99,102,241,0.2);
}

/* ── NAVBAR (Floating Pill) ──────────────────────────────── */
#navbar {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  width: calc(100% - 48px); max-width: 1180px; height: auto;
  padding: 10px 10px 10px 22px;
  background: rgba(8,8,16,0.35);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 100px;
  box-shadow: 0 10px 40px -10px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05), 0 0 30px rgba(129,140,248,0.03);
  display: flex; align-items: center; justify-content: space-between;
  z-index: 1000;
}
.nav-left { display: flex; align-items: center; gap: 12px; flex: 1; justify-content: flex-start; }
.nav-right { display: flex; align-items: center; gap: 12px; flex: 1; justify-content: flex-end; }

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); font-weight: 800; font-size: 21px;
  font-family: var(--font-display);
  text-decoration: none; letter-spacing: -0.025em;
  transition: opacity 0.2s ease;
}
.nav-logo:hover { opacity: 0.95; }
.logo-icon {
  width: 28px; height: 28px; border-radius: 8px;
  background: conic-gradient(from 200deg, #818cf8, #a855f7, #818cf8);
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 0 18px rgba(99,102,241,0.4);
  animation: logoSpin 12s linear infinite;
  font-size: 0; /* hide text inside */
}
.logo-icon::after {
  content: ''; position: absolute; inset: 5px;
  background: var(--bg); border-radius: 4px;
}
.logo-icon::before {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 6px; height: 6px; transform: translate(-50%,-50%);
  background: #818cf8; border-radius: 50%; z-index: 1;
  box-shadow: 0 0 10px rgba(129,140,248,0.9);
}
@keyframes logoSpin { to { transform: rotate(360deg); } }
.logo-accent { color: var(--accent2); }

.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  margin-left: 0;
}
.nav-link {
  color: var(--text2); padding: 7px 14px; border-radius: 50px;
  font-size: 13.5px; font-weight: 500; transition: all var(--t);
  text-decoration: none; display: flex; align-items: center; gap: 6px;
  border: 1px solid transparent;
}
.nav-link:hover { color: var(--text); }
.nav-link.active {
  color: var(--text) !important;
  background: rgba(129, 140, 248, 0.12) !important;
  border: 1px solid rgba(129, 140, 248, 0.3) !important;
  box-shadow: 0 0 15px rgba(129, 140, 248, 0.12);
  text-shadow: 0 0 8px rgba(129, 140, 248, 0.4);
}

.store-badge {
  background: var(--pro); color: white; font-size: 9px; font-weight: 800;
  padding: 2px 6px; border-radius: 4px; letter-spacing: 0.5px;
}

/* Nav search (Expanding Circular UI) */
.nav-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  cursor: pointer;
}
.nav-search .search-icon {
  position: absolute;
  left: 11px;
  color: var(--text3);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: color var(--t);
  cursor: pointer;
}
.nav-search:hover .search-icon {
  color: var(--text);
}
#nav-search-input {
  background: transparent;
  border: none;
  padding: 7px 36px 7px 32px;
  color: var(--text);
  font-family: var(--font);
  font-size: 12.5px;
  width: 100%;
  outline: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.search-kbd {
  position: absolute;
  right: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 10px;
  color: var(--text3);
  font-family: var(--font);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* Expanded State */
.nav-search.open {
  width: 280px;
  background: rgba(255,255,255,0.06);
  border-color: rgba(99,102,241,0.4);
  box-shadow: 0 0 20px rgba(99,102,241,0.1);
  cursor: default;
}
.nav-search.open #nav-search-input {
  opacity: 1;
  pointer-events: auto;
}
.nav-search.open .search-kbd {
  opacity: 1;
}

.nav-auth { display: flex; gap: 6px; }
.mobile-profile-btn { display: none; }

/* ── USER MENU (Premium Minimalist Circular Trigger) ────────────────────── */
.nav-user { position: relative; }
.user-menu-btn {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  cursor: pointer;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  outline: none;
}
.user-menu-btn:hover {
  transform: scale(1.08);
}
.user-menu-btn #nav-username,
.user-menu-btn .chevron {
  display: none !important;
}

/* Responsive Mobile Menu Button */
.mobile-menu-btn,
.mobile-search-btn {
  display: none;
}
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text);
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .mobile-menu-btn:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
  }
}
.user-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #a855f7, #3b82f6);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; color: white;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px rgba(129,140,248,0.4), 0 4px 12px rgba(99,102,241,0.3);
  animation: avatarPulse 3s ease-in-out infinite;
}
@keyframes avatarPulse {
  0%, 100% { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px rgba(129,140,248,0.3), 0 4px 12px rgba(99,102,241,0.2); }
  50% { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px rgba(129,140,248,0.5), 0 4px 20px rgba(99,102,241,0.35); }
}
.chevron { font-size: 11px; color: var(--text3); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.user-menu-btn:hover .chevron { transform: rotate(180deg); color: var(--text); }

.user-dropdown {
  position: absolute; top: calc(100% + 16px); right: 0;
  background: rgba(10, 8, 20, 0.85);
  backdrop-filter: blur(40px) saturate(2);
  -webkit-backdrop-filter: blur(40px) saturate(2);
  border: 1px solid rgba(138, 108, 255, 0.25);
  border-radius: 20px; padding: 12px; min-width: 290px;
  box-shadow:
    0 40px 100px -20px rgba(0,0,0,0.9),
    0 0 60px -10px rgba(138,108,255,0.2),
    inset 0 1px 0 rgba(255,255,255,0.08);
  z-index: 1001;
  animation: dropIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: top right;
}
/* Gradient border overlay */
.user-dropdown::before {
  content: ''; position: absolute; inset: 0;
  border-radius: 20px; padding: 1px;
  background: linear-gradient(135deg, rgba(138,108,255,0.4), transparent 40%, rgba(107,216,255,0.3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-12px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.dropdown-header { padding: 16px 14px 14px; display: flex; align-items: center; gap: 14px; }
.dropdown-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #a855f7, #6bd8ff);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px; color: white;
  box-shadow: 0 4px 20px rgba(138,108,255,0.35);
  border: 1px solid rgba(255,255,255,0.1);
}
.dropdown-info { flex: 1; }
.dropdown-name { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 16px; letter-spacing: -0.3px; color: #ece8ff; }
.dropdown-role {
  font-size: 9px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; margin-top: 5px;
  display: inline-block; padding: 3px 10px; border-radius: 10px;
}
.dropdown-role.free { color: #7dffb0; background: rgba(125,255,176,0.12); border: 1px solid rgba(125,255,176,0.22); }
.dropdown-role.pro { color: #ffc06b; background: rgba(255,192,107,0.12); border: 1px solid rgba(255,192,107,0.22); }
.dropdown-role.admin { color: #ff7ad9; background: rgba(255,122,217,0.12); border: 1px solid rgba(255,122,217,0.22); }
.dropdown-divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(140,120,220,0.15), transparent); margin: 8px 6px; }
.dropdown-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 16px; border-radius: 12px;
  color: #bdb4dc; font-size: 13.5px; font-weight: 500;
  cursor: pointer; transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: none; background: transparent;
  width: 100%; font-family: var(--font); text-decoration: none;
  position: relative; overflow: hidden;
}
.dropdown-item::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(138,108,255,0.12), transparent);
  opacity: 0; transition: opacity 0.25s ease; pointer-events: none;
}
.dropdown-item::after {
  content: ''; position: absolute; left: 0; top: 20%; bottom: 20%; width: 3px;
  background: linear-gradient(180deg, #8a6cff, #6bd8ff);
  border-radius: 0 4px 4px 0; opacity: 0; transition: all 0.25s ease;
}
.dropdown-item:hover {
  color: #ece8ff;
  transform: translateX(4px);
}
.dropdown-item:hover::before { opacity: 1; }
.dropdown-item:hover::after { opacity: 1; }
.dropdown-item:hover .item-icon { transform: scale(1.12) rotate(-3deg); color: #8a6cff; }
.dropdown-item .item-icon { width: 20px; text-align: center; font-size: 15px; transition: all 0.3s ease; color: #8b82ad; display: flex; align-items: center; justify-content: center; }
.store-link { color: #ffc06b; }
.store-link:hover { color: #ffc06b; }
.store-link:hover::before { background: linear-gradient(90deg, rgba(255,192,107,0.12), transparent); }
.store-link:hover::after { background: linear-gradient(180deg, #ffc06b, #ff7ad9); }
.store-link:hover .item-icon { color: #ffc06b; }
.admin-link { color: #ff7ad9; }
.admin-link:hover { color: #ff7ad9; }
.admin-link:hover::before { background: linear-gradient(90deg, rgba(255,122,217,0.12), transparent); }
.admin-link:hover::after { background: linear-gradient(180deg, #ff7ad9, #ffc06b); }
.admin-link:hover .item-icon { color: #ff7ad9; }
.logout-btn { color: #ef4444; opacity: 0.9; }
.logout-btn:hover { color: #ef4444; opacity: 1; }
.logout-btn:hover::before { background: linear-gradient(90deg, rgba(239,68,68,0.12), transparent); }
.logout-btn:hover::after { background: linear-gradient(180deg, #ef4444, #ff7ad9); }
.logout-btn:hover .item-icon { color: #ef4444; }

/* ── MAIN CONTENT ─────────────────────────────────────────── */
#app { padding-top: 70px; min-height: 100vh; display: flex; flex-direction: column; }
.page { padding: 28px 32px; max-width: 1280px; margin: 0 auto; position: relative; z-index: 1; }
.page-wide { padding: 0; max-width: none; }

/* ── AMBIENT BACKGROUND ──────────────────────────────────── */
.ambient {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
}
.ambient-grid {
  position: absolute; inset: 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: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 80%);
}
.float-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.5;
  animation: drift 32s ease-in-out infinite; will-change: transform;
}
.orb-cyan { width: 520px; height: 520px; background: radial-gradient(circle, rgba(99,102,241,0.5), transparent 70%); top: -10%; left: -10%; }
.orb-violet { width: 600px; height: 600px; background: radial-gradient(circle, rgba(168,85,247,0.45), transparent 70%); top: 30%; right: -15%; animation-delay: -8s; animation-duration: 38s; }
.orb-magenta { width: 400px; height: 400px; background: radial-gradient(circle, rgba(244,114,182,0.3), transparent 70%); bottom: 0%; left: 30%; animation-delay: -15s; animation-duration: 40s; }

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(60px, -40px) scale(1.07); }
  50% { transform: translate(-40px, 30px) scale(0.95); }
  75% { transform: translate(30px, 50px) scale(1.03); }
}

/* ── HERO SECTION (Full-viewport, Artwork-style) ─────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  padding: 80px 32px 100px; overflow: hidden;
  text-align: center;
}

/* 3D Canvas wrap */
.hero-canvas-wrap {
  position: fixed; inset: 0; z-index: 0;
  display: flex; justify-content: center; align-items: center;
  pointer-events: none; opacity: 0.9;
}
.hero-canvas-wrap canvas {
  width: 100vw !important; height: 100vh !important;
  object-fit: cover;
  filter: drop-shadow(0 0 80px rgba(168,85,247,0.35)) drop-shadow(0 0 40px rgba(99,102,241,0.3));
  -webkit-mask-image: radial-gradient(circle at center, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 30%, #000 60%);
  mask-image: radial-gradient(circle at center, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 30%, #000 60%);
}

/* Particle dots */
.hero-particles { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.particle {
  position: absolute; width: 3px; height: 3px;
  border-radius: 50%; background: var(--accent2);
  opacity: 0; animation: particleFade 4s ease-in-out infinite;
}
@keyframes particleFade {
  0%, 100% { opacity: 0; transform: translateY(0); }
  50% { opacity: 0.4; transform: translateY(-20px); }
}

/* Hero content */
.hero-content {
  position: relative; z-index: 2; text-align: center;
  width: 100%; pointer-events: none;
}
.hero-content > * { pointer-events: auto; }
/* Dark scrim behind headline */
.hero-content::before {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 120%; height: 130%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse 50% 45% at center, rgba(5,5,12,0.7) 0%, rgba(5,5,12,0.45) 35%, rgba(5,5,12,0) 70%);
  z-index: -1; pointer-events: none;
}

/* Hero tag pill */
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px 7px 10px; border-radius: 100px;
  background: rgba(10,12,24,0.75);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.12);
  font-family: var(--mono); font-size: 11.5px;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--text2); margin-bottom: 36px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
.live-dot {
  width: 7px; height: 7px; background: #818cf8;
  border-radius: 50%; box-shadow: 0 0 10px rgba(129,140,248,1);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

/* Massive hero title */
.hero h1 {
  font-size: clamp(56px, 12vw, 160px);
  line-height: 0.88; font-weight: 700;
  letter-spacing: -0.06em; margin: 0;
  color: #fdfdff;
  text-shadow: 0 2px 30px rgba(0,0,0,0.55), 0 0 60px rgba(0,0,0,0.45), 0 0 90px rgba(99,102,241,0.12);
}
.hero h1 .line { display: block; }
.hero h1 .word-glow {
  position: relative; display: inline-block;
  color: #ffffff; font-style: italic; font-weight: 700;
  text-shadow: 0 2px 30px rgba(0,0,0,0.6), 0 0 50px rgba(0,0,0,0.5);
}
.hero h1 .word-glow::after {
  content: attr(data-text);
  position: absolute; left: 0; top: 0; width: 100%;
  background: linear-gradient(180deg, rgba(129,140,248,0.85), rgba(168,85,247,0.85));
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  filter: blur(42px); opacity: 0.85;
  z-index: -1; pointer-events: none;
}

.hero-sub {
  margin-top: 32px; font-size: clamp(16px, 1.4vw, 20px);
  color: var(--text2); max-width: 560px;
  margin-left: auto; margin-right: auto;
  line-height: 1.5; text-shadow: 0 2px 18px rgba(0,0,0,0.6);
}

.hero-cta-row {
  display: flex; gap: 14px; justify-content: center;
  margin-top: 40px; flex-wrap: wrap;
}

/* Hero footer stats */
.hero-foot {
  position: relative;
  margin-top: 56px;
  display: inline-flex; gap: 32px; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 11.5px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text3); z-index: 3;
  padding: 12px 32px;
  background: rgba(8,10,22,0.5);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 100px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  white-space: nowrap;
}
.hero-foot .stat-tile { display: flex; align-items: center; gap: 8px; }
.hero-foot .stat-label { color: var(--text3); font-size: 11px; font-weight: 500; }
.hero-foot b { color: var(--text); font-weight: 700; font-size: 14px; }
.hero-foot .stars { color: #e2b340; letter-spacing: 2px; font-size: 14px; margin-right: 6px; }

/* ── SECTION HEADERS (Premium) ───────────────────────────── */
.section-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 28px;
}
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11.5px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text3); margin-bottom: 12px;
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #818cf8; box-shadow: 0 0 10px rgba(129,140,248,0.9);
}
.eyebrow-dot.violet { background: #a855f7; box-shadow: 0 0 10px rgba(168,85,247,0.9); }
.section-title-big {
  font-size: clamp(28px, 4vw, 42px); font-weight: 700;
  letter-spacing: -0.04em; line-height: 1.1;
}
.section-subtitle { color: var(--text2); font-size: 14px; margin-top: 6px; }

/* ── CTA SECTION ─────────────────────────────────────────── */
.cta-section {
  position: relative; text-align: center;
  padding: 60px 40px; border-radius: 24px;
  background: rgba(18,20,36,0.5);
  backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.07);
  overflow: hidden; margin-bottom: 48px;
}
.cta-section .cta-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at center, rgba(99,102,241,0.15), transparent 70%);
}
.cta-section h2 {
  font-size: 32px; margin-bottom: 12px; position: relative;
  background: linear-gradient(180deg, #fff, #a5b4fc);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cta-section p { color: var(--text2); margin-bottom: 24px; font-size: 16px; position: relative; }
.cta-section .btn { position: relative; }

/* ── CATEGORY GRID (Glassmorphic) ────────────────────────── */
.cat-groups { display: flex; flex-direction: column; gap: 32px; }
.cat-group-title {
  font-size: 18px; font-weight: 700; color: var(--text2);
  margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
  letter-spacing: -0.02em;
}
.cat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px;
}
.cat-card {
  background: rgba(18,20,36,0.5); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px; padding: 18px;
  cursor: pointer; transition: all 0.3s ease;
  text-decoration: none; color: var(--text);
  position: relative; overflow: hidden;
  backdrop-filter: blur(12px);
}
.cat-card-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(99,102,241,0.15), transparent 60%);
  opacity: 0; transition: opacity 0.4s ease;
}
.cat-card:hover .cat-card-glow { opacity: 1; }
.cat-card:hover {
  border-color: rgba(129,140,248,0.4);
  transform: translateY(-3px);
  box-shadow: 0 20px 60px -15px rgba(99,102,241,0.3), 0 0 0 1px rgba(129,140,248,0.15);
}
.cat-card-name { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.cat-card-count { font-size: 11px; color: var(--text3); font-family: var(--mono); letter-spacing: 0.04em; }

/* ── PROMPT CARDS (Glassmorphic) ──────────────────────────── */
.prompt-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px;
}
.prompt-card {
  background: rgba(18,20,36,0.5);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px; padding: 0;
  cursor: default; transition: all 0.3s ease;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  backdrop-filter: blur(12px);
}
.prompt-card:hover {
  border-color: rgba(129,140,248,0.35);
  transform: translateY(-4px);
  box-shadow: 0 24px 60px -15px rgba(0,0,0,0.5), 0 0 50px -15px rgba(99,102,241,0.2);
}
.prompt-card.locked { opacity: 0.7; }
.prompt-card.locked::after {
  content: 'PRO'; position: absolute; top: 14px; right: 14px;
  background: var(--pro); color: white; font-size: 9px;
  font-weight: 800; padding: 3px 10px; border-radius: 50px; letter-spacing: 0.8px;
}

.card-header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 18px 18px 0; }
.card-cat {
  font-size: 10px; font-weight: 600; padding: 3px 10px;
  border-radius: 50px; white-space: nowrap;
  background: rgba(99,102,241,0.12); color: var(--accent2);
  border: 1px solid rgba(99,102,241,0.15);
}
.card-tier {
  font-size: 9px; font-weight: 700; padding: 2px 8px;
  border-radius: 50px; text-transform: uppercase; letter-spacing: 0.8px;
}
.card-tier.free { background: rgba(16,185,129,0.12); color: var(--green); border: 1px solid rgba(16,185,129,0.2); }
.card-tier.pro { background: rgba(245,158,11,0.12); color: var(--gold); border: 1px solid rgba(245,158,11,0.2); }

.card-body { padding: 14px 18px; cursor: pointer; flex: 1; }
.card-title {
  font-size: 15px; font-weight: 600; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  letter-spacing: -0.02em;
}
.card-desc {
  font-size: 12.5px; color: var(--text2); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  margin-top: 6px;
}
.card-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.card-tag {
  background: rgba(255,255,255,0.04); color: var(--text3);
  font-size: 10px; padding: 3px 10px; border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.07);
  font-family: var(--mono); letter-spacing: 0.02em;
}

.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px; border-top: 1px solid rgba(255,255,255,0.06);
}
.card-meta { display: flex; align-items: center; gap: 10px; }
.card-rating { color: var(--gold); font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.card-rating svg { color: var(--gold); }
.card-models { font-size: 10px; color: var(--text3); font-family: var(--mono); }

/* Card action buttons (like/share/copy) */
.card-actions { display: flex; gap: 4px; }
.card-action-btn {
  display: flex; align-items: center; gap: 4px;
  padding: 5px 8px; border-radius: 8px;
  background: transparent; border: 1px solid transparent;
  color: var(--text3); font-size: 11px; font-family: var(--font);
  cursor: pointer; transition: all 0.2s ease;
}
.card-action-btn:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.08);
  color: var(--text);
}
.card-action-btn svg { transition: all 0.2s ease; }
.like-btn:hover svg, .like-btn.active svg { color: #f472b6; }
.like-btn.active { color: #f472b6; }
.like-btn.active svg { fill: #f472b6; stroke: #f472b6; animation: heartPop 0.3s ease; }
.share-btn:hover svg { color: var(--accent2); }
.copy-btn:hover svg { color: var(--green); }

@keyframes heartPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* ── FEATURED CATEGORIES ─────────────────────────────────── */
.featured-cats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
@media (max-width: 1080px) { .featured-cats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .featured-cats { grid-template-columns: 1fr; } }

.feat-cat {
  position: relative; padding: 28px 24px 24px;
  border-radius: 20px;
  background: rgba(18,20,36,0.5);
  backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.07);
  cursor: pointer; overflow: hidden;
  display: flex; flex-direction: column;
  text-decoration: none; color: var(--text);
  transition: all 0.4s ease;
  min-height: 160px;
}
.feat-cat-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(99,102,241,0.18), transparent 60%);
  opacity: 0; transition: opacity 0.4s ease;
}
.feat-cat:hover .feat-cat-glow { opacity: 1; }
.feat-cat:hover {
  border-color: rgba(99,102,241,0.4);
  transform: translateY(-4px);
  box-shadow: 0 30px 80px -20px rgba(99,102,241,0.35);
}
.feat-cat-count {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text3); margin-bottom: 8px;
}
.feat-cat-name {
  font-family: var(--font-display); font-size: 22px;
  font-weight: 700; letter-spacing: -0.03em;
  line-height: 1.1; margin-bottom: 6px;
}
.feat-cat-group { font-size: 12px; color: var(--text3); margin-bottom: auto; }
.feat-cat-arrow {
  font-size: 16px; color: var(--text3);
  transition: all 0.3s ease; margin-top: 16px;
  align-self: flex-end;
}
.feat-cat:hover .feat-cat-arrow { color: var(--text); transform: translateX(4px); }

/* Color variants */
.feat-cat.cyan .feat-cat-glow { background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(99,102,241,0.2), transparent 60%); }
.feat-cat.cyan:hover { border-color: rgba(99,102,241,0.4); box-shadow: 0 30px 80px -20px rgba(99,102,241,0.35); }
.feat-cat.violet .feat-cat-glow { background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(168,85,247,0.2), transparent 60%); }
.feat-cat.violet:hover { border-color: rgba(168,85,247,0.4); box-shadow: 0 30px 80px -20px rgba(168,85,247,0.35); }
.feat-cat.magenta .feat-cat-glow { background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(244,114,182,0.2), transparent 60%); }
.feat-cat.magenta:hover { border-color: rgba(244,114,182,0.4); box-shadow: 0 30px 80px -20px rgba(244,114,182,0.35); }
.feat-cat.amber .feat-cat-glow { background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(245,158,11,0.2), transparent 60%); }
.feat-cat.amber:hover { border-color: rgba(245,158,11,0.4); box-shadow: 0 30px 80px -20px rgba(245,158,11,0.35); }

/* ── SCROLL REVEAL ANIMATIONS ────────────────────────────── */
.reveal-section {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.reveal-section.revealed { opacity: 1; transform: translateY(0); }

/* Stagger children */
.reveal-section.revealed .prompt-card,
.reveal-section.revealed .feat-cat {
  animation: fadeSlideUp 0.5s ease forwards;
  opacity: 0;
}
.reveal-section.revealed .prompt-card:nth-child(1),
.reveal-section.revealed .feat-cat:nth-child(1) { animation-delay: 0.05s; }
.reveal-section.revealed .prompt-card:nth-child(2),
.reveal-section.revealed .feat-cat:nth-child(2) { animation-delay: 0.1s; }
.reveal-section.revealed .prompt-card:nth-child(3),
.reveal-section.revealed .feat-cat:nth-child(3) { animation-delay: 0.15s; }
.reveal-section.revealed .prompt-card:nth-child(4),
.reveal-section.revealed .feat-cat:nth-child(4) { animation-delay: 0.2s; }
.reveal-section.revealed .prompt-card:nth-child(5),
.reveal-section.revealed .feat-cat:nth-child(5) { animation-delay: 0.25s; }
.reveal-section.revealed .prompt-card:nth-child(6),
.reveal-section.revealed .feat-cat:nth-child(6) { animation-delay: 0.3s; }
.reveal-section.revealed .prompt-card:nth-child(7),
.reveal-section.revealed .feat-cat:nth-child(7) { animation-delay: 0.35s; }
.reveal-section.revealed .prompt-card:nth-child(8),
.reveal-section.revealed .feat-cat:nth-child(8) { animation-delay: 0.4s; }

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

/* Utility */
.mt-48 { margin-top: 48px; }

/* ── BROWSE PAGE ──────────────────────────────────────────── */
.browse-layout {
  display: grid; grid-template-columns: 240px 1fr; gap: 20px;
  min-height: calc(100vh - 130px);
}
.browse-sidebar {
  position: sticky; top: 80px; height: calc(100vh - 80px);
  overflow-y: auto; padding: 12px;
  background: var(--surface); border-radius: var(--r);
  border: 1px solid var(--border);
}
.browse-sidebar::-webkit-scrollbar { width: 4px; }
.browse-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.sidebar-group { margin-bottom: 16px; }
.sidebar-group-title {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--text3); padding: 8px 10px 4px;
}
.sidebar-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 10px; border-radius: var(--r-xs);
  color: var(--text2); font-size: 12.5px; cursor: pointer;
  transition: all var(--t); text-decoration: none;
}
.sidebar-item:hover { background: var(--surface2); color: var(--text); }
.sidebar-item.active { background: var(--accent-dim); color: var(--accent2); font-weight: 600; }
.sidebar-count {
  background: var(--surface3); font-size: 10px;
  padding: 2px 7px; border-radius: 10px; color: var(--text3);
}

.browse-controls {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 18px; flex-wrap: wrap;
}
.browse-controls select {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xs); padding: 7px 12px;
  color: var(--text); font-family: var(--font); font-size: 12px;
  outline: none; cursor: pointer;
}
.browse-controls select:focus { border-color: var(--accent); }
.browse-total { color: var(--text3); font-size: 12px; margin-left: auto; }

/* ── AI BROWSE PAGE (Premium Redesign) ───────────────────── */
.ai-browse-page {
  position: relative; z-index: 1;
  max-width: 1100px; margin: 0 auto;
  padding: 16px 24px 80px;
}

/* Eyebrow and Header styling */
.ai-browse-hero {
  text-align: center;
  margin-bottom: 48px;
  position: relative;
  z-index: 2;
}
.ai-browse-hero .section-eyebrow {
  justify-content: center;
  margin-bottom: 16px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--text3);
}
.ai-hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, #ffffff 30%, #d8b4fe 75%, var(--accent3) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 16px;
  text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
.ai-hero-sub {
  font-size: 16px;
  color: var(--text2);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}
.ai-hero-sub strong {
  color: var(--accent3);
}

/* Glass chat card wrap */
.ai-chat-glass-wrap {
  position: relative;
  margin-bottom: 64px;
  z-index: 2;
}
.ai-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(120px);
  opacity: 0.65;
  z-index: 0;
  will-change: filter, opacity;
}
.ai-glow-1 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(99,102,241,0.3) 0%, transparent 70%);
  top: -80px;
  left: -60px;
}
.ai-glow-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(168,85,247,0.25) 0%, transparent 70%);
  bottom: -60px;
  right: -50px;
}
.ai-glow-3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(245,158,11,0.15) 0%, transparent 70%);
  top: 30%;
  right: 20%;
}

/* Main glass card styling */
.ai-chat-glass {
  position: relative;
  z-index: 2;
  background: rgba(18, 18, 28, 0.55);
  backdrop-filter: blur(30px) saturate(1.4);
  -webkit-backdrop-filter: blur(30px) saturate(1.4);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 30px 90px -15px rgba(0,0,0,0.8),
    0 0 60px -20px rgba(99,102,241,0.35),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

/* Chat header inside glass card */
.ai-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(99, 102, 241, 0.04);
}
.ai-chat-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.ai-chat-icon {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(168,85,247,0.22));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(99,102,241,0.2);
}
.ai-chat-icon::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 16px;
  border: 2px solid rgba(168,85,247,0.4);
  animation: pulse 2s ease-in-out infinite;
}
.ai-chat-title {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.ai-chat-subtitle {
  font-size: 12px;
  color: var(--text3);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ai-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
  box-shadow: 0 0 10px rgba(16,185,129,0.7);
  animation: pulse 1.6s ease-in-out infinite;
}

/* Chat messages list */
.ai-chat-messages {
  padding: 28px 32px;
  min-height: 120px;
  max-height: 480px;
  overflow-y: auto;
  scroll-behavior: smooth;
}
.ai-chat-messages::-webkit-scrollbar {
  width: 5px;
}
.ai-chat-messages::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
}
.ai-chat-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.15);
}

.ai-msg {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  animation: fadeSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.ai-msg-user {
  justify-content: flex-end;
}
.ai-avatar {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(99,102,241,0.18), rgba(168,85,247,0.18));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent2);
  border: 1px solid rgba(129,140,248,0.25);
}
.ai-bubble {
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(26, 26, 38, 0.75);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  max-width: 78%;
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.ai-bubble-user {
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: white;
  border: none;
  border-radius: 18px 18px 4px 18px;
  box-shadow: 0 8px 24px rgba(99,102,241,0.35);
}
.ai-q-label {
  font-weight: 600;
  color: var(--accent3);
  margin-top: 12px;
  font-size: 13.5px;
}

/* Collapsed selections strip — answered questions condense here (Gemini-style) */
.ai-selections {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0 0 16px; padding: 0 0 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  animation: aiSelIn .3s ease;
}
.ai-selections:empty { display: none; }
.ai-sel-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 99px;
  font-size: 12px; font-weight: 600; color: #34d399;
  background: rgba(52,211,153,0.10); border: 1px solid rgba(52,211,153,0.28);
  animation: aiSelIn .3s ease;
}
.ai-sel-chip svg { color: #34d399; }
@keyframes aiSelIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

/* Inline options chips */
.ai-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.ai-option-btn {
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(30,30,46,0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--text2);
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.ai-option-btn:hover:not(:disabled) {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent2);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(99,102,241,0.25);
}
.ai-option-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

/* Typing state */
.ai-typing-dots {
  display: flex;
  gap: 6px;
  padding: 6px 0;
  align-items: center;
}
.ai-typing-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent2);
  animation: aiDot 1.4s infinite ease-in-out;
}
.ai-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.ai-typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes aiDot {
  0%, 80%, 100% { opacity: 0.2; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1.1); }
}

/* Search animation loop */
.ai-search-anim {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent2);
  font-size: 13.5px;
  font-weight: 500;
}
.ai-search-spin {
  animation: spin 1.2s linear infinite;
}

/* Quick picks styled 4-col mini-cards */
.ai-quick-section {
  padding: 0 32px 24px;
}
.ai-quick-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text3);
  margin-bottom: 14px;
}
.ai-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.ai-quick-card {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(22,22,30,0.45);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 10px;
}
.ai-quick-card:hover {
  transform: translateY(-3px);
}
.ai-quick-card .qc-icon {
  font-size: 16px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.ai-quick-card:hover .qc-icon {
  transform: scale(1.1) rotate(5deg);
}
.ai-quick-card .qc-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ai-quick-card:hover .qc-name {
  color: var(--text);
}

/* Theme color accents for quick-picks */
.ai-quick-card.qc-cyan { border-color: rgba(99,102,241,0.15); }
.ai-quick-card.qc-cyan:hover { border-color: rgba(99,102,241,0.5); box-shadow: 0 8px 30px rgba(99,102,241,0.15); }
.ai-quick-card.qc-cyan .qc-icon { background: rgba(99,102,241,0.12); color: var(--accent2); }

.ai-quick-card.qc-violet { border-color: rgba(168,85,247,0.15); }
.ai-quick-card.qc-violet:hover { border-color: rgba(168,85,247,0.5); box-shadow: 0 8px 30px rgba(168,85,247,0.15); }
.ai-quick-card.qc-violet .qc-icon { background: rgba(168,85,247,0.12); color: #c084fc; }

.ai-quick-card.qc-magenta { border-color: rgba(244,114,182,0.15); }
.ai-quick-card.qc-magenta:hover { border-color: rgba(244,114,182,0.5); box-shadow: 0 8px 30px rgba(244,114,182,0.15); }
.ai-quick-card.qc-magenta .qc-icon { background: rgba(244,114,182,0.12); color: var(--pink); }

.ai-quick-card.qc-amber { border-color: rgba(245,158,11,0.15); }
.ai-quick-card.qc-amber:hover { border-color: rgba(245,158,11,0.5); box-shadow: 0 8px 30px rgba(245,158,11,0.15); }
.ai-quick-card.qc-amber .qc-icon { background: rgba(245,158,11,0.12); color: var(--gold); }

/* Premium Input Bar with traveling gradient border animation */
.ai-input-wrap {
  padding: 20px 32px 28px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.ai-input-inner {
  display: flex;
  gap: 10px;
  padding: 4px;
  border-radius: 18px;
  background: rgba(15,15,20,0.65);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.3s ease;
  position: relative;
}
.ai-input-inner:focus-within {
  background: linear-gradient(rgba(15, 15, 20, 0.8), rgba(15, 15, 20, 0.8)) padding-box,
              linear-gradient(90deg, #6366f1, #a855f7, #ec4899, #6366f1) border-box;
  border: 1px solid transparent;
  box-shadow: 0 0 35px rgba(99,102,241,0.16);
  background-size: 300% 300%;
  animation: gradientBorder 4s linear infinite;
}
.ai-chat-input {
  flex: 1;
  padding: 12px 18px;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 14.5px;
  outline: none;
}
.ai-chat-input::placeholder {
  color: var(--text3);
}
.ai-send-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}
.ai-send-btn:hover {
  transform: scale(1.08) translateY(-1px);
  box-shadow: 0 4px 20px rgba(99,102,241,0.5);
}
.ai-send-btn:active {
  transform: scale(0.97);
}
.ai-send-btn.send-pulse {
  animation: sendPulse 2.2s ease-in-out infinite;
}

/* AI Search Result Cards */
.ai-results {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}
.ai-result-card {
  background: rgba(22,22,30,0.65);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
  padding: 18px 22px;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.ai-result-card:hover {
  border-color: rgba(129,140,248,0.35);
  transform: translateY(-3px);
  box-shadow:
    0 16px 45px rgba(0,0,0,0.4),
    0 0 35px rgba(99,102,241,0.1);
}
.ai-result-card.best-match {
  border-color: rgba(168,85,247,0.45);
  box-shadow:
    0 0 35px rgba(168,85,247,0.12),
    0 16px 45px rgba(0,0,0,0.45);
}
.ai-best-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(168,85,247,0.2), rgba(99,102,241,0.2));
  color: #c084fc;
  border: 1px solid rgba(168,85,247,0.35);
  margin-right: auto;
}
.ai-result-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.ai-relevance {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--accent-dim);
  color: var(--accent2);
}
.ai-result-tier {
  font-size: 10px;
  font-weight: 700;
  padding: 2.5px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ai-tier-free { background: var(--green-bg); color: var(--green); }
.ai-tier-pro { background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(239,68,68,0.15)); color: var(--gold); }
.ai-result-rating {
  font-size: 11px;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 3px;
  font-weight: 600;
}
.ai-result-title {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.ai-result-desc {
  font-size: 13px;
  color: var(--text3);
  line-height: 1.55;
  margin-bottom: 14px;
}

/* Animated Relevance Fills */
.ai-relevance-bar {
  height: 4px;
  border-radius: 2px;
  margin-bottom: 14px;
  background: rgba(255,255,255,0.04);
  overflow: hidden;
}
.ai-relevance-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), #a855f7);
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  width: 0;
}
.ai-relevance-fill.high {
  background: linear-gradient(90deg, var(--accent), #ec4899);
  box-shadow: 0 0 10px rgba(168,85,247,0.5);
}

.ai-result-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.ai-result-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.ai-result-tag {
  font-size: 10.5px;
  padding: 3px 8px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  color: var(--text3);
  font-family: var(--mono);
}
.ai-result-models {
  font-size: 11px;
  color: var(--text3);
  font-family: var(--mono);
}
.ai-result-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.ai-result-more {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  justify-content: center;
}

/* Custom section for trending items underneath chat */
.ai-trending-section {
  margin-top: 8px;
}

.ai-browse-footer {
  display: flex;
  justify-content: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.04);
}

/* Responsive custom design overrides */
@media (max-width: 768px) {
  .ai-quick-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .ai-chat-messages { padding: 20px 24px; max-height: 400px; }
  .ai-quick-section { padding: 0 20px 20px; }
  .ai-input-wrap { padding: 16px 20px; }
  .ai-bubble { max-width: 90%; }
}
@media (max-width: 480px) {
  .ai-quick-grid { grid-template-columns: 1fr; gap: 8px; }
  .ai-status-dot { display: none; }
}

/* Animations and keyframes */
@keyframes gradientBorder {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes sendPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99,102,241,0.4); }
  50% { box-shadow: 0 0 0 10px rgba(99,102,241,0); }
}

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

/* ── AI PROMPT SYNTHESIS ENGINE STYLES ───────────────────── */
.synthesis-card-teaser {
  position: relative;
  background: rgba(22, 22, 33, 0.45);
  border: 1px solid rgba(249, 212, 35, 0.2);
  border-radius: 20px;
  padding: 20px 24px;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}
.synthesis-card-teaser:hover {
  border-color: rgba(249, 212, 35, 0.45);
  box-shadow: 0 15px 45px rgba(249, 212, 35, 0.12);
  transform: translateY(-2px);
}
.synthesis-teaser-glow {
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(249, 212, 35, 0.15) 0%, transparent 70%);
  filter: blur(15px);
  pointer-events: none;
}
.synthesis-console {
  background: rgba(10, 10, 15, 0.95);
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 12px;
  overflow: hidden;
  font-family: var(--mono);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  width: 100%;
  box-sizing: border-box;
}
.synthesis-console .console-header {
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 14px;
  font-size: 11px;
  color: var(--accent2);
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  letter-spacing: 1px;
  text-align: left;
}
.synthesis-console .console-body {
  padding: 12px 16px;
  max-height: 240px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-sizing: border-box;
}
.synthesis-console .console-line {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.5;
  text-align: left;
  animation: consoleLineIn 0.2s ease forwards;
}
@keyframes consoleLineIn {
  from { opacity: 0; transform: translateX(-4px); }
  to { opacity: 1; transform: translateX(0); }
}
.synthesized-glow {
  animation: synthBorderGlow 4s linear infinite;
}
@keyframes synthBorderGlow {
  0%, 100% { border-color: rgba(249, 212, 35, 0.45); box-shadow: 0 0 15px rgba(249, 212, 35, 0.15); }
  50% { border-color: rgba(255, 78, 80, 0.6); box-shadow: 0 0 25px rgba(255, 78, 80, 0.25); }
}

/* ── PAGINATION ───────────────────────────────────────────── */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; margin-top: 28px; padding: 16px 0;
}
.pg-btn {
  padding: 6px 14px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-xs);
  color: var(--text2); font-family: var(--font); font-size: 12px;
  cursor: pointer; transition: all var(--t);
}
.pg-btn:hover:not(:disabled) { border-color: var(--accent2); color: var(--accent2); }
.pg-btn:disabled { opacity: 0.3; cursor: default; }
.pg-btn.active { background: var(--accent-dim); color: var(--accent2); border-color: var(--accent); font-weight: 600; }
.pg-info { color: var(--text3); font-size: 12px; }

/* ── MODAL (Prompt Detail) ────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; }
.modal.hidden { display: none; }
.modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.65); backdrop-filter: blur(8px); }
.modal-content {
  position: relative; background: var(--bg2);
  border: 1px solid var(--border); border-radius: var(--r);
  max-width: 800px; width: 92%; max-height: 85vh;
  overflow-y: auto; box-shadow: var(--shadow-lg); padding: 28px;
  animation: modalIn 0.2s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-close {
  position: absolute; top: 14px; right: 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 50%; width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text2); font-size: 18px; cursor: pointer; transition: all var(--t);
}
.modal-close:hover { background: var(--red-bg); color: var(--red); border-color: var(--red); }

.detail-header { margin-bottom: 20px; }
.detail-badges { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.detail-title { font-size: 24px; font-weight: 700; line-height: 1.3; }
.detail-meta { display: flex; gap: 14px; margin-top: 8px; color: var(--text3); font-size: 12px; }
.detail-actions { display: flex; gap: 8px; margin: 16px 0; flex-wrap: wrap; }

.detail-section { margin-bottom: 20px; }
.detail-section-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--text3); margin-bottom: 8px;
}
.detail-section-content {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 14px;
  font-size: 13px; line-height: 1.7; white-space: pre-wrap;
  font-family: var(--mono); color: var(--text2);
}
.detail-section-content .var {
  background: var(--accent-dim); color: var(--accent2);
  padding: 2px 6px; border-radius: 4px;
  font-family: var(--mono); font-size: 11px;
}
.detail-constraints { list-style: none; padding: 0; }
.detail-constraints li {
  padding: 8px 12px; border-left: 3px solid var(--accent);
  margin-bottom: 6px; background: var(--surface);
  border-radius: 0 var(--r-xs) var(--r-xs) 0; font-size: 13px;
}
.detail-locked {
  text-align: center; padding: 48px 24px;
  background: var(--surface); border-radius: var(--r);
  border: 2px dashed var(--border);
}
.detail-locked-icon { font-size: 48px; margin-bottom: 16px; }
.detail-locked h3 { font-size: 20px; margin-bottom: 8px; }
.detail-locked p { color: var(--text2); margin-bottom: 20px; }

/* ── COMMENTS ─────────────────────────────────────────────── */
.comments-section { margin-top: 28px; }
.comment-form { display: flex; gap: 10px; margin-bottom: 16px; }
.comment-form textarea {
  flex: 1; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 10px;
  color: var(--text); font-family: var(--font); font-size: 13px;
  resize: vertical; min-height: 70px; outline: none;
}
.comment-form textarea:focus { border-color: var(--accent); }
.comment { display: flex; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.comment-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface2); display: flex; align-items: center;
  justify-content: center; font-weight: 600; font-size: 12px;
  color: var(--accent2); flex-shrink: 0;
}
.comment-body { flex: 1; }
.comment-header { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.comment-author { font-weight: 600; font-size: 13px; }
.comment-time { font-size: 10px; color: var(--text3); }
.comment-pro { background: var(--pro); color: white; font-size: 9px; font-weight: 800; padding: 2px 6px; border-radius: 3px; }
.comment-text { font-size: 13px; color: var(--text2); line-height: 1.5; }

/* ── STORE PAGE ───────────────────────────────────────────── */
.store-hero {
  text-align: center; padding: 60px 24px 40px;
  background: linear-gradient(180deg, var(--gold-bg) 0%, transparent 100%);
  position: relative;
}
.store-hero h1 {
  font-size: 38px; font-weight: 800;
  background: var(--pro);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.store-hero p { color: var(--text2); font-size: 15px; margin-top: 8px; }

.pack-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px;
}
.pack-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 22px;
  transition: all var(--t); cursor: pointer;
  position: relative; overflow: hidden;
}
.pack-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--pro); opacity: 0; transition: opacity var(--t);
}
.pack-card:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(245,158,11,0.1); }
.pack-card:hover::before { opacity: 1; }
.pack-card.featured { border-color: var(--gold); }
.pack-card.featured::before { opacity: 1; }
.pack-card.owned { border-color: var(--green); }
.pack-icon { font-size: 28px; margin-bottom: 10px; }
.pack-name { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.pack-desc { font-size: 12px; color: var(--text2); line-height: 1.5; margin-bottom: 14px; }
.pack-meta { display: flex; justify-content: space-between; align-items: center; }
.pack-price { font-size: 22px; font-weight: 800; color: var(--gold); }
.pack-count { font-size: 11px; color: var(--text3); }
.pack-owned-badge { background: var(--green-bg); color: var(--green); padding: 4px 12px; border-radius: 50px; font-size: 11px; font-weight: 600; }

/* ── AUTH PAGE ────────────────────────────────────────────── */
.auth-page {
  display: flex; align-items: center; justify-content: center;
  min-height: calc(100vh - 60px); padding: 32px;
}
.auth-card {
  background: rgba(18,20,36,0.65);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(129,140,248,0.2);
  border-radius: 20px; padding: 40px; width: 100%; max-width: 420px;
  box-shadow: 0 30px 60px -15px rgba(0,0,0,0.6), 0 0 40px -10px rgba(99,102,241,0.15);
  position: relative; overflow: hidden;
}
.auth-card::before {
  content: ''; position: absolute; inset: 0;
  border-radius: 20px; padding: 1px;
  background: linear-gradient(135deg, rgba(129,140,248,0.3), transparent 40%, rgba(168,85,247,0.25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.auth-title { font-size: 26px; font-weight: 800; text-align: center; margin-bottom: 6px; }
.auth-subtitle { text-align: center; color: var(--text2); margin-bottom: 28px; font-size: 13px; }
.auth-tabs { display: flex; margin-bottom: 22px; border-bottom: 1px solid var(--border); }
.auth-tab {
  flex: 1; padding: 10px; text-align: center; font-weight: 600;
  color: var(--text3); cursor: pointer; transition: all var(--t);
  border-bottom: 2px solid transparent; background: none;
  border-top: none; border-left: none; border-right: none;
  font-family: var(--font); font-size: 13px;
}
.auth-tab.active { color: var(--accent2); border-bottom-color: var(--accent); }

.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 12px; font-weight: 600; color: var(--text2); margin-bottom: 6px; }
.form-input {
  width: 100%; padding: 11px 14px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-sm); color: var(--text);
  font-family: var(--font); font-size: 13px;
  outline: none; transition: all var(--t);
}
.form-input:focus { border-color: var(--accent); background: var(--surface2); }
.form-error { color: var(--red); font-size: 11px; margin-top: 4px; display: none; }
.form-group.error .form-input { border-color: var(--red); }
.form-group.error .form-error { display: block; }

/* ── PROFILE PAGE ─────────────────────────────────────────── */
.profile-header {
  display: flex; gap: 24px; align-items: center;
  padding: 28px; background: var(--surface);
  border-radius: var(--r); border: 1px solid var(--border);
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--surface), var(--surface2));
}
.profile-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #a855f7);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 800; color: white; flex-shrink: 0;
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--accent-dim);
}
.profile-info h2 { font-size: 22px; font-weight: 700; }
.profile-info .role-badge {
  display: inline-block; padding: 3px 12px; border-radius: 50px;
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; margin-top: 4px;
}
.role-badge.free { background: var(--green-bg); color: var(--green); }
.role-badge.pro { background: var(--gold-bg); color: var(--gold); }
.role-badge.admin { background: var(--red-bg); color: var(--red); }

.profile-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px; margin-bottom: 24px;
}
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 14px; text-align: center;
}
.stat-num { font-size: 22px; font-weight: 800; color: var(--accent2); }
.stat-label { font-size: 11px; color: var(--text3); margin-top: 2px; }

.profile-tabs { display: flex; gap: 4px; margin-bottom: 20px; flex-wrap: wrap; }
.profile-tab {
  padding: 8px 18px; border-radius: var(--r-xs);
  font-size: 12px; font-weight: 600; color: var(--text3);
  cursor: pointer; transition: all var(--t);
  background: none; border: 1px solid transparent; font-family: var(--font);
}
.profile-tab:hover { color: var(--text); background: var(--surface); }
.profile-tab.active { color: var(--accent2); background: var(--accent-dim); border-color: var(--accent); }

/* ══════════════════════════════════════════════════════════
   ADMIN PANEL
   ══════════════════════════════════════════════════════════ */
.admin-layout {
  display: grid; grid-template-columns: 220px 1fr; gap: 20px;
  min-height: calc(100vh - 120px);
}
.admin-sidebar {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 16px; position: sticky;
  top: 80px; height: fit-content;
}
.admin-sidebar-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--text3); padding: 8px 8px 12px;
  border-bottom: 1px solid var(--border); margin-bottom: 8px;
}
.admin-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--r-xs);
  color: var(--text2); font-size: 13px; cursor: pointer;
  transition: all var(--t); border: none; background: none;
  width: 100%; font-family: var(--font); text-align: left;
}
.admin-nav-item:hover { background: var(--surface2); color: var(--text); }
.admin-nav-item.active { background: var(--accent-dim); color: var(--accent2); font-weight: 600; }
.admin-nav-icon { width: 20px; text-align: center; }

.admin-main { min-width: 0; }
.admin-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; flex-wrap: wrap; gap: 12px;
}
.admin-header h2 { font-size: 22px; font-weight: 700; }

/* Admin Stats Grid */
.admin-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px; margin-bottom: 24px;
}
.admin-stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 18px;
  position: relative; overflow: hidden;
}
.admin-stat-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
}
.admin-stat-card.purple::after { background: var(--accent); }
.admin-stat-card.green::after { background: var(--green); }
.admin-stat-card.gold::after { background: var(--gold); }
.admin-stat-card.blue::after { background: var(--blue); }
.admin-stat-card.pink::after { background: var(--pink); }
.admin-stat-value { font-size: 28px; font-weight: 800; color: var(--text); }
.admin-stat-label { font-size: 12px; color: var(--text3); margin-top: 2px; }

/* Admin Table */
.admin-table-wrap {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden;
}
.admin-table-toolbar {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.admin-table-toolbar input {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-xs); padding: 7px 12px;
  color: var(--text); font-family: var(--font); font-size: 12px;
  outline: none; flex: 1; min-width: 200px;
}
.admin-table-toolbar input:focus { border-color: var(--accent); }

.admin-table {
  width: 100%; border-collapse: collapse;
}
.admin-table th {
  text-align: left; padding: 10px 14px;
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.8px; color: var(--text3);
  background: var(--surface2); border-bottom: 1px solid var(--border);
}
.admin-table td {
  padding: 10px 14px; font-size: 13px; color: var(--text2);
  border-bottom: 1px solid var(--border);
}
.admin-table tr:hover td { background: var(--surface2); }
.admin-table .td-title { color: var(--text); font-weight: 500; max-width: 250px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Admin Form */
.admin-form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 24px;
}
.admin-form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.admin-form-full { grid-column: 1 / -1; }
.admin-form textarea {
  width: 100%; min-height: 120px; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 10px 12px; color: var(--text); font-family: var(--mono);
  font-size: 12px; outline: none; resize: vertical;
}
.admin-form textarea:focus { border-color: var(--accent); }
.admin-form select {
  width: 100%; padding: 10px 12px; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--r-sm);
  color: var(--text); font-family: var(--font); font-size: 13px;
  outline: none;
}
.admin-form select:focus { border-color: var(--accent); }

/* ── TOAST ────────────────────────────────────────────────── */
#toast-container {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 3000; display: flex; flex-direction: column; gap: 8px;
}
.toast {
  padding: 12px 20px; border-radius: var(--r-sm);
  font-size: 13px; font-weight: 500;
  animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
  box-shadow: var(--shadow); backdrop-filter: blur(8px);
  display: flex; align-items: center; gap: 8px;
}
.toast.success { background: rgba(16,185,129,0.9); color: white; }
.toast.error { background: rgba(239,68,68,0.9); color: white; }
.toast.info { background: rgba(99,102,241,0.9); color: white; }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { from { opacity: 1; } to { opacity: 0; transform: translateX(30px); } }

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  text-align: center; padding: 32px 24px;
  border-top: 1px solid var(--border);
  color: var(--text3); font-size: 12px;
  margin-top: 48px;
}
.footer a { color: var(--text3); }
.footer a:hover { color: var(--accent2); }

/* ── LOADING ──────────────────────────────────────────────── */
.loading { display: flex; align-items: center; justify-content: center; padding: 48px; color: var(--text3); }
.spinner {
  width: 28px; height: 28px;
  border: 3px solid var(--border); border-top-color: var(--accent);
  border-radius: 50%; animation: spin 0.7s linear infinite; margin-right: 10px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── EMPTY STATE ──────────────────────────────────────────── */
.empty-state { text-align: center; padding: 60px 24px; color: var(--text3); }
.empty-state-icon { font-size: 44px; margin-bottom: 14px; opacity: 0.5; }
.empty-state h3 { font-size: 18px; color: var(--text2); margin-bottom: 6px; }
.empty-state p { font-size: 13px; }

/* ── UTILITIES ────────────────────────────────────────────── */
.hidden { display: none !important; }
.flex { display: flex; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.text-center { text-align: center; }
.text-muted { color: var(--text3); }

/* ── BROWSE PAGE SPECIFIC CSS ───────────────────────────── */
.browse-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
}
.browse-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: 8px;
  padding-bottom: 32px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.browse-sidebar::-webkit-scrollbar { width: 4px; }
.browse-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.sidebar-group-title {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 16px 0 8px 12px;
}
.sidebar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--text2);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
  border: 1px solid transparent;
}
.sidebar-item:hover {
  background: rgba(255,255,255,0.03);
  color: var(--text);
}
.sidebar-item.active {
  background: rgba(99,102,241,0.1);
  color: var(--accent3);
  border-color: rgba(99,102,241,0.2);
  box-shadow: inset 0 0 10px rgba(99,102,241,0.05);
}
.sidebar-count {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
  background: rgba(0,0,0,0.3);
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.05);
}
.sidebar-item.active .sidebar-count {
  color: var(--accent3);
  background: rgba(99,102,241,0.2);
  border-color: rgba(99,102,241,0.3);
}

.browse-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.browse-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.browse-controls select {
  background: rgba(18,20,36,0.6);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text);
  padding: 8px 32px 8px 16px;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 13px;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fdfdff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.browse-controls select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.2);
}
.browse-controls select option {
  background-color: #0c0d1b !important;
  color: #fdfdff !important;
  padding: 12px !important;
  font-family: var(--font) !important;
}

/* Custom Toggle Buttons */
.btn-toggle {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text2);
  padding: 8px 16px;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.btn-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.15);
}
.btn-toggle.active {
  background: rgba(129, 140, 248, 0.15);
  border-color: rgba(129, 140, 248, 0.45);
  color: #c7d2fe;
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.25);
}
.btn-toggle-like.active {
  background: rgba(244, 63, 94, 0.15);
  border-color: rgba(244, 63, 94, 0.45);
  color: #fecdd3;
  box-shadow: 0 0 16px rgba(244, 63, 94, 0.25);
}

.browse-total {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text3);
}
/* ── AUTH & FORMS ─────────────────────────────────────────── */
.auth-tabs {
  display: flex; border-bottom: 1px solid var(--border2); margin-bottom: 32px;
}
.auth-tab {
  flex: 1; padding: 12px; background: transparent; border: none;
  color: var(--text3); font-family: var(--font); font-size: 14px; font-weight: 600;
  cursor: pointer; position: relative; transition: color 0.2s ease;
}
.auth-tab:hover { color: var(--text2); }
.auth-tab.active { color: var(--text); }
.auth-tab.active::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0;
  height: 2px; background: var(--accent); box-shadow: 0 0 10px var(--accent);
}

.form-group { margin-bottom: 20px; text-align: left; }
.form-label {
  display: block; font-size: 13px; font-weight: 500;
  color: var(--text2); margin-bottom: 8px;
}
.form-input {
  width: 100%; background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.1);
  padding: 14px 16px; border-radius: 12px; color: var(--text);
  font-family: var(--font); font-size: 15px; outline: none; transition: all 0.3s ease;
}
.form-input:focus {
  background: rgba(0,0,0,0.6); border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(99,102,241,0.1);
}
.form-input::placeholder { color: var(--text3); }

/* ══════════════════════════════════════════════════════════════
   MOBILE NAV OVERLAY
   ══════════════════════════════════════════════════════════════ */
.mobile-nav-overlay {
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none; visibility: hidden;
}
.mobile-nav-overlay.open { pointer-events: auto; visibility: visible; }
.mobile-nav-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity 0.3s ease;
}
.mobile-nav-overlay.open .mobile-nav-backdrop { opacity: 1; }
.mobile-nav-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 280px; max-width: 85vw;
  background: var(--bg2); border-left: 1px solid var(--border);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -10px 0 40px rgba(0,0,0,0.4);
}
.mobile-nav-overlay.open .mobile-nav-panel { transform: translateX(0); }
.mobile-nav-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.mobile-nav-close {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  color: var(--text2); border-radius: 10px; padding: 8px;
  cursor: pointer; display: flex; transition: all 0.2s;
}
.mobile-nav-close:hover { background: var(--red-bg); color: var(--red); border-color: var(--red); }
.mobile-nav-links { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.mobile-nav-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 12px;
  color: var(--text2); font-size: 15px; font-weight: 500;
  text-decoration: none; transition: all 0.2s;
}
.mobile-nav-item:hover, .mobile-nav-item.active {
  background: var(--accent-dim); color: var(--accent2);
}
.mobile-nav-item svg { flex-shrink: 0; opacity: 0.7; }
.mobile-nav-footer { padding: 16px 20px; border-top: 1px solid var(--border); }

/* ══════════════════════════════════════════════════════════════
   BOTTOM TAB BAR (App-like mobile navigation)
   ══════════════════════════════════════════════════════════════ */
.bottom-tab-bar {
  display: none; /* shown only on mobile via media query */
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 10000;
  background: rgba(5, 5, 12, 0.95);
  backdrop-filter: blur(30px) saturate(1.8);
  -webkit-backdrop-filter: blur(30px) saturate(1.8);
  border-top: 1px solid rgba(99,102,241,0.15);
  padding: 4px 0 max(8px, env(safe-area-inset-bottom));
  justify-content: space-around; align-items: center;
  box-shadow: 0 -4px 30px rgba(0,0,0,0.5);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}
.tab-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 16px; border-radius: 14px;
  color: var(--text3); text-decoration: none;
  font-size: 10px; font-weight: 600; letter-spacing: 0.03em;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-tap-highlight-color: transparent;
  position: relative; min-width: 60px;
}
.tab-item svg { width: 22px; height: 22px; transition: all 0.25s ease; stroke-width: 1.8; }
.tab-item.active {
  color: var(--accent2);
  background: rgba(99,102,241,0.1);
}
.tab-item.active svg {
  stroke: var(--accent2);
  filter: drop-shadow(0 0 8px rgba(99,102,241,0.6));
  stroke-width: 2.2;
}
.tab-item.active::before {
  content: ''; position: absolute; top: -4px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  box-shadow: 0 0 12px var(--accent-glow);
}
.tab-item:active { transform: scale(0.88); }

/* ══════════════════════════════════════════════════════════════
   MOBILE BROWSE SIDEBAR TOGGLE
   ══════════════════════════════════════════════════════════════ */
.mobile-sidebar-toggle {
  display: none; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text2); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all 0.2s; font-family: var(--font);
}
.mobile-sidebar-toggle:hover { background: var(--surface2); color: var(--text); border-color: var(--accent); }
.mobile-sidebar-toggle svg { flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════════
   SCORE TOOL SECTION (class-based — replaces inline styles)
   ══════════════════════════════════════════════════════════════ */
.score-section { margin-top: 24px; position: relative; z-index: 10; }
.score-tool-card {
  background: rgba(15,15,25,0.7); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(168,85,247,0.4); border-radius: 32px; padding: 48px;
  position: relative; overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.1);
  transform: perspective(1000px) rotateX(2deg); transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.score-glow {
  position: absolute; width: 300px; height: 300px; filter: blur(150px); pointer-events: none;
}
.score-glow-1 { top: -100px; left: -100px; background: var(--accent); opacity: 0.15; }
.score-glow-2 { bottom: -100px; right: -100px; background: var(--gold); opacity: 0.1; }
.score-tool-header { text-align: center; margin-bottom: 40px; position: relative; z-index: 2; }
.score-eyebrow { justify-content: center; margin-bottom: 16px; }
.score-dot { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.score-eyebrow-text { color: var(--accent); letter-spacing: 2px; }
.score-tool-title {
  font-size: 42px; font-weight: 800; margin-bottom: 16px;
  background: linear-gradient(90deg, #fff, #d8b4fe);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.score-tool-desc {
  color: var(--text2); font-size: 16px; max-width: 600px; margin: 0 auto; line-height: 1.6;
}
.score-tool-body {
  display: flex; flex-wrap: wrap; gap: 40px; align-items: stretch; position: relative; z-index: 2;
}
.score-input-col { flex: 2; min-width: 300px; display: flex; flex-direction: column; }
.score-textarea {
  flex: 1; width: 100%; min-height: 200px;
  background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px; padding: 24px; color: var(--text);
  font-family: var(--font); font-size: 16px; resize: none; margin-bottom: 24px;
  box-shadow: inset 0 4px 20px rgba(0,0,0,0.5); transition: all 0.3s ease;
}
.score-analyze-btn { width: 100%; justify-content: center; font-size: 18px; letter-spacing: 1px; }
.score-result-col {
  flex: 1; min-width: 300px;
  background: linear-gradient(145deg, rgba(20,20,30,0.8), rgba(10,10,15,0.9));
  border: 1px solid rgba(255,255,255,0.05); border-radius: 24px; padding: 32px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.score-comparison-label {
  color: var(--text3); font-size: 14px; margin-bottom: 24px;
  text-align: center; text-transform: uppercase; letter-spacing: 2px;
}
.score-comparison-row {
  display: flex; gap: 24px; align-items: center; width: 100%; justify-content: center;
}
.score-col { text-align: center; flex: 1; }
.score-col-label {
  font-size: 12px; color: var(--text3); margin-bottom: 12px;
  text-transform: uppercase; letter-spacing: 1px; font-weight: 600;
}
.score-col-label-pro { color: var(--gold); font-weight: 700; }
.score-circle {
  width: 90px; height: 90px; border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 800; color: var(--text2);
  margin: 0 auto; transition: all 1s ease; background: rgba(0,0,0,0.5);
}
.score-circle-pro {
  border-color: var(--gold); color: white;
  box-shadow: 0 0 30px rgba(245,158,11,0.2);
  background: linear-gradient(135deg, rgba(245,158,11,0.2), transparent);
}
.score-vs { font-size: 16px; color: var(--text3); font-weight: 800; opacity: 0.5; }
.score-feedback {
  margin-top: 32px; font-size: 14px; color: var(--text2); text-align: center;
  min-height: 48px; display: flex; align-items: center; justify-content: center;
  padding: 12px; background: rgba(0,0,0,0.3); border-radius: 12px; width: 100%;
}

/* ── Hero Tags Row (class-based) ── */
.hero-tags-row {
  display: flex; gap: 12px; margin-bottom: 28px;
  justify-content: center; flex-wrap: wrap; pointer-events: auto;
}
.hero-tags-row .hero-tag { margin-bottom: 0; }
.hero-tag-green {
  background: rgba(16,185,129,0.06); border-color: rgba(16,185,129,0.25); color: #10b981;
}
.live-dot-green { background: #10b981; box-shadow: 0 0 10px #10b981; }
.hero-tag-gold {
  background: rgba(245,158,11,0.06); border-color: rgba(245,158,11,0.25); color: #f59e0b;
}
.hero-tag-icon-gold { margin-right: 4px; color: #f59e0b; }
.cta-upgrade-btn { box-shadow: 0 0 20px rgba(255, 165, 0, 0.4); }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (≤1024px)
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .browse-layout { grid-template-columns: 1fr; }
  .browse-sidebar { display: none; }
  .browse-sidebar.mobile-open {
    display: block; position: fixed; top: 0; left: 0; bottom: 0;
    width: 280px; max-width: 85vw; z-index: 9998;
    border-radius: 0; border-right: 1px solid var(--border);
    box-shadow: 10px 0 40px rgba(0,0,0,0.5);
    animation: slideInLeft 0.3s ease;
  }
  @keyframes slideInLeft { from { transform: translateX(-100%); } to { transform: translateX(0); } }
  .mobile-sidebar-toggle { display: inline-flex; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .prompt-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤768px) — Native App Experience
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* ── Show bottom tab bar, hide desktop nav elements ── */
  .bottom-tab-bar { display: flex !important; }
  .mobile-menu-btn { display: none !important; }
  .nav-links { display: none !important; }

  /* ── Global: pad bottom for tab bar ── */
  body { padding-bottom: 72px; }
  #app { padding-top: 72px; }
  footer { padding-bottom: 16px !important; margin-bottom: 0 !important; }

  /* ═══════════════════════════════════════
     TOP NAVBAR — Minimal floating pill
     ═══════════════════════════════════════ */
  #navbar {
    width: calc(100% - 20px); top: 6px;
    padding: 6px 10px 6px 14px; border-radius: 50px;
    height: auto; max-width: none;
  }
  .nav-logo { gap: 8px; }
  .nav-logo .logo-icon { width: 28px; height: 28px; }
  .nav-logo .logo-text { font-size: 16px; }
  .nav-search {
    order: 0; flex: 0; width: 34px; height: 34px;
    margin: 0 4px; border-radius: 50px;
  }
  .nav-search.open { width: 200px; flex: 1; }
  #nav-search-input { font-size: 13px; }
  .search-kbd { display: none !important; }
  #live-stats { display: none !important; }
  .nav-auth .btn-ghost { display: none; }
  .nav-auth .btn-primary { padding: 7px 14px; font-size: 11px; border-radius: 50px; }
  .user-menu-btn span:not(.chevron):not([id]) { display: none; }
  #nav-username { display: none; }
  .user-avatar { width: 32px; height: 32px; font-size: 12px; }
  .user-dropdown { min-width: 240px; right: -10px; }

  /* ═══════════════════════════════════════
     HERO — Compact, app-like welcome screen
     ═══════════════════════════════════════ */
  .hero {
    padding: 20px 20px 24px !important;
    min-height: auto !important;
    gap: 0;
  }
  .hero-canvas-wrap { display: none !important; }
  .hero-particles { display: none; }
  canvas { display: none !important; }

  /* Hide the ambient orbs on mobile for perf */
  .float-orb { width: 200px !important; height: 200px !important; filter: blur(60px); opacity: 0.3; }

  .hero-content { padding: 0; }
  .hero-content::before { display: none; }

  /* Hero tags — compact row */
  .hero-tags-row { 
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    gap: 8px !important;
    padding-bottom: 4px !important;
    margin-bottom: 16px !important;
    justify-content: flex-start !important;
  }
  .hero-tags-row::-webkit-scrollbar { display: none !important; }
  .hero-tag { font-size: 10px !important; padding: 6px 12px !important; flex-shrink: 0 !important; }

  /* Title — bold but compact */
  .hero h1 { font-size: 34px; line-height: 1.05; letter-spacing: -0.05em; }

  /* Subtitle */
  .hero-sub, .hero p {
    font-size: 13px; line-height: 1.5;
    margin-top: 12px; padding: 0 8px; max-width: 100%;
  }

  /* CTA row — stacked buttons */
  .hero-cta-row {
    flex-direction: column; gap: 10px; margin-top: 18px; padding: 0;
  }
  .hero-cta-row .btn {
    width: 100%; justify-content: center;
    padding: 14px 20px; font-size: 14px; border-radius: 14px;
  }

  /* Stats footer grid */
  .hero-foot {
    margin-top: 24px;
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    padding: 24px 16px !important;
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5) !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .hero-foot .stat-tile {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
  }
  .hero-foot .stat-label {
    font-size: 10px !important;
    color: var(--text3) !important;
    letter-spacing: 0.15em !important;
  }
  .hero-foot b {
    font-size: 22px !important;
    line-height: 1.1 !important;
    color: white !important;
    font-weight: 700 !important;
  }
  .hero-foot .stars {
    font-size: 16px !important;
    margin-bottom: 2px !important;
    letter-spacing: 2px !important;
    color: #f59e0b !important;
  }
  .hero-geo { display: none; }

  /* ═══════════════════════════════════════
     SCORE TOOL — Compact on mobile
     ═══════════════════════════════════════ */
  .score-section { margin-top: 8px; }
  .score-tool-card {
    padding: 20px 16px; border-radius: 18px;
    transform: none; box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  }
  .score-glow { display: none; }
  .score-tool-header { margin-bottom: 16px; }
  .score-tool-title { font-size: 20px; margin-bottom: 10px; }
  .score-tool-desc { font-size: 12px; max-width: 100%; }
  .score-tool-body { flex-direction: column; gap: 14px; }
  .score-input-col { min-width: 0; }
  .score-textarea {
    min-height: 100px; font-size: 13px;
    padding: 14px; border-radius: 12px; margin-bottom: 10px;
  }
  .score-analyze-btn { padding: 12px 20px; font-size: 14px; letter-spacing: 0; }
  .score-result-col {
    min-width: 0; padding: 18px; border-radius: 16px;
  }
  .score-comparison-label { font-size: 11px; margin-bottom: 16px; letter-spacing: 1.5px; }
  .score-comparison-row { gap: 16px; }
  .score-circle { width: 64px; height: 64px; font-size: 22px; border-width: 3px; }
  .score-col-label { font-size: 10px; margin-bottom: 8px; }
  .score-vs { font-size: 13px; }
  .score-feedback { margin-top: 16px; font-size: 12px; padding: 10px; min-height: 36px; }

  /* ═══════════════════════════════════════
     PAGE LAYOUT
     ═══════════════════════════════════════ */
  .page, .page-wide .page { padding: 14px 12px; }
  .section-header { margin-bottom: 16px; flex-direction: column; gap: 8px; }
  .section-header h2 { font-size: 20px; }
  .section-eyebrow { font-size: 10px; }
  .section-title-big { font-size: 22px !important; }
  .section-subtitle { font-size: 12px; }

  /* ═══════════════════════════════════════
     PROMPT CARDS — Compact 2-col grid
     ═══════════════════════════════════════ */
  .prompt-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .prompt-card {
    border-radius: 14px; border-width: 1px;
    backdrop-filter: blur(8px);
  }
  .card-header { padding: 10px 10px 0; gap: 4px; }
  .card-cat { font-size: 9px; padding: 2px 7px; border-radius: 6px; }
  .card-tier { font-size: 8px; padding: 2px 6px; }
  .card-body { padding: 8px 10px; cursor: pointer; }
  .card-body h3, .card-title {
    font-size: 12px; line-height: 1.35;
    -webkit-line-clamp: 2; display: -webkit-box;
    -webkit-box-orient: vertical; overflow: hidden;
  }
  .card-desc, .card-snippet { font-size: 10px; -webkit-line-clamp: 2; margin-top: 4px; }
  .card-tags { display: none; }
  .card-footer { padding: 6px 10px; }
  .card-rating { font-size: 10px; gap: 3px; }
  .card-rating svg { width: 10px; height: 10px; }
  .card-models { font-size: 8px; }
  .card-actions { gap: 2px; }
  .card-action-btn { padding: 4px 5px; font-size: 9px; }
  .card-action-btn svg { width: 11px; height: 11px; }
  .card-action-btn span { display: none; }
  .prompt-card.locked::after { font-size: 7px; padding: 2px 6px; top: 8px; right: 8px; }

  /* ═══════════════════════════════════════
     FEATURED CATEGORIES — Horizontal scroll
     ═══════════════════════════════════════ */
  .featured-cats {
    display: flex !important; overflow-x: auto; gap: 10px;
    padding-bottom: 6px; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    grid-template-columns: unset !important;
  }
  .featured-cats::-webkit-scrollbar { display: none; }
  .feat-cat {
    min-width: 150px; max-width: 170px; flex-shrink: 0;
    scroll-snap-align: start;
    padding: 16px 14px; border-radius: 14px;
    min-height: 110px;
  }
  .feat-cat h3 { font-size: 13px; }
  .feat-count, .feat-cat-count { font-size: 10px; }
  .feat-cat:hover { transform: none; }

  /* ═══════════════════════════════════════
     CATEGORY GRID (Browse all)
     ═══════════════════════════════════════ */
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .cat-card { padding: 14px; border-radius: 12px; }
  .cat-card-name { font-size: 12px; }
  .cat-card-count { font-size: 10px; }
  .cat-group-title { font-size: 15px; }

  /* ═══════════════════════════════════════
     BROWSE PAGE
     ═══════════════════════════════════════ */
  .browse-controls { gap: 6px; flex-wrap: wrap; }
  .browse-controls select {
    font-size: 12px; padding: 8px 28px 8px 12px;
    border-radius: 10px; min-width: 0;
  }
  .browse-total { font-size: 11px; }

  /* ═══════════════════════════════════════
     AI BROWSE PAGE (Mobile)
     ═══════════════════════════════════════ */
  .ai-browse-page { padding: 12px 10px 80px; }
  .ai-browse-hero { margin-bottom: 28px; }
  .ai-hero-title { font-size: 28px !important; }
  .ai-hero-sub { font-size: 13px; }
  .ai-chat-glass-wrap { margin-bottom: 36px; }
  .ai-glow { opacity: 0.35; filter: blur(80px); }
  .ai-chat-glass { border-radius: 20px; }
  .ai-chat-header { padding: 14px 16px; }
  .ai-chat-header-left { gap: 10px; }
  .ai-chat-icon { width: 36px; height: 36px; border-radius: 10px; }
  .ai-chat-icon::after { inset: -2px; border-radius: 12px; }
  .ai-chat-title { font-size: 14px; }
  .ai-chat-subtitle { font-size: 11px; }
  .ai-chat-messages { padding: 16px 14px; max-height: 380px; }
  .ai-bubble { max-width: 92%; font-size: 13px; padding: 11px 14px; border-radius: 14px; }
  .ai-bubble-user { border-radius: 14px 14px 4px 14px; }
  .ai-quick-section { padding: 0 14px 16px; }
  .ai-quick-label { font-size: 10px; }
  .ai-quick-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .ai-quick-card { padding: 10px 12px; border-radius: 12px; }
  .ai-quick-card .qc-icon { width: 28px; height: 28px; font-size: 14px; border-radius: 8px; }
  .ai-quick-card .qc-name { font-size: 12px; }
  .ai-input-wrap { padding: 12px 14px 18px; }
  .ai-input-inner { border-radius: 14px; }
  .ai-chat-input { font-size: 13.5px; padding: 10px 14px; }
  .ai-send-btn { width: 40px; height: 40px; border-radius: 12px; }
  .ai-result-card { padding: 14px 16px; border-radius: 14px; }
  .ai-result-title { font-size: 14px; }
  .ai-result-desc { font-size: 12px; }
  .ai-result-actions { flex-wrap: wrap; gap: 6px; }
  .ai-result-footer { flex-direction: column; gap: 6px; }
  .ai-trending-section { margin-top: 4px; }
  .ai-trending-section .prompt-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .synthesis-console .console-body { max-height: 180px; padding: 10px 12px; }
  .synthesis-console .console-line { font-size: 11px; }
  .ai-option-btn { padding: 7px 12px; font-size: 11.5px; }

  /* ═══════════════════════════════════════
     PAGINATION
     ═══════════════════════════════════════ */
  .pagination { gap: 4px; flex-wrap: wrap; justify-content: center; }
  .pg-btn { min-width: 34px; height: 34px; font-size: 12px; border-radius: 10px; }

  /* ═══════════════════════════════════════
     STORE & PACKS
     ═══════════════════════════════════════ */
  .store-hero { padding: 24px 16px 20px; }
  .store-hero h1 { font-size: 24px; }
  .store-hero p { font-size: 13px; line-height: 1.5; }
  .pack-grid { grid-template-columns: 1fr; gap: 12px; }
  .pack-card { padding: 18px; border-radius: 16px; }
  .pack-name { font-size: 16px; }
  .pack-desc { font-size: 12px; }

  /* ═══════════════════════════════════════
     AUTH PAGE
     ═══════════════════════════════════════ */
  .auth-page { padding: 16px; min-height: calc(100vh - 140px); }
  .auth-card {
    padding: 28px 20px; border-radius: 20px; max-width: 100%;
    border: 1px solid rgba(99,102,241,0.15);
  }
  .auth-title { font-size: 24px; }
  .auth-subtitle { font-size: 13px; margin-bottom: 20px; }
  .form-input { padding: 14px 16px; font-size: 15px; border-radius: 12px; }
  .btn-google { padding: 14px; font-size: 15px; border-radius: 12px; }

  /* ═══════════════════════════════════════
     PROFILE
     ═══════════════════════════════════════ */
  .profile-header {
    flex-direction: column; text-align: center;
    padding: 24px 16px; gap: 12px; border-radius: 18px;
  }
  .profile-avatar { width: 64px; height: 64px; font-size: 24px; }
  .profile-info h2 { font-size: 20px; }
  .profile-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat-card { padding: 14px 8px; border-radius: 14px; }
  .stat-num { font-size: 18px; }
  .stat-label { font-size: 10px; }
  .profile-tabs {
    gap: 4px; overflow-x: auto; flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .profile-tabs::-webkit-scrollbar { display: none; }
  .profile-tab {
    padding: 10px 16px; font-size: 12px; white-space: nowrap;
    flex-shrink: 0; border-radius: 10px;
  }

  /* ═══════════════════════════════════════
     MODAL — iOS-style bottom sheet
     ═══════════════════════════════════════ */
  .modal-content {
    width: 100%; max-width: 100%;
    border-radius: 20px 20px 0 0; padding: 20px 16px 80px;
    position: fixed; bottom: 0; left: 0; right: 0;
    max-height: 88vh; overflow-y: auto;
    animation: modalSlideUp 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    box-shadow: 0 -10px 50px rgba(0,0,0,0.5);
  }
  /* Drag handle indicator */
  .modal-content::before {
    content: ''; display: block; width: 36px; height: 4px;
    background: rgba(255,255,255,0.2); border-radius: 4px;
    margin: 0 auto 16px;
  }
  @keyframes modalSlideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
  .modal-close { top: 16px; right: 16px; width: 32px; height: 32px; font-size: 18px; }
  .detail-title { font-size: 18px; }
  .detail-meta { gap: 8px; font-size: 11px; flex-wrap: wrap; }
  .detail-actions { gap: 8px; flex-wrap: wrap; }
  .detail-actions .btn {
    padding: 10px 16px !important; font-size: 13px !important;
    border-radius: 12px; flex: 1; justify-content: center;
  }

  /* ═══════════════════════════════════════
     CTA SECTION
     ═══════════════════════════════════════ */
  .cta-section { padding: 32px 20px; border-radius: 18px; }
  .cta-section h2 { font-size: 22px; }
  .cta-section p { font-size: 13px; }

  /* ═══════════════════════════════════════
     ADMIN
     ═══════════════════════════════════════ */
  .admin-form-grid { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .admin-table { font-size: 11px; }
  .admin-table .td-title { max-width: 120px; }

  /* ═══════════════════════════════════════
     FOOTER — compact
     ═══════════════════════════════════════ */
  footer { padding: 16px 12px 8px !important; font-size: 11px !important; }
  footer > div:first-child { flex-wrap: wrap; gap: 8px !important; justify-content: center; }

  /* ═══════════════════════════════════════
     TOAST — above bottom tab bar
     ═══════════════════════════════════════ */
  #toast-container { bottom: 80px; left: 12px; right: 12px; }

  /* ═══════════════════════════════════════
     SEARCH DROPDOWN
     ═══════════════════════════════════════ */
  .search-dropdown { width: 90vw; max-width: 340px; }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE (≤480px)
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  #navbar { padding: 5px 8px 5px 12px; width: calc(100% - 16px); }
  .nav-logo .logo-icon { width: 28px; height: 28px; }

  .hero { padding: 14px 12px 18px !important; }
  .hero h1 { font-size: 28px; }
  .hero-sub, .hero p { font-size: 12px; padding: 0 4px; }
  .hero-cta-row .btn { padding: 12px 16px; font-size: 13px; }
  /* hero tags and hero foot sizes handled smoothly by 768px queries */

  .page, .page-wide .page { padding: 10px 10px; }
  .prompt-grid { gap: 8px; }
  .card-body h3, .card-title { font-size: 11px; }
  .card-header { padding: 8px 8px 0; }
  .card-body { padding: 6px 8px; }
  .card-footer { padding: 5px 8px; }

  .feat-cat { min-width: 130px; padding: 14px 12px; min-height: 90px; }

  .profile-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-stats { grid-template-columns: 1fr; }
  .auth-card { padding: 24px 16px; }
  .store-hero h1 { font-size: 22px; }

  .score-tool-card { padding: 16px 12px; border-radius: 16px; }
  .score-tool-title { font-size: 18px; }
  .score-tool-desc { font-size: 11px; }
  .score-textarea { min-height: 80px; font-size: 12px; padding: 12px; }
  .score-circle { width: 56px; height: 56px; font-size: 20px; }

  /* AI Browse — small phone */
  .ai-browse-page { padding: 8px 8px 80px; }
  .ai-browse-hero { margin-bottom: 20px; }
  .ai-hero-title { font-size: 24px !important; }
  .ai-hero-sub { font-size: 12px; line-height: 1.5; }
  .ai-chat-glass { border-radius: 16px; }
  .ai-glow { display: none; }
  .ai-chat-header { padding: 12px 12px; }
  .ai-chat-icon { width: 32px; height: 32px; border-radius: 8px; }
  .ai-chat-icon::after { display: none; }
  .ai-chat-title { font-size: 13px; }
  .ai-chat-messages { padding: 12px 10px; max-height: 320px; }
  .ai-bubble { max-width: 95%; font-size: 12.5px; padding: 10px 12px; }
  .ai-quick-section { padding: 0 10px 12px; }
  .ai-quick-grid { grid-template-columns: 1fr; gap: 6px; }
  .ai-quick-card { padding: 9px 10px; border-radius: 10px; }
  .ai-input-wrap { padding: 10px 10px 14px; }
  .ai-send-btn { width: 38px; height: 38px; border-radius: 10px; }
  .ai-chat-input { font-size: 13px; padding: 9px 12px; }
  .ai-result-card { padding: 12px 12px; border-radius: 12px; }
  .ai-best-badge { font-size: 8.5px; padding: 2px 8px; }
  .ai-relevance { font-size: 10.5px; padding: 2px 6px; }
  .ai-result-title { font-size: 13px; }
  .ai-result-desc { font-size: 11.5px; }
  .ai-trending-section .prompt-grid { grid-template-columns: 1fr; }
  .synthesis-console .console-header { font-size: 10px; padding: 6px 10px; }
  .synthesis-console .console-body { max-height: 150px; padding: 8px 10px; }
  .synthesis-console .console-line { font-size: 10.5px; }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — LARGE DESKTOP (≥1440px)
   ══════════════════════════════════════════════════════════════ */
@media (min-width: 1440px) {
  .prompt-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  .page { max-width: 1400px; }
}

/* ══════════════════════════════════════════════════════════════
   TOUCH DEVICE ENHANCEMENTS
   ══════════════════════════════════════════════════════════════ */
@media (hover: none) {
  .prompt-card:hover { transform: none; box-shadow: none; }
  .btn:hover::after { opacity: 0; }
  .pack-card:hover { transform: none; }
  .prompt-card:active { transform: scale(0.98); transition: transform 0.1s; }
  .btn:active { transform: scale(0.97); }
  .tab-item:hover { background: none; }
}

/* ── PREMIUM INTERACTIVE CUSTOM DROPDOWNS ───────────────── */
.browse-controls select {
  background: rgba(22, 22, 38, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  padding: 10px 36px 10px 16px;
  border-radius: 12px;
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a8a8be' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 13px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.browse-controls select:hover {
  background-color: rgba(30, 30, 52, 0.85);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255,255,255,0.05);
}
.browse-controls select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2), 0 6px 20px rgba(99,102,241,0.1);
}
.browse-controls select option {
  background: #12121e;
  color: var(--text);
  padding: 14px;
  font-weight: 500;
}

/* ── PREMIUM GLASSMORPHIC MODAL INTERACTION BUTTONS ────── */
.detail-actions {
  display: flex;
  gap: 12px;
  margin: 24px 0;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
}
.detail-actions .btn {
  border-radius: 12px !important;
  padding: 10px 18px !important;
  font-weight: 600 !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.01em;
}
.detail-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text2);
}
.detail-actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text);
  transform: translateY(-2px);
}

/* Liked (Pink/Rose Gradient & Glow) when Active */
.detail-actions button[onclick*="toggleLike"].btn-primary {
  background: linear-gradient(135deg, #f43f5e, #ec4899) !important;
  color: #ffffff !important;
  box-shadow: 0 0 20px rgba(244, 63, 94, 0.45) !important;
  border: none !important;
  transform: translateY(-2px);
}
.detail-actions button[onclick*="toggleLike"].btn-primary:hover {
  box-shadow: 0 0 30px rgba(244, 63, 94, 0.6) !important;
  transform: translateY(-3px);
}

/* Saved (Purple/Indigo Gradient & Glow) when Active */
.detail-actions button[onclick*="toggleSave"].btn-primary {
  background: linear-gradient(135deg, #6366f1, #a855f7) !important;
  color: #ffffff !important;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.45) !important;
  border: none !important;
  transform: translateY(-2px);
}
.detail-actions button[onclick*="toggleSave"].btn-primary:hover {
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.6) !important;
  transform: translateY(-3px);
}

/* Copy button special hover */
.detail-actions button[onclick*="copyPrompt"]:hover {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.06);
  color: var(--green);
}

/* ── CYBER-SECURITY GLASSMORPHIC LOCKER CARD ─────────────── */
.detail-locked {
  text-align: center;
  padding: 48px 32px;
  background: rgba(18, 18, 30, 0.4);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5);
  margin: 24px 0;
}
.detail-locked::before {
  content: ''; position: absolute; inset: 0;
  border-radius: 20px; padding: 1.5px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), transparent 60%, rgba(99,102,241,0.2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.detail-locked-icon {
  font-size: 56px;
  margin-bottom: 20px;
  animation: floatLock 3s ease-in-out infinite;
  display: inline-block;
  filter: drop-shadow(0 0 20px rgba(245, 158, 11, 0.4));
}
@keyframes floatLock {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(3deg); }
}
.detail-locked h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.detail-locked p {
  color: var(--text2);
  font-size: 13.5px;
  margin-bottom: 24px;
}

/* ── HERO FOOTER CENTERING & RESILIENCE ─────────────────── */
.hero-foot {
  align-self: center;
  margin: 56px auto 0;
}

/* ══════════════════════════════════════════════════════════════════════════
   REAL-TIME SEARCH DROPDOWN
   ══════════════════════════════════════════════════════════════════════════ */

.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  min-width: 360px;
  background: rgba(18, 20, 36, 0.98);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255,255,255,0.05);
  z-index: 9999;
  overflow: hidden;
  animation: searchDropIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-dropdown.hidden {
  display: none;
}

@keyframes searchDropIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.search-dropdown-header {
  padding: 12px 16px;
  font-size: 12px;
  color: var(--text3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.search-dropdown-header strong {
  color: var(--accent);
}

.search-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.15s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.search-dropdown-item:hover {
  background: rgba(99, 102, 241, 0.08);
}

.search-dropdown-item:last-of-type {
  border-bottom: none;
}

.search-item-left {
  flex: 1;
  min-width: 0;
}

.search-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.search-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.search-item-cat {
  color: var(--text3);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
}

.search-item-tier {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 1px 5px;
  border-radius: 3px;
}

.search-item-tier.free {
  color: var(--green);
  background: rgba(16, 185, 129, 0.1);
}

.search-item-tier.pro {
  color: var(--gold);
  background: rgba(245, 158, 11, 0.1);
}

.search-item-rating {
  color: var(--gold);
}

.search-item-arrow {
  color: var(--text3);
  flex-shrink: 0;
  margin-left: 12px;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.15s ease;
}

.search-dropdown-item:hover .search-item-arrow {
  opacity: 1;
  transform: translateX(0);
}

.search-dropdown-footer {
  padding: 12px 16px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(99, 102, 241, 0.04);
  transition: background 0.15s ease;
}

.search-dropdown-footer:hover {
  background: rgba(99, 102, 241, 0.1);
}

.search-dropdown-empty {
  padding: 24px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--text3);
}


/* ══════════════════════════════════════════════════════════════════════════
   SHARE POPUP
   ══════════════════════════════════════════════════════════════════════════ */

.share-popup {
  position: absolute;
  bottom: calc(100% + 14px);
  right: -8px;
  width: 200px;
  background: rgba(18, 20, 36, 0.98);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255,255,255,0.05);
  z-index: 1000;
  overflow: hidden;
  animation: sharePopIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.share-popup::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 16px;
  width: 12px;
  height: 12px;
  background: rgba(18, 20, 36, 0.98);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transform: rotate(45deg);
}

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

.share-popup-title {
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.share-popup-options {
  display: flex;
  flex-direction: column;
}

.share-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text2);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
  width: 100%;
}

.share-option:hover {
  background: rgba(99, 102, 241, 0.1);
  color: var(--text);
}

.share-option svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.share-option:hover svg {
  opacity: 1;
  color: var(--accent);
}

/* ── Profile filter buttons ─────────────── */
.profile-filter-btn {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: var(--text3);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: capitalize;
  white-space: nowrap;
}
.profile-filter-btn:hover {
  border-color: rgba(99,102,241,0.3);
  color: var(--text2);
  background: rgba(99,102,241,0.06);
}
.profile-filter-btn.active {
  background: rgba(99,102,241,0.15);
  border-color: rgba(99,102,241,0.3);
  color: var(--accent);
  font-weight: 600;
}

/* ══════════════════════════════════════════════════════════════════════════
   PROMPT MATRIX — BROWSE OPERATOR CONSOLE (namespaced .pmc)
   Full-page console chrome (sidebar + topbar) + AI agent hero + composer.
   ══════════════════════════════════════════════════════════════════════════ */

/* Console is MERGED with the original site: the global navbar, footer and
   bottom tab bar stay visible. The console renders as page content below the nav. */
body.console-mode { background: #07060c; }
/* The console dock already provides search — remove the duplicate navbar search box here */
body.console-mode #nav-search-container { display: none; }

.pmc {
  --c-bg0:#07060c; --c-bg2:#14101e;
  --c-panel:rgba(20,16,30,0.72); --c-line:rgba(140,120,220,0.14); --c-line2:rgba(160,140,240,0.28);
  --c-ink:#ece8ff; --c-ink2:#bdb4dc; --c-ink3:#8b82ad; --c-ink4:#5b557a;
  --c-violet:#8a6cff; --c-violet2:#b89cff; --c-violetd:#5a3dff; --c-cyan:#6bd8ff; --c-green:#7dffb0; --c-amber:#ffc06b; --c-pink:#ff7ad9;
  --c-mono:"JetBrains Mono",ui-monospace,Menlo,monospace;
  --c-display:"Space Grotesk",ui-sans-serif,system-ui,sans-serif;
  position:relative; z-index:1;
  display:block; color:var(--c-ink); font-size:14px;
}
.pmc::before {
  content:""; position:fixed; inset:0; z-index:0; pointer-events:none;
  background:
    radial-gradient(ellipse 60% 50% at 18% 12%, rgba(138,108,255,0.18), transparent 60%),
    radial-gradient(ellipse 50% 40% at 88% 88%, rgba(107,216,255,0.10), transparent 60%),
    radial-gradient(ellipse 80% 60% at 50% 110%, rgba(184,156,255,0.10), transparent 70%);
}
.pmc::after {
  content:""; position:fixed; inset:0; z-index:0; pointer-events:none;
  background-image: radial-gradient(rgba(160,140,240,0.10) 1px, transparent 1px);
  background-size:22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 80%);
}
.pmc > * { position:relative; z-index:1; }

/* Sidebar */
.pmc-sidebar {
  position:sticky; top:0; height:100vh; border-right:1px solid var(--c-line);
  background:linear-gradient(180deg, rgba(12,10,20,0.85), rgba(12,10,20,0.4));
  backdrop-filter:blur(20px);
  display:flex; flex-direction:column; align-items:center; padding:18px 0 14px; z-index:20;
}
.pmc-sidebar .logo {
  width:38px; height:38px; border-radius:12px;
  background:radial-gradient(circle at 30% 30%, #b89cff, #5a3dff 60%, #2a1a6e);
  display:grid; place-items:center; color:#fff; font-family:var(--c-display); font-weight:700;
  box-shadow:0 6px 20px rgba(90,61,255,0.45), inset 0 0 12px rgba(255,255,255,0.18); margin-bottom:24px; cursor:pointer;
}
.pmc-sidebar nav { display:flex; flex-direction:column; gap:6px; }
.pmc-sidebar nav button {
  width:44px; height:44px; border-radius:12px; display:grid; place-items:center;
  background:transparent; color:var(--c-ink3); border:1px solid transparent; cursor:pointer; position:relative; transition:all .2s ease;
}
.pmc-sidebar nav button:hover { color:var(--c-ink); background:rgba(140,120,220,0.08); }
.pmc-sidebar nav button.active {
  color:var(--c-ink); background:linear-gradient(180deg, rgba(138,108,255,0.18), rgba(138,108,255,0.06)); border-color:var(--c-line2);
}
.pmc-sidebar nav button.active::before {
  content:""; position:absolute; left:-10px; top:12px; bottom:12px; width:3px; border-radius:2px;
  background:linear-gradient(180deg, var(--c-violet2), var(--c-cyan)); box-shadow:0 0 12px var(--c-violet);
}
.pmc-sidebar .badge-dot { position:absolute; top:8px; right:8px; width:6px; height:6px; border-radius:99px; background:var(--c-green); box-shadow:0 0 8px var(--c-green); }
.pmc-sidebar .spacer { flex:1; }

/* Topbar */
.pmc-topbar {
  display:flex; align-items:center; padding:18px 32px; gap:20px;
  border-bottom:1px solid var(--c-line);
  background:linear-gradient(180deg, rgba(7,6,12,0.92), rgba(7,6,12,0.55));
  backdrop-filter:blur(14px); position:sticky; top:0; z-index:15;
}
.pmc-crumbs { display:flex; align-items:center; gap:10px; font-family:var(--c-mono); font-size:11.5px; color:var(--c-ink3); letter-spacing:0.04em; }
.pmc-crumbs .sep { color:var(--c-ink4); } .pmc-crumbs .cur { color:var(--c-ink); }
.pmc-tabs { display:flex; gap:4px; padding:4px; background:rgba(20,16,30,0.6); border:1px solid var(--c-line); border-radius:99px; margin-left:8px; }
.pmc-tabs button {
  border:0; padding:8px 18px; font-weight:500; font-size:13px; color:var(--c-ink3);
  background:transparent; border-radius:99px; cursor:pointer; display:flex; align-items:center; gap:8px; transition:all .2s ease;
}
.pmc-tabs button:hover { color:var(--c-ink2); }
.pmc-tabs button.active { color:var(--c-ink); background:linear-gradient(135deg, rgba(138,108,255,0.22), rgba(107,216,255,0.12)); box-shadow:inset 0 0 0 1px rgba(184,156,255,0.32); }
.pmc-tabs .pro-tag { font-family:var(--c-mono); font-size:9.5px; font-weight:600; padding:2px 6px; border-radius:4px; background:linear-gradient(135deg, #ffb45a, #ff7ad9); color:#1a0c1c; letter-spacing:0.06em; }
.pmc-right { margin-left:auto; display:flex; align-items:center; gap:14px; }
.pmc-tier-chip { display:inline-flex; align-items:center; gap:8px; padding:6px 12px 6px 8px; border-radius:99px; font-family:var(--c-mono); font-size:11px; font-weight:600; letter-spacing:0.08em; text-transform:uppercase; background:rgba(20,16,30,0.7); border:1px solid var(--c-line2); color:var(--c-ink); cursor:pointer; }
.pmc-tier-chip .dot { width:8px; height:8px; border-radius:99px; background:var(--c-amber); box-shadow:0 0 10px var(--c-amber); }
.pmc-icon-btn { width:38px; height:38px; border-radius:50%; background:rgba(20,16,30,0.6); border:1px solid var(--c-line); color:var(--c-ink2); display:grid; place-items:center; cursor:pointer; transition:all .2s ease; }
.pmc-icon-btn:hover { color:var(--c-ink); border-color:var(--c-line2); }
.pmc-avatar { width:36px; height:36px; border-radius:50%; background:radial-gradient(circle at 30% 30%, #ffb45a, #ff7ad9 70%); display:grid; place-items:center; font-family:var(--c-display); font-weight:700; color:#1a0c1c; border:1px solid rgba(255,255,255,0.18); cursor:pointer; }

/* Main canvas (sits below the original site navbar) */
.pmc-main { padding:8px 24px 200px; max-width:1320px; margin:0 auto; }

/* Centered glass tool dock + tab switcher (replaces the old left sidebar) */
.pmc-dock { display:flex; justify-content:center; margin:0 0 28px; position:sticky; top:84px; z-index:12; }
.pmc-dock-inner { display:inline-flex; align-items:center; gap:6px; padding:7px 9px; border-radius:99px; background:rgba(20,16,30,0.62); border:1px solid var(--c-line2); backdrop-filter:blur(22px); box-shadow:0 14px 44px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.05); max-width:96vw; flex-wrap:wrap; justify-content:center; }
.pmc-dock .tool { width:38px; height:38px; border-radius:50%; display:grid; place-items:center; background:transparent; color:var(--c-ink3); border:1px solid transparent; cursor:pointer; transition:all .2s ease; }
.pmc-dock .tool:hover { color:var(--c-ink); background:rgba(140,120,220,0.14); border-color:var(--c-line); transform:translateY(-1px); }
.pmc-dock .divider { width:1px; height:22px; background:var(--c-line); margin:0 4px; }
.pmc-dock .tab { padding:8px 16px; border-radius:99px; border:0; background:transparent; color:var(--c-ink3); font-size:13px; font-weight:500; cursor:pointer; transition:all .2s ease; display:inline-flex; align-items:center; gap:7px; font-family:inherit; }
.pmc-dock .tab:hover { color:var(--c-ink2); }
.pmc-dock .tab.active { color:var(--c-ink); background:linear-gradient(135deg, rgba(138,108,255,0.28), rgba(107,216,255,0.15)); box-shadow:inset 0 0 0 1px rgba(184,156,255,0.35); }
.pmc-dock .tab .pro-tag { font-family:var(--c-mono); font-size:9px; font-weight:600; padding:2px 6px; border-radius:4px; background:linear-gradient(135deg,#ffb45a,#ff7ad9); color:#1a0c1c; }

/* Tab panels with switch animation */
.pmc-panel { display:none; }
.pmc-panel.active { display:block; animation:pmc-fade .42s cubic-bezier(.2,.7,.2,1); }
@keyframes pmc-fade { from { opacity:0; transform:translateY(14px); } to { opacity:1; transform:translateY(0); } }

/* Agent hero */
.pmc-agent { position:relative; border-radius:28px; border:1px solid var(--c-line2);
  background:radial-gradient(ellipse 80% 60% at 50% 0%, rgba(138,108,255,0.18), transparent 60%), linear-gradient(180deg, rgba(28,22,44,0.72), rgba(14,11,22,0.84));
  backdrop-filter:blur(20px); padding:44px 48px 36px; overflow:hidden; }
.pmc-agent::before { content:""; position:absolute; inset:-2px; border-radius:inherit; padding:1px;
  background:conic-gradient(from 0deg, rgba(138,108,255,0) 0%, rgba(138,108,255,0.5) 25%, rgba(107,216,255,0.4) 50%, rgba(255,122,217,0.4) 75%, rgba(138,108,255,0) 100%);
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite:xor; mask-composite:exclude; animation:pmc-spin 14s linear infinite; opacity:.7; pointer-events:none; }
@keyframes pmc-spin { to { transform:rotate(360deg); } }
.pmc-agent-top { display:flex; align-items:center; gap:14px; margin-bottom:28px; }
.pmc-pill { display:inline-flex; align-items:center; gap:10px; padding:6px 14px 6px 10px; border-radius:99px; background:rgba(20,16,30,0.7); border:1px solid var(--c-line2); font-family:var(--c-mono); font-size:11px; letter-spacing:0.1em; color:var(--c-ink2); text-transform:uppercase; }
.pmc-livedot { position:relative; width:8px; height:8px; border-radius:99px; background:var(--c-green); box-shadow:0 0 10px var(--c-green); }
.pmc-livedot::after { content:""; position:absolute; inset:-4px; border-radius:99px; background:var(--c-green); opacity:.35; animation:pmc-pulse 1.6s ease-out infinite; }
@keyframes pmc-pulse { 0%{transform:scale(.7);opacity:.5;} 100%{transform:scale(2.2);opacity:0;} }
.pmc-agent-stats { margin-left:auto; display:flex; gap:22px; font-family:var(--c-mono); font-size:11px; color:var(--c-ink3); }
.pmc-agent-stats b { color:var(--c-ink); font-weight:600; }
.pmc-hero-row { display:grid; grid-template-columns:220px 1fr; gap:36px; align-items:center; }
.pmc-orbw { position:relative; width:200px; height:200px; }
.pmc-orb { position:absolute; inset:10px; border-radius:50%;
  background:radial-gradient(circle at 32% 30%, #fff 0%, #c9b9ff 12%, #8a6cff 32%, #5a3dff 55%, #1a0e44 85%);
  box-shadow:0 0 40px rgba(138,108,255,0.55), 0 0 100px rgba(138,108,255,0.35), inset 0 -20px 40px rgba(20,10,60,0.6); animation:pmc-breathe 6s ease-in-out infinite; }
.pmc-orb-ring { position:absolute; inset:0; border-radius:50%; border:1px dashed rgba(184,156,255,0.5); animation:pmc-spin 18s linear infinite; }
@keyframes pmc-breathe { 0%,100%{transform:scale(1);} 50%{transform:scale(1.04);} }
.pmc-spark { position:absolute; width:4px; height:4px; border-radius:99px; background:#fff; box-shadow:0 0 8px #fff, 0 0 16px var(--c-cyan); animation:pmc-sparkle 5s linear infinite; }
.pmc-spark.s1 { top:12%; left:70%; animation-delay:-.3s; } .pmc-spark.s2 { top:60%; left:8%; animation-delay:-2.1s; } .pmc-spark.s3 { top:88%; left:60%; animation-delay:-3.7s; }
@keyframes pmc-sparkle { 0%,100%{transform:scale(.5);opacity:.3;} 50%{transform:scale(1.4);opacity:1;} }
.pmc-hero-body h1 { font-family:var(--c-display); font-weight:500; font-size:54px; line-height:1.04; letter-spacing:-0.02em; margin:0 0 16px; color:var(--c-ink); text-wrap:balance; }
.pmc-hero-body h1 .grad { background:linear-gradient(135deg, #c9b9ff 0%, #8a6cff 35%, #6bd8ff 75%, #7dffb0 100%); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.pmc-hero-body p { margin:0 0 22px; color:var(--c-ink2); font-size:16px; max-width:60ch; }
.pmc-hero-body p b { color:var(--c-ink); font-weight:600; }
.pmc-suggest-row { display:flex; flex-wrap:wrap; gap:8px; }
.pmc-suggest { display:inline-flex; align-items:center; gap:8px; padding:8px 14px; border-radius:99px; background:rgba(20,16,30,0.6); border:1px solid var(--c-line); font-size:13px; color:var(--c-ink2); cursor:pointer; transition:all .2s ease; }
.pmc-suggest:hover { color:var(--c-ink); border-color:var(--c-line2); background:rgba(28,22,44,0.8); transform:translateY(-1px); }
.pmc-suggest .kbd { font-family:var(--c-mono); font-size:10px; padding:2px 5px; border-radius:4px; background:rgba(140,120,220,0.12); border:1px solid var(--c-line); color:var(--c-ink3); }

/* Live engine bar */
.pmc-engine { margin-top:28px; padding:14px 18px; border:1px solid var(--c-line); border-radius:16px; background:rgba(12,10,20,0.5); display:flex; align-items:center; gap:22px; font-family:var(--c-mono); font-size:11.5px; color:var(--c-ink3); overflow:hidden; }
.pmc-engine .label { color:var(--c-cyan); letter-spacing:0.12em; text-transform:uppercase; white-space:nowrap; }
.pmc-engine .pulse { flex:1; height:18px; position:relative; overflow:hidden; border-radius:4px; background:linear-gradient(90deg, transparent, rgba(138,108,255,0.12), transparent); }
.pmc-engine .pulse::before { content:""; position:absolute; inset:0; background:repeating-linear-gradient(90deg, transparent 0 12px, rgba(184,156,255,0.5) 12px 13px); animation:pmc-eq 4s linear infinite; }
.pmc-engine .pulse::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg, transparent 0%, transparent 30%, rgba(107,216,255,0.8) 50%, transparent 70%, transparent 100%); animation:pmc-scan 3.2s ease-in-out infinite; }
@keyframes pmc-eq { from{background-position:0 0;} to{background-position:-120px 0;} }
@keyframes pmc-scan { 0%,100%{transform:translateX(-30%);opacity:0;} 50%{transform:translateX(30%);opacity:1;} }
.pmc-engine .metric { white-space:nowrap; } .pmc-engine .metric b { color:var(--c-ink); } .pmc-engine .metric .delta { color:var(--c-green); margin-left:4px; }

/* Chat results area — centered Gemini-style glass conversation */
.pmc .pmc-results { margin:24px auto 0; max-width:960px; display:flex; flex-direction:column; gap:14px; padding:0; min-height:0; max-height:none; overflow:visible; }
.pmc .pmc-results:empty { display:none; }

/* Glass chat bubbles — Gemini-simple, no avatar */
.pmc .ai-msg { display:flex; gap:12px; align-items:flex-start; max-width:100%; }
.pmc .ai-msg-user { justify-content:flex-end; }
.pmc .ai-avatar { display:none !important; }

/* Collapsible "thinking" panel (Gemini "Thought for Ns") */
.pmc .pmc-think.ai-bubble { background:transparent; border:none; padding:0; box-shadow:none; backdrop-filter:none; max-width:100%; }
.pmc .console-header {
  display:flex; align-items:center; gap:10px; cursor:pointer; user-select:none;
  font-family:var(--c-mono); font-size:12px; letter-spacing:.04em; color:var(--c-ink2);
  padding:12px 16px;
}
.pmc .console-header .think-chev { margin-left:auto; transition:transform .25s ease; color:var(--c-ink3); }
.pmc .synthesis-console.collapsed .console-header .think-chev { transform:rotate(-90deg); }
.pmc .synthesis-console.collapsed .console-body { display:none; }
.pmc .think-label { color:var(--c-violet2); }
.pmc .think-dots { display:inline-flex; gap:4px; }
.pmc .think-dots span { width:6px; height:6px; border-radius:50%; background:var(--c-violet2); animation:pmcThink 1.2s ease-in-out infinite; }
.pmc .think-dots span:nth-child(2){ animation-delay:.18s; } .pmc .think-dots span:nth-child(3){ animation-delay:.36s; }
@keyframes pmcThink { 0%,100%{ opacity:.3; transform:translateY(0);} 50%{ opacity:1; transform:translateY(-3px);} }
.pmc .think-check { display:inline-grid; place-items:center; width:16px; height:16px; border-radius:50%; background:rgba(52,211,153,0.18); color:#34d399; }
.pmc .ai-bubble {
  background:linear-gradient(180deg, rgba(28,22,44,0.66), rgba(16,12,24,0.72));
  border:1px solid var(--c-line); border-radius:18px; padding:16px 18px;
  color:var(--c-ink2); font-size:14px; line-height:1.55; max-width:78%;
  backdrop-filter:blur(20px); box-shadow:0 8px 28px rgba(0,0,0,0.28);
}
.pmc .ai-bubble strong { color:var(--c-ink); }
.pmc .ai-bubble-user {
  background:linear-gradient(135deg, var(--c-violet), var(--c-violetd));
  color:#fff; border:none; border-radius:18px 18px 4px 18px;
  box-shadow:0 8px 24px rgba(90,61,255,0.4);
}
.pmc .ai-q-label { color:var(--c-violet2); }

/* Glass option chips (type-or-select) */
.pmc .ai-options { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
.pmc .ai-option-btn {
  background:rgba(20,16,30,0.6); border:1px solid var(--c-line2); color:var(--c-ink);
  border-radius:99px; padding:9px 16px; font-size:13px; cursor:pointer; transition:all .2s ease; font-family:inherit;
}
.pmc .ai-option-btn:hover:not(:disabled) { background:rgba(138,108,255,0.16); border-color:var(--c-violet); transform:translateY(-1px); }

/* Typing dots — human-like */
.pmc .ai-typing-dots span { background:var(--c-violet2); }

/* Selections strip in console */
.pmc .ai-selections { border-bottom-color:rgba(184,156,255,0.14); }

/* Synthesis result cards — centered glass */
.pmc .ai-results { max-width:760px; margin:0 auto; }
.pmc .ai-result-card {
  background:linear-gradient(180deg, rgba(28,22,44,0.6), rgba(16,12,24,0.72)) !important;
  border:1px solid var(--c-line2) !important; border-radius:20px !important;
  backdrop-filter:blur(22px); box-shadow:0 14px 40px rgba(0,0,0,0.4);
}
.pmc .ai-result-card.best-match { border-color:rgba(249,212,35,0.45) !important; box-shadow:0 16px 50px rgba(249,212,35,0.12), 0 14px 40px rgba(0,0,0,0.4); }

/* Synthesis "thinking" console — glass terminal */
.pmc .synthesis-console {
  background:rgba(7,6,12,0.72) !important; border:1px solid var(--c-line2) !important;
  border-radius:16px; backdrop-filter:blur(16px); overflow:hidden;
}

/* Composer bar */
.pmc-composer-wrap { position:fixed; left:0; right:0; bottom:0; padding:24px 36px 28px; pointer-events:none; z-index:30; background:linear-gradient(180deg, transparent, var(--c-bg0) 70%); }
.pmc-composer { pointer-events:auto; max-width:920px; margin:0 auto; border-radius:24px; background:linear-gradient(180deg, rgba(28,22,44,0.92), rgba(14,11,22,0.92)); border:1px solid var(--c-line2); padding:14px 16px 12px; box-shadow:0 24px 60px rgba(0,0,0,0.5); backdrop-filter:blur(24px); position:relative; overflow:hidden; }
.pmc-composer::before { content:""; position:absolute; left:-20%; top:-40%; width:140%; height:200%; background:radial-gradient(ellipse 40% 40% at 50% 50%, rgba(138,108,255,0.18), transparent 70%); pointer-events:none; animation:pmc-breathe 5s ease-in-out infinite; }
.pmc-composer .row { display:flex; align-items:center; gap:10px; position:relative; }
.pmc-composer .plus { width:38px; height:38px; border-radius:50%; border:1px solid var(--c-line); background:rgba(20,16,30,0.7); color:var(--c-ink2); display:grid; place-items:center; cursor:pointer; flex-shrink:0; }
.pmc-composer input, .pmc-composer textarea { flex:1; background:transparent; border:0; outline:0; color:var(--c-ink); font-size:15px; padding:8px 0; font-family:inherit; }
.pmc-composer textarea { resize:none; line-height:1.5; max-height:160px; overflow-y:auto; min-height:24px; }
.pmc-composer textarea::-webkit-scrollbar { width:6px; }
.pmc-composer textarea::-webkit-scrollbar-thumb { background:rgba(120,100,200,0.25); border-radius:99px; }
.pmc-composer input::placeholder, .pmc-composer textarea::placeholder { color:var(--c-ink4); }
.pmc-composer .mode { display:inline-flex; align-items:center; gap:6px; padding:6px 12px; border-radius:99px; background:rgba(138,108,255,0.14); border:1px solid rgba(184,156,255,0.32); font-family:var(--c-mono); font-size:10.5px; letter-spacing:0.08em; color:var(--c-violet2); text-transform:uppercase; cursor:pointer; }
.pmc-composer .send { width:38px; height:38px; border-radius:50%; background:linear-gradient(135deg, var(--c-violet), var(--c-violetd)); color:#fff; border:0; display:grid; place-items:center; cursor:pointer; box-shadow:0 4px 18px rgba(90,61,255,0.45); flex-shrink:0; }
.pmc-composer .quick { margin-top:12px; display:flex; gap:6px; flex-wrap:wrap; }
.pmc-composer .quick button { border:1px solid var(--c-line); background:transparent; color:var(--c-ink3); font-size:11.5px; padding:5px 10px; border-radius:99px; cursor:pointer; font-family:inherit; }
.pmc-composer .quick button:hover { color:var(--c-ink); border-color:var(--c-line2); }
.ai-usage-chip { margin-top:10px; display:none; align-items:center; gap:7px; font-size:12px; color:var(--c-ink3); }
.ai-usage-chip .dot { width:6px; height:6px; border-radius:99px; flex:0 0 auto; }
.ai-usage-chip b { color:var(--c-ink); }
.ai-usage-chip a { text-decoration:none; }

/* Locked composer overlay (free generations used up) */
.pmc-composer-lock { position:absolute; inset:0; z-index:30; display:flex; align-items:center; justify-content:center; padding:10px; border-radius:inherit; background:rgba(8,10,22,0.4); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); pointer-events:auto; }
.pmc-lock-inner { display:flex; align-items:center; gap:14px; flex-wrap:wrap; justify-content:center; background:linear-gradient(135deg,rgba(20,20,32,0.78),rgba(12,12,20,0.78)); border:1px solid rgba(249,212,35,0.35); border-radius:14px; padding:14px 18px; max-width:680px; box-shadow:0 16px 40px rgba(0,0,0,0.5); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); }
.pmc-lock-icon { font-size:26px; flex:0 0 auto; }
.pmc-lock-text { text-align:left; min-width:200px; flex:1; }
.pmc-lock-title { font-size:14.5px; font-weight:700; color:#fff; }
.pmc-lock-sub { font-size:12.5px; color:var(--c-ink3,#9a9bb0); line-height:1.5; margin-top:2px; }
.pmc-lock-actions { display:flex; gap:8px; flex-wrap:wrap; flex:0 0 auto; }

/* Watch-ad → unlock interstitial */
.ad-interstitial { position:fixed; inset:0; z-index:11000; background:rgba(5,6,12,0.86); backdrop-filter:blur(8px); display:flex; align-items:center; justify-content:center; padding:20px; }
.ad-int-card { position:relative; width:100%; max-width:480px; background:var(--surface,#15161f); border:1px solid rgba(255,255,255,0.08); border-radius:20px; padding:28px; text-align:center; box-shadow:0 30px 70px rgba(0,0,0,0.6); }
.ad-int-close { position:absolute; top:12px; right:14px; background:none; border:none; color:var(--text3,#8b8c98); font-size:24px; line-height:1; cursor:pointer; }
.ad-int-head { font-size:20px; font-weight:800; color:#fff; margin-bottom:6px; }
.ad-int-sub { font-size:13px; color:var(--text3,#8b8c98); margin-bottom:18px; }
.ad-int-slot { min-height:250px; background:rgba(255,255,255,0.03); border:1px dashed rgba(255,255,255,0.12); border-radius:12px; display:flex; align-items:center; justify-content:center; overflow:hidden; margin-bottom:18px; }
.ad-int-continue { width:100%; justify-content:center; }
.ad-int-foot { font-size:12px; color:var(--text3,#8b8c98); margin-top:12px; }

/* Float status */
.pmc-floatfx { position:fixed; bottom:14px; right:18px; z-index:20; font-family:var(--c-mono); font-size:10px; color:var(--c-ink4); letter-spacing:0.08em; display:flex; align-items:center; gap:6px; pointer-events:none; }
.pmc-floatfx .dot { width:5px; height:5px; border-radius:99px; background:var(--c-green); box-shadow:0 0 8px var(--c-green); }

/* Section headers */
.pmc-section { margin-top:52px; }
.pmc-shead { display:flex; align-items:flex-end; gap:16px; margin-bottom:18px; }
.pmc-shead .eyebrow { font-family:var(--c-mono); font-size:10.5px; letter-spacing:0.18em; color:var(--c-cyan); text-transform:uppercase; margin-bottom:6px; }
.pmc-shead h2 { font-family:var(--c-display); font-weight:500; font-size:28px; letter-spacing:-0.015em; margin:0; }
.pmc-shead .sub { margin-left:auto; color:var(--c-ink3); font-size:13px; display:flex; align-items:center; gap:12px; }
.pmc-chiprow { display:flex; gap:6px; }
.pmc-chiprow button { border:1px solid var(--c-line); background:transparent; color:var(--c-ink3); font-size:12px; padding:6px 12px; border-radius:99px; cursor:pointer; font-family:inherit; }
.pmc-chiprow button.on { color:var(--c-ink); border-color:var(--c-line2); background:rgba(138,108,255,0.12); }

/* Trending grid */
.pmc-trend-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.pmc-tcard { position:relative; aspect-ratio:1/1; border-radius:22px; overflow:hidden; border:1px solid var(--c-line); cursor:pointer; isolation:isolate; transition:transform .25s ease, border-color .25s ease; }
.pmc-tcard:hover { transform:translateY(-3px); border-color:var(--c-line2); }
.pmc-tcard .thumb { position:absolute; inset:0; }
.pmc-tcard .thumb::before { content:""; position:absolute; inset:0; background-image:repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 10px, rgba(255,255,255,0) 10px 20px); }
.pmc-tcard .phl { position:absolute; top:12px; left:12px; font-family:var(--c-mono); font-size:9.5px; color:rgba(255,255,255,0.5); letter-spacing:0.1em; text-transform:uppercase; }
.pmc-tcard .foot { position:absolute; left:0; right:0; bottom:0; padding:14px 16px; background:linear-gradient(180deg, transparent, rgba(0,0,0,0.8) 60%); }
.pmc-tcard .nm { font-family:var(--c-display); font-weight:500; font-size:16px; color:#fff; line-height:1.2; }
.pmc-tcard .mt { font-family:var(--c-mono); font-size:10px; color:rgba(255,255,255,0.7); margin-top:4px; }
.pmc-tcard .rank { position:absolute; top:10px; right:10px; font-family:var(--c-mono); font-size:10.5px; font-weight:600; padding:4px 8px; border-radius:99px; background:rgba(0,0,0,0.55); backdrop-filter:blur(6px); color:#fff; border:1px solid rgba(255,255,255,0.15); display:flex; gap:6px; }
.pmc-tcard .rank .up { color:var(--c-green); }
.pmc-tg-1 { background:linear-gradient(135deg,#2a1057,#5a3dff 45%,#b89cff); }
.pmc-tg-2 { background:linear-gradient(135deg,#052a3a,#2aa9e0 50%,#6bd8ff); }
.pmc-tg-3 { background:linear-gradient(135deg,#3a0533,#ff5aa8 55%,#ffc06b); }
.pmc-tg-4 { background:linear-gradient(135deg,#052a1f,#2aa07a 50%,#7dffb0); }
.pmc-tg-5 { background:linear-gradient(135deg,#1a1a1a,#4a4a4a 50%,#cfcfcf); }
.pmc-tg-6 { background:linear-gradient(135deg,#2a0a0a,#b13a3a 50%,#ffc06b); }
.pmc-tg-7 { background:linear-gradient(135deg,#0a0a2a,#3d4dff 50%,#c9b9ff); }
.pmc-tg-8 { background:linear-gradient(135deg,#2a0a2a,#8a3d8a 50%,#ff7ad9); }

/* Categories rail */
.pmc-cat-rail { display:grid; grid-template-columns:repeat(6,1fr); gap:12px; }
.pmc-cat { padding:14px 16px; border-radius:16px; background:rgba(20,16,30,0.55); border:1px solid var(--c-line); cursor:pointer; transition:all .2s ease; display:flex; flex-direction:column; gap:6px; text-align:left; }
.pmc-cat:hover { border-color:var(--c-line2); background:rgba(28,22,44,0.8); transform:translateY(-2px); }
.pmc-cat .ic { width:28px; height:28px; border-radius:8px; background:linear-gradient(135deg, rgba(138,108,255,0.22), rgba(107,216,255,0.12)); border:1px solid var(--c-line); display:grid; place-items:center; color:var(--c-violet2); margin-bottom:4px; }
.pmc-cat .nm { font-family:var(--c-display); font-weight:500; font-size:15px; color:var(--c-ink); }
.pmc-cat .ct { font-family:var(--c-mono); font-size:10.5px; color:var(--c-ink3); }
.pmc-cat .tr { font-family:var(--c-mono); font-size:10px; color:var(--c-green); }

/* Curated prompt cards */
.pmc-prompts { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.pmc-pcard { position:relative; padding:22px; border-radius:22px; background:rgba(20,16,30,0.55); border:1px solid var(--c-line); display:flex; flex-direction:column; min-height:260px; overflow:hidden; transition:transform .25s ease, border-color .25s ease; cursor:pointer; }
.pmc-pcard:hover { transform:translateY(-3px); border-color:var(--c-line2); }
.pmc-pcard.premium { border-color:rgba(184,156,255,0.4); background:linear-gradient(160deg, rgba(40,30,70,0.7), rgba(20,16,30,0.55)); }
.pmc-pchead { display:flex; align-items:center; gap:8px; margin-bottom:14px; }
.pmc-ttag { display:inline-flex; align-items:center; gap:6px; font-family:var(--c-mono); font-size:10px; font-weight:600; letter-spacing:0.1em; padding:4px 8px; border-radius:99px; text-transform:uppercase; }
.pmc-ttag.free { color:var(--c-ink3); background:rgba(139,130,173,0.1); border:1px solid rgba(139,130,173,0.3); }
.pmc-ttag.pro { color:var(--c-amber); background:linear-gradient(135deg, rgba(255,180,90,0.16), rgba(255,122,217,0.08)); border:1px solid rgba(255,180,90,0.4); }
.pmc-ttag.premium { color:var(--c-violet2); background:linear-gradient(135deg, rgba(184,156,255,0.18), rgba(107,216,255,0.1)); border:1px solid rgba(184,156,255,0.45); }
.pmc-match { margin-left:auto; display:inline-flex; align-items:center; gap:6px; font-family:var(--c-mono); font-size:10px; padding:4px 8px; border-radius:99px; background:rgba(125,255,176,0.08); border:1px solid rgba(125,255,176,0.25); color:var(--c-green); }
.pmc-match .bar { width:30px; height:3px; border-radius:2px; background:rgba(255,255,255,0.1); position:relative; overflow:hidden; }
.pmc-match .bar i { position:absolute; left:0; top:0; bottom:0; background:linear-gradient(90deg, var(--c-cyan), var(--c-green)); border-radius:2px; }
.pmc-pctitle { font-family:var(--c-display); font-weight:500; font-size:18px; color:var(--c-ink); margin:0 0 8px; line-height:1.25; }
.pmc-pcdesc { color:var(--c-ink2); font-size:13px; line-height:1.55; margin:0 0 14px; flex:1; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.pmc-pctags { display:flex; flex-wrap:wrap; gap:5px; margin-bottom:14px; }
.pmc-pctags span { font-family:var(--c-mono); font-size:10px; padding:3px 8px; border-radius:4px; background:rgba(138,108,255,0.08); border:1px solid rgba(138,108,255,0.18); color:var(--c-ink2); }
.pmc-pcfoot { display:flex; align-items:center; justify-content:space-between; padding-top:12px; border-top:1px solid var(--c-line); gap:8px; }
.pmc-pcmodels { display:flex; align-items:center; gap:4px; font-family:var(--c-mono); font-size:10.5px; color:var(--c-ink3); }
.pmc-mdot { width:14px; height:14px; border-radius:99px; display:inline-grid; place-items:center; font-size:8px; font-weight:700; color:#fff; }
.pmc-mdot.cla { background:linear-gradient(135deg,#ff9966,#ff5e62); }
.pmc-mdot.gpt { background:linear-gradient(135deg,#10a37f,#1ed1a3); }
.pmc-mdot.gem { background:linear-gradient(135deg,#4a86ff,#b89cff); }
.pmc-mdot.def { background:linear-gradient(135deg,#6a4cff,#c9b9ff); }
.pmc-pccta { border:0; padding:8px 14px; border-radius:99px; background:linear-gradient(135deg, var(--c-violet), var(--c-violetd)); color:#fff; font-weight:500; font-size:12px; cursor:pointer; display:inline-flex; align-items:center; gap:6px; box-shadow:0 4px 18px rgba(90,61,255,0.4); white-space:nowrap; font-family:inherit; }
.pmc-pccta.locked { background:rgba(255,180,90,0.14); color:var(--c-amber); border:1px solid rgba(255,180,90,0.4); box-shadow:none; }

/* Intelligent history */
.pmc-hist-grid { display:grid; grid-template-columns:1fr 1fr 1fr; gap:14px; }
.pmc-hcard { padding:16px 18px; border-radius:16px; background:rgba(20,16,30,0.5); border:1px solid var(--c-line); cursor:pointer; display:flex; flex-direction:column; gap:10px; transition:all .2s ease; }
.pmc-hcard:hover { border-color:var(--c-line2); background:rgba(28,22,44,0.7); }
.pmc-hcard .top { display:flex; align-items:center; gap:8px; }
.pmc-hcard .when { font-family:var(--c-mono); font-size:10px; color:var(--c-ink4); margin-left:auto; }
.pmc-ctx { font-family:var(--c-mono); font-size:9.5px; padding:3px 7px; border-radius:4px; letter-spacing:0.04em; text-transform:uppercase; }
.pmc-ctx.view { background:rgba(107,216,255,0.1); color:var(--c-cyan); border:1px solid rgba(107,216,255,0.25); }
.pmc-ctx.copy { background:rgba(125,255,176,0.1); color:var(--c-green); border:1px solid rgba(125,255,176,0.25); }
.pmc-ctx.like { background:rgba(255,122,217,0.1); color:var(--c-pink); border:1px solid rgba(255,122,217,0.25); }
.pmc-ctx.save { background:rgba(255,192,107,0.1); color:var(--c-amber); border:1px solid rgba(255,192,107,0.25); }
.pmc-hcard .pr { font-size:13.5px; color:var(--c-ink); line-height:1.4; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.pmc-hcard .note { font-size:11.5px; color:var(--c-violet2); padding-left:10px; border-left:2px solid var(--c-violet); line-height:1.4; }
.pmc-hcard .note b { color:var(--c-ink); font-weight:500; }

/* Monetization strip */
.pmc-monet { margin-top:52px; padding:26px 28px; border-radius:28px; border:1px solid var(--c-line); background:radial-gradient(ellipse 60% 80% at 100% 50%, rgba(255,180,90,0.08), transparent 70%), linear-gradient(180deg, rgba(20,16,30,0.7), rgba(12,10,20,0.7)); display:grid; grid-template-columns:1fr auto; gap:28px; align-items:center; }
.pmc-monet .eyebrow { font-family:var(--c-mono); font-size:10.5px; letter-spacing:0.16em; color:var(--c-amber); text-transform:uppercase; margin-bottom:6px; }
.pmc-monet h3 { font-family:var(--c-display); font-weight:500; font-size:22px; margin:0 0 4px; }
.pmc-monet .ais { display:flex; align-items:center; gap:4px; margin-top:10px; font-family:var(--c-mono); font-size:10.5px; color:var(--c-violet2); }
.pmc-tiers { display:flex; gap:10px; }
.pmc-tmini { width:170px; padding:14px; border-radius:14px; background:rgba(12,10,20,0.6); border:1px solid var(--c-line); position:relative; cursor:pointer; }
.pmc-tmini.cur { border-color:var(--c-line2); }
.pmc-tmini.rec { border-color:rgba(255,180,90,0.45); background:linear-gradient(160deg, rgba(60,40,20,0.6), rgba(20,12,8,0.6)); }
.pmc-tmini .nm { display:flex; align-items:center; gap:6px; font-family:var(--c-mono); font-size:10.5px; letter-spacing:0.1em; text-transform:uppercase; color:var(--c-ink3); margin-bottom:8px; }
.pmc-tmini.cur .nm { color:var(--c-ink); } .pmc-tmini.rec .nm { color:var(--c-amber); }
.pmc-tmini .price { font-family:var(--c-display); font-weight:500; font-size:22px; color:var(--c-ink); }
.pmc-tmini .price small { font-size:12px; color:var(--c-ink3); font-weight:400; }
.pmc-tmini .feat { margin-top:10px; font-size:11px; color:var(--c-ink3); line-height:1.5; }
.pmc-tmini .pill { position:absolute; top:-9px; left:12px; font-family:var(--c-mono); font-size:9px; letter-spacing:0.1em; padding:3px 7px; border-radius:99px; text-transform:uppercase; }
.pmc-tmini.cur .pill { background:rgba(125,255,176,0.14); color:var(--c-green); border:1px solid rgba(125,255,176,0.4); }
.pmc-tmini.rec .pill { background:linear-gradient(135deg,#ffb45a,#ff7ad9); color:#1a0c1c; }

/* Responsive */
@media (max-width:1100px) {
  .pmc-hero-row { grid-template-columns:1fr; } .pmc-orbw { display:none; }
  .pmc-trend-grid { grid-template-columns:repeat(3,1fr); }
  .pmc-prompts { grid-template-columns:repeat(2,1fr); }
  .pmc-cat-rail { grid-template-columns:repeat(3,1fr); }
  .pmc-hist-grid { grid-template-columns:1fr 1fr; }
  .pmc-monet { grid-template-columns:1fr; }
}
@media (max-width:768px) {
  .pmc-main { padding:8px 14px 180px; }
  .pmc-hero-body h1 { font-size:32px; }
  .pmc-agent { padding:26px 20px; }
  .pmc-agent-stats { display:none; }
  .pmc-dock { top:74px; }
  .pmc-composer-wrap { left:0; padding:12px 12px 76px; }
  .pmc-trend-grid { grid-template-columns:repeat(2,1fr); }
  .pmc-prompts { grid-template-columns:1fr; }
  .pmc-cat-rail { grid-template-columns:repeat(2,1fr); }
  .pmc-hist-grid { grid-template-columns:1fr; }
  .pmc-tiers { flex-wrap:wrap; }
}

/* ==========================================================================
   PM OPERATOR CONSOLE ADDITIONS (INLINE TOOLS, TAGS & PANEL)
   ========================================================================== */

.pmc-tool-panel {
  display: none;
  border-radius: 24px;
  border: 1px solid var(--c-line2);
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(138,108,255,0.08), transparent 70%), linear-gradient(180deg, rgba(28,22,44,0.85), rgba(14,11,22,0.92));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 32px;
  margin-bottom: 28px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
  animation: pmc-slide-down 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pmc.tooling .pmc-tool-panel {
  display: block;
}

/* When a dock tool (Search / Saved / History) is open, focus the view on it:
   hide the welcome hero, the synthesis feed and the tab panels. */
.pmc.tooling .pmc-agent,
.pmc.tooling .pmc-results,
.pmc.tooling .pmc-panel {
  display: none !important;
}

@keyframes pmc-slide-down {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

.pmc-tool-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--c-line);
  padding-bottom: 18px;
  margin-bottom: 24px;
}

.pmc-tool-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--c-line);
  background: rgba(20,16,30,0.5);
  color: var(--c-ink3);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pmc-tool-close:hover {
  color: var(--c-ink);
  border-color: var(--c-line2);
  background: rgba(138,108,255,0.12);
  transform: rotate(90deg);
}

.pmc-searchbar {
  margin-bottom: 24px;
  position: relative;
  display: flex;
  align-items: center;
}

.pmc-searchbar-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--c-ink3);
  pointer-events: none;
  display: flex;
  align-items: center;
  transition: color 0.25s ease;
}

.pmc-searchbar-clear {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--c-ink3);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.pmc-searchbar-clear:hover {
  color: var(--c-ink);
  background: rgba(255, 255, 255, 0.08);
}

.pmc-searchbar-clear.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(0.8);
}

.pmc-searchbar input {
  width: 100%;
  padding: 16px 44px 16px 52px;
  border-radius: 99px;
  border: 1px solid var(--c-line2);
  background: rgba(12,10,20,0.6);
  color: var(--c-ink);
  font-size: 15px;
  outline: none;
  font-family: inherit;
  transition: all 0.25s ease;
}

.pmc-searchbar input:focus {
  border-color: var(--c-violet);
  box-shadow: 0 0 15px rgba(138,108,255,0.25), inset 0 1px 0 rgba(255,255,255,0.05);
  background: rgba(20,16,30,0.7);
}

.pmc-searchbar input:focus ~ .pmc-searchbar-icon {
  color: var(--c-violet);
}

/* Search empty state — popular searches + trending so the panel never looks blank */
.pmc-search-hint { font-family: var(--c-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--c-ink3); margin: 0 0 12px; }
.pmc-search-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pmc-search-chips button {
  border: 1px solid var(--c-line); background: rgba(20,16,30,0.55); color: var(--c-ink2);
  font-size: 13px; padding: 8px 16px; border-radius: 99px; cursor: pointer; font-family: inherit; transition: all .2s ease;
}
.pmc-search-chips button:hover { color: var(--c-ink); border-color: var(--c-violet); background: rgba(138,108,255,0.12); transform: translateY(-1px); }
#pmc-search-results:empty { display: none; }

.pmc-tool-empty {
  text-align: center;
  padding: 44px 20px;
  color: var(--c-ink3);
}

.pmc-tool-empty h3 {
  font-family: var(--c-display);
  font-size: 20px;
  color: var(--c-ink);
  margin: 0 0 8px;
  font-weight: 500;
}

.pmc-tool-empty p {
  font-size: 13.5px;
  margin: 0 0 20px;
}

/* Specialized Tag Selector Styles */
.pmc-tag-menu {
  position: absolute;
  bottom: calc(100% - 4px);
  left: 50%;
  transform: translateX(-50%);
  width: 380px;
  max-width: min(380px, 92vw);
  background: rgba(18,20,36,0.92);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--c-line2);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 30px rgba(138,108,255,0.15);
  z-index: 1002;
  display: none;
  /* the composer wrapper is pointer-events:none — re-enable clicks inside the popover */
  pointer-events: auto;
  transform-origin: bottom center;
}

.pmc-tag-menu.open {
  display: block;
  animation: pmc-pop-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pmc-pop-in {
  from { opacity: 0; transform: translateX(-50%) scale(0.92) translateY(10px); }
  to { opacity: 1; transform: translateX(-50%) scale(1) translateY(0); }
}

.pmc-tag-menu-title {
  font-family: var(--c-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--c-ink2);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.pmc-tag-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pmc-tagopt {
  border: 1px solid var(--c-line);
  background: rgba(20,16,30,0.5);
  color: var(--c-ink3);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 99px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.pmc-tagopt:hover {
  color: var(--c-ink);
  border-color: rgba(138,108,255,0.4);
  background: rgba(138,108,255,0.08);
}

.pmc-tagopt.on {
  color: #fff;
  border-color: rgba(138,108,255,0.7);
  background: linear-gradient(135deg, rgba(138,108,255,0.4), rgba(107,216,255,0.25));
  box-shadow: 0 0 10px rgba(138,108,255,0.3);
}

/* Tag Chips Row above Input */
.pmc-tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 0 4px 10px;
  border-bottom: 1px solid var(--c-line);
  margin-bottom: 10px;
}

.pmc-tagchip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--c-mono);
  font-size: 10.5px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(138,108,255,0.15), rgba(107,216,255,0.08));
  border: 1px solid rgba(138,108,255,0.3);
  color: var(--c-violet2);
}

.pmc-tagchip button {
  background: transparent;
  border: 0;
  color: var(--c-ink3);
  cursor: pointer;
  font-size: 13px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  transition: all 0.15s ease;
}

.pmc-tagchip button:hover {
  color: var(--c-pink);
  background: rgba(255,122,217,0.15);
}

.pmc-tagchip-note {
  font-family: var(--c-mono);
  font-size: 9.5px;
  color: var(--c-ink4);
  letter-spacing: 0.02em;
  margin-left: 4px;
}

/* ── Voice input button states (idle / listening) ── */
.pmc-voice-btn { position: relative; overflow: visible; transition: all 0.2s ease; }
.pmc-voice-btn:hover { color: var(--c-ink); border-color: var(--c-line2); }
.pmc-voice-btn.listening {
  background: linear-gradient(135deg, #ff5e62, #ff2d55);
  color: #fff; border-color: transparent;
}
.pmc-voice-rings { position: absolute; inset: 0; pointer-events: none; }
.pmc-voice-btn.listening .pmc-voice-rings span {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(255,45,85,0.55);
  animation: pmc-voice-ring 1.6s ease-out infinite;
}
.pmc-voice-btn.listening .pmc-voice-rings span:nth-child(2) { animation-delay: 0.5s; }
.pmc-voice-btn.listening .pmc-voice-rings span:nth-child(3) { animation-delay: 1s; }
@keyframes pmc-voice-ring { from { transform: scale(1); opacity: 0.7; } to { transform: scale(2.5); opacity: 0; } }

.pmc-voice-status {
  display: none; align-items: center; gap: 8px;
  margin-top: 10px; padding: 0 6px;
  font-family: var(--c-mono); font-size: 11px; color: var(--c-ink2);
}
.pmc-voice-status.show { display: flex; }
.pmc-voice-live {
  width: 8px; height: 8px; border-radius: 50%;
  background: #ff2d55; box-shadow: 0 0 10px #ff2d55;
  animation: pmc-pulse 1.2s ease-out infinite;
}

.pmc-dock .tool.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(138,108,255,0.4), rgba(107,216,255,0.22));
  border-color: rgba(184,156,255,0.5);
  box-shadow: 0 0 16px rgba(138,108,255,0.35), inset 0 0 8px rgba(184,156,255,0.15);
}
.pmc-dock .tool.active::after {
  content: ""; position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--c-violet2); box-shadow: 0 0 8px var(--c-violet2);
}
.pmc-dock .tool { position: relative; }

/* Agent focus mode — when the agent is working, hide the hero + sections, show only the chat */
.pmc.agent-working .pmc-agent,
.pmc.agent-working .pmc-panel { display: none !important; }
.pmc.agent-working .pmc-dock .tab { opacity: .4; pointer-events: none; }
.pmc.agent-working .pmc-results { margin-top: 8px; }

/* Full-page tool views (Search / Categories / Saved / History) — not a floating card */
.pmc.tooling .pmc-main { max-width: 1480px; padding-left: 40px; padding-right: 40px; }
.pmc.tooling .pmc-tool-panel { width: 100%; }
.pmc.tooling .pmc-tool-panel .pmc-prompts { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.pmc.tooling .pmc-tool-panel .pmc-cat-rail { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.pmc.tooling .pmc-tool-panel .pmc-hist-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
@media (max-width: 720px) { .pmc.tooling .pmc-main { padding-left: 16px; padding-right: 16px; } }

/* Categories tool — group labels */
.pmc-catgroup-label {
  font-family: var(--c-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--c-cyan); margin: 22px 0 12px; padding-top: 4px;
}
.pmc-catgroup-label:first-child { margin-top: 0; }
#pmc-tool-body .pmc-cat-rail { margin-bottom: 8px; }

/* Ad-wall unlock countdown badges and banners */
.card-unlocked-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.unlocked-ad-banner {
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.25);
  color: #34d399;
  padding: 16px 20px;
  border-radius: 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}
.unlocked-ad-banner-title {
  font-weight: 700;
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  margin-bottom: 2px;
}
.unlocked-ad-banner-desc {
  font-size: 13px;
  opacity: 0.9;
}

/* Gemini-style Sidebar for Chat History */
.pmc-chat-history-sidebar {
  width: 240px;
  background: transparent !important;
  border-right: none !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 200px);
  position: absolute;
  left: 24px;
  top: 140px;
  z-index: 10;
  padding: 16px 0;
  flex-shrink: 0;
}

.pmc-chat-history-sidebar .sidebar-body {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pmc-chat-history-sidebar .sidebar-section-title {
  font-family: var(--c-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-ink3);
}

.pmc-chat-history-sidebar .sidebar-chat-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pmc-chat-history-sidebar .chat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--c-ink2);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  background: transparent;
  border: 1px solid transparent;
  position: relative;
}

.pmc-chat-history-sidebar .chat-item svg {
  flex-shrink: 0;
  color: var(--c-ink3);
}

.pmc-chat-history-sidebar .chat-item:hover {
  border-color: var(--c-line2);
  color: var(--c-ink);
}

.pmc-chat-history-sidebar .chat-item.active {
  border-color: var(--c-cyan);
  color: var(--c-cyan);
  background: rgba(138, 108, 255, 0.04);
}

.pmc-chat-history-sidebar .chat-item.active svg {
  color: var(--c-cyan);
}

.pmc-chat-history-sidebar .chat-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.pmc-chat-history-sidebar .sidebar-empty {
  font-size: 12px;
  color: var(--c-ink4);
  padding: 12px 8px;
  text-align: center;
}

/* Chat Item 3-Dot Actions */
.chat-item-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  position: relative;
}

.chat-more-btn {
  background: transparent;
  border: none;
  color: var(--c-ink3);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.chat-item:hover .chat-more-btn,
.chat-more-btn.active {
  opacity: 1;
}

.chat-more-btn:hover {
  color: var(--c-ink);
  background: rgba(255, 255, 255, 0.08);
}

.chat-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: #14101e;
  border: 1px solid var(--c-line2);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  z-index: 20;
  min-width: 100px;
  padding: 4px 0;
}

.chat-menu.show {
  display: block;
}

.chat-menu button {
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  border: none;
  color: var(--c-ink2);
  text-align: left;
  font-size: 12px;
  cursor: pointer;
  display: block;
  transition: background 0.15s ease, color 0.15s ease;
}

.chat-menu button:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--c-ink);
}

.chat-menu button.delete {
  color: #ef4444;
}

.chat-menu button.delete:hover {
  background: rgba(239, 68, 68, 0.08);
}

/* User profile history grouping headers */
.profile-history-group-title {
  font-family: var(--c-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-cyan);
  margin: 24px 0 12px;
  padding-bottom: 4px;
}

/* Sidebar mobile overlay / backdrop */
.sidebar-mobile-backdrop {
  display: none;
}

.pmc.tooling .pmc-chat-history-sidebar,
.pmc-sidebar-collapsed .pmc-chat-history-sidebar {
  display: none !important;
}

.sidebar-toggle-btn {
  position: absolute;
  left: 24px;
  top: 96px;
  z-index: 15;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--c-ink3);
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.sidebar-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: rgba(255, 255, 255, 0.25);
}

.pmc-sidebar-collapsed .sidebar-toggle-btn {
  color: var(--c-ink3);
  opacity: 0.6;
}

.pmc-sidebar-collapsed .sidebar-toggle-btn:hover {
  opacity: 1;
}

@media (max-width: 1499px) {
  .pmc-chat-history-sidebar {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 270px !important;
    max-width: 80vw !important;
    height: 100vh !important;
    z-index: 10002 !important;
    background: rgba(10, 10, 15, 0.95) !important;
    backdrop-filter: blur(16px) !important;
    border-right: 1px solid rgba(255,255,255,0.08) !important;
    transform: translateX(-100%) !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    padding: 72px 16px 24px !important;
    box-sizing: border-box !important;
  }

  /* When NOT collapsed, slide it in! */
  .pmc:not(.pmc-sidebar-collapsed) .pmc-chat-history-sidebar {
    transform: translateX(0) !important;
  }

  /* Toggle button is fixed floating over everything on mobile */
  .sidebar-toggle-btn {
    display: flex !important;
    position: fixed !important;
    left: 12px !important;
    top: 12px !important;
    z-index: 10001 !important;
    background: rgba(15, 12, 30, 0.8) !important;
    backdrop-filter: blur(8px) !important;
  }

  /* Mobile backdrop overlay */
  .sidebar-mobile-backdrop {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(4px) !important;
    z-index: 10001 !important;
  }

  .pmc:not(.pmc-sidebar-collapsed) .sidebar-mobile-backdrop {
    display: block !important;
  }

  .pmc-sidebar-collapsed .pmc-chat-history-sidebar,
  .pmc.tooling .pmc-chat-history-sidebar {
    transform: translateX(-100%) !important;
  }
}

@media (max-width: 1499px) {
  .sidebar-toggle-btn {
    display: flex !important;
  }
}

/* ─────────────────────────────────────────────────────────
   MOBILE UI OVERRIDES (Targeting viewports <= 768px)
   ───────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* 1. Landing Page overrides */
  .hero h1 {
    font-size: clamp(2.2rem, 8vw, 3.2rem) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.02em !important;
  }
  .hero-sub {
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin-bottom: 24px !important;
  }
  .hero-cta-row {
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 320px !important;
    margin: 0 auto !important;
  }
  .hero-cta-row .btn {
    width: 100% !important;
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  /* UPS Scoring Evaluation Tool */
  .score-tool-body {
    flex-direction: column !important;
    gap: 24px !important;
    padding: 16px !important;
  }
  .score-input-col, 
  .score-result-col {
    width: 100% !important;
  }
  .score-textarea {
    min-height: 120px !important;
    font-size: 14px !important;
    padding: 12px !important;
  }
  .score-analyze-btn {
    width: 100% !important;
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .score-comparison-row {
    gap: 16px !important;
    justify-content: center !important;
  }
  .score-circle {
    width: 76px !important;
    height: 76px !important;
    font-size: 20px !important;
  }
  .score-vs {
    font-size: 14px !important;
    align-self: center !important;
  }

  /* Trending Prompts & Category Grids */
  .prompt-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .featured-cats {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  .cta-section {
    padding: 32px 16px !important;
    margin-top: 48px !important;
    text-align: center !important;
  }
  .cta-section h2 {
    font-size: 20px !important;
  }
  .cta-upgrade-btn {
    width: 100% !important;
    height: 48px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* 2. AI Agent Console & Chat overrides */
  .pmc-main {
    padding: 8px 12px 140px !important;
  }

  .pmc-dock {
    width: 100% !important;
    max-width: 100% !important;
    padding: 6px 12px !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 999 !important;
    background: rgba(10, 8, 20, 0.9) !important;
    backdrop-filter: blur(10px) !important;
    box-sizing: border-box !important;
  }
  .pmc-dock-inner {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    gap: 8px !important;
    padding-bottom: 4px !important;
    justify-content: flex-start !important;
  }
  .pmc-dock-inner::-webkit-scrollbar {
    display: none !important;
  }
  .pmc-dock-inner .tool, 
  .pmc-dock-inner .tab {
    flex-shrink: 0 !important;
  }

  .pmc-engine {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    padding: 10px !important;
    font-size: 11px !important;
    border-radius: 12px !important;
  }
  .pmc-engine .metric {
    margin: 0 !important;
    padding: 4px 0 !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
  }
  .pmc-engine .metric:nth-child(even) {
    border-bottom: none !important;
  }
  .pmc-engine .metric:nth-last-child(-n+2) {
    border-bottom: none !important;
  }

  .pmc-suggest-row {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
  }
  .pmc-suggest {
    font-size: 12px !important;
    padding: 10px !important;
    text-align: left !important;
  }
  .pmc-suggest .kbd {
    display: none !important;
  }

  .ai-chat-messages {
    gap: 12px !important;
    padding: 8px 4px 24px !important;
  }
  .ai-bubble {
    padding: 12px 14px !important;
  }
  .pmc-results pre, 
  .pmc-results code {
    margin: 10px 0 !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    font-size: 12px !important;
  }

  .pmc-composer-wrap {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding: 8px 12px 92px !important;
    background: linear-gradient(to top, rgba(10,10,15,0.95) 80%, transparent) !important;
    z-index: 1000 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .pmc-composer {
    border-radius: 16px !important;
    padding: 8px 12px !important;
  }
  .pmc-composer .row {
    gap: 8px !important;
  }
  .pmc-composer .quick {
    display: flex !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    margin-top: 8px !important;
    padding-bottom: 2px !important;
  }
  .pmc-composer .quick::-webkit-scrollbar {
    display: none !important;
  }
  .pmc-composer .quick button {
    flex-shrink: 0 !important;
    font-size: 11px !important;
    padding: 4px 10px !important;
  }
  .pmc-voice-btn {
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
  }
  .pmc-voice-status {
    font-size: 11px !important;
    margin-top: 4px !important;
  }

  /* 3. Store Page overrides */
  .store-grid, 
  .pack-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    padding: 12px !important;
  }
  .store-comparison-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }
  .store-tier-card {
    padding: 16px !important;
  }
  .pack-card {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 20px !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  .pack-card h2 {
    font-size: 22px !important;
  }
  .pack-header {
    text-align: center !important;
  }
  .pack-header .btn-purchase, 
  .pack-card .btn {
    width: 100% !important;
    height: 48px !important;
    margin-top: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .pack-features {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    text-align: left !important;
  }

  /* 4. User Profile overrides */
  .profile-container {
    padding: 16px 12px 64px !important;
    margin-top: 12px !important;
  }
  .profile-tabs {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    gap: 8px !important;
    padding: 4px 12px !important;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
    justify-content: flex-start !important;
  }
  .profile-tabs::-webkit-scrollbar {
    display: none !important;
  }
  .profile-tabs button {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    padding: 10px 16px !important;
    font-size: 13px !important;
  }
  .profile-header {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 16px !important;
    padding: 24px 16px !important;
    margin-top: 0px !important;
  }
  .profile-stats-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    padding: 0 !important;
  }
  .profile-stats-grid > div {
    padding: 12px !important;
    border-radius: 12px !important;
  }
  .profile-stats-grid > div > div:first-child {
    font-size: 20px !important;
  }
  .profile-stats-grid > div > div:last-child {
    font-size: 10px !important;
  }
  .profile-actions-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .profile-actions-grid button {
    padding: 12px 16px !important;
  }
  .creations-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding: 12px !important;
  }

  /* 5. Prompt Detail Modals bottom sheet conversion */
  .modal:not(.hidden) {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
  }
  .modal-content {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    transform: translateY(0) !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 90vh !important;
    border-radius: 20px 20px 0 0 !important;
    border-bottom: none !important;
    z-index: 10005 !important;
    display: flex !important;
    flex-direction: column !important;
    animation: slideUpMobileModal 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    padding: 0 !important;
  }
  .modal-content::before {
    content: "" !important;
    display: block !important;
    width: 40px !important;
    height: 5px !important;
    background: rgba(255,255,255,0.2) !important;
    border-radius: 3px !important;
    margin: 8px auto 16px !important;
    flex-shrink: 0 !important;
  }
  .modal-close {
    position: absolute !important;
    top: 12px !important;
    right: 16px !important;
    font-size: 24px !important;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10006 !important;
  }
  #modal-body {
    overflow-y: auto !important;
    flex: 1 !important;
    padding: 16px 20px 48px !important;
  }

  /* Premium Floating Tab Bar Override */
  .bottom-tab-bar {
    display: flex !important;
    position: fixed !important;
    bottom: 16px !important;
    left: 16px !important;
    right: 16px !important;
    border-radius: 20px !important;
    border: 1px solid rgba(99, 102, 241, 0.25) !important;
    background: rgba(10, 8, 22, 0.85) !important;
    backdrop-filter: blur(20px) saturate(1.6) !important;
    -webkit-backdrop-filter: blur(20px) saturate(1.6) !important;
    padding: 6px 0 !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6) !important;
    z-index: 10000 !important;
  }
}

@media (max-width: 560px) {
  .featured-cats {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  .auth-container {
    padding: 16px !important;
  }
  .auth-card {
    width: 100% !important;
    max-width: 100% !important;
    padding: 24px 16px !important;
    border-radius: 16px !important;
  }
  .auth-card input {
    height: 48px !important;
    font-size: 16px !important;
  }
  .auth-submit-btn, 
  .btn-google {
    height: 48px !important;
    font-size: 15px !important;
    width: 100% !important;
  }
  .profile-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@keyframes slideUpMobileModal {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════
   DEVICE-MANAGER BODY CLASSES — Precision adaptive overrides
   These classes are set by DeviceManager in app.js
   body.is-mobile  → any mobile viewport (≤ 768px)
   body.is-tablet  → tablet viewport (769–1024px)
   body.is-desktop → desktop (> 1024px)
   body.screen-xs  → compact phone (< 400px)
   body.screen-sm  → small phone (400–480px)
   body.screen-md  → standard mobile (480–768px)
   body.is-touch   → touch-capable device
   ═══════════════════════════════════════════════════════════ */

/* ── Desktop hero-foot (stat-tile based layout) ─────────── */
body.is-desktop .hero-foot {
  display: inline-flex !important;
  gap: 32px !important;
  flex-direction: row !important;
  align-items: center !important;
  border-radius: 100px !important;
  padding: 12px 32px !important;
  white-space: nowrap !important;
}
body.is-desktop .hero-foot .stat-tile {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-direction: row !important;
}
body.is-desktop .hero-foot .stat-label {
  color: var(--text3);
  font-size: 11px;
}
body.is-desktop .hero-foot b {
  font-size: 15px !important;
  color: white !important;
  font-weight: 700 !important;
}

/* ── Mobile hero-foot (2×2 grid) ─────────────────────────── */
body.is-mobile .hero-foot {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 12px !important;
  padding: 20px 16px !important;
  border-radius: 20px !important;
  background: rgba(255,255,255,0.03) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4) !important;
  width: 100% !important;
  box-sizing: border-box !important;
  white-space: normal !important;
  margin-top: 24px !important;
}
body.is-mobile .hero-foot .stat-tile {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  padding: 8px 4px !important;
  border-radius: 12px !important;
  background: rgba(255,255,255,0.02) !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
}
body.is-mobile .hero-foot b {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: white !important;
  line-height: 1 !important;
}
body.is-mobile .hero-foot .stat-label {
  font-size: 9px !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  color: var(--text3) !important;
}
body.is-mobile .hero-foot .stars {
  font-size: 12px !important;
  letter-spacing: 2px !important;
  color: #f59e0b !important;
  margin-bottom: 2px !important;
}

/* ── Mobile body padding for floating tab bar ─────────────── */
body.is-mobile {
  padding-bottom: 100px !important;
}

/* ── Hero title — body-class driven ──────────────────────── */
body.screen-xs .hero h1 { font-size: 24px !important; letter-spacing: -0.04em !important; }
body.screen-sm .hero h1 { font-size: 28px !important; letter-spacing: -0.03em !important; }
body.screen-md .hero h1 { font-size: 34px !important; letter-spacing: -0.02em !important; }

/* ── Hero tags row — horizontal scroll on mobile ─────────── */
body.is-mobile .hero-tags-row {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  justify-content: flex-start !important;
  gap: 8px !important;
  padding-bottom: 4px !important;
  margin-bottom: 16px !important;
}
body.is-mobile .hero-tags-row::-webkit-scrollbar { display: none !important; }
body.is-mobile .hero-tag {
  flex-shrink: 0 !important;
  font-size: 10px !important;
  padding: 5px 12px !important;
}

/* ── Hero CTA buttons ────────────────────────────────────── */
body.is-mobile .hero-cta-row {
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: 340px !important;
  margin: 0 auto !important;
}
body.is-mobile .hero-cta-row .btn {
  width: 100% !important;
  height: 50px !important;
  justify-content: center !important;
  font-size: 15px !important;
  border-radius: 14px !important;
}

/* ── Score tool ──────────────────────────────────────────── */
body.is-mobile .score-tool-body {
  flex-direction: column !important;
  gap: 20px !important;
}
body.is-mobile .score-input-col,
body.is-mobile .score-result-col {
  width: 100% !important;
}

/* ── Prompt grids ────────────────────────────────────────── */
body.screen-xs .prompt-grid,
body.screen-sm .prompt-grid {
  grid-template-columns: 1fr !important;
}
body.screen-md .prompt-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
}

/* ── PMC Composer — dynamic bottom via CSS var ───────────── */
body.is-mobile .pmc-composer-wrap {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  padding: 8px 12px var(--composer-bottom, 92px) !important;
  z-index: 1000 !important;
  background: linear-gradient(to top, rgba(10,10,15,0.95) 80%, transparent) !important;
  box-sizing: border-box !important;
}

/* ── PMC main content — leave room for composer ─────────── */
body.is-mobile .pmc-main {
  padding-bottom: 160px !important;
}

/* ── Profile stats grid ──────────────────────────────────── */
body.is-mobile .profile-stats-grid {
  grid-template-columns: repeat(2, 1fr) !important;
}
body.screen-xs .profile-stats-grid {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 8px !important;
}

/* ── Store / pack-grid ───────────────────────────────────── */
body.is-mobile .pack-grid,
body.is-mobile .store-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  padding: 12px !important;
}
body.is-mobile .pack-card {
  min-width: 0 !important;
  max-width: 100% !important;
}

/* ── Auth card ───────────────────────────────────────────── */
body.is-mobile .auth-card {
  width: 100% !important;
  max-width: 100% !important;
  border-radius: 20px !important;
}
body.is-mobile .auth-card input {
  height: 50px !important;
  font-size: 16px !important; /* Prevents iOS auto-zoom */
}

/* ── Modal bottom sheet ──────────────────────────────────── */
body.is-mobile .modal:not(.hidden) {
  display: flex !important;
  align-items: flex-end !important;
  z-index: 200000 !important;
}
body.is-mobile .modal-content {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  top: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 90vh !important;
  border-radius: 20px 20px 0 0 !important;
  animation: slideUpMobileModal 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* ── Tablet layout tweaks ────────────────────────────────── */
body.is-tablet .prompt-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
}
body.is-tablet .profile-stats-grid {
  grid-template-columns: repeat(3, 1fr) !important;
}


/* ─────────────────────────────────────────────────────────
   MOBILE UI PREMIUM POLISH (v2 — comprehensive page fixes)
   ───────────────────────────────────────────────────────── */

/* ── Store Hero ─────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Body padding for floating tab bar (16px from bottom + ~60px bar) */
  body { padding-bottom: 96px !important; }

  /* Store hero title */
  .store-hero h1 {
    font-size: 32px !important;
    line-height: 1.2 !important;
    text-align: center !important;
  }
  .store-hero p {
    font-size: 15px !important;
    text-align: center !important;
    padding: 0 8px !important;
  }
  .store-hero { margin-bottom: 32px !important; }

  /* Pro Upgrade plan CTA buttons stacking */
  .page [style*="display:flex;gap:16px;justify-content:center;"] {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    padding: 0 12px !important;
  }
  .page [style*="font-size:18px;padding:18px 40px;"] {
    padding: 16px 24px !important;
    font-size: 15px !important;
    width: 100% !important;
    justify-content: center !important;
  }

  /* Profile stats grid: 5-col → 2+3 layout */
  .profile-stats-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    margin-bottom: 16px !important;
  }
  .profile-stats-grid > div {
    padding: 16px 12px !important;
    border-radius: 14px !important;
  }
  .profile-stats-grid > div > div:first-child {
    font-size: 24px !important;
  }
  .profile-stats-grid > div > div:last-child {
    font-size: 10px !important;
    margin-top: 4px !important;
  }

  /* Profile container outer */
  .profile-container {
    padding: 12px 12px 100px !important;
    margin-top: 4px !important;
  }

  /* Profile hero card */
  .profile-container > div:first-of-type {
    margin-bottom: 16px !important;
  }
  .profile-header {
    padding: 0 16px 24px !important;
    margin-top: -40px !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 12px !important;
  }
  .profile-header > div:first-child {
    width: 80px !important;
    height: 80px !important;
    font-size: 32px !important;
    border-radius: 20px !important;
  }
  .profile-header h2 {
    font-size: 22px !important;
  }
  .profile-header [style*="padding-bottom:8px;"] {
    display: none !important;
  }

  /* Profile tabs: scrollable row */
  .profile-tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    gap: 4px !important;
    padding: 4px !important;
    background: rgba(255,255,255,0.03) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    margin-bottom: 20px !important;
    scrollbar-width: none;
  }
  .profile-tabs::-webkit-scrollbar { display: none; }
  .profile-tabs button {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
    border-radius: 8px !important;
  }
  .profile-tabs button svg {
    display: none !important;
  }

  /* Profile actions grid: stack */
  .profile-actions-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .profile-actions-grid button {
    padding: 14px 16px !important;
    gap: 12px !important;
  }
  .profile-actions-grid button > div:first-child {
    width: 40px !important;
    height: 40px !important;
  }

  /* Creations grid: single column */
  #creations-grid .prompt-grid {
    grid-template-columns: 1fr !important;
  }

  /* Card improvements on mobile */
  .card {
    border-radius: 16px !important;
  }

  /* Store comparison & pack grids: stacked columns */
  [style*="grid-template-columns:repeat(auto-fit, minmax(240px, 1fr))"],
  [style*="grid-template-columns:repeat(auto-fit, minmax(320px, 1fr))"] {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* Pack card full-width stretch */
  .pack-card {
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 24px 20px !important;
  }
  .pack-card h2 {
    font-size: 22px !important;
  }

  /* Pro plan pricing block */
  [style*="font-size:36px;font-weight:800;color:white;"] {
    font-size: 28px !important;
  }

  /* Section-wide hero alignment for store */
  .page-wide { overflow-x: hidden !important; }
  .page-wide .page {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Hero h1 on store hero */
  [style*="font-size:48px;font-weight:800;"] {
    font-size: 30px !important;
    line-height: 1.2 !important;
  }
  [style*="font-size:18px;color:var(--text2)"] {
    font-size: 14px !important;
  }

  /* Console engine strip: horizontal scroll on very small screens */
  .pmc-engine {
    overflow-x: auto !important;
    white-space: nowrap !important;
  }
  .pmc-engine .metric {
    white-space: nowrap !important;
  }

  /* Tab bar active tab indicator glow */
  .tab-item.active {
    position: relative;
  }
  .tab-item.active::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    border-radius: 2px;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
  }

  /* Bottom tab bar label sizing */
  .tab-item span { font-size: 10px !important; }

  /* Sidebar-collapsed mode: give main extra room */
  .pmc-sidebar-collapsed .pmc-main { padding-left: 0 !important; }

  /* Float orbs hide on smallest screens for better perf */
  .float-orb { display: none !important; }
}

/* ── Extra small mobile (≤ 400px) ─────────────────────────── */
@media (max-width: 400px) {
  .hero h1 {
    font-size: 28px !important;
  }
  .hero-foot {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .profile-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .pack-card {
    padding: 18px 14px !important;
  }
  .pmc-composer-wrap {
    padding: 6px 8px 88px !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE PRECISION FIXES v3
   Based on screenshot analysis (Pixel 7 · 412px · screen-sm)
   ═══════════════════════════════════════════════════════════ */

/* ── Hero section: reduce height & padding on mobile ──────── */
body.is-mobile .hero {
  min-height: 100svh !important;      /* Use small viewport height (excludes browser UI) */
  padding: 60px 20px 40px !important;
  justify-content: flex-start !important;
  padding-top: max(60px, env(safe-area-inset-top, 0px) + 60px) !important;
}

/* ── Hero canvas: skip heavy 3D on mobile for performance ─── */
body.is-mobile .hero-canvas-wrap { display: none !important; }
body.is-mobile .hero-particles   { display: none !important; }

/* ── Hero content: more compact padding ─────────────────────── */
body.is-mobile .hero-content {
  padding: 0 4px !important;
}
body.is-mobile .hero-content::before {
  display: none !important;  /* Remove dark scrim — causes blurriness */
}

/* ── Hero sub-text: respect padding on small screens ─────────  */
body.is-mobile .hero-sub {
  font-size: 13px !important;
  line-height: 1.55 !important;
  margin-top: 16px !important;
  max-width: 100% !important;
  padding: 0 8px !important;
  color: rgba(255,255,255,0.72) !important;
  text-shadow: none !important;
}

/* ── Hero tags: don't add bottom margin (handled by row) ─────── */
body.is-mobile .hero-tag {
  margin-bottom: 0 !important;
}
body.is-mobile .hero-tags-row {
  margin-bottom: 20px !important;
}

/* ── Hero CTA: larger touch targets ──────────────────────────── */
body.is-mobile .hero-cta-row {
  margin-top: 20px !important;
}

/* ── Advertisement block: compact on mobile ─────────────────── */
body.is-mobile .pm-global-ad {
  margin: 12px auto !important;
  padding: 0 16px !important;
}
body.is-mobile .pm-global-ad > div:first-child {
  font-size: 9px !important;
  margin-bottom: 4px !important;
}

/* ── Score tool: compact on mobile ──────────────────────────── */
body.is-mobile .score-section {
  padding: 0 !important;
}
body.is-mobile .score-tool-card {
  border-radius: 20px !important;
  padding: 24px 16px !important;
}
body.is-mobile .score-tool-title {
  font-size: 20px !important;
  line-height: 1.2 !important;
}
body.is-mobile .score-tool-desc {
  font-size: 13px !important;
  line-height: 1.5 !important;
}
body.is-mobile .score-textarea {
  font-size: 14px !important;
  min-height: 100px !important;
  padding: 12px !important;
}
body.is-mobile .score-analyze-btn {
  width: 100% !important;
  height: 46px !important;
  margin-top: 12px !important;
}
body.is-mobile .score-comparison-row {
  gap: 16px !important;
}
body.is-mobile .score-circle {
  width: 70px !important;
  height: 70px !important;
  font-size: 22px !important;
}

/* ── Section headers: reduce top margin ─────────────────────── */
body.is-mobile .mt-48 { margin-top: 24px !important; }
body.is-mobile .mt-64 { margin-top: 32px !important; }
body.is-mobile .section-header {
  flex-direction: column !important;
  gap: 8px !important;
  margin-bottom: 16px !important;
}
body.is-mobile .section-header .btn {
  align-self: flex-start !important;
}
body.is-mobile .section-title-big {
  font-size: 22px !important;
}
body.is-mobile .section-subtitle {
  font-size: 12px !important;
}

/* ── Featured categories grid ────────────────────────────────── */
body.screen-xs .featured-cats,
body.screen-sm .featured-cats {
  grid-template-columns: 1fr !important;
  gap: 8px !important;
}
body.screen-md .featured-cats {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 10px !important;
}
body.is-mobile .feat-cat {
  border-radius: 16px !important;
  padding: 20px !important;
}
body.is-mobile .feat-cat-name {
  font-size: 16px !important;
}
body.is-mobile .feat-cat-count {
  font-size: 11px !important;
}

/* ── CTA upgrade section ──────────────────────────────────────── */
body.is-mobile .cta-section {
  padding: 32px 20px !important;
  border-radius: 20px !important;
}
body.is-mobile .cta-section h2 {
  font-size: 24px !important;
}
body.is-mobile .cta-section p {
  font-size: 13px !important;
}
body.is-mobile .cta-upgrade-btn {
  width: 100% !important;
  max-width: 280px !important;
  height: 50px !important;
  font-size: 15px !important;
}

/* ── Page padding: prevent content going under nav ───────────── */
body.is-mobile .page,
body.is-mobile .page-wide {
  padding: 12px 14px 24px !important;
  overflow-x: hidden !important;
}
body.is-mobile .page-wide > .page {
  padding: 12px 0 !important;
}

/* ── Navbar: safe area for notches ──────────────────────────── */
body.is-mobile nav {
  padding-left: max(16px, env(safe-area-inset-left, 0px)) !important;
  padding-right: max(16px, env(safe-area-inset-right, 0px)) !important;
}

/* ── Bottom tab bar: safe-area support ──────────────────────── */
body.is-mobile .bottom-tab-bar {
  padding-bottom: max(6px, env(safe-area-inset-bottom, 0px)) !important;
}

/* ── Prompt cards: single col on small screens ───────────────── */
body.screen-xs .prompt-grid { grid-template-columns: 1fr !important; gap: 8px !important; }
body.screen-sm .prompt-grid { grid-template-columns: 1fr !important; gap: 10px !important; }

/* ── Prompt card: better touch sizing ───────────────────────── */
body.is-mobile .prompt-card {
  border-radius: 16px !important;
}
body.is-mobile .prompt-card .card-actions {
  gap: 8px !important;
}
body.is-mobile .prompt-card .btn {
  height: 38px !important;
  font-size: 12px !important;
  padding: 0 12px !important;
}

/* ── Remove blur from hero scrim which caused "blurry" issue ── */
body.is-mobile .hero-canvas-wrap canvas { display: none !important; }

/* ── Improve scroll performance on touch ────────────────────── */
body.is-touch {
  -webkit-overflow-scrolling: touch;
}
body.is-touch * {
  -webkit-tap-highlight-color: transparent;
}

/* ═══════════════════════════════════════════════════════════
   MHP — Mobile Home Page Premium Component
   Completely separate layout for phones (≤768px)
   Only renders when DeviceManager.isMobile === true
   ═══════════════════════════════════════════════════════════ */

.mhp {
  padding: 0;
  background: var(--bg, #080a16);
  min-height: 100svh;
  overflow-x: hidden;
}

/* ── ① Hero Card ─────────────────────────────────────────── */
.mhp-hero {
  position: relative;
  padding: 56px 20px 32px;
  overflow: hidden;
  background: linear-gradient(160deg,
    rgba(99,102,241,0.18) 0%,
    rgba(168,85,247,0.12) 40%,
    rgba(8,10,22,0) 80%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mhp-hero-glow {
  position: absolute;
  top: -80px; right: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(129,140,248,0.35) 0%, transparent 70%);
  pointer-events: none;
  animation: mhpGlowPulse 4s ease-in-out infinite;
}
@keyframes mhpGlowPulse {
  0%,100% { opacity: 0.7; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.1); }
}
.mhp-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.35);
  color: #a5b4fc;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
  font-family: var(--mono, monospace);
  text-transform: uppercase;
}
.mhp-live-dot {
  width: 7px; height: 7px;
  background: #818cf8;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(129,140,248,1);
  animation: pulse 1.4s ease-in-out infinite;
  flex-shrink: 0;
}
.mhp-hero-title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 14px;
  font-family: var(--display, 'Space Grotesk', sans-serif);
}
.mhp-hero-gradient {
  background: linear-gradient(135deg, #818cf8 0%, #a855f7 50%, #e879f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.mhp-hero-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.55;
  margin: 0 0 24px;
}
.mhp-cta-row {
  display: flex;
  gap: 10px;
}
.mhp-btn-primary {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #fff;
  box-shadow: 0 6px 24px rgba(99,102,241,0.45);
  transition: transform 0.15s, box-shadow 0.15s;
}
.mhp-btn-primary:active {
  transform: scale(0.97);
  box-shadow: 0 3px 12px rgba(99,102,241,0.3);
}
.mhp-btn-ghost {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.15);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.85);
  transition: background 0.15s, border-color 0.15s;
}
.mhp-btn-ghost:active {
  background: rgba(255,255,255,0.1);
}

/* ── ② Stats Bar ─────────────────────────────────────────── */
.mhp-stats-bar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 14px 16px;
  background: rgba(255,255,255,0.025);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin: 0;
}
.mhp-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.mhp-stat-val {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  font-family: var(--display, 'Space Grotesk', sans-serif);
  line-height: 1;
}
.mhp-stat-lbl {
  font-size: 9.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.mhp-stat-div {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
}

/* ── ③ AI Agent Banner ────────────────────────────────────── */
.mhp-ai-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px 16px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(168,85,247,0.08));
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: 16px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.mhp-ai-banner:active {
  transform: scale(0.98);
  background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(168,85,247,0.14));
}
.mhp-ai-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 4px 16px rgba(99,102,241,0.4);
}
.mhp-ai-text { flex: 1; min-width: 0; }
.mhp-ai-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}
.mhp-ai-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mhp-ai-arrow {
  font-size: 18px;
  color: #818cf8;
  flex-shrink: 0;
  font-weight: 300;
}

/* ── Shared Section Styles ───────────────────────────────── */
.mhp-section {
  padding: 18px 0 4px;
}
.mhp-section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px 12px;
}
.mhp-section-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #818cf8;
  box-shadow: 0 0 8px rgba(129,140,248,0.8);
  flex-shrink: 0;
}
.mhp-section-dot.mhp-dot-violet {
  background: #a855f7;
  box-shadow: 0 0 8px rgba(168,85,247,0.8);
}
.mhp-section-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  flex: 1;
  letter-spacing: -0.01em;
}
.mhp-section-link {
  font-size: 12px;
  font-weight: 600;
  color: #818cf8;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

/* ── ④ Horizontal Prompt Cards Scroll ────────────────────── */
.mhp-hscroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 16px 16px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}
.mhp-hscroll::-webkit-scrollbar { display: none; }
.mhp-prompt-card {
  flex-shrink: 0;
  width: 220px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
  -webkit-tap-highlight-color: transparent;
}
.mhp-prompt-card:active {
  transform: scale(0.97);
  background: rgba(255,255,255,0.07);
  border-color: rgba(99,102,241,0.4);
}
.mhp-card-tier {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 100px;
  width: fit-content;
}
.mhp-card-tier.free {
  background: rgba(52,211,153,0.12);
  color: #34d399;
  border: 1px solid rgba(52,211,153,0.25);
}
.mhp-card-tier.pro {
  background: rgba(234,179,8,0.12);
  color: #fbbf24;
  border: 1px solid rgba(234,179,8,0.3);
}
.mhp-card-title {
  font-size: 13px;
  font-weight: 600;
  color: #f0f0ff;
  line-height: 1.4;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mhp-card-cat {
  font-size: 11px;
  color: rgba(255,255,255,0.38);
  text-transform: capitalize;
}
.mhp-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.mhp-card-rating {
  font-size: 12px;
  font-weight: 600;
  color: #f59e0b;
}
.mhp-card-copy {
  font-size: 11px;
  font-weight: 600;
  color: #818cf8;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 8px;
  padding: 4px 12px;
  cursor: pointer;
  transition: background 0.15s;
}
.mhp-card-copy:active {
  background: rgba(99,102,241,0.25);
}

/* ── ⑤ Category Grid ─────────────────────────────────────── */
.mhp-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 16px 8px;
}
.mhp-cat-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.mhp-cat-chip:active {
  transform: scale(0.95);
}
.mhp-cat-icon {
  font-size: 22px;
  line-height: 1;
}
.mhp-cat-name {
  font-size: 10.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  text-align: center;
  line-height: 1.3;
  word-break: break-word;
}
.mhp-cat-count {
  font-size: 9.5px;
  color: rgba(255,255,255,0.35);
  font-weight: 500;
}

/* Cat chip color accents */
.mhp-cat-cyan    { border-color: rgba(34,211,238,0.18); background: rgba(34,211,238,0.05); }
.mhp-cat-violet  { border-color: rgba(167,139,250,0.18); background: rgba(167,139,250,0.05); }
.mhp-cat-magenta { border-color: rgba(236,72,153,0.18);  background: rgba(236,72,153,0.05); }
.mhp-cat-amber   { border-color: rgba(251,191,36,0.18);  background: rgba(251,191,36,0.05); }
.mhp-cat-cyan .mhp-cat-name    { color: #67e8f9; }
.mhp-cat-violet .mhp-cat-name  { color: #c4b5fd; }
.mhp-cat-magenta .mhp-cat-name { color: #f9a8d4; }
.mhp-cat-amber .mhp-cat-name   { color: #fcd34d; }
.mhp-cat-cyan .mhp-cat-count    { color: rgba(103,232,249,0.5); }
.mhp-cat-violet .mhp-cat-count  { color: rgba(196,181,253,0.5); }
.mhp-cat-magenta .mhp-cat-count { color: rgba(249,168,212,0.5); }
.mhp-cat-amber .mhp-cat-count   { color: rgba(252,211,77,0.5); }

/* ── ⑥ Upgrade Banner ─────────────────────────────────────── */
.mhp-upgrade-banner {
  position: relative;
  margin: 12px 16px;
  padding: 18px 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(234,179,8,0.14), rgba(249,115,22,0.08));
  border: 1px solid rgba(234,179,8,0.35);
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.mhp-upgrade-banner:active {
  transform: scale(0.98);
}
.mhp-upgrade-glow {
  position: absolute;
  top: -30px; right: -30px;
  width: 100px; height: 100px;
  background: radial-gradient(circle, rgba(234,179,8,0.3) 0%, transparent 70%);
  pointer-events: none;
}
.mhp-upgrade-left {
  flex: 1;
}
.mhp-upgrade-title {
  font-size: 15px;
  font-weight: 700;
  color: #fcd34d;
  margin-bottom: 4px;
}
.mhp-upgrade-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  line-height: 1.4;
}
.mhp-upgrade-btn {
  font-size: 13px;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(234,179,8,0.15);
  border: 1px solid rgba(234,179,8,0.35);
  border-radius: 10px;
  padding: 8px 14px;
  white-space: nowrap;
}

/* ── Console Mode / Gemini Style Mobile AI Agent Customizations ── */
body.console-mode.is-mobile #navbar {
  display: none !important;
}
body.console-mode.is-mobile #bottom-tab-bar {
  transform: translateY(100%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
body.console-mode.is-mobile .mbrowse-composer-wrap {
  bottom: 0 !important;
  padding-bottom: max(12px, env(safe-area-inset-bottom)) !important;
  border-top: none !important;
}

/* Hide welcome hero once user sends first message */
.mbrowse.has-chats .mbrowse-hero {
  display: none !important;
}

/* Premium floating capsule for generations limit */
.ai-usage-chip-mobile {
  align-self: center;
  margin: 0 auto 4px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(251, 191, 36, 0.15));
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #fff;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.25), inset 0 1px 1px rgba(255,255,255,0.1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  animation: pulseUsageChip 2s infinite ease-in-out;
}

@keyframes pulseUsageChip {
  0%, 100% { box-shadow: 0 4px 16px rgba(168, 85, 247, 0.25); border-color: rgba(168, 85, 247, 0.35); }
  50% { box-shadow: 0 4px 24px rgba(251, 191, 36, 0.45); border-color: rgba(251, 191, 36, 0.55); }
}

.mbrowse {
  display: flex;
  flex-direction: column;
  height: 100svh;
  background: var(--bg, #080a16);
  position: relative;
  overflow: hidden;
}

/* Header */
.mbrowse-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(8, 10, 22, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  z-index: 10;
  padding-top: max(12px, env(safe-area-inset-top));
}
.mbrowse-logo {
  font-family: var(--display, 'Space Grotesk', sans-serif);
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mbrowse-icon-btn {
  background: none;
  border: none;
  color: #a5b4fc;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.mbrowse-icon-btn:active {
  background: rgba(255,255,255,0.1);
}

/* Main Area */
.mbrowse-main {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px 16px 0;
  display: flex;
  flex-direction: column;
}
.mbrowse-hero {
  margin-bottom: 32px;
  text-align: left;
}
.mbrowse-hero h1 {
  font-family: var(--display, 'Space Grotesk', sans-serif);
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px;
  line-height: 1.1;
}
.mbrowse-hero p {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 16px;
}
.mbrowse-hero p b { color: #fff; }
.mbrowse-stats {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}
.mbrowse-stats .stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  color: #a5b4fc;
  letter-spacing: 0.04em;
}
.mbrowse-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mbrowse-suggestions button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(168,85,247,0.1));
  border: 1px solid rgba(99,102,241,0.25);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.1s;
}
.mbrowse-suggestions button:active { transform: scale(0.97); }
.mbrowse-bottom-spacer { height: 160px; }

/* Chat Streams */
.mbrowse-chat-messages {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Composer / Input Area */
.mbrowse-composer-wrap {
  position: fixed;
  bottom: 72px; left: 0; right: 0;
  background: linear-gradient(to top, rgba(8,10,22,1) 70%, rgba(8,10,22,0) 100%);
  padding: 24px 12px max(8px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 100;
}
.mbrowse-quick-scroll {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding-bottom: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.mbrowse-quick-scroll::-webkit-scrollbar { display: none; }
.mbrowse-quick-scroll button {
  white-space: nowrap;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.8);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mbrowse-composer {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 6px 6px 6px 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.mbrowse-plus-btn, .mbrowse-send-btn {
  width: 36px; height: 36px;
  border-radius: 14px;
  border: none;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mbrowse-plus-btn {
  background: rgba(255,255,255,0.05);
  color: #a5b4fc;
  margin-bottom: 2px;
}
.mbrowse-send-btn {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #fff;
  box-shadow: 0 4px 12px rgba(99,102,241,0.3);
  margin-bottom: 2px;
}
.mbrowse-composer textarea {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  resize: none;
  padding: 12px 0;
  max-height: 120px;
  outline: none;
  line-height: 1.4;
}
.mbrowse-composer textarea::placeholder { color: rgba(255,255,255,0.3); }

/* Sliding Drawer */
.mbrowse-drawer {
  position: fixed;
  top: 0; right: -100%; bottom: 0;
  width: 85vw;
  max-width: 340px;
  background: #0b0e1e;
  border-left: 1px solid rgba(255,255,255,0.08);
  z-index: 200;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
  display: flex;
  flex-direction: column;
  visibility: hidden;
  pointer-events: none;
}
.mbrowse-drawer.open {
  right: 0;
  visibility: visible;
  pointer-events: auto;
}
.mbrowse-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: max(16px, env(safe-area-inset-top)) 16px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mbrowse-drawer-header h3 {
  margin: 0; font-size: 16px; color: #fff;
}
.mbrowse-drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(2px);
  z-index: 199;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.mbrowse-drawer.open + .mbrowse-drawer-backdrop {
  opacity: 1; pointer-events: auto;
}

/* ═══════════════════════════════════════════════════════════
   MSTORE — Mobile Store Component
   Completely separate layout for phones (≤768px)
   ═══════════════════════════════════════════════════════════ */
.mstore {
  display: flex;
  flex-direction: column;
  height: 100svh;
  background: var(--bg, #080a16);
  position: relative;
  overflow: hidden;
}

/* Header */
.mstore-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(8, 10, 22, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  z-index: 10;
  padding-top: max(12px, env(safe-area-inset-top));
}
.mstore-header h1 {
  font-family: var(--display, 'Space Grotesk', sans-serif);
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  margin: 0;
}
.mstore-pro-btn {
  background: linear-gradient(135deg, #fbbf24, #d97706);
  border: none;
  color: #000;
  font-weight: 700;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.mstore-pro-badge {
  color: #34d399;
  font-size: 12px;
  font-weight: 700;
  background: rgba(52,211,153,0.15);
  padding: 4px 10px;
  border-radius: 8px;
}

/* Feed */
.mstore-feed {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
}
.mstore-hero {
  margin-bottom: 24px;
}
.mstore-hero h2 {
  font-family: var(--display, 'Space Grotesk', sans-serif);
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px;
}
.mstore-hero p {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  margin: 0 0 16px;
  line-height: 1.5;
}
.mstore-promo {
  display: inline-flex;
  align-items: center;
  background: rgba(249,212,35,0.12);
  border: 1px solid rgba(249,212,35,0.3);
  color: #fbbf24;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 12px;
}

.mstore-pack-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}
.mstore-card {
  background: linear-gradient(180deg, rgba(30,30,50,0.8), rgba(20,20,30,0.95));
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 24px;
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.mstore-card-emoji {
  font-size: 40px;
  margin-bottom: 12px;
}
.mstore-card-header h2 {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin: 8px 0;
  line-height: 1.2;
}
.mstore-eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}
.mstore-price {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.mstore-price small {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}
.mstore-card-header p {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 16px;
}
.mstore-features {
  list-style: none;
  padding: 0; margin: 0 0 24px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mstore-features li {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.mstore-sticky-action {
  position: sticky;
  bottom: 0px;
  padding: 12px 0;
  background: inherit;
  z-index: 5;
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.mstore-btn {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.1s;
}
.mstore-btn:active { transform: scale(0.98); }
.mstore-btn.owned {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
}
.mstore-footer {
  display: flex;
  justify-content: center;
  gap: 16px;
  color: rgba(255,255,255,0.4);
  font-size: 11px;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}

/* ═══════════════════════════════════════════════════════════
   MPROF — Mobile Profile Component
   Completely separate layout for phones (≤768px)
   ═══════════════════════════════════════════════════════════ */
.mprof {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  background: var(--bg, #080a16);
  position: relative;
}

/* Profile Header */
.mprof-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(8, 10, 22, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  z-index: 10;
  padding-top: max(16px, env(safe-area-inset-top));
}
.mprof-avatar {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.1);
}
.mprof-info {
  flex: 1;
  min-width: 0;
}
.mprof-info h2 {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mprof-role-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.mprof-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  color: #000;
}
.mprof-badge.pro { background: var(--gold); }
.mprof-badge.free { background: rgba(255,255,255,0.2); color: #fff; }
.mprof-badge.admin { background: #ef4444; color: #fff; }

.mprof-settings-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}

/* Horizontal Stats */
.mprof-stats-wrap {
  padding: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mprof-stats {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.mprof-stats::-webkit-scrollbar { display: none; }
.mprof-stat {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}
.mprof-stat strong {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}
.mprof-stat span {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* Horizontal Tabs */
.mprof-tabs-wrap {
  padding: 12px 16px 0;
}
.mprof-tabs {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 12px;
}
.mprof-tabs::-webkit-scrollbar { display: none; }
.mprof-tab {
  background: rgba(255,255,255,0.05);
  border: 1px solid transparent;
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
}
.mprof-tab.active {
  background: rgba(99,102,241,0.15);
  border-color: rgba(99,102,241,0.3);
  color: #a5b4fc;
}

/* Main Content Area */
.mprof-content {
  flex: 1;
  padding: 16px;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}

/* ── MBROWSE-GRID — Mobile Browse Grid Component ── */
.mbrowse-grid {
  display: flex;
  flex-direction: column;
  background: var(--bg, #080a16);
  padding-bottom: 100px !important;
}

/* Category pills in mobile browse */
.mhp-tab {
  background: rgba(255,255,255,0.05);
  border: 1px solid transparent;
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.mhp-tab:active {
  transform: scale(0.97);
}
.mhp-tab.active {
  background: rgba(99,102,241,0.15);
  border-color: rgba(99,102,241,0.3);
  color: #a5b4fc;
}

/* ── MAUTH — Mobile Auth Component ── */
.mauth {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg, #080a16);
  position: relative;
  overflow: hidden;
  padding: 24px 16px 120px;
}
.mauth-glow {
  position: absolute;
  top: -150px; left: -150px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}
.mauth-container {
  width: 100%;
  max-width: 420px;
  background: rgba(18, 20, 36, 0.7);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 32px 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  z-index: 2;
}
.mauth-logo {
  font-size: 32px;
  margin-bottom: 16px;
  color: var(--accent, #6366f1);
  text-align: center;
}
.mauth-title {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  text-align: center;
  margin: 0 0 8px;
}
.mauth-subtitle {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  text-align: center;
  margin: 0 0 24px;
  line-height: 1.5;
}
.mauth-tabs {
  display: flex;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 24px;
}
.mauth-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  font-weight: 600;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.mauth-tab-btn.active {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.mauth-google-btn {
  width: 100%;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 12px;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-bottom: 20px;
  transition: transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}
.mauth-google-btn:active {
  transform: scale(0.98);
}
.mauth-divider {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}
.mauth-divider::before, .mauth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.1);
}
.mauth-divider span {
  padding: 0 12px;
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.mauth-group {
  margin-bottom: 16px;
}
.mauth-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  margin-bottom: 6px;
}
.mauth-input {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  border-radius: 10px;
  padding: 12px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.mauth-input:focus {
  border-color: rgba(99,102,241,0.5);
  background: rgba(255,255,255,0.06);
}
.mauth-submit-btn {
  width: 100%;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  box-shadow: 0 4px 15px rgba(99,102,241,0.3);
  transition: transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}
.mauth-submit-btn:active {
  transform: scale(0.98);
}
.mauth-error {
  color: #fca5a5;
  font-size: 13px;
  text-align: center;
  margin-top: 16px;
  background: rgba(239,68,68,0.1);
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(239,68,68,0.2);
}

/* ── MPRO — Mobile Pro Upgrade Component ── */
.mpro {
  min-height: 100svh;
  background: var(--bg, #080a16);
  position: relative;
  overflow-x: hidden;
  padding: max(24px, env(safe-area-inset-top)) 16px 120px;
  display: flex;
  flex-direction: column;
}
.mpro-glow {
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(234,179,8,0.15) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.mpro-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}
.mpro-badge-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(234,179,8,0.1);
  border: 1px solid rgba(234,179,8,0.3);
  color: #fbbf24;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.mpro-title {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 12px;
  background: linear-gradient(135deg, #F9D423 0%, #FF4E50 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  font-family: var(--display, 'Space Grotesk', sans-serif);
}
.mpro-subtitle {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
  margin: 0 0 28px;
}
.mpro-features-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}
.mpro-feature-card {
  background: linear-gradient(180deg, rgba(30,30,50,0.4), rgba(20,20,30,0.6));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  gap: 14px;
}
.mpro-feature-icon {
  font-size: 24px;
  flex-shrink: 0;
  line-height: 1;
}
.mpro-feature-info h3 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
}
.mpro-feature-info p {
  font-size: 12.5px;
  color: rgba(255,255,255,0.55);
  line-height: 1.4;
  margin: 0;
}
.mpro-billing-box {
  background: rgba(18, 20, 36, 0.6);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 24px;
  text-align: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}
.mpro-billing-box h2 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 16px;
}
.mpro-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.mpro-btn-primary {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: #000;
  box-shadow: 0 4px 12px rgba(234,179,8,0.3);
  transition: transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}
.mpro-btn-primary:active {
  transform: scale(0.98);
}
.mpro-btn-alt {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  box-shadow: none;
}
.mpro-btn-validate {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px 8px;
  margin-top: 4px;
}
.mpro-footer-info {
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  margin-top: 16px;
}

/* ── MOBILE NAVBAR SHARE BUTTON ── */
.mobile-share-btn {
  display: none;
}
@media (max-width: 768px) {
  .mobile-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #a5b4fc;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    cursor: pointer;
    margin-right: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: shareBtnPulse 3s infinite alternate;
  }
  .mobile-share-btn:active {
    transform: scale(0.9) rotate(-15deg);
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
  }
}
@keyframes shareBtnPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(165, 180, 252, 0);
  }
  50% {
    box-shadow: 0 0 8px 2px rgba(165, 180, 252, 0.15);
    border-color: rgba(165, 180, 252, 0.3);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(165, 180, 252, 0);
  }
}

/* ── MOBILE HERO HOME BRANDING & PADDING POLISH ── */
.mhp-hero-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  opacity: 0.95;
  animation: fadeInDown 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.mhp-hero-logo-icon {
  font-size: 22px;
  color: var(--accent, #6366f1);
  text-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}
.mhp-hero-brand-name {
  font-family: var(--display, 'Space Grotesk', sans-serif);
  font-weight: 800;
  font-size: 20px;
  color: #fff;
  letter-spacing: -0.5px;
}

/* Home Page Mobile Padding Cleanups */
body.is-mobile .mhp-hero {
  padding: max(24px, env(safe-area-inset-top)) 20px 24px !important;
}
body.is-mobile .mhp-section {
  padding: 24px 0 8px !important;
}
body.is-mobile .mhp-section-head {
  padding: 0 20px 14px !important;
}
body.is-mobile .mhp-hscroll {
  padding: 0 20px 16px !important;
}
body.is-mobile .mhp-cat-grid {
  padding: 0 20px 8px !important;
  gap: 10px !important;
}
body.is-mobile .mhp-upgrade-banner {
  margin: 16px 20px !important;
}

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

/* ═══════════════════════════════════════════════════════════
   MOBILE UI 2026 — Prompts/Matrix page: bug fixes + subtle polish
   Everything here is scoped to touch/mobile only
   (≤768px, body.is-mobile, console-mode, or @media hover:none).
   The PC / desktop UI is intentionally left untouched.
   ═══════════════════════════════════════════════════════════ */

/* ── FIX: full-height AI console (.mbrowse) was pushed down 60px by the
   global #app padding-top, leaving a dead gap at the top and clipping the
   bottom off-screen. In console mode the global navbar is already hidden,
   so that padding serves no purpose. ── */
body.console-mode.is-mobile #app {
  padding-top: 0 !important;
  min-height: 0 !important;
}
/* The fixed composer owns the bottom of the console — the page footer
   should not peek underneath it on this app-like full-screen view. */
body.console-mode.is-mobile footer {
  display: none !important;
}

@media (max-width: 768px) {
  /* ── FIX: prompt-card footer could overflow on narrow phones when the
     model list is long (e.g. "Claude / GPT / Midjourney / DALL-E"),
     squeezing or pushing out the like/share/copy buttons. ── */
  .card-footer { gap: 10px; }
  .card-meta { min-width: 0; flex: 1 1 auto; overflow: hidden; }
  .card-models {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .card-actions { flex: 0 0 auto; }

  /* ── FIX: card action buttons were ~26px — below the 44px touch
     guideline. Give them a comfortable 40px tap area on mobile. ── */
  .card-action-btn {
    min-width: 40px;
    min-height: 40px;
    padding: 8px 10px;
    justify-content: center;
  }

  /* ── FIX: grid filter controls — larger, easier-to-tap targets ── */
  .mbrowse-grid select,
  .mbrowse-grid .btn-toggle {
    min-height: 40px;
  }
  .mbrowse-grid select option,
  select option {
    background-color: #12121e !important;
    color: #fdfdff !important;
  }

  /* ── POLISH: staggered fade-up entrance for the prompt card matrix.
     Uses fill-mode `backwards` (NOT `both`) on purpose — `both` would
     hold the final transform and override the :active tap-scale below. ── */
  .prompt-grid .prompt-card {
    animation: pmCardIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  }
  .prompt-grid .prompt-card:nth-child(1)  { animation-delay: 0.02s; }
  .prompt-grid .prompt-card:nth-child(2)  { animation-delay: 0.06s; }
  .prompt-grid .prompt-card:nth-child(3)  { animation-delay: 0.10s; }
  .prompt-grid .prompt-card:nth-child(4)  { animation-delay: 0.14s; }
  .prompt-grid .prompt-card:nth-child(5)  { animation-delay: 0.18s; }
  .prompt-grid .prompt-card:nth-child(6)  { animation-delay: 0.22s; }
  .prompt-grid .prompt-card:nth-child(7)  { animation-delay: 0.26s; }
  .prompt-grid .prompt-card:nth-child(8)  { animation-delay: 0.30s; }
  .prompt-grid .prompt-card:nth-child(9)  { animation-delay: 0.34s; }
  .prompt-grid .prompt-card:nth-child(n+10) { animation-delay: 0.38s; }

  /* ── POLISH: gentle entrance for the AI console welcome + suggestions ── */
  .mbrowse-hero { animation: pmConsoleIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) backwards; }
  .mbrowse-suggestions button {
    animation: pmConsoleIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  }
  .mbrowse-suggestions button:nth-child(1) { animation-delay: 0.12s; }
  .mbrowse-suggestions button:nth-child(2) { animation-delay: 0.18s; }
  .mbrowse-suggestions button:nth-child(3) { animation-delay: 0.24s; }
  .mbrowse-suggestions button:nth-child(4) { animation-delay: 0.30s; }

  /* ── POLISH: soft fade edges on the horizontal category-pill scroller
     so cut-off pills hint at more content (modern app feel). ── */
  .mbrowse-grid .mhp-tabs {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
  }
}

@keyframes pmCardIn {
  from { opacity: 0; transform: translateY(16px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes pmConsoleIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── POLISH: springy tap feedback on touch devices, and kill the
   "sticky hover" states that linger after a tap on mobile. ── */
@media (hover: none) {
  .prompt-card:active {
    transform: scale(0.97);
    transition: transform 0.12s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  .card-action-btn:active {
    transform: scale(0.86);
    background: rgba(255,255,255,0.08);
    transition: transform 0.12s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  /* Reset hover so it never sticks visually after a tap */
  .card-action-btn:hover {
    background: transparent;
    border-color: transparent;
    color: var(--text3);
  }
  .mhp-tab:hover { background: rgba(255,255,255,0.05); border-color: transparent; }
  .mbrowse-suggestions button:active { transform: scale(0.96); }
  .mbrowse-quick-scroll button:active { transform: scale(0.95); }
}

/* ── Respect users who prefer reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .prompt-grid .prompt-card,
  .mbrowse-hero,
  .mbrowse-suggestions button,
  .mhub-agent, .mhub-head, .mhub-chips, .mhub-hscroll, .mhub-grid, .mhub-more {
    animation: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   MHUB — Mobile Browse Discovery Hub (vibrant glass, 2026)
   Mobile-only. Replaces the old chat-only /browse on phones.
   ═══════════════════════════════════════════════════════════ */
.mhub {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

/* Sticky frosted search header (sits just under the floating navbar pill) */
.mhub-top {
  /* NOT sticky: #app is a scroll container (overflow:auto), which made a
     sticky header offset by top:54px and overlap the agent card. Flow it
     normally above the content instead. */
  position: relative;
  z-index: 30;
  padding: 6px 14px 14px;
  background: transparent;
}
.mhub-search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 6px 0 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(129,140,248,0.28);
  box-shadow: 0 8px 28px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.07), 0 0 0 0 rgba(99,102,241,0);
  transition: border-color .2s, box-shadow .2s;
}
.mhub-search:focus-within {
  border-color: rgba(129,140,248,0.6);
  box-shadow: 0 8px 28px rgba(0,0,0,0.4), 0 0 0 4px rgba(99,102,241,0.18);
}
.mhub-search-ic { color: #8b8fb5; flex-shrink: 0; }
.mhub-search input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font);
  font-size: 15px;
}
.mhub-search input::placeholder { color: rgba(255,255,255,0.38); }
.mhub-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.mhub-search-go {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border: none; border-radius: 12px;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #fff; font-size: 18px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(99,102,241,0.4);
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s;
}
.mhub-search-go:active { transform: scale(0.9); }

.mhub-scroll { padding: 12px 14px 0; }

/* AI Agent entry card — glowing gradient glass */
.mhub-agent {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  padding: 16px;
  margin: 6px 0 22px;
  border-radius: 22px;
  border: 1px solid rgba(129,140,248,0.35);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(99,102,241,0.28), transparent 55%),
    radial-gradient(120% 140% at 100% 100%, rgba(168,85,247,0.24), transparent 55%),
    rgba(16,16,30,0.72);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: 0 16px 40px -12px rgba(99,102,241,0.4), inset 0 1px 0 rgba(255,255,255,0.08);
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  animation: pmConsoleIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  transition: transform .14s cubic-bezier(0.34,1.56,0.64,1);
}
.mhub-agent:active { transform: scale(0.98); }
.mhub-agent-glow {
  position: absolute; inset: -40% -20% auto auto;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(168,85,247,0.5), transparent 70%);
  pointer-events: none;
  animation: mhpGlowPulse 4s ease-in-out infinite;
}
.mhub-agent-ic {
  flex-shrink: 0;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  box-shadow: 0 6px 18px rgba(99,102,241,0.5);
}
.mhub-agent-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mhub-agent-title {
  font-family: var(--font-display); font-weight: 700; font-size: 16px; color: #fff;
  display: flex; align-items: center; gap: 8px;
}
.mhub-agent-badge {
  font-size: 9px; font-weight: 800; letter-spacing: .08em;
  padding: 2px 7px; border-radius: 20px;
  background: rgba(52,211,153,0.18); color: #6ee7b7; border: 1px solid rgba(52,211,153,0.35);
}
.mhub-agent-sub { font-size: 12.5px; color: rgba(255,255,255,0.66); line-height: 1.4; }
.mhub-agent-cta {
  flex-shrink: 0; align-self: stretch;
  display: flex; align-items: center;
  font-size: 13px; font-weight: 700; color: #c7d2fe;
  padding-left: 8px;
}

/* Section header */
.mhub-head {
  display: flex; align-items: center; gap: 9px;
  margin: 4px 0 12px;
}
.mhub-dot { width: 8px; height: 8px; border-radius: 50%; background: #6366f1; box-shadow: 0 0 10px #6366f1; flex-shrink: 0; }
.mhub-dot-violet { background: #a855f7; box-shadow: 0 0 10px #a855f7; }
.mhub-dot-amber  { background: #f59e0b; box-shadow: 0 0 10px #f59e0b; }
.mhub-head-title { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: #fff; letter-spacing: -0.01em; }
.mhub-head-link {
  margin-left: auto;
  background: none; border: none; cursor: pointer;
  color: #8b8fb5; font-size: 12.5px; font-weight: 600; font-family: var(--font);
  -webkit-tap-highlight-color: transparent;
}
.mhub-head-link:active { color: #c7d2fe; }

/* Category chips — horizontal scroll */
.mhub-chips {
  display: flex; gap: 9px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 0 0 22px;
  margin: 0 -14px 0;
  padding-left: 14px; padding-right: 14px;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
}
.mhub-chips::-webkit-scrollbar { display: none; }
.mhub-chip {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 7px;
  white-space: nowrap;
  padding: 9px 14px;
  border-radius: 100px;
  font-size: 13px; font-weight: 600; font-family: var(--font);
  color: rgba(255,255,255,0.78);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s, background .2s, border-color .2s, color .2s;
}
.mhub-chip:active { transform: scale(0.95); }
.mhub-chip .mhub-chip-ic { font-size: 14px; line-height: 1; }
.mhub-chip .mhub-chip-n { font-size: 11px; color: rgba(255,255,255,0.45); font-family: var(--mono); }
.mhub-chip.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(99,102,241,0.9), rgba(168,85,247,0.9));
  border-color: transparent;
  box-shadow: 0 6px 18px -4px rgba(99,102,241,0.6);
}

/* Trending horizontal cards */
.mhub-hscroll {
  display: flex; gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 0 0 24px;
  margin: 0 -14px 0;
  padding-left: 14px; padding-right: 14px;
  scroll-snap-type: x proximity;
}
.mhub-hscroll::-webkit-scrollbar { display: none; }
.mhub-tcard {
  flex-shrink: 0;
  width: 200px;
  scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 8px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(18,20,36,0.6);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .14s cubic-bezier(0.34,1.56,0.64,1), border-color .2s;
}
.mhub-tcard:active { transform: scale(0.97); border-color: rgba(129,140,248,0.4); }
.mhub-tcard-top { display: flex; align-items: center; justify-content: space-between; }
.mhub-tcard-tier {
  font-size: 9px; font-weight: 800; letter-spacing: .05em;
  padding: 3px 8px; border-radius: 20px;
}
.mhub-tcard-tier.free { color: #6ee7b7; background: rgba(52,211,153,0.14); border: 1px solid rgba(52,211,153,0.28); }
.mhub-tcard-tier.pro  { color: #fcd34d; background: rgba(245,158,11,0.14); border: 1px solid rgba(245,158,11,0.3); }
.mhub-tcard-rating { font-size: 12px; font-weight: 700; color: #f59e0b; }
.mhub-tcard-title {
  font-size: 14px; font-weight: 600; line-height: 1.35; color: #fff;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.mhub-tcard-cat { margin-top: auto; font-size: 11px; color: rgba(255,255,255,0.5); font-family: var(--mono); }

/* Top prompts grid + browse-all button */
.mhub-grid { gap: 12px; }
.mhub-empty { color: rgba(255,255,255,0.45); font-size: 13px; padding: 24px 0; text-align: center; }
.mhub-more {
  width: 100%;
  margin: 18px 0 0;
  height: 50px;
  border-radius: 16px;
  border: 1px solid rgba(129,140,248,0.3);
  background: rgba(255,255,255,0.04);
  color: #c7d2fe;
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s, background .2s, border-color .2s;
}
.mhub-more:active { transform: scale(0.98); background: rgba(99,102,241,0.12); border-color: rgba(129,140,248,0.5); }
.mhub-spacer { height: 110px; }

/* ═══════════════════════════════════════════════════════════
   MOBILE 2026 — Cross-screen polish (Home / Store / Profile / nav)
   Mobile-only classes (rendered only when DeviceManager.isMobile).
   Additive: entrance motion + richer active states. No layout rewrite.
   ═══════════════════════════════════════════════════════════ */

/* ── Staggered entrance: Home ── */
.mhp-hero,
.mhp-stats-bar,
.mhp-ai-banner,
.mhp-section,
.mhp-upgrade-banner {
  animation: pmConsoleIn 0.7s cubic-bezier(0.16,1,0.3,1) backwards;
}

/* Horizontal cards & category chips on Home: spring tap (kept consistent with hub) */
.mhp-prompt-card, .mhp-cat-chip, .mhp-btn-primary, .mhp-btn-ghost,
.mhp-ai-banner, .mhp-upgrade-banner, .mhp-section-link, .mhp-card-copy {
  -webkit-tap-highlight-color: transparent;
}

/* ── Staggered entrance: Store ── */
.mstore-hero { animation: pmConsoleIn 0.5s cubic-bezier(0.16,1,0.3,1) backwards; }
.mstore-pack-list .mstore-card {
  animation: pmCardIn 0.55s cubic-bezier(0.16,1,0.3,1) backwards;
}
.mstore-pack-list .mstore-card:nth-child(1) { animation-delay: 0.06s; }
.mstore-pack-list .mstore-card:nth-child(2) { animation-delay: 0.12s; }
.mstore-pack-list .mstore-card:nth-child(3) { animation-delay: 0.18s; }
.mstore-pack-list .mstore-card:nth-child(4) { animation-delay: 0.24s; }
.mstore-pack-list .mstore-card:nth-child(n+5) { animation-delay: 0.30s; }
/* A touch more depth + spring on store cards */
.mstore-card { transition: transform .14s cubic-bezier(0.34,1.56,0.64,1), box-shadow .2s, border-color .2s; }
.mstore-card:active { transform: scale(0.985); }

/* ── Staggered entrance: Profile ── */
.mprof-header     { animation: pmConsoleIn 0.5s cubic-bezier(0.16,1,0.3,1) backwards; }
.mprof-stats-wrap { animation: pmConsoleIn 0.5s cubic-bezier(0.16,1,0.3,1) 0.06s backwards; }
.mprof-tabs-wrap  { animation: pmConsoleIn 0.5s cubic-bezier(0.16,1,0.3,1) 0.12s backwards; }
.mprof-content    { animation: pmConsoleIn 0.5s cubic-bezier(0.16,1,0.3,1) 0.16s backwards; }
.mprof-stat { transition: transform .14s cubic-bezier(0.34,1.56,0.64,1); }
.mprof-stat:active { transform: scale(0.94); }
.mprof-tab { transition: transform .12s, color .2s, background .2s; -webkit-tap-highlight-color: transparent; }
.mprof-tab:active { transform: scale(0.95); }

/* ── Bottom tab bar: pop the active indicator + icon on selection ── */
.tab-item.active::before { animation: tabPop 0.32s cubic-bezier(0.34,1.56,0.64,1) backwards; }
.tab-item.active svg     { animation: tabIcon 0.32s cubic-bezier(0.34,1.56,0.64,1) backwards; }
@keyframes tabPop  { from { transform: translateX(-50%) scaleX(0); opacity: 0; } to { transform: translateX(-50%) scaleX(1); opacity: 1; } }
@keyframes tabIcon { 0% { transform: translateY(2px) scale(0.8); } 60% { transform: translateY(-2px) scale(1.12); } 100% { transform: translateY(0) scale(1); } }

/* ── Reduced-motion: disable the cross-screen entrance/pop too ── */
@media (prefers-reduced-motion: reduce) {
  .mhp-hero, .mhp-stats-bar, .mhp-ai-banner, .mhp-section, .mhp-upgrade-banner,
  .mstore-hero, .mstore-pack-list .mstore-card,
  .mprof-header, .mprof-stats-wrap, .mprof-tabs-wrap, .mprof-content,
  .tab-item.active::before, .tab-item.active svg {
    animation: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE 2026 — Top-nav bug fix + attractive animated polish
   (nav, home, profile, AI agent console). Mobile-only; PC untouched.
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  /* ── BUG FIX: Profile & Store are full-screen app views with their OWN
     top bar, but they weren't hiding the global floating nav pill or
     dropping the #app 60px top padding (the AI console does both). Result
     was a double header + the bottom of the screen pushed off / hidden
     behind the tab bar. Fix both, and pad the scroll areas so content
     clears the floating tab bar. ── */
  body.is-mobile:has(.mprof) #navbar,
  body.is-mobile:has(.mstore) #navbar { display: none !important; }
  /* Hide navbar profile menus and desktop search on mobile to avoid duplicates and alignment bugs */
  body.is-mobile #navbar .nav-auth,
  body.is-mobile #navbar .nav-user,
  body.is-mobile #navbar .nav-search { display: none !important; }
  body.is-mobile #app:has(.mprof),
  body.is-mobile #app:has(.mstore) { padding-top: 0 !important; min-height: 0 !important; }
  .mprof-content { padding-bottom: 96px !important; }
  .mstore-feed   { padding-bottom: 110px !important; }

  /* ── Top nav pill: smooth drop-in + springy button taps ── */
  #navbar { animation: pmNavDrop 0.5s cubic-bezier(0.16,1,0.3,1) backwards; }
  .nav-right .btn:active,
  .mobile-search-btn:active,
  .user-menu-btn:active { transform: scale(0.92); }

  /* ── Animated gradient hero text (home + AI console) ── */
  .mhp-hero-gradient { background-size: 220% auto; animation: pmGradient 7s ease infinite; }
  .mbrowse-hero h1 span { background-size: 220% auto !important; animation: pmGradient 7s ease infinite; }

  /* ── Glass sheen sweep across the AI entry cards ── */
  .mhp-ai-banner { overflow: hidden; }
  .mhp-ai-banner::after, .mhub-agent::after {
    content: ''; position: absolute; top: 0; left: -70%;
    width: 55%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,0.13), transparent);
    transform: skewX(-18deg); pointer-events: none;
    animation: pmSheen 5s ease-in-out infinite;
  }

  /* ── Category icons gently float (home) ── */
  .mhp-cat-icon { animation: pmFloat 3.6s ease-in-out infinite; will-change: transform; }
  .mhp-cat-chip:nth-child(2n) .mhp-cat-icon { animation-delay: -1.2s; }
  .mhp-cat-chip:nth-child(3n) .mhp-cat-icon { animation-delay: -2.1s; }

  /* ── "Open / →" cues nudge to invite a tap ── */
  .mhp-ai-arrow, .mhub-agent-cta { animation: pmNudge 1.9s ease-in-out infinite; }

  /* ── Profile avatar breathing glow ── */
  .mprof-avatar { animation: pmAvatarGlow 4s ease-in-out infinite; }

  /* ── AI console composer: focus glow + send-button pulse ── */
  .mbrowse-composer { transition: border-color .2s, box-shadow .2s; }
  .mbrowse-composer:focus-within {
    border-color: rgba(129,140,248,0.55) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 3px rgba(99,102,241,0.18) !important;
  }
  .mbrowse-send-btn { animation: pmSendPulse 2.6s ease-in-out infinite; }
  .mbrowse-suggestions button { position: relative; overflow: hidden; }
  .mbrowse-suggestions button::after {
    content: ''; position: absolute; top: 0; left: -80%; width: 60%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: skewX(-18deg); pointer-events: none;
    animation: pmSheen 6s ease-in-out infinite;
  }
}

/* ── AI console hero orb (animated "thinking" presence) ── */
.mbrowse-orb {
  position: relative;
  width: 60px; height: 60px;
  margin: 0 0 18px;
}
.mbrowse-orb-core {
  position: absolute; inset: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #c7d2fe, #6366f1 45%, #a855f7 90%);
  box-shadow: 0 0 24px rgba(129,140,248,0.7), inset 0 0 10px rgba(255,255,255,0.4);
  animation: pmOrbBreath 3.2s ease-in-out infinite;
}
.mbrowse-orb-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(129,140,248,0.45);
  animation: pmOrbRing 3.2s ease-out infinite;
}
.mbrowse-orb-spark {
  position: absolute; width: 5px; height: 5px; border-radius: 50%;
  background: #e9d5ff; box-shadow: 0 0 8px #c4b5fd;
}
.mbrowse-orb-spark.s1 { top: 4px; right: 8px;  animation: pmOrbSpark 2.6s ease-in-out infinite; }
.mbrowse-orb-spark.s2 { bottom: 6px; left: 6px; animation: pmOrbSpark 2.6s ease-in-out infinite 1.3s; }
@keyframes pmOrbBreath { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes pmOrbRing { 0% { transform: scale(0.85); opacity: 0.8; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes pmOrbSpark { 0%,100% { opacity: 0.3; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.3); } }

@keyframes pmNavDrop { from { opacity: 0; transform: translateX(-50%) translateY(-16px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
@keyframes pmGradient { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes pmSheen { 0% { left: -70%; } 38%, 100% { left: 135%; } }
@keyframes pmFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes pmNudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
@keyframes pmAvatarGlow {
  0%, 100% { box-shadow: 0 0 0 2px rgba(255,255,255,0.10), 0 6px 20px rgba(99,102,241,0.30); }
  50%      { box-shadow: 0 0 0 2px rgba(255,255,255,0.16), 0 8px 32px rgba(168,85,247,0.55); }
}
@keyframes pmSendPulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(99,102,241,0.30); }
  50%      { box-shadow: 0 4px 22px rgba(99,102,241,0.65); }
}

@media (prefers-reduced-motion: reduce) {
  #navbar, .mhp-hero-gradient, .mbrowse-hero h1 span,
  .mhp-ai-banner::after, .mhub-agent::after, .mbrowse-suggestions button::after,
  .mhp-cat-icon, .mhp-ai-arrow, .mhub-agent-cta,
  .mprof-avatar, .mbrowse-send-btn,
  .mbrowse-orb-core, .mbrowse-orb-ring, .mbrowse-orb-spark {
    animation: none !important;
  }
}

/* ─────────────────────────────────────────────────────────────
   MOBILE UI OPTIMIZATIONS — MULTI-DEVICE SUPPORT & SCROLLBARS
   ───────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  /* 1. Global Touch-Friendly Scrollbar Hiding (Allows scrolling, hides bar) */
  ::-webkit-scrollbar {
    display: none !important;
  }
  * {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
  }

  /* 2. Redundant Branding Block Hidden on Hero (navbar has it now) */
  .mhp-hero-brand {
    display: none !important;
  }

  /* 3. Sleek Mobile Guest Profile Button (Top Nav) */
  .mobile-profile-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
    padding: 0;
  }
  .mobile-profile-btn:active {
    transform: scale(0.92);
    background: rgba(255, 255, 255, 0.1);
  }
  .nav-auth .btn-ghost,
  .nav-auth .btn-primary {
    display: none !important;
  }
  #nav-auth-buttons {
    display: flex !important;
    align-items: center;
  }

  /* 4. Chat History Group Header Title */
  .chat-group-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(165, 180, 252, 0.5);
    letter-spacing: 0.06em;
    padding: 14px 16px 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    margin-top: 8px;
  }
  .chat-group-title:first-of-type {
    border-top: none;
    margin-top: 0;
    padding-top: 8px;
  }

  /* 5. Immersive Mobile AI Agent Bubble styles */
  .mbrowse .ai-msg {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    max-width: 100%;
    margin-bottom: 4px;
  }
  .mbrowse .ai-msg-user {
    justify-content: flex-end;
  }
  .mbrowse .ai-bubble {
    background: linear-gradient(180deg, rgba(28, 22, 44, 0.66), rgba(16, 12, 24, 0.72));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13.5px;
    line-height: 1.5;
    max-width: 86%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    word-break: break-word;
  }
  .mbrowse .ai-bubble-user {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: #fff;
    border: none;
    border-radius: 18px 18px 4px 18px;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
  }
  .mbrowse .ai-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
  }

  /* 6. Beautiful output code/blockquote formatting inside mobile chat bubble */
  .mbrowse .ai-bubble blockquote,
  .mbrowse .ai-bubble pre,
  .mbrowse .ai-bubble code {
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 10px;
    padding: 10px 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
    color: #cbd5e1;
    overflow-x: auto;
    margin: 8px 0;
    display: block;
    max-width: 100%;
  }
  .mbrowse .ai-bubble pre code {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline;
    color: inherit;
  }
  .mbrowse .ai-bubble p {
    margin: 0 0 10px;
  }
  .mbrowse .ai-bubble p:last-child {
    margin-bottom: 0;
  }

  /* 7. Scroll Spacer & Mobile Height Corrections */
  .mbrowse-bottom-spacer {
    height: 220px !important;
  }

  /* 8. Thumb-friendly Glassmorphic Modal Composer Lock (Mobile Spec) */
  .mbrowse-composer-wrap:has(#pmc-composer-lock) .mbrowse-composer {
    opacity: 0.1;
    pointer-events: none !important;
  }
  .mbrowse-composer-wrap #pmc-composer-lock {
    position: absolute !important;
    inset: auto 12px 12px !important;
    height: auto !important;
    background: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    z-index: 120 !important;
    padding: 0 !important;
  }
  .mbrowse-composer-wrap .pmc-lock-inner {
    width: 100% !important;
    max-width: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 16px 20px !important;
    background: linear-gradient(135deg, rgba(16, 12, 32, 0.95), rgba(8, 6, 16, 0.95)) !important;
    border: 1px solid rgba(168, 85, 247, 0.4) !important;
    box-shadow: 0 12px 36px rgba(168, 85, 247, 0.25), 0 0 100px rgba(0, 0, 0, 0.8) !important;
    gap: 12px !important;
    border-radius: 20px !important;
  }
  .mbrowse-composer-wrap .pmc-lock-icon {
    display: none !important;
  }
  .mbrowse-composer-wrap .pmc-lock-text {
    text-align: center !important;
    padding: 0 !important;
  }
  .mbrowse-composer-wrap .pmc-lock-title {
    font-size: 15px !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, #fff, #a5b4fc) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
  }
  .mbrowse-composer-wrap .pmc-lock-sub {
    font-size: 11.5px !important;
    text-align: center !important;
    color: rgba(255, 255, 255, 0.6) !important;
    line-height: 1.4 !important;
  }
  .mbrowse-composer-wrap .pmc-lock-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
    margin-top: 4px !important;
  }
  .mbrowse-composer-wrap .pmc-lock-actions .btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 12px !important;
    font-size: 12.5px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
  }
}

/* Logo Animation Polish (PC & Mobile) - Luxurious slow rotation + aura glow */
.logo-icon {
  animation: logoSpin 24s linear infinite, logoGlow 4s ease-in-out infinite alternate !important;
}
@keyframes logoGlow {
  from { box-shadow: 0 0 10px rgba(129,140,248,0.35), 0 0 20px rgba(168,85,247,0.15); }
  to { box-shadow: 0 0 22px rgba(129,140,248,0.75), 0 0 38px rgba(168,85,247,0.55); }
}

/* ─────────────────────────────────────────────────────────────
   ADDITIONAL MOBILE SEARCH & LAYOUT OVERFLOW SHIELD
   ───────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  /* 1. Prevent Horizontal Page Dragging / Viewport Shifting */
  #app {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    position: relative;
  }
  html, body {
    overflow-x: hidden;
  }

  /* 2. Top Nav Symmetrical Search Icon Button */
  .mobile-search-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
    padding: 0;
    margin-right: 6px;
  }
  .mobile-search-btn:active {
    transform: scale(0.92);
    background: rgba(255, 255, 255, 0.1);
  }

  /* 3. Drop-down Mobile Search Overlay (Full width glass) */
  .mobile-search-overlay {
    position: fixed;
    top: -100%;
    left: 0;
    right: 0;
    height: auto;
    background: rgba(8, 10, 22, 0.97);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 250000;
    padding: max(16px, env(safe-area-inset-top)) 16px 20px;
    transition: top 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
  }
  .mobile-search-overlay.open {
    top: 0;
  }
  .mobile-search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 8px 12px;
  }
  .mobile-search-ic {
    color: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
  }
  #mobile-search-input {
    flex: 1;
    background: none;
    border: none;
    color: #fff;
    font-size: 15px;
    outline: none;
  }
  .mobile-search-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-search-suggestions {
    display: flex;
    flex-direction: column;
    max-height: 50vh;
    overflow-y: auto;
    gap: 6px;
    padding-top: 4px;
  }
  .mob-sug-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.2s;
  }
  .mob-sug-item:active {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.35);
  }
  .mob-sug-title {
    font-size: 13px;
    color: #fff;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70%;
  }
  .mob-sug-cat {
    font-size: 10px;
    color: rgba(165, 180, 252, 0.6);
    font-weight: 700;
    text-transform: uppercase;
  }
  .mob-sug-empty {
    padding: 16px;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
  }

  /* 4. Beautiful PC-like History drawer card styles */
  .sidebar-chat-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 16px;
    overflow-y: auto;
    flex: 1;
  }
  .sidebar-chat-list .chat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    position: relative;
    -webkit-tap-highlight-color: transparent;
  }
  .sidebar-chat-list .chat-item:active {
    background: rgba(99, 102, 241, 0.12) !important;
    border-color: rgba(99, 102, 241, 0.35) !important;
    color: #fff !important;
  }
  .sidebar-chat-list .chat-item svg {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.4);
  }
  .sidebar-chat-list .chat-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 75%;
  }
  .sidebar-chat-list .chat-item-actions {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
  }
  .sidebar-chat-list .chat-more-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .sidebar-chat-list .chat-menu {
    position: absolute;
    right: 0;
    top: 30px;
    background: #14101e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
    z-index: 10;
  }
  .sidebar-chat-list .chat-menu.show {
    display: flex;
  }
  .sidebar-chat-list .chat-menu button {
    background: none;
    border: none;
    color: #fff;
    padding: 8px 16px;
    text-align: left;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
  }
  .sidebar-chat-list .chat-menu button:active {
    background: rgba(255, 255, 255, 0.05);
  }
  .sidebar-chat-list .chat-menu button.delete {
    color: #ef4444;
  }
}
/* ═══════════════════════════════════════════════════════════
   MSTORE redesign — premium, compact pack cards (mobile only)
   Uses per-card --pk accent colour. Overrides earlier .mstore rules.
   ═══════════════════════════════════════════════════════════ */
.mstore-feed { padding: 18px 16px 110px; }
.mstore-hero h2 { font-size: 26px; }
.mstore-pack-list { gap: 16px; }

.mstore-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(22,22,38,0.82), rgba(14,14,24,0.92));
  border: 1px solid rgba(129,140,248,0.28);
  border: 1px solid color-mix(in srgb, var(--pk, #6366f1) 32%, transparent);
  box-shadow: 0 14px 36px -16px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.05);
  animation: pmCardIn 0.5s cubic-bezier(0.16,1,0.3,1) backwards;
  -webkit-tap-highlight-color: transparent;
}
.mstore-card-glow {
  position: absolute; top: -50px; right: -40px;
  width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--pk,#6366f1) 45%, transparent), transparent 70%);
  pointer-events: none; opacity: 0.6;
}
.mstore-card-row { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.mstore-emoji {
  width: 46px; height: 46px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; border-radius: 14px;
  background: rgba(255,255,255,0.06);
  background: color-mix(in srgb, var(--pk,#6366f1) 18%, rgba(255,255,255,0.04));
  border: 1px solid rgba(129,140,248,0.3);
  border: 1px solid color-mix(in srgb, var(--pk,#6366f1) 35%, transparent);
  box-shadow: 0 4px 16px -4px color-mix(in srgb, var(--pk,#6366f1) 60%, transparent);
}
.mstore-card-head { flex: 1; min-width: 0; }
.mstore-card .mstore-eyebrow {
  display: block; font-size: 9.5px; font-weight: 800; letter-spacing: 1.2px;
  color: color-mix(in srgb, var(--pk,#6366f1) 80%, white);
  margin-bottom: 3px;
}
.mstore-card-head h2 {
  font-size: 18px; font-weight: 800; color: #fff; margin: 0; line-height: 1.2;
}
.mstore-price-tag {
  flex-shrink: 0; text-align: right;
  font-family: var(--font-display); font-weight: 800; font-size: 17px; color: #fff;
  display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1;
}
.mstore-price-tag small { font-size: 9px; font-weight: 600; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: .08em; margin-top: 2px; }
.mstore-owned-badge {
  flex-shrink: 0; font-size: 11px; font-weight: 800; letter-spacing: .03em;
  color: #6ee7b7; background: rgba(52,211,153,0.14);
  border: 1px solid rgba(52,211,153,0.35); border-radius: 100px; padding: 5px 11px;
}
.mstore-card .mstore-desc {
  font-size: 13px; color: rgba(255,255,255,0.66); line-height: 1.5; margin: 0;
  position: relative; z-index: 1;
}
.mstore-card .mstore-features { margin: 0; gap: 8px; }
.mstore-card .mstore-features li { font-size: 12.5px; color: rgba(255,255,255,0.82); }
.mstore-feat-tick { color: var(--pk, #818cf8); flex-shrink: 0; }
.mstore-card .mstore-btn {
  width: 100%; margin-top: 4px; padding: 13px; border-radius: 14px; border: none;
  font-size: 14.5px; font-weight: 700; color: #fff; cursor: pointer;
  position: relative; z-index: 1;
  transition: transform .12s cubic-bezier(0.34,1.56,0.64,1), box-shadow .2s;
}
.mstore-card .mstore-btn.buy {
  background: var(--pk, #6366f1);
  background: linear-gradient(135deg, color-mix(in srgb, var(--pk,#6366f1) 92%, white), var(--pk,#6366f1));
  box-shadow: 0 8px 22px -6px color-mix(in srgb, var(--pk,#6366f1) 80%, transparent);
}
.mstore-card .mstore-eyebrow { color: #a5b4fc; }
.mstore-card .mstore-eyebrow { color: color-mix(in srgb, var(--pk,#6366f1) 80%, white); }
.mstore-card .mstore-btn.owned {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); color: #e5e7ff;
}
.mstore-card .mstore-btn:active { transform: scale(0.97); }
.mstore-card.is-owned { opacity: 0.96; }

/* ── MSTORE: Pro subscription card (mobile) ── */
.mstore-section-label {
  display: flex; align-items: baseline; gap: 8px;
  font-family: var(--font-display); font-weight: 800; font-size: 15px; color: #fff;
  margin: 22px 2px 12px;
}
.mstore-section-label span { font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: .06em; }

.mstore-pro-card {
  position: relative; overflow: hidden;
  flex-shrink: 0; /* it's a direct flex item of .mstore-feed; overflow:hidden would let it collapse */
  display: flex; flex-direction: column; gap: 12px;
  padding: 18px; border-radius: 22px;
  background: linear-gradient(180deg, rgba(40,30,12,0.7), rgba(20,16,10,0.92));
  border: 1px solid rgba(245,158,11,0.45);
  box-shadow: 0 16px 40px -16px rgba(245,158,11,0.4), inset 0 1px 0 rgba(255,255,255,0.06);
  animation: pmCardIn 0.5s cubic-bezier(0.16,1,0.3,1) backwards;
  -webkit-tap-highlight-color: transparent;
}
.mstore-pro-glow {
  position: absolute; top: -60px; right: -50px; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,158,11,0.4), transparent 70%);
  pointer-events: none; animation: mhpGlowPulse 4s ease-in-out infinite;
}
.mstore-pro-head { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.mstore-pro-crown {
  width: 46px; height: 46px; flex-shrink: 0; font-size: 22px;
  display: flex; align-items: center; justify-content: center; border-radius: 14px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 6px 18px -4px rgba(245,158,11,0.7);
}
.mstore-pro-titles { flex: 1; min-width: 0; }
.mstore-pro-eyebrow { display: block; font-size: 9.5px; font-weight: 800; letter-spacing: 1px; color: #fcd34d; margin-bottom: 3px; }
.mstore-pro-titles h2 { font-size: 18px; font-weight: 800; color: #fff; margin: 0; line-height: 1.2; }
.mstore-pro-price {
  flex-shrink: 0; font-family: var(--font-display); font-weight: 800; font-size: 20px; color: #fff;
}
.mstore-pro-price small { font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.5); }
.mstore-pro-active-badge {
  flex-shrink: 0; font-size: 11px; font-weight: 800; color: #6ee7b7;
  background: rgba(52,211,153,0.14); border: 1px solid rgba(52,211,153,0.35);
  border-radius: 100px; padding: 5px 11px;
}
.mstore-pro-desc { font-size: 13px; color: rgba(255,255,255,0.72); line-height: 1.5; margin: 0; position: relative; z-index: 1; }
.mstore-pro-card .mstore-features { margin: 0; }
.mstore-pro-card .mstore-feat-tick { color: #fbbf24; }
.mstore-pro-actions { display: flex; gap: 10px; position: relative; z-index: 1; }
.mstore-pro-actions .mstore-btn {
  flex: 1; margin: 0; padding: 12px 8px; border-radius: 14px; border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px; line-height: 1.1;
  font-size: 12px; font-weight: 700; color: #fff; position: relative;
  transition: transform .12s cubic-bezier(0.34,1.56,0.64,1);
}
.mstore-pro-actions .mstore-btn b { font-size: 16px; font-weight: 800; }
.mstore-pro-actions .mstore-btn:active { transform: scale(0.97); }
.mstore-btn.pro-month { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); }
.mstore-btn.pro-year {
  background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #1a1206;
  box-shadow: 0 8px 22px -6px rgba(245,158,11,0.7);
}
.mstore-save {
  position: absolute; top: -8px; right: -6px;
  font-size: 8.5px; font-weight: 800; letter-spacing: .03em; color: #052e16;
  background: #6ee7b7; border-radius: 100px; padding: 2px 7px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.mstore-btn.pro-manage { width: 100%; margin-top: 2px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); color: #fff; padding: 13px; border-radius: 14px; font-weight: 700; }

/* ═══════════════════════════════════════════════════════════
   MOBILE 2026 — Material-You / Android "expressive" refinement
   Softer bezels, springy motion, shape-morph press, micro-detail
   polish. Mobile-only (≤768px); PC UI untouched.
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root {
    --m-spring: cubic-bezier(0.34, 1.56, 0.64, 1); /* bouncy */
    --m-emph:   cubic-bezier(0.2, 0, 0, 1);        /* M3 emphasized */
  }

  /* ── Smoother bezels: larger, consistent rounded corners ── */
  .prompt-card, .mhub-tcard, .mhp-prompt-card { border-radius: 22px; }
  .mstore-card, .mstore-pro-card, .mhub-agent, .mhp-ai-banner, .mhp-upgrade-banner { border-radius: 26px; }
  .mhub-search, .mhub-more, .mstore-btn, .mbrowse-composer, .mbrowse-suggestions button { border-radius: 18px; }
  .mhub-chip, .mhp-tab, .mprof-tab, .mhub-tcard-tier { border-radius: 100px; }
  .modal-content { border-radius: 30px 30px 0 0 !important; }
  .card-action-btn, .mstore-emoji, .mhub-agent-ic, .mstore-pro-crown { border-radius: 16px; }

  /* ── Springy, smooth press feedback + shape-morph (Material vibe) ── */
  .prompt-card, .mhub-agent, .mhub-tcard, .mhp-prompt-card, .mstore-card,
  .mhub-chip, .mhub-more, .mstore-btn, .mhp-ai-banner, .mhp-cat-chip,
  .mhp-btn-primary, .mhp-btn-ghost, .tab-item, .card-action-btn,
  .mhub-search-go, .mbrowse-send-btn, .mprof-tab {
    transition: transform .2s var(--m-spring), border-radius .2s var(--m-emph),
                box-shadow .22s var(--m-emph), background .2s var(--m-emph),
                filter .2s var(--m-emph);
  }
  .prompt-card:active, .mhub-tcard:active, .mhp-prompt-card:active,
  .mstore-card:active, .mhp-ai-banner:active, .mhub-agent:active { transform: scale(0.975); }
  /* shape-morph: corners tighten + slight brighten on tap (ripple-like) */
  .mstore-btn:active, .mhub-more:active, .mhp-btn-primary:active,
  .mhub-search-go:active, .mbrowse-send-btn:active {
    border-radius: 12px; filter: brightness(1.08);
  }
  .mhub-chip:active, .mprof-tab:active, .mhp-tab:active { border-radius: 16px; }

  /* ── Smooth, contained scrolling (no whole-page rubber-band bleed) ── */
  .mbrowse-main, .mstore-feed, .mhub-scroll {
    overscroll-behavior-y: contain;
  }
  html { scroll-behavior: smooth; }

  /* ── Micro-details: softer hairline dividers + tonal section heads ── */
  .mprof-header, .mprof-stats-wrap, .mstore-header, .mbrowse-header {
    border-bottom-color: rgba(255,255,255,0.05) !important;
  }
  /* Tappable rows get a subtle ripple-tint surface on press */
  .dropdown-item:active, .mobile-nav-item:active, .chat-item:active,
  .mhub-head-link:active, .mhp-section-link:active { background: rgba(129,140,248,0.12); }

  /* ── Bottom tab bar: smoother bezel + springy active icon ── */
  .bottom-tab-bar { border-radius: 26px !important; }
  .tab-item svg { transition: transform .25s var(--m-spring); }
  .tab-item.active svg { transform: translateY(-2px) scale(1.08); }

  /* ── Inputs/focus: soft Material focus ring ── */
  .mhub-search:focus-within, .mbrowse-composer:focus-within {
    box-shadow: 0 0 0 3px rgba(129,140,248,0.22) !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE 2026 — Profile + AI Agent element upgrades (Material vibe)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* ── Profile: tonal hero header (Material "expressive" banner) ── */
  .mprof-header {
    background:
      radial-gradient(120% 140% at 0% 0%, rgba(99,102,241,0.28), transparent 55%),
      radial-gradient(120% 140% at 100% 0%, rgba(168,85,247,0.20), transparent 55%),
      rgba(8,10,22,0.6) !important;
    padding-bottom: 18px !important;
    gap: 14px !important;
  }
  .mprof-avatar { border-radius: 18px !important; }
  .mprof-info h2 { font-family: var(--font-display); letter-spacing: -0.02em; }

  /* ── Profile: premium stat chips with gradient numbers ── */
  .mprof-stat {
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 16px !important;
    min-width: 86px !important;
    transition: transform .18s var(--m-spring), border-color .2s var(--m-emph);
  }
  .mprof-stat:active { transform: scale(0.96); border-color: rgba(129,140,248,0.4) !important; }
  .mprof-stat strong {
    font-family: var(--font-display); font-size: 19px !important;
    background: linear-gradient(135deg, #a5b4fc, #c4b5fd);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  }

  /* ── Profile: tab active glow + smoother pill ── */
  .mprof-tab { border-radius: 100px !important; }
  .mprof-tab.active {
    background: linear-gradient(135deg, rgba(99,102,241,0.9), rgba(168,85,247,0.85)) !important;
    color: #fff !important; border-color: transparent !important;
    box-shadow: 0 6px 16px -5px rgba(99,102,241,0.7);
  }

  /* ── AI agent chat: Material suggestion chips ── */
  .mbrowse-suggestions { gap: 10px; }
  .mbrowse-suggestions button {
    background: linear-gradient(135deg, rgba(99,102,241,0.16), rgba(168,85,247,0.10)) !important;
    border: 1px solid rgba(129,140,248,0.32) !important;
    border-radius: 18px !important;
    padding: 12px 15px !important;
    font-weight: 600;
  }
  /* ── AI agent chat: rounder, tonal quick-scroll chips + composer ── */
  .mbrowse-quick-scroll button {
    background: rgba(129,140,248,0.10) !important;
    border: 1px solid rgba(129,140,248,0.24) !important;
    border-radius: 100px !important;
    color: #c7d2fe !important;
  }
  .mbrowse-composer { border-radius: 22px !important; }
  .mbrowse-send-btn, .mbrowse-plus-btn { border-radius: 14px !important; }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE 2026 — Home "pro level" elevation (mobile only)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* ── Hero: deeper tonal gradient + breathing room ── */
  .mhp-hero {
    padding: max(26px, env(safe-area-inset-top)) 20px 30px !important;
    background:
      radial-gradient(130% 120% at 0% 0%, rgba(99,102,241,0.30), transparent 55%),
      radial-gradient(130% 120% at 100% 8%, rgba(168,85,247,0.22), transparent 55%),
      linear-gradient(180deg, rgba(8,10,22,0) 60%, rgba(8,10,22,0) 100%) !important;
  }
  .mhp-hero-badge {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(129,140,248,0.4);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
  }
  .mhp-hero-title { font-size: 34px; letter-spacing: -0.03em; }
  .mhp-hero-sub { font-size: 14px; color: rgba(255,255,255,0.7); }

  /* ── Hero CTAs: premium primary (gradient + glow + sheen) ── */
  .mhp-btn-primary {
    height: 52px; border-radius: 16px;
    background: linear-gradient(135deg, #818cf8, #6366f1 55%, #a855f7) !important;
    box-shadow: 0 10px 26px -8px rgba(99,102,241,0.7), inset 0 1px 0 rgba(255,255,255,0.25) !important;
    position: relative; overflow: hidden;
  }
  .mhp-btn-primary::after {
    content: ''; position: absolute; top: 0; left: -70%; width: 55%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,0.25), transparent);
    transform: skewX(-18deg); animation: pmSheen 5.5s ease-in-out infinite;
  }
  .mhp-btn-ghost {
    height: 52px; border-radius: 16px;
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.14) !important;
    backdrop-filter: blur(8px);
  }

  /* ── Stats bar → elevated glass card ── */
  .mhp-stats-bar {
    margin: 16px 16px 4px !important;
    padding: 16px 12px !important;
    border-radius: 20px !important;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    box-shadow: 0 10px 30px -16px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.05) !important;
  }
  .mhp-stat-val {
    font-size: 18px;
    background: linear-gradient(135deg, #fff, #c4b5fd);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  }
  .mhp-stat-div { background: linear-gradient(180deg, transparent, rgba(255,255,255,0.14), transparent) !important; }

  /* ── Trending cards: top accent + depth ── */
  .mhp-prompt-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)) !important;
    border: 1px solid rgba(255,255,255,0.09) !important;
    box-shadow: 0 12px 28px -18px rgba(0,0,0,0.8);
    position: relative; overflow: hidden;
  }
  .mhp-prompt-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, #6366f1, #a855f7);
    opacity: 0.85;
  }
  .mhp-card-copy {
    background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(168,85,247,0.16)) !important;
    border: 1px solid rgba(129,140,248,0.35) !important;
    border-radius: 100px !important;
  }

  /* ── Category tiles: subtle depth + spring ── */
  .mhp-cat-chip {
    background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)) !important;
    box-shadow: 0 6px 18px -12px rgba(0,0,0,0.8);
  }

  /* ── Section headers: refined ── */
  .mhp-section-title { font-family: var(--font-display); font-size: 16px; letter-spacing: -0.01em; }
}

/* ═══════════════════════════════════════════════════════════
   FIX: AI agent "+" specialise / sub-agent menu in MOBILE console
   The .pmc-* tag menu styles rely on --c-* vars defined on .pmc
   (desktop only). Provide them on .mbrowse and position the menu
   as a popup above the mobile composer so the + button works.
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .mbrowse {
    --c-bg0:#07060c; --c-bg2:#14101e;
    --c-panel:rgba(20,16,30,0.92); --c-line:rgba(140,120,220,0.18); --c-line2:rgba(160,140,240,0.32);
    --c-ink:#ece8ff; --c-ink2:#bdb4dc; --c-ink3:#8b82ad; --c-ink4:#5b557a;
    --c-violet:#8a6cff; --c-violet2:#b89cff; --c-violetd:#5a3dff;
    --c-cyan:#6bd8ff; --c-green:#7dffb0; --c-amber:#ffc06b; --c-pink:#ff7ad9;
    --c-display: var(--font-display);
  }
  .mbrowse-tag-menu {
    width: calc(100vw - 24px) !important;
    max-width: 460px !important;
    max-height: 50vh; overflow-y: auto;
    bottom: calc(100% + 8px) !important;
    background: rgba(16,12,28,0.97) !important;
    backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4);
    border: 1px solid rgba(138,108,255,0.35) !important;
    border-radius: 20px !important;
    box-shadow: 0 -12px 44px rgba(0,0,0,0.65) !important;
    z-index: 130 !important;
    padding: 16px !important;
  }
  .mbrowse-tag-menu .pmc-tagopt { padding: 9px 14px; font-size: 13px; }
  /* selected-tag chips row above the composer */
  .mbrowse-composer-wrap .pmc-tag-row {
    display: flex; flex-wrap: wrap; gap: 6px;
    padding: 2px 2px 8px;
  }
  .mbrowse-composer-wrap .pmc-tagchip {
    background: rgba(138,108,255,0.16); border: 1px solid rgba(138,108,255,0.35);
    color: #ece8ff; border-radius: 100px; padding: 5px 10px; font-size: 12px;
    display: inline-flex; align-items: center; gap: 6px;
  }
  .mbrowse-composer-wrap .pmc-tagchip-note { font-size: 11px; color: #8b82ad; align-self: center; }
}

/* ═══════════════════════════════════════════════════════════
   FIX + FUTURISTIC: prompt-card top tags + section arrow links
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Top tags row: category (left, capitalised, truncated) + tier (right) */
  .card-header { gap: 6px !important; align-items: center !important; flex-wrap: nowrap !important; }
  .card-cat {
    text-transform: capitalize;
    font-family: var(--mono);
    letter-spacing: 0.02em;
    background: rgba(129,140,248,0.14);
    border: 1px solid rgba(129,140,248,0.30);
    color: #c7d2fe;
    max-width: 62%;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .card-tier, .card-unlocked-badge { margin-left: auto; flex-shrink: 0; }
  /* the floating "PRO" ribbon overlapped the header tags on locked cards — drop it
     (the header tier badge already marks it Pro) */
  .prompt-card.locked::after { display: none !important; }

  /* Section "All →" / "See all →" / "More →": neat futuristic pill links */
  .mhub-head-link, .mhp-section-link {
    display: inline-flex !important; align-items: center; gap: 5px;
    padding: 6px 12px !important; border-radius: 100px !important;
    background: rgba(129,140,248,0.10) !important;
    border: 1px solid rgba(129,140,248,0.24) !important;
    color: #a5b4fc !important; font-weight: 600;
    transition: transform .15s var(--m-spring), background .2s;
  }
  .mhub-head-link:active, .mhp-section-link:active {
    transform: scale(0.94); background: rgba(129,140,248,0.20) !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   PROMPT CARDS — more attractive + clearly tappable (mobile)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .prompt-card {
    background: linear-gradient(180deg, rgba(24,26,46,0.72), rgba(14,15,26,0.88)) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    box-shadow: 0 16px 32px -20px rgba(0,0,0,0.9), inset 0 1px 0 rgba(255,255,255,0.05) !important;
    position: relative; overflow: hidden;
  }
  /* futuristic top accent line */
  .prompt-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, #6366f1, #a855f7 55%, #6bd8ff);
    opacity: 0.9; z-index: 2;
  }
  /* glow that fades in on press to signal "tap to open" */
  .prompt-card::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit;
    background: radial-gradient(120% 80% at 50% 0%, rgba(99,102,241,0.16), transparent 60%);
    opacity: 0; transition: opacity .25s var(--m-emph); pointer-events: none; z-index: 0;
  }
  .prompt-card:active::after { opacity: 1; }
  .prompt-card:active {
    transform: scale(0.97) !important;
    border-color: rgba(129,140,248,0.5) !important;
    box-shadow: 0 12px 34px -10px rgba(99,102,241,0.55) !important;
  }
  /* keep content above the glow layers */
  .card-header, .card-body, .card-footer { position: relative; z-index: 1; }
  .card-title { color: #fff; font-size: 15.5px; }

  /* body tag pills: subtle tonal, futuristic */
  .card-tag {
    background: rgba(129,140,248,0.08) !important;
    border: 1px solid rgba(129,140,248,0.18) !important;
    color: #a5b4fc !important;
  }
  /* action buttons: gentle tinted surface so they read as tappable */
  .card-action-btn {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
  }
}

/* ═══════════════════════════════════════════════════════════
   AD-UNLOCK "ADWALL" PAGE — mobile optimisation
   Stack two-column ad rows (each ad gets full width = fills + renders
   correctly), attractive sponsored cards, compact sticky unlock bar.
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Stack the side-by-side ad rows so each sponsored unit is full width */
  .pm-adwall-2col { grid-template-columns: 1fr !important; gap: 14px !important; }

  /* Sponsored slots → attractive responsive glass cards */
  .pm-adwall-slot {
    background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
    border: 1px solid rgba(129,140,248,0.18);
    border-radius: 18px;
    padding: 12px 12px 10px;
    overflow: hidden;
    box-shadow: 0 8px 22px -16px rgba(0,0,0,0.8);
  }
  .pm-adwall-slot .adsbygoogle { border-radius: 12px; overflow: hidden; }

  /* Page padding: a touch tighter, leave room for the sticky bar */
  #app > div[style*="min-height:100vh"] { padding: 14px 14px 180px !important; }

  /* Sticky unlock bar & ad column grids: stack vertically to prevent horizontal squishing on small viewports */
  .pm-adwall-2col {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  #ad-sticky-bar {
    flex-direction: column !important;
    gap: 12px !important;
    padding: 16px 16px max(16px, env(safe-area-inset-bottom)) !important;
    align-items: stretch !important;
  }
  #ad-sticky-bar > div {
    justify-content: center !important;
    min-width: 0;
  }
  #ad-sticky-bar #sticky-status + div {
    display: block !important; /* show sub-line since we have space in column mode */
    text-align: center;
  }
  #ad-sticky-bar #sticky-status {
    text-align: center;
  }
  #ad-sticky-bar > div > div {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  #ad-int-continue {
    width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
    font-size: 15px !important;
    padding: 12px 24px !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   PREMIUM LOADER (PC + mobile) — replaces the basic spinner
   ═══════════════════════════════════════════════════════════ */
.pm-loading {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; padding: 64px 24px; min-height: 42vh;
}
.pm-loader { position: relative; width: 56px; height: 56px; }
.pm-loader-ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0%, #6366f1 35%, #a855f7 65%, transparent 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  animation: spin 0.9s linear infinite;
}
.pm-loader-core {
  position: absolute; inset: 18px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #c7d2fe, #6366f1 70%, #a855f7);
  box-shadow: 0 0 22px rgba(99,102,241,0.65);
  animation: pmLoadBreath 1.4s ease-in-out infinite;
}
@keyframes pmLoadBreath { 0%,100% { transform: scale(0.82); opacity: 0.8; } 50% { transform: scale(1); opacity: 1; } }
.pm-loading-text {
  font-family: var(--font-display, sans-serif); font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text3);
  display: inline-flex;
}
.pm-loading-text span { animation: pmLoadDot 1.4s infinite; }
.pm-loading-text span:nth-child(2) { animation-delay: 0.2s; }
.pm-loading-text span:nth-child(3) { animation-delay: 0.4s; }
@keyframes pmLoadDot { 0%,100% { opacity: 0.2; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .pm-loader-ring, .pm-loader-core, .pm-loading-text span { animation: none !important; }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE PROMPT POPUP — smoother, frosted, next-level (2026)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Backdrop: smooth blur fade-in */
  .modal:not(.hidden) .modal-overlay { animation: pmOverlayIn 0.32s ease both; }
  /* Frosted glass sheet + subtle top accent glow */
  .modal-content {
    background: rgba(15,15,26,0.86) !important;
    backdrop-filter: blur(30px) saturate(1.5) !important;
    -webkit-backdrop-filter: blur(30px) saturate(1.5) !important;
    border-top: 1px solid rgba(129,140,248,0.25) !important;
    box-shadow: 0 -24px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) inset !important;
  }
  /* Detail sections fade-up gently as the sheet opens */
  #modal-body .detail-section,
  #modal-body .detail-actions,
  #modal-body .detail-header { animation: pmConsoleIn 0.45s cubic-bezier(0.16,1,0.3,1) backwards; }
  #modal-body .detail-header  { animation-delay: 0.04s; }
  #modal-body .detail-actions { animation-delay: 0.10s; }
  #modal-body .detail-section:nth-of-type(1) { animation-delay: 0.14s; }
  #modal-body .detail-section:nth-of-type(2) { animation-delay: 0.18s; }
  #modal-body .detail-section:nth-of-type(3) { animation-delay: 0.22s; }
  /* Close button: bigger tap target + spring */
  .modal-close { width: 40px !important; height: 40px !important; background: rgba(255,255,255,0.08) !important; transition: transform .15s var(--m-spring); }
  .modal-close:active { transform: scale(0.88) rotate(90deg); }
}
@keyframes pmOverlayIn { from { opacity: 0; } to { opacity: 1; } }

/* ═══════════════════════════════════════════════════════════
   FIX: Home/page scroll jank from nested scroll containers.
   `html, body, #app { overflow-x: hidden }` forces overflow-y:auto on
   each (per CSS spec), making #app a nested scroll container on top of
   the document scroll → double/janky scrolling. Let only the document
   scroll; #app just grows with its content (body still clips horizontal).
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  #app { overflow: visible !important; }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE TOP NAV — centered logo + morph-to-search-bar (2026)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Centered logo with a premium display font */
  body.is-mobile #navbar { transition: opacity .25s ease, transform .3s cubic-bezier(0.16,1,0.3,1); }
  body.is-mobile #navbar .nav-logo {
    position: absolute; left: 50%; transform: translateX(-50%);
    gap: 8px;
  }
  body.is-mobile #navbar .nav-logo .logo-text {
    font-family: var(--font-display, 'Space Grotesk', sans-serif);
    font-weight: 800; font-size: 18px; letter-spacing: -0.02em;
  }
  body.is-mobile #navbar .nav-right { margin-left: auto; }

  /* While searching, the nav fades/lifts away → reads as it morphing into the bar */
  body.is-mobile:has(.mobile-search-overlay.open) #navbar {
    opacity: 0; transform: translateX(-50%) translateY(-8px) scale(0.96); pointer-events: none;
  }

  /* Search overlay = full-screen frosted backdrop that fades in */
  .mobile-search-overlay {
    top: 0 !important; bottom: 0 !important; height: auto !important;
    background: rgba(6,8,16,0) !important;
    backdrop-filter: blur(0) !important; -webkit-backdrop-filter: blur(0) !important;
    border-bottom: none !important; box-shadow: none !important;
    padding: max(10px, env(safe-area-inset-top)) 12px 16px !important;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: background .32s ease, backdrop-filter .32s ease, opacity .3s ease, visibility .32s ease !important;
  }
  .mobile-search-overlay.open {
    background: rgba(6,8,16,0.55) !important;
    backdrop-filter: blur(12px) !important; -webkit-backdrop-filter: blur(12px) !important;
    opacity: 1; visibility: visible; pointer-events: auto;
  }

  /* The search field = a glass PILL like the navbar, that scales + fades in (the morph) */
  .mobile-search-bar {
    background: rgba(16,16,30,0.92) !important;
    border: 1px solid rgba(129,140,248,0.42) !important;
    border-radius: 100px !important;
    padding: 11px 8px 11px 18px !important;
    gap: 12px !important;
    backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4);
    box-shadow: 0 14px 40px rgba(0,0,0,0.5) !important;
    transform: translateY(-14px) scale(0.95); opacity: 0;
    transition: transform .4s cubic-bezier(0.16,1,0.3,1), opacity .3s ease, box-shadow .25s ease;
  }
  .mobile-search-overlay.open .mobile-search-bar { transform: translateY(0) scale(1); opacity: 1; }
  .mobile-search-overlay.open .mobile-search-bar:focus-within {
    border-color: rgba(129,140,248,0.7) !important;
    box-shadow: 0 14px 40px rgba(0,0,0,0.5), 0 0 0 4px rgba(99,102,241,0.22) !important;
  }
  #mobile-search-input { font-size: 16px !important; } /* 16px avoids iOS zoom-on-focus */
  .mobile-search-close {
    width: 36px !important; height: 36px !important; border-radius: 50% !important;
    background: rgba(255,255,255,0.08) !important; color: #fff !important; flex-shrink: 0;
    transition: transform .15s var(--m-spring, cubic-bezier(0.34,1.56,0.64,1));
  }
  .mobile-search-close:active { transform: scale(0.85) rotate(90deg); }

  /* Suggestions slide in just under the bar */
  .mobile-search-suggestions {
    transform: translateY(-8px); opacity: 0;
    transition: transform .36s cubic-bezier(0.16,1,0.3,1) .06s, opacity .3s ease .06s;
  }
  .mobile-search-overlay.open .mobile-search-suggestions { transform: translateY(0); opacity: 1; }
  .mob-sug-item { border-radius: 14px !important; }
}
@media (prefers-reduced-motion: reduce) {
  body.is-mobile #navbar, .mobile-search-overlay, .mobile-search-bar, .mobile-search-suggestions { transition: none !important; }
}

/* ═══════════════════════════════════════════════════════════
   PREMIUM GLASSMORPHIC COOKIE CONSENT BANNER (2026 Edition)
   ═══════════════════════════════════════════════════════════ */
.cookie-consent-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10009;
  background: rgba(13, 15, 30, 0.88);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border: 1px solid rgba(129, 140, 248, 0.25);
  border-radius: 20px;
  padding: 20px 24px;
  max-width: 520px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  animation: pmCookieIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.cookie-content {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.cookie-icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.cookie-text-wrap h3 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px 0;
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
}

.cookie-text-wrap p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  margin: 0;
}

.cookie-btn-wrap {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-btn-decline {
  padding: 10px 18px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  border-radius: 12px !important;
}

.cookie-btn-accept {
  padding: 10px 20px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
}

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

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

/* Mobile Cookie Consent Overrides */
@media (max-width: 768px) {
  .cookie-consent-banner {
    bottom: max(16px, env(safe-area-inset-bottom));
    left: 16px;
    right: 16px;
    max-width: none;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 18px;
  }

  .cookie-btn-wrap {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
  }

  .cookie-btn-wrap button {
    width: 100% !important;
    justify-content: center !important;
    padding: 12px !important;
    font-size: 14px !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   PROFESSIONAL FOOTER (desktop + mobile)
   ═══════════════════════════════════════════════════════════ */
.site-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(180deg, rgba(255,255,255,0.015), transparent);
  padding: 40px 32px 28px;
}
.footer-inner {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
}
.footer-brand .nav-logo { margin-bottom: 12px; }
.footer-tagline {
  color: var(--text3); font-size: 13px; line-height: 1.6; max-width: 380px; margin: 0 0 14px;
}
.footer-trust {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 600; color: var(--text2);
  background: rgba(129,140,248,0.08); border: 1px solid rgba(129,140,248,0.2);
  padding: 6px 12px; border-radius: 100px;
}
.footer-dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px #34d399; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-title {
  font-family: var(--font-display, sans-serif); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--text2); margin-bottom: 2px;
}
.footer-col a {
  color: var(--text3); font-size: 13.5px; text-decoration: none; width: fit-content;
  transition: color .2s ease, transform .2s ease;
}
.footer-col a:hover { color: var(--accent2); transform: translateX(2px); }
.footer-bottom {
  max-width: 1180px; margin: 28px auto 0; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex; align-items: center; justify-content: space-between;
  color: var(--text3); font-size: 12.5px; gap: 12px; flex-wrap: wrap;
}
.footer-made { color: var(--text3); opacity: 0.7; }

@media (max-width: 768px) {
  .site-footer { padding: 32px 18px 24px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 26px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ═══════════════════════════════════════════════════════════
   FIX: mobile-search-overlay was leaking onto desktop (visible
   as a stray search box at the bottom-left). It's a mobile-only
   feature — hide it on desktop entirely.
   ═══════════════════════════════════════════════════════════ */
@media (min-width: 769px) {
  #mobile-search-overlay { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════
   PROMPT ENHANCER — home hero ("Turn lazy prompts into great ones")
   Premium card with textarea + Auto/Model chips + circular Enhance btn
   + segmented tabs below. Used on both desktop and mobile.
   ═══════════════════════════════════════════════════════════ */
.pmpe-card {
  width: 100%;
  max-width: 720px;
  margin: 20px auto 14px;
  padding: 16px 16px 12px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(22,22,38,0.72), rgba(14,14,24,0.88));
  border: 1px solid rgba(129,140,248,0.32);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  box-shadow: 0 22px 60px -16px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.06);
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color .2s, box-shadow .25s;
}
.pmpe-card:focus-within {
  border-color: rgba(129,140,248,0.6);
  box-shadow: 0 22px 60px -16px rgba(0,0,0,0.7), 0 0 0 4px rgba(99,102,241,0.18);
}
.pmpe-card textarea {
  width: 100%;
  background: transparent; border: none; outline: none;
  color: #fff;
  font-family: var(--font); font-size: 15px; line-height: 1.55;
  resize: none; min-height: 56px; max-height: 160px;
  padding: 6px 4px;
}
.pmpe-card textarea::placeholder { color: rgba(255,255,255,0.42); }
.pmpe-row {
  display: flex; align-items: center; gap: 8px;
  padding-top: 8px; border-top: 1px solid rgba(255,255,255,0.05);
}
.pmpe-chip, .pmpe-chip-model {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 100px;
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.78);
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
}
.pmpe-chip-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #34d399; box-shadow: 0 0 8px #34d399;
  animation: pulse 1.6s ease-in-out infinite;
}
.pmpe-chip-model { color: rgba(255,255,255,0.62); }
.pmpe-go {
  margin-left: auto; flex-shrink: 0;
  width: 38px; height: 38px; border-radius: 50%;
  border: none; cursor: pointer;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px -6px rgba(99,102,241,0.7), inset 0 1px 0 rgba(255,255,255,0.18);
  transition: transform .15s cubic-bezier(0.34,1.56,0.64,1), box-shadow .2s, filter .2s;
}
.pmpe-go:hover { transform: scale(1.05); filter: brightness(1.08); }
.pmpe-go:active { transform: scale(0.92); }
.pmpe-tabs {
  display: inline-flex; gap: 4px;
  padding: 4px; border-radius: 100px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  margin: 0 auto;
}
.pmpe-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 100px;
  background: transparent; border: none; cursor: pointer;
  color: rgba(255,255,255,0.65); font-size: 13px; font-weight: 600;
  transition: background .2s, color .2s;
  position: relative;
}
.pmpe-tab:hover { color: rgba(255,255,255,0.9); }
.pmpe-tab.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(99,102,241,0.85), rgba(168,85,247,0.85));
  box-shadow: 0 4px 14px -4px rgba(99,102,241,0.5);
}
.pmpe-tab-new {
  margin-left: 4px; font-size: 9px; font-weight: 800; letter-spacing: .05em;
  color: #052e16; background: #6ee7b7; border-radius: 100px; padding: 2px 6px;
}

/* Mobile-tightened spacing */
@media (max-width: 768px) {
  .pmpe-card.pmpe-mobile { margin: 14px 0 10px; padding: 12px 12px 10px; border-radius: 18px; }
  .pmpe-card.pmpe-mobile textarea { font-size: 15px; min-height: 50px; }
  .pmpe-tabs { margin: 6px 0 0; }
  .pmpe-tab { padding: 6px 10px; font-size: 12px; }
  .pmpe-tab .pmpe-tab-new { display: none; } /* save horizontal space */
}
@media (prefers-reduced-motion: reduce) {
  .pmpe-chip-dot, .pmpe-go { animation: none !important; transition: none !important; }
}

/* PRICING PAGE — Straight-Shooting Pricing (PromptMatrix glass + indigo edge) */
.ppr { max-width:1080px; margin:0 auto; padding:32px 24px 96px; display:flex; flex-direction:column; align-items:center; position:relative; z-index:1; }
.ppr-back { align-self:flex-start; background:none; border:none; color:var(--text2); font-size:13px; font-weight:600; cursor:pointer; padding:6px 0; margin-bottom:24px; transition:color .2s; }
.ppr-back:hover { color:var(--text); }
.ppr-founder-badge { display:inline-flex; align-items:center; gap:8px; padding:8px 18px; border-radius:100px; background:linear-gradient(135deg, rgba(99,102,241,0.14), rgba(168,85,247,0.10)); border:1px solid rgba(129,140,248,0.45); color:#c7d2fe; font-size:13px; font-weight:700; box-shadow:0 8px 22px -10px rgba(99,102,241,0.5); margin-bottom:18px; }
.ppr-founder-badge svg { color:#fbbf24; }
.ppr-title { font-family:var(--font-display, "Space Grotesk", sans-serif); font-size:56px; font-weight:800; letter-spacing:-0.03em; text-align:center; margin:0 0 14px; color:#fff; }
.ppr-grad { background:linear-gradient(135deg, #818cf8 0%, #a855f7 55%, #e879f9 100%); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.ppr-sub { font-size:17px; color:var(--text2); line-height:1.55; text-align:center; max-width:560px; margin:0 0 28px; }
.ppr-aud { display:inline-flex; gap:4px; padding:4px; background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.08); border-radius:100px; margin-bottom:22px; }
.ppr-aud-tab { padding:9px 22px; border-radius:100px; border:none; background:transparent; color:var(--text2); font-size:14px; font-weight:600; cursor:pointer; transition:background .2s, color .2s, opacity .2s; }
.ppr-aud-tab.active { background:rgba(255,255,255,0.08); color:#fff; box-shadow:0 2px 10px rgba(0,0,0,0.25); }
.ppr-aud-tab.is-disabled { opacity:0.4; cursor:not-allowed; }
.ppr-cycle { display:flex; align-items:center; gap:14px; margin-bottom:36px; font-size:14px; }
.ppr-cycle-label { color:var(--text2); font-weight:600; transition:color .2s; }
.ppr-cycle-label[data-active] { color:#fff; }
.ppr-cycle-switch { width:52px; height:28px; padding:3px; background:rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.12); border-radius:100px; cursor:pointer; position:relative; transition:background .25s; }
.ppr-cycle-knob { display:block; width:22px; height:22px; border-radius:50%; background:linear-gradient(135deg, #fff, #c7d2fe); box-shadow:0 2px 8px rgba(0,0,0,0.4); transition:transform .28s cubic-bezier(0.34,1.56,0.64,1); }
.ppr-cycle-switch.yearly { background:linear-gradient(135deg, #6366f1, #a855f7); border-color:transparent; }
.ppr-cycle-switch.yearly .ppr-cycle-knob { transform:translateX(24px); }
.ppr-cycle-save { font-size:11px; font-weight:800; letter-spacing:.04em; color:#052e16; background:#6ee7b7; border-radius:100px; padding:4px 10px; }
.ppr-plans { display:grid; grid-template-columns:1fr 1fr; gap:22px; width:100%; max-width:880px; margin-bottom:48px; }
.ppr-plan { position:relative; padding:32px 28px; border-radius:24px; background:linear-gradient(180deg, rgba(22,22,38,0.74), rgba(14,14,24,0.9)); border:1px solid rgba(255,255,255,0.08); box-shadow:0 20px 50px -22px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.04); display:flex; flex-direction:column; }
.ppr-plan-name { font-family:var(--font-display, "Space Grotesk", sans-serif); font-size:32px; font-weight:800; color:#fff; margin:0 0 6px; }
.ppr-plan-desc { color:var(--text2); font-size:14px; line-height:1.45; margin:0 0 18px; min-height:40px; }
.ppr-plan-price { display:flex; align-items:baseline; gap:6px; margin-bottom:20px; }
.ppr-amount { font-family:var(--font-display, "Space Grotesk", sans-serif); font-size:44px; font-weight:800; color:#fff; letter-spacing:-0.02em; line-height:1; }
.ppr-per { color:var(--text2); font-size:14px; font-weight:600; }
.ppr-per small { color:var(--text3); font-weight:500; font-size:12px; }
.ppr-plan-cta { display:flex; align-items:center; justify-content:center; width:100%; height:52px; border-radius:14px; border:none; cursor:pointer; font-size:15px; font-weight:700; transition:transform .14s cubic-bezier(0.34,1.56,0.64,1), filter .2s, box-shadow .2s, border-radius .2s; }
.ppr-plan-cta:active { transform:scale(0.97); border-radius:10px; filter:brightness(1.06); }
.ppr-cta-ghost { background:rgba(255,255,255,0.05); color:#e5e7ff; border:1px solid rgba(255,255,255,0.14); }
.ppr-cta-glow { background:linear-gradient(135deg, #818cf8 0%, #6366f1 55%, #a855f7 100%); color:#fff; box-shadow:0 12px 30px -8px rgba(99,102,241,0.7), inset 0 1px 0 rgba(255,255,255,0.22); position:relative; overflow:hidden; }
.ppr-cta-glow::after { content:""; position:absolute; top:0; left:-70%; width:55%; height:100%; background:linear-gradient(100deg, transparent, rgba(255,255,255,0.28), transparent); transform:skewX(-18deg); animation:pmSheen 5s ease-in-out infinite; }
.ppr-cta-active { background:rgba(52,211,153,0.14); border:1px solid rgba(52,211,153,0.35); color:#6ee7b7; }
.ppr-plan-fineprint { text-align:center; font-size:12px; color:var(--text3); margin-top:10px; }
.ppr-plan-feats { list-style:none; padding:0; margin:22px 0 0; display:flex; flex-direction:column; gap:12px; }
.ppr-plan-feats li { font-size:14px; color:rgba(255,255,255,0.85); line-height:1.45; display:flex; align-items:flex-start; gap:10px; }
.ppr-plan-feats li.ppr-muted { color:var(--text3); }
.ppr-tick { color:#6ee7b7; flex-shrink:0; font-weight:800; }
.ppr-plan-pro { border-color:rgba(129,140,248,0.5); box-shadow:0 24px 60px -22px rgba(99,102,241,0.5), inset 0 1px 0 rgba(255,255,255,0.06); background:radial-gradient(120% 100% at 0% 0%, rgba(99,102,241,0.16), transparent 55%), linear-gradient(180deg, rgba(22,22,38,0.84), rgba(14,14,24,0.92)); }
.ppr-plan-tag { position:absolute; top:-13px; left:50%; transform:translateX(-50%); padding:5px 14px; border-radius:100px; background:linear-gradient(135deg, #fbbf24, #f59e0b); color:#1a1206; font-size:10.5px; font-weight:800; letter-spacing:0.08em; box-shadow:0 6px 16px -4px rgba(245,158,11,0.55); }
.ppr-trust { width:100%; max-width:880px; text-align:center; margin-bottom:36px; }
.ppr-trust-label { font-size:11px; letter-spacing:0.12em; color:var(--text3); font-weight:700; margin-bottom:16px; }
.ppr-trust-logos { display:flex; flex-wrap:wrap; gap:22px 32px; justify-content:center; font-family:var(--font-display, "Space Grotesk", sans-serif); font-weight:700; font-size:16px; color:rgba(255,255,255,0.32); letter-spacing:-0.01em; }
.ppr-trust-logos span { transition:color .25s; }
.ppr-trust-logos span:hover { color:rgba(255,255,255,0.7); }
.ppr-foot { display:flex; flex-direction:column; align-items:center; gap:8px; font-size:12px; color:var(--text3); }
.ppr-link { background:none; border:none; color:var(--accent2); font-size:13px; font-weight:600; cursor:pointer; }
.ppr-link:hover { color:var(--accent3); }
@media (max-width:768px) {
  .ppr { padding:18px 14px 110px; }
  .ppr-title { font-size:36px; }
  .ppr-sub { font-size:14px; margin-bottom:22px; }
  .ppr-founder-badge { font-size:11.5px; padding:7px 14px; }
  .ppr-plans { grid-template-columns:1fr; gap:24px; max-width:460px; }
  .ppr-plan { padding:26px 22px; border-radius:22px; }
  .ppr-plan-name { font-size:26px; }
  .ppr-amount { font-size:36px; }
  .ppr-plan-desc { min-height:0; }
  .ppr-aud-tab { padding:8px 16px; font-size:13px; }
  .ppr-trust-logos { gap:14px 22px; font-size:14px; }
}
@media (prefers-reduced-motion:reduce) {
  .ppr-cta-glow::after, .ppr-cycle-knob { animation:none !important; transition:none !important; }
}

/* ── Procedural prompt thumbnails (gradient + category glyph, zero images) ── */
.card-thumb {
  position: relative; height: 92px; border-radius: 14px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
  box-shadow: inset 0 -30px 40px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.18);
}
.card-thumb-pattern {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 28% 26%, rgba(255,255,255,0.22), transparent 55%),
    repeating-linear-gradient(48deg, rgba(255,255,255,0.06) 0 2px, transparent 2px 13px);
}
.card-thumb-glyph { position: relative; font-size: 36px; line-height: 1; filter: drop-shadow(0 3px 8px rgba(0,0,0,0.5)); }
.prompt-card:hover .card-thumb-glyph { transform: scale(1.08); transition: transform .25s ease; }

/* Console prompt cards — full-bleed thumbnail banner */
.pmc .pmc-pcard .card-thumb { margin: -22px -22px 16px; border-radius: 20px 20px 0 0; height: 100px; }
.pmc .pmc-pcard:hover .card-thumb-glyph { transform: scale(1.08); transition: transform .25s ease; }

/* ══════════════════════════════════════════════════════════════
   SSTORE — Redesigned Premium Store (desktop)
   ══════════════════════════════════════════════════════════════ */

/* ── Layout ───────────────────────────────────────────────── */
.sstore { display: flex; flex-direction: column; min-height: 100%; }
.sstore-body { max-width: 1080px; margin: 0 auto; padding: 0 24px 80px; width: 100%; }

/* ── Hero ─────────────────────────────────────────────────── */
.sstore-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(99,102,241,0.10) 0%, rgba(245,158,11,0.06) 50%, transparent 100%);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 64px 24px 0; text-align: center;
}
.sstore-hero-mesh {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(99,102,241,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 80% 20%, rgba(245,158,11,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 60% 80%, rgba(236,72,153,0.07) 0%, transparent 70%);
}
.sstore-hero-inner { position: relative; z-index: 1; }
.sstore-eyebrow-row { margin-bottom: 16px; }
.sstore-eyebrow-chip {
  display: inline-block; background: rgba(99,102,241,0.15); border: 1px solid rgba(99,102,241,0.4);
  color: var(--accent2); font-size: 11px; font-weight: 800; letter-spacing: 2px;
  padding: 5px 14px; border-radius: 30px; text-transform: uppercase;
}
.sstore-h1 {
  font-family: var(--font-display); font-size: 52px; font-weight: 800;
  line-height: 1.1; color: #fff; margin: 0 0 16px; letter-spacing: -0.5px;
}
.sstore-h1-grad {
  background: linear-gradient(90deg, #F9D423, #FF4E50, #ec4899);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.sstore-subhead { font-size: 17px; color: var(--text2); margin: 0 auto 24px; max-width: 520px; line-height: 1.5; }
.sstore-pro-active-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(52,211,153,0.12); border: 1px solid rgba(52,211,153,0.3);
  color: #34d399; font-size: 13px; font-weight: 600; padding: 8px 18px; border-radius: 30px;
  margin-bottom: 8px;
}

/* Stats bar */
.sstore-stats {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center; gap: 0;
  background: rgba(255,255,255,0.03); border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 40px; padding: 20px 32px; flex-wrap: wrap;
}
.sstore-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0 32px; }
.sstore-stat-num { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: #fff; }
.sstore-stat-label { font-size: 12px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.5px; }
.sstore-stat-divider { width: 1px; height: 32px; background: rgba(255,255,255,0.08); }

/* ── Gift Banner ──────────────────────────────────────────── */
.sstore-gift-banner {
  display: flex; align-items: center; gap: 20px;
  background: linear-gradient(135deg, rgba(249,212,35,0.10), rgba(255,78,80,0.07));
  border: 1px solid rgba(249,212,35,0.35); border-radius: 16px;
  padding: 20px 28px; margin: 40px 0 32px; flex-wrap: wrap;
}
.sstore-gift-icon { font-size: 36px; line-height: 1; flex-shrink: 0; }
.sstore-gift-title { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.sstore-gift-title strong { color: var(--gold); }
.sstore-gift-sub { font-size: 13px; color: var(--text2); line-height: 1.5; }

/* ── Tier Comparison ──────────────────────────────────────── */
.sstore-tiers {
  display: grid; grid-template-columns: 1fr 1.15fr 1fr;
  gap: 16px; margin: 0 0 56px; align-items: start;
}
.sstore-tier {
  border-radius: 20px; padding: 28px 24px; position: relative;
  display: flex; flex-direction: column; gap: 0;
}
.sstore-tier-free {
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.07);
}
.sstore-tier-pro {
  background: linear-gradient(160deg, rgba(249,212,35,0.10), rgba(20,20,30,0.8));
  border: 1px solid rgba(249,212,35,0.4);
  box-shadow: 0 0 40px rgba(249,212,35,0.08);
}
.sstore-tier-pack {
  background: linear-gradient(160deg, rgba(99,102,241,0.10), rgba(20,20,30,0.8));
  border: 1px solid rgba(99,102,241,0.3);
}
.stier-popular {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(90deg, #F9D423, #f59e0b);
  color: #000; font-size: 11px; font-weight: 900; letter-spacing: 1px;
  padding: 4px 16px; border-radius: 30px; white-space: nowrap;
}
.stier-label {
  font-size: 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text3); margin-bottom: 10px;
}
.sstore-tier-pro .stier-label { color: var(--gold); }
.sstore-tier-pack .stier-label { color: var(--accent2); }
.stier-price {
  font-family: var(--font-display); font-size: 36px; font-weight: 800; color: #fff;
  margin-bottom: 4px; line-height: 1;
}
.stier-price span { font-size: 14px; font-weight: 400; color: var(--text3); margin-left: 4px; }
.stier-trial-note {
  font-size: 12px; color: var(--gold); font-weight: 600;
  background: rgba(245,158,11,0.12); border-radius: 6px; padding: 3px 8px;
  display: inline-block; margin-bottom: 20px;
}
.stier-list {
  list-style: none; padding: 0; margin: 16px 0 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.stier-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--text2); line-height: 1.4; }
.stier-check { color: var(--green); font-size: 13px; flex-shrink: 0; margin-top: 1px; }
.stier-check.gold { color: var(--gold); }
.stier-check.accent { color: var(--accent2); }
.stier-x { color: var(--text3); flex-shrink: 0; margin-top: 1px; }
.stier-active-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: #34d399;
  margin-bottom: 12px; justify-content: center;
}
.stier-cta {
  width: 100%; padding: 13px; border-radius: 12px; border: none;
  font-size: 14px; font-weight: 700; cursor: pointer; transition: all 0.2s;
  margin-top: auto;
}
.stier-cta:hover { transform: translateY(-1px); }
.stier-cta-ghost { background: rgba(255,255,255,0.06); color: var(--text2); border: 1px solid rgba(255,255,255,0.1); }
.stier-cta-ghost:hover { background: rgba(255,255,255,0.10); color: #fff; }
.stier-cta-gold { background: linear-gradient(135deg, #F9D423, #f59e0b); color: #000; box-shadow: 0 4px 16px rgba(245,158,11,0.3); }
.stier-cta-gold:hover { box-shadow: 0 8px 24px rgba(245,158,11,0.45); }
.stier-cta-accent { background: linear-gradient(135deg, #6366f1, #818cf8); color: #fff; box-shadow: 0 4px 16px rgba(99,102,241,0.3); }
.stier-cta-accent:hover { box-shadow: 0 8px 24px rgba(99,102,241,0.45); }

/* ── Section header ───────────────────────────────────────── */
.sstore-section-header { text-align: center; margin: 0 0 32px; }
.sstore-section-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: 2px; color: var(--text3); text-transform: uppercase; margin-bottom: 10px; }
.sstore-section-title { font-family: var(--font-display); font-size: 30px; font-weight: 800; color: #fff; margin: 0 0 10px; }
.sstore-section-sub { font-size: 15px; color: var(--text2); margin: 0; }

/* ── Pack Grid ────────────────────────────────────────────── */
.spack-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 64px;
}
.spack-card {
  background: linear-gradient(180deg, rgba(22,22,35,0.9), rgba(12,12,20,0.97));
  border: 1px solid rgba(255,255,255,0.07); border-radius: 20px;
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.spack-card:hover {
  transform: translateY(-4px);
  border-color: var(--pk);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 0 1px var(--pk-glow);
}
.spack-card.is-owned { border-color: rgba(255,255,255,0.18); }
.spack-card.is-owned:hover { border-color: var(--pk); }
.spack-top-bar {
  height: 3px; background: var(--pk); opacity: 0.7;
  transition: opacity 0.25s; flex-shrink: 0;
}
.spack-card:hover .spack-top-bar { opacity: 1; }
.spack-inner { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.spack-emoji { font-size: 36px; margin-bottom: 14px; line-height: 1; display: block; }
.spack-eyebrow {
  font-size: 10px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--pk); margin-bottom: 8px; opacity: 0.85;
}
.spack-name { font-size: 20px; font-weight: 800; color: #fff; margin: 0 0 10px; line-height: 1.2; }
.spack-desc { font-size: 13px; color: var(--text3); line-height: 1.6; margin: 0 0 16px; }
.spack-features {
  list-style: none; padding: 0; margin: 0 0 24px;
  display: flex; flex-direction: column; gap: 8px; flex: 1;
}
.spack-features li { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: var(--text2); line-height: 1.4; }
.spack-tick { color: var(--pk); font-size: 12px; flex-shrink: 0; margin-top: 2px; }
.spack-action { margin-top: auto; }
.spack-price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.spack-price { font-size: 28px; font-weight: 800; color: #fff; }
.spack-price-note { font-size: 12px; color: var(--text3); }
.spack-promo-tag {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(249,212,35,0.10); border: 1px solid rgba(249,212,35,0.25);
  color: var(--gold); font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 20px; margin-bottom: 14px;
}
.spack-btn {
  width: 100%; padding: 12px; border-radius: 11px; border: none;
  background: var(--pk); color: #fff; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: all 0.2s; box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.spack-btn:hover { filter: brightness(1.15); transform: translateY(-1px); }
.spack-btn-ghost {
  background: rgba(255,255,255,0.06); color: var(--text2);
  border: 1px solid rgba(255,255,255,0.12);
}
.spack-btn-ghost:hover { background: rgba(255,255,255,0.10); color: #fff; filter: none; }
.spack-owned-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--green);
  margin-bottom: 10px;
}

/* ── FAQ ─────────────────────────────────────────────────── */
.sstore-faq { margin: 0 0 56px; max-width: 760px; margin-left: auto; margin-right: auto; }
.sstore-faq-title { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: #fff; text-align: center; margin: 0 0 28px; }
.sfaq-list { display: flex; flex-direction: column; gap: 10px; }
.sfaq-item {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px; overflow: hidden;
  transition: border-color 0.2s;
}
.sfaq-item[open] { border-color: rgba(99,102,241,0.3); }
.sfaq-q {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 18px 20px; cursor: pointer;
  font-size: 14px; font-weight: 600; color: #fff;
  list-style: none; user-select: none;
}
.sfaq-q::-webkit-details-marker { display: none; }
.sfaq-q:hover { color: var(--accent2); }
.sfaq-arrow { flex-shrink: 0; color: var(--text3); transition: transform 0.25s; }
.sfaq-item[open] .sfaq-arrow { transform: rotate(180deg); }
.sfaq-a { padding: 0 20px 18px; font-size: 13.5px; color: var(--text2); line-height: 1.6; }

/* ── Trust Footer ─────────────────────────────────────────── */
.sstore-trust {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 0; border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 32px; color: var(--text3); font-size: 13px;
}
.strust-item { display: flex; align-items: center; gap: 7px; padding: 0 24px; }
.strust-sep { width: 1px; height: 20px; background: rgba(255,255,255,0.08); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 960px) {
  .spack-grid { grid-template-columns: repeat(2, 1fr); }
  .sstore-tiers { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
  .sstore-tier-pro { order: -1; }
  .sstore-h1 { font-size: 38px; }
}
@media (max-width: 600px) {
  .spack-grid { grid-template-columns: 1fr; }
  .sstore-stats { gap: 0; }
  .sstore-stat { padding: 0 16px; }
  .sstore-stat-num { font-size: 20px; }
  .sstore-trust { flex-direction: column; gap: 12px; }
  .strust-sep { display: none; }
}
