/* ===================================================================
   FREE FIRE NICKNAME STYLE GALLERY — STYLESHEET
   Mobile-first, dark tactical gaming aesthetic with fire accents.
   =================================================================== */

:root {
  --style-accent-pro: #ff5722;
  --style-accent-symbol: #ff9100;
  --style-accent-royal: #ffaa00;
  --style-accent-aesthetic: #b388ff;
  --style-accent-dark: #ff3366;
  --style-accent-framed: #00e5ff;
  --style-accent-fire: #ff4500;
  --style-accent-cyber: #00ffcc;
  --style-accent-star: #ffd700;
  --style-accent-wings: #d8b4fe;
  --style-accent-clean: #a2abbd;
  --style-accent-premium: #80d8ff;

  --font-display: 'Chakra Petch', -apple-system, sans-serif;
  --font-main: 'Inter', -apple-system, sans-serif;

  --bg-page: #080a0f;
  --bg-surface: #10141d;
  --bg-card: #151922;
  --bg-card-hover: #1b212e;
  --bg-card-highlight: #222938;

  --border-card: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(255, 87, 34, 0.6);
  --border-glow-gold: rgba(255, 170, 0, 0.5);

  --text-pure: #ffffff;
  --text-high: #f1f4fa;
  --text-med: #9ba6b9;
  --text-muted: #5e6b82;

  --fire-glow: 0 0 16px rgba(255, 87, 34, 0.35);
  --gold-glow: 0 0 18px rgba(255, 170, 0, 0.35);
  --cyan-glow: 0 0 16px rgba(0, 229, 255, 0.3);

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 9999px;

  --ease-spring: cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

/* Base Wrapper */
.stylish-gallery-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  color: var(--text-high);
}

/* Navigation Badge */
.stylish-badge {
  background: linear-gradient(135deg, #ff5722 0%, #ffaa00 100%);
  color: #000;
  font-weight: 800;
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===================================================================
   HERO & SEARCH SECTION (Beginner-First Viewport)
   =================================================================== */
.stylish-hero {
  padding: 1.5rem 0 1rem;
  text-align: center;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.95rem;
  background: rgba(255, 87, 34, 0.1);
  border: 1px solid rgba(255, 87, 34, 0.3);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffaa00;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 0.8rem;
}

.stylish-hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.stylish-gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #ffaa00 50%, #ff5722 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stylish-hero-subtitle {
  font-size: 0.98rem;
  color: var(--text-med);
  margin-bottom: 1.25rem;
}

/* Discovery Mode Switcher */
.mode-switch-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 1.15rem;
}

.mode-segmented-control {
  display: inline-flex;
  background: rgba(16, 20, 29, 0.9);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  padding: 4px;
  backdrop-filter: blur(10px);
}

.mode-btn {
  background: transparent;
  border: none;
  color: var(--text-med);
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.mode-btn.active {
  background: linear-gradient(135deg, #ff5722 0%, #ff2a5f 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 87, 34, 0.4);
}

.mode-btn:hover:not(.active) {
  color: #fff;
}

/* Search Bar */
.stylish-search-section {
  max-width: 680px;
  margin: 0 auto 1.15rem;
  position: relative;
}

.stylish-search-box {
  display: flex;
  align-items: center;
  background: rgba(17, 20, 28, 0.95);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 0.5rem 1rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.stylish-search-box:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.2), 0 8px 24px rgba(0, 0, 0, 0.5);
}

.stylish-search-box .search-icon {
  font-size: 1.15rem;
  margin-right: 0.75rem;
  color: var(--text-muted);
}

.stylish-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: #fff;
}

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

.search-clear-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 0.2rem 0.5rem;
  display: none;
}

.search-clear-btn:hover {
  color: #fff;
}

/* Quick Search Dropdown Suggestions */
.search-suggestions-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #151922;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  z-index: 50;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  display: none;
  text-align: left;
}

.search-suggestions-dropdown.open {
  display: block;
}

.search-suggestions-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.search-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.search-tag-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  color: var(--text-med);
  font-size: 0.78rem;
  padding: 0.25rem 0.65rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.search-tag-chip:hover {
  background: rgba(255, 87, 34, 0.15);
  border-color: rgba(255, 87, 34, 0.4);
  color: #fff;
}

/* ===================================================================
   HORIZONTAL STYLE CATEGORY CAROUSEL (Mobile Swipe)
   =================================================================== */
.category-carousel-wrapper {
  margin: 0 -1rem 1.25rem;
  padding: 0 1rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.category-carousel-wrapper::-webkit-scrollbar {
  display: none;
}

.category-carousel {
  display: flex;
  gap: 0.5rem;
  width: max-content;
  padding-bottom: 4px;
}

.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(21, 25, 34, 0.85);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  color: var(--text-med);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cat-chip:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: translateY(-1px);
}

.cat-chip.active {
  background: rgba(255, 87, 34, 0.15);
  border-color: #ff5722;
  color: #ffaa00;
  box-shadow: 0 2px 10px rgba(255, 87, 34, 0.25);
}

/* ===================================================================
   LOCK STATUS UX BANNER (Two-Way Name & Style Lock)
   =================================================================== */
.lock-banner {
  display: none;
  background: linear-gradient(90deg, rgba(255, 170, 0, 0.15) 0%, rgba(255, 87, 34, 0.15) 100%);
  border: 1px solid rgba(255, 170, 0, 0.4);
  border-radius: var(--radius-md);
  padding: 0.65rem 1rem;
  margin-bottom: 1.25rem;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 16px rgba(255, 170, 0, 0.15);
}

.lock-banner.active {
  display: flex;
}

.lock-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.86rem;
}

.lock-icon {
  font-size: 1.1rem;
  color: #ffaa00;
}

.lock-target-name {
  font-family: var(--font-display);
  font-weight: 800;
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-unlock {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-unlock:hover {
  background: #ff3366;
  border-color: #ff3366;
}

/* ===================================================================
   QUICK ACTION BAR & FILTER CONTROLS
   =================================================================== */
.gallery-control-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
  flex-wrap: wrap;
}

.gallery-stats {
  font-size: 0.84rem;
  color: var(--text-med);
}

.gallery-stats strong {
  color: #fff;
}

.gallery-actions-cluster {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-filter-trigger, .btn-style-lab-trigger, .btn-random-trigger {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  color: var(--text-high);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.btn-filter-trigger:hover, .btn-style-lab-trigger:hover, .btn-random-trigger:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: var(--bg-card-hover);
}

.btn-style-lab-trigger {
  background: rgba(255, 87, 34, 0.12);
  border-color: rgba(255, 87, 34, 0.35);
  color: #ffaa00;
}

.btn-style-lab-trigger:hover {
  background: rgba(255, 87, 34, 0.22);
  border-color: #ff5722;
}

/* Active Filter Pills */
.active-filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.active-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  color: var(--text-high);
  padding: 0.2rem 0.6rem;
}

.active-filter-pill button {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.8rem;
  line-height: 1;
}

.active-filter-pill button:hover {
  color: #ff3366;
}

/* ===================================================================
   VISUAL STYLE CATEGORY CARDS (Live Rendered Preview)
   =================================================================== */
.style-category-cards-section {
  margin-bottom: 2rem;
}

.section-header-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.section-title-compact {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.style-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.85rem;
}

.style-cat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.25s var(--ease-spring);
  position: relative;
  overflow: hidden;
}

.style-cat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--cat-accent, #ff5722);
  opacity: 0.8;
}

.style-cat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.cat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.cat-card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cat-card-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--cat-accent, #ffaa00);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  text-transform: uppercase;
}

.cat-card-samples {
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cat-sample-item {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-high);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cat-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.cat-explore-link {
  color: var(--cat-accent, #ffaa00);
  font-weight: 800;
  font-family: var(--font-display);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* ===================================================================
   PRIMARY NICKNAME GRID & RESULT CARDS
   =================================================================== */
.nickname-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.nickname-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: all 0.2s ease;
}

.nickname-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Meta Top in Card */
.card-meta-top {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.card-category-tag {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffaa00;
  background: rgba(255, 170, 0, 0.1);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.card-spec-tag {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* Dominant Styled Nickname */
.card-nickname-display {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3.5vw, 1.55rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.85rem;
  word-break: break-word;
  line-height: 1.25;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  min-height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Primary CTA Button */
.btn-copy-nickname {
  width: 100%;
  background: linear-gradient(135deg, #ff5722 0%, #ff2a5f 100%);
  border: none;
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.6rem 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: all 0.18s ease;
  box-shadow: 0 4px 14px rgba(255, 87, 34, 0.35);
  margin-bottom: 0.65rem;
}

.btn-copy-nickname:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 18px rgba(255, 87, 34, 0.5);
  transform: translateY(-1px);
}

.btn-copy-nickname:active {
  transform: scale(0.98);
}

.btn-copy-nickname.copied {
  background: linear-gradient(135deg, #00e676 0%, #00b0ff 100%);
  box-shadow: 0 4px 14px rgba(0, 230, 118, 0.4);
}

/* Secondary Quick Actions */
.card-secondary-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.card-action-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.45rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: var(--radius-xs);
  transition: all 0.15s ease;
}

.card-action-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.card-action-btn.active {
  color: #ff2a5f;
}

.btn-lock-action:hover {
  color: #ffaa00;
}

/* Clean Fallback Link */
.card-clean-fallback {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.card-clean-fallback a, .card-clean-fallback button {
  background: transparent;
  border: none;
  color: var(--text-med);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.2);
}

.card-clean-fallback button:hover {
  color: #fff;
}

/* Load More Button */
.load-more-section {
  text-align: center;
  margin: 1.5rem 0 3rem;
}

.btn-load-more {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.75rem 2rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-load-more:hover {
  border-color: #ff5722;
  box-shadow: 0 4px 18px rgba(255, 87, 34, 0.25);
  transform: translateY(-2px);
}

/* Empty State */
.empty-gallery-box {
  grid-column: 1 / -1;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 3rem 1.5rem;
  text-align: center;
}

.empty-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.empty-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #fff;
}

.empty-text {
  font-size: 0.9rem;
  color: var(--text-med);
  margin-bottom: 1.25rem;
}

/* ===================================================================
   STYLE LAB DRAWER / MODAL (Finishing & Adjustments)
   =================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.open {
  display: flex;
}

.modal-panel {
  background: #131720;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
}

.modal-close-btn:hover {
  color: #fff;
}

.modal-body {
  padding: 1.25rem;
  flex: 1;
}

/* Style Lab Live Display Box */
.lab-preview-box {
  background: #0b0e14;
  border: 1px solid rgba(255, 87, 34, 0.3);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
  text-align: center;
  margin-bottom: 1.25rem;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6);
}

.lab-preview-text {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  word-break: break-word;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 15px rgba(255, 87, 34, 0.4);
}

.lab-preview-meta {
  font-size: 0.78rem;
  color: var(--text-med);
}

/* Style Intensity Slider */
.slider-control-group {
  margin-bottom: 1.25rem;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-med);
  margin-bottom: 0.4rem;
}

.slider-label-row strong {
  color: #ffaa00;
}

.intensity-slider {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.intensity-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ff5722;
  cursor: pointer;
  box-shadow: 0 0 10px #ff5722;
  border: 2px solid #fff;
}

.intensity-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 0.35rem;
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Make It Cleaner / More Stylish Step Buttons */
.step-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.btn-step {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  color: var(--text-high);
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.55rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.15s ease;
}

.btn-step:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Base Name Preview Input */
.lab-field-group {
  margin-bottom: 1.15rem;
}

.lab-field-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.lab-text-input {
  width: 100%;
  background: #0b0e14;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.85rem;
  font-family: var(--font-main);
  font-size: 0.92rem;
  color: #fff;
  outline: none;
}

.lab-text-input:focus {
  border-color: var(--border-focus);
}

.lab-home-link {
  display: inline-block;
  font-size: 0.74rem;
  color: #ffaa00;
  margin-top: 0.35rem;
  text-decoration: none;
}

.lab-home-link:hover {
  text-decoration: underline;
}

/* Mini Symbol Picker */
.mini-symbol-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.15rem;
}

.mini-symbol-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xs);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.95rem;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mini-symbol-btn:hover {
  background: rgba(255, 87, 34, 0.2);
  border-color: #ff5722;
}

/* Mix & Match Grid */
.mix-match-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.mix-match-col {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.mix-match-select {
  background: #0b0e14;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xs);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.85rem;
  padding: 0.4rem;
}

/* Random Action Buttons */
.random-actions-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.btn-random-sub {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  color: var(--text-high);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-random-sub:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ===================================================================
   SIMULATED GAMING PREVIEW & CONTEXT SANDBOX
   =================================================================== */
.preview-player-card {
  background: linear-gradient(135deg, #181d28 0%, #0d1017 100%);
  border: 1px solid rgba(255, 170, 0, 0.3);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  margin-bottom: 1.25rem;
}

.preview-player-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #ffaa00, #ff5722, #ffaa00);
}

.player-rank-badge {
  display: inline-block;
  background: rgba(255, 170, 0, 0.15);
  border: 1px solid rgba(255, 170, 0, 0.4);
  border-radius: var(--radius-pill);
  color: #ffaa00;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

.player-simulated-nickname {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
  margin-bottom: 0.35rem;
  text-shadow: 0 2px 12px rgba(255, 87, 34, 0.4);
}

.player-sub-meta {
  font-size: 0.74rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Readability Preview Sizes */
.readability-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: #0b0e14;
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  margin-bottom: 1.25rem;
}

.readability-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 0.4rem;
}

.readability-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.readability-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  width: 60px;
}

.readability-text-small {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
}

.readability-text-norm {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.readability-text-large {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
}

/* Dark / Light Surface Test */
.surface-test-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.surface-box-dark {
  background: #0a0c10;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 0.85rem 0.5rem;
  text-align: center;
}

.surface-box-light {
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 0.85rem 0.5rem;
  text-align: center;
}

.surface-box-light .surface-text {
  color: #0f172a;
}

.surface-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
}

/* Squad Preview */
.squad-preview-box {
  background: #0b0e14;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  margin-bottom: 1.25rem;
}

.squad-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.squad-slots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.squad-slot {
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-xs);
  padding: 0.4rem 0.6rem;
  font-family: var(--font-display);
  font-size: 0.84rem;
  color: var(--text-med);
  text-align: center;
}

.squad-slot.selected {
  background: rgba(255, 87, 34, 0.18);
  border: 1px solid #ff5722;
  color: #fff;
  font-weight: 800;
}

/* Special Character Notice */
.char-notice-box {
  background: rgba(255, 170, 0, 0.08);
  border: 1px solid rgba(255, 170, 0, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  font-size: 0.74rem;
  color: #ffaa00;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

/* Variants in Quick View */
.variants-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.variant-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
}

.variant-rendered {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.btn-variant-copy {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xs);
  color: var(--text-med);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  cursor: pointer;
}

.btn-variant-copy:hover {
  background: #ff5722;
  border-color: #ff5722;
  color: #fff;
}

/* ===================================================================
   SIDE-BY-SIDE STYLE COMPARISON MODAL
   =================================================================== */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.compare-card {
  background: #0b0e14;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.compare-card-title {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.compare-card-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.85rem;
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===================================================================
   SAVED NICKNAMES & STYLES (TWO TABS) DRAWER
   =================================================================== */
.saved-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-card);
  margin-bottom: 1rem;
}

.saved-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  padding: 0.65rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.saved-tab-btn.active {
  color: #ffaa00;
  border-bottom-color: #ffaa00;
}

.saved-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.saved-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
}

/* ===================================================================
   TOAST NOTIFICATION
   =================================================================== */
.stylish-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #181d28;
  border: 1px solid #ff5722;
  color: #ffffff;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6), 0 0 16px rgba(255, 87, 34, 0.4);
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  transition: all 0.28s var(--ease-spring);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

/* ===================================================================
   RESPONSIVE DESIGN & MOBILE OPTIMIZATIONS
   =================================================================== */
@media (max-width: 768px) {
  .nickname-grid {
    grid-template-columns: 1fr;
  }

  .modal-panel {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-height: 85vh;
    position: fixed;
    bottom: 0;
    margin: 0;
  }

  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .mix-match-grid {
    grid-template-columns: 1fr;
  }
}

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