/* Stylesheet for Meowf Platform (meowf.ru) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;600;800;900&display=swap');

:root {
  --font-sans: 'Inter', sans-serif;
  --font-header: 'Outfit', sans-serif;

  /* Colors */
  --bg-dark: #090a10;
  --bg-darker: #050608;
  --bg-glass: rgba(15, 18, 30, 0.65);
  --bg-glass-hover: rgba(25, 30, 50, 0.8);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-glow: rgba(245, 158, 11, 0.3);

  /* Brand Accents */
  --primary: #f59e0b; /* Amber / Orange */
  --primary-glow: rgba(245, 158, 11, 0.35);
  --primary-hover: #d97706;
  --twitch: #9146ff; /* Twitch Purple */
  --twitch-glow: rgba(145, 70, 255, 0.4);
  --twitch-hover: #772ce8;
  --premium: #a855f7; /* Supporter purple-pink */

  /* Semantic */
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;
  --text-primary: #f3f4f6;
  --text-muted: #9ca3af;

  /* Animations */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* WebGL Canvas Background */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

/* Fallback static gradient background when Canvas is hidden */
.dark-gradient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -3;
  background: radial-gradient(circle at 50% 50%, #151829 0%, #08090e 100%);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Layout Utilities */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
  width: 100%;
}

/* Glass Panels */
.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
}

.glass-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

/* Premium Glass Cards */
.glass-card {
  background: rgba(15, 18, 30, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  transition: all var(--transition-normal);
  padding: 1.1rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

/* Glass Buttons */
.glass-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  font-family: var(--font-header);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1.5px solid transparent;
  border-radius: 12px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.glass-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.1) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.glass-btn:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 8px 20px rgba(0, 0, 0, 0.3);
}

.glass-btn:active {
  transform: translateY(1px);
}

/* Primary Glass Button (Amber) */
.glass-btn-primary {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0.05) 100%);
}
.glass-btn-primary::before {
  background: linear-gradient(135deg, var(--primary) 0%, rgba(245, 158, 11, 0.1) 100%);
}
.glass-btn-primary:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.35) 0%, rgba(245, 158, 11, 0.1) 100%);
  box-shadow: 0 0 20px var(--primary-glow);
}

/* Twitch Purple Button */
.glass-btn-twitch {
  background: linear-gradient(135deg, rgba(145, 70, 255, 0.25) 0%, rgba(145, 70, 255, 0.05) 100%);
}
.glass-btn-twitch::before {
  background: linear-gradient(135deg, var(--twitch) 0%, rgba(145, 70, 255, 0.15) 100%);
}
.glass-btn-twitch:hover {
  background: linear-gradient(135deg, rgba(145, 70, 255, 0.4) 0%, rgba(145, 70, 255, 0.1) 100%);
  box-shadow: 0 0 25px var(--twitch-glow);
}

/* Shimmer effect for buttons */
.shimmer {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transform: rotate(30deg);
  animation: shimmer-anim 4s infinite linear;
  pointer-events: none;
}
@keyframes shimmer-anim {
  0% { transform: translateX(-100%) rotate(30deg); }
  100% { transform: translateX(100%) rotate(30deg); }
}

/* Inputs & Form Controls */
.neu-input {
  width: 100%;
  padding: 0.85rem 1.2rem;
  border-radius: 12px;
  background: rgba(5, 6, 8, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.5);
  transition: all var(--transition-fast);
}

.neu-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.5), 0 0 10px rgba(245, 158, 11, 0.2);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-equipped {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-owned {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-locked {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-channel {
  background: rgba(245, 158, 11, 0.15);
  color: var(--primary);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-platform {
  background: rgba(168, 85, 247, 0.15);
  color: var(--premium);
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.badge-rarity {
  text-transform: uppercase;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
}

.badge-rarity-common {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
}

.badge-rarity-rare {
  background: rgba(251, 191, 36, 0.15);
  color: #fcd34d;
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.badge-price {
  background: rgba(34, 211, 238, 0.12);
  color: #67e8f9;
}

.coin-balance-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.25);
  font-weight: 700;
  color: #fcd34d;
}

.parachute-readonly-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
}

.parachute-readonly-preview {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0,0,0,0.3);
}

.parachute-readonly-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.skin-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
}

/* Admin themes */
.admin-themes-page {
  padding: 3rem 0;
}

.admin-theme-create-form {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-theme-create-form .neu-input {
  flex: 1;
  min-width: 160px;
}

.admin-themes-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.admin-theme-card {
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-theme-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.admin-theme-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-theme-title {
  font-family: var(--font-header);
  font-size: 1.25rem;
  margin: 0 0 0.35rem;
}

.admin-theme-streamer {
  margin: 0;
  font-size: 0.9rem;
  color: #fff;
}

.admin-theme-login {
  color: var(--text-muted);
  margin-left: 0.35rem;
}

.admin-theme-meta {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.admin-theme-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.admin-btn-danger {
  border-color: rgba(239, 68, 68, 0.35) !important;
  color: #f87171 !important;
}

.admin-assets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 0.75rem;
  max-width: 420px;
}

.admin-asset-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: border-color 0.2s, background 0.2s;
}

.admin-asset-card:hover {
  border-color: var(--primary);
  background: rgba(245, 158, 11, 0.08);
}

.admin-asset-card--filled {
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.12);
}

.admin-asset-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.admin-asset-card .admin-asset-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  font-size: 0.65rem;
  text-align: center;
  padding: 0.25rem;
  background: rgba(0, 0, 0, 0.65);
  color: var(--text-muted);
}

.admin-asset-plus {
  font-size: 1.75rem;
  line-height: 1;
  color: var(--primary);
  font-weight: 300;
}

.admin-skins-section {
  margin-top: 1.25rem;
}

.admin-skins-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-skins-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.admin-skin-card {
  position: relative;
  width: 100px;
  padding: 0.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
  text-align: center;
}

.admin-skin-preview {
  width: 72px;
  height: 72px;
  margin: 0 auto 0.5rem;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.admin-skin-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.admin-skin-name {
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  line-height: 1.2;
}

.admin-skin-delete {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.85);
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
}

.admin-skin-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100px;
  min-height: 120px;
  border-radius: 12px;
  border: 1px dashed rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.06);
  color: var(--primary);
  cursor: pointer;
  font-size: 0.7rem;
}

.admin-skin-add:hover {
  background: rgba(245, 158, 11, 0.12);
}

.admin-skin-dialog {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  background: var(--bg-darker, #0f1218);
  color: #fff;
  max-width: 480px;
  width: calc(100% - 2rem);
}

.admin-skin-dialog::backdrop {
  background: rgba(0, 0, 0, 0.65);
}

.admin-skin-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.admin-skin-form-grid label span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.admin-skin-form-grid .neu-input {
  width: 100%;
}

/* Header & Demo Swapper */
header.app-header {
  border-bottom: 1px solid var(--border-glass);
  background: rgba(9, 10, 16, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.5rem 0;
}

.header-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: var(--font-header);
  font-weight: 900;
  font-size: 1.35rem;
  color: #fff;
  letter-spacing: -0.03em;
  flex-shrink: 0;
  justify-self: start;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  justify-self: center;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 1;
  min-width: 0;
  justify-content: flex-end;
  justify-self: end;
}

.brand-logo img {
  height: 32px;
}

.logo-orange {
  color: var(--primary);
}

.header-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.header-nav a:hover,
.header-nav a.active {
  color: #fff;
}

#router-view {
  position: relative;
  z-index: 1;
}

.landing-page .glass-panel {
  background: rgba(10, 12, 18, 0.55);
  backdrop-filter: blur(12px);
}

/* Viewer / Streamer mode toggle */
.mode-toggle {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  padding: 0.2rem;
  border-radius: 10px;
  font-size: 0.75rem;
  min-width: 9.5rem;
}

.mode-toggle-slider {
  position: absolute;
  top: 0.25rem;
  left: 0.25rem;
  width: calc(50% - 0.25rem);
  height: calc(100% - 0.5rem);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.35), rgba(168, 85, 247, 0.25));
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.25);
  transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
  pointer-events: none;
  z-index: 0;
}

.mode-toggle.mode-streamer .mode-toggle-slider {
  transform: translateX(100%);
}

.mode-toggle-btn {
  position: relative;
  z-index: 1;
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.25s ease;
}

.mode-toggle-btn.active {
  color: #fff;
}

.mode-toggle-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.header-actions.is-authenticated .mode-toggle {
  display: none !important;
}

/* User menu dropdown */
.user-menu {
  position: relative;
}

.user-menu-trigger {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: 999px;
  padding: 0.35rem 0.5rem 0.35rem 0.85rem;
  cursor: pointer;
  color: inherit;
  transition: background 0.2s, border-color 0.2s;
}

.user-menu-trigger:hover,
.user-menu-trigger[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.user-menu-chevron {
  color: var(--text-muted);
  transition: transform 0.25s ease;
}

.user-menu-trigger[aria-expanded="true"] .user-menu-chevron {
  transform: rotate(180deg);
}

.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 200px;
  background: rgba(12, 14, 22, 0.95);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 0.35rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 200;
}

.user-menu-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-menu-header {
  display: none;
  padding: 0.5rem 0.85rem 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 0.25rem;
}

.user-menu-header .user-name {
  max-width: none;
}

.user-menu-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  text-align: left;
}

.user-menu-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.user-menu-item-danger {
  color: var(--error);
}

.user-menu-item-danger:hover {
  background: rgba(239, 68, 68, 0.1);
}

.user-widget-info {
  text-align: right;
  min-width: 0;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--primary);
  background: var(--bg-darker);
  flex-shrink: 0;
}

.user-name {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.user-tier {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.landing-steps {
  padding: 1.25rem 0 2rem;
}

.landing-steps-title {
  font-family: var(--font-header);
  font-size: 1.4rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1.25rem;
}

.landing-cta {
  padding: 0 0 2.5rem;
}

.landing-cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 1.1rem 1.25rem;
  background: rgba(10, 12, 18, 0.55);
  backdrop-filter: blur(12px);
}

.landing-page .glass-card {
  background: rgba(10, 12, 18, 0.5);
  backdrop-filter: blur(10px);
}

/* Landing Page (Hero) */
.hero-section {
  padding: 3.5rem 0 2rem;
  text-align: center;
  position: relative;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-title {
  font-family: var(--font-header);
  font-size: clamp(1.85rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 0.85rem;
  background: linear-gradient(135deg, #fff 40%, rgba(255, 255, 255, 0.6) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.12));
}

.hero-desc {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 1.5rem auto;
  line-height: 1.55;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.feature-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 0.85rem;
  font-size: 1.25rem;
}

.feature-title {
  font-family: var(--font-header);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.feature-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.feature-card {
  text-align: left;
}

/* Products Cards */
.products-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  padding: 1.25rem 0 2rem;
}

.product-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
}

.product-title {
  font-family: var(--font-header);
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0.65rem 0;
}

.product-desc {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.5;
  font-size: 0.875rem;
  flex-grow: 1;
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Locker Section (Viewer) */
.locker-container {
  max-width: 800px;
  margin: 1.25rem auto;
  padding: 0;
}

.locker-container--wide {
  max-width: 1040px;
}

.locker-shop-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1rem;
  align-items: start;
}

.locker-preview-panel {
  position: sticky;
  top: 1rem;
  padding: 1rem;
}

.locker-preview-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.locker-preview-host {
  min-height: 200px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(5, 8, 14, 0.6);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
}

.locker-preview-host canvas {
  width: 100%;
  height: auto;
  display: block;
}

.locker-character-preview {
  width: 100%;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.catalog-sprite-preview {
  min-height: 180px;
  background: radial-gradient(ellipse at 50% 55%, rgba(35, 45, 70, 0.95), rgba(12, 14, 22, 0.98));
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.catalog-sprite-img,
.cosmetic-thumb,
.loadout-slot-thumb {
  object-fit: contain;
  background: transparent;
}

.locker-character-preview img {
  max-width: 160px;
  max-height: 160px;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.cosmetic-effect-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: radial-gradient(ellipse at 50% 55%, rgba(35, 45, 70, 0.95), rgba(12, 14, 22, 0.98));
  flex-shrink: 0;
}

.cosmetic-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: radial-gradient(circle at 50% 50%, rgba(35, 45, 70, 0.9), rgba(12, 14, 22, 0.95));
  padding: 2px;
}

.loadout-slot-thumb {
  background: radial-gradient(circle at 50% 50%, rgba(35, 45, 70, 0.9), rgba(12, 14, 22, 0.95));
  padding: 2px;
}

.locker-preview-meta {
  margin-top: 1rem;
}

.locker-preview-title {
  font-family: var(--font-header);
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.locker-preview-hint {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.locker-preview-empty {
  color: var(--text-muted);
  font-size: 2rem;
}

.skin-card.selected {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.admin-layout {
  max-width: 1200px;
}

.channel-header-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.channel-info {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.channel-avatar-large {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: var(--bg-darker);
}

.channel-name {
  font-family: var(--font-header);
  font-size: 1.5rem;
  font-weight: 800;
}

.channel-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.2rem;
}

/* Tabs */
.tabs-header {
  display: flex;
  gap: 0.5rem;
  background: rgba(5, 6, 8, 0.4);
  border: 1px solid var(--border-glass);
  padding: 0.35rem;
  border-radius: 14px;
  margin-bottom: 2rem;
}

.tab-btn {
  flex: 1;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  color: #fff;
}

.tab-btn.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Skin Grid */
.skin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.25rem;
}

.skin-card {
  background: rgba(15, 18, 30, 0.4);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 1rem;
  text-align: center;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  cursor: pointer;
}

.skin-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.skin-card.equipped {
  border-color: var(--success);
  background: rgba(16, 185, 129, 0.05);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

.skin-scope-indicator {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.skin-preview {
  width: 76px;
  height: 76px;
  border-radius: 12px;
  background: var(--bg-darker);
  margin: 0.75rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.skin-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.skin-name {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.skin-action-btn {
  width: 100%;
  padding: 0.45rem;
  border-radius: 8px;
  border: none;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-equip {
  background: var(--primary);
  color: var(--bg-darker);
}

.btn-equip:hover {
  background: var(--primary-hover);
}

.btn-unequip {
  background: rgba(239, 68, 68, 0.15);
  color: var(--error);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-unequip:hover {
  background: rgba(239, 68, 68, 0.25);
}

.btn-locked {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  cursor: not-allowed;
}

.locker-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.locker-empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Dashboard Sidebar Layout */
.dashboard-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - 56px);
  max-width: 1100px;
  margin: 0 auto;
}

.dashboard-sidebar {
  border-right: 1px solid var(--border-glass);
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: rgba(9, 10, 16, 0.4);
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.sidebar-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.sidebar-link.active {
  color: var(--primary);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.dashboard-content {
  padding: 1.25rem;
  overflow-y: auto;
}

/* Mobile bottom navigation */
.mobile-bottom-nav {
  display: none;
}

/* Theme Selector Grid */
.theme-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0 2.5rem 0;
}

.theme-card {
  border: 1.5px solid var(--border-glass);
  background: var(--bg-glass);
  border-radius: 16px;
  padding: 0.5rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: center;
}

.theme-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.25);
}

.theme-card.active {
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

.theme-card-preview {
  height: 100px;
  border-radius: 10px;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.theme-preview-autumn {
  background: linear-gradient(135deg, #78350f, #f59e0b);
}
.theme-preview-space_pixel {
  background: linear-gradient(135deg, #1e1b4b, #6366f1);
}
.theme-preview-underwater {
  background: linear-gradient(135deg, #134e5e, #71b280);
}
.theme-preview-cats {
  background: linear-gradient(135deg, #27272a, #f97316);
}

.theme-card-name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

/* Settings sliders */
.settings-group {
  margin-bottom: 1.5rem;
}

.settings-label-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.settings-slider {
  width: 100%;
  accent-color: var(--primary);
  background: rgba(255, 255, 255, 0.1);
  height: 6px;
  border-radius: 3px;
  outline: none;
}

/* Modals & Dialogs */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  width: 100%;
  max-width: 500px;
  background: rgba(15, 18, 30, 0.9);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-title {
  font-family: var(--font-header);
  font-size: 1.35rem;
  font-weight: 800;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color var(--transition-fast);
}

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

/* Search Dropdown Viewer list */
.viewers-search-wrapper {
  position: relative;
  margin-bottom: 1.5rem;
}

/* Toast System */
#toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: rgba(15, 18, 30, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  animation: toast-slide-in 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  min-width: 250px;
}

.toast-success {
  border-left: 4px solid var(--success);
}

.toast-error {
  border-left: 4px solid var(--error);
}

@keyframes toast-slide-in {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* User tables and CRUD lists */
.meowf-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.meowf-table th,
.meowf-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.meowf-table th {
  font-family: var(--font-header);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Compact page sections (override inline paddings) */
#router-view .container {
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
}

#router-view .glass-panel[style*="padding: 4rem"],
#router-view .glass-panel[style*="padding: 6rem"] {
  padding: 1.5rem 1rem !important;
}

/* responsive adaptivity */
@media (max-width: 768px) {
  body {
    padding-bottom: calc(3.75rem + env(safe-area-inset-bottom, 0px));
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .header-nav {
    display: none;
  }

  .header-nav a {
    font-size: 0.85rem;
  }

  .glass-btn-twitch span:not(.iconify):not(.shimmer) {
    display: none;
  }

  .glass-btn-twitch {
    padding: 0.5rem 0.75rem;
  }

  .glass-btn-twitch .iconify {
    margin: 0;
  }

  .mode-toggle {
    min-width: 8.5rem;
    font-size: 0.7rem;
  }

  .mode-toggle-btn {
    padding: 0.3rem 0.5rem;
  }

  .user-widget-info {
    display: none;
  }

  .user-menu-trigger {
    padding: 0.2rem;
    border-radius: 50%;
    border: none;
    background: transparent;
  }

  .user-menu-chevron {
    display: none;
  }

  .user-avatar {
    width: 34px;
    height: 34px;
  }

  .user-menu-header {
    display: block;
  }

  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 150;
    background: rgba(9, 10, 16, 0.95);
    border-top: 1px solid var(--border-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 0.35rem 0.5rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
    justify-content: space-around;
    gap: 0.25rem;
  }

  .mobile-nav-link {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.35rem 0.25rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 600;
    border-radius: 10px;
    transition: color 0.2s, background 0.2s;
  }

  .mobile-nav-link.active {
    color: var(--primary);
    background: rgba(245, 158, 11, 0.1);
  }

  .hero-section {
    padding: 2rem 0 1.25rem;
  }

  .hero-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  .hero-buttons .glass-btn {
    width: 100%;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }

  .landing-cta-panel {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .landing-cta-panel .glass-btn {
    width: 100%;
  }

  .products-container {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 0.75rem 0 1.5rem;
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .dashboard-sidebar {
    flex-direction: row;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-glass);
    padding: 0.65rem 0.5rem;
    -webkit-overflow-scrolling: touch;
  }

  .sidebar-link {
    white-space: nowrap;
    font-size: 0.8rem;
    padding: 0.45rem 0.65rem;
  }

  .dashboard-content {
    padding: 1rem;
  }

  .channel-header-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .channel-avatar-large {
    width: 48px;
    height: 48px;
  }

  .channel-name {
    font-size: 1.2rem;
  }

  .meowf-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .meowf-table th,
  .meowf-table td {
    padding: 0.65rem 0.5rem;
    font-size: 0.8rem;
  }

  .theme-selector-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .skin-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
  }

  .locker-shop-layout {
    grid-template-columns: 1fr;
  }

  .locker-preview-panel {
    position: static;
  }

  #toast-container {
    left: 1rem;
    right: 1rem;
    bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
  }

  .toast {
    min-width: 0;
    width: 100%;
  }

  .modal-container {
    margin: 1rem;
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
  }
}

@media (max-width: 380px) {
  .brand-logo {
    font-size: 1.15rem;
  }

  .brand-logo .iconify {
    width: 22px !important;
  }

  .mode-toggle {
    min-width: 7.5rem;
  }
}

/* ─── EFFECT PALETTE (color picker for trail effects) ────────────────── */
.effect-palette-row {
  animation: fadeInUp 0.3s ease;
}

.effect-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.palette-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
  position: relative;
  flex-shrink: 0;
}

.palette-dot:hover {
  transform: scale(1.3);
}

.palette-dot.active {
  border-color: #fff;
  box-shadow: 0 0 12px rgba(255,255,255,0.55);
  transform: scale(1.2);
}

.palette-dot-custom {
  background: linear-gradient(135deg, #f59e0b, #a855f7, #22d3ee);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
}

/* ─── EFFECT TYPE TAG inside skin card ──────────────────────────────── */
.effect-type-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

/* ─── SKIN CARD — EFFECT VARIANT ────────────────────────────────────── */
.skin-card {
  position: relative;
}

.skin-card--effect {
  overflow: hidden;
}

.skin-card-effect-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 110%, var(--eff-color-fade, rgba(245,158,11,0.2)), transparent 70%);
  pointer-events: none;
  z-index: 0;
  border-radius: inherit;
  transition: opacity 0.3s;
}



.skin-card--effect > * {
  position: relative;
  z-index: 1;
}

.skin-card-effect-bg {
  z-index: 0 !important;
}

/* Mini canvas inside effect card */
.skin-effect-mini-canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border-radius: 10px;
  display: block;
}

/* skin cards in effect tab get a slightly taller preview area */
.skin-card--effect .skin-preview {
  height: 80px;
  overflow: hidden;
}

/* ─── EFFECT SHOP HINT ────────────────────────────────────────────────── */
.effect-shop-hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.07);
  border: 1px solid rgba(245, 158, 11, 0.18);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  animation: fadeInUp 0.35s ease;
}

/* ─── ADMIN DEV BADGE in header ─────────────────────────────────────── */
.admin-dev-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  animation: pulse-glow-admin 2s infinite;
}

@keyframes pulse-glow-admin {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,0); }
  50% { box-shadow: 0 0 0 5px rgba(245,158,11,0.12); }
}

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

/* ─── BUY BUTTON animation ───────────────────────────────────────────── */
.skin-action-btn.btn-buy {
  background: linear-gradient(135deg, rgba(245,158,11,0.18) 0%, rgba(245,158,11,0.05) 100%);
  border: 1.5px solid rgba(245,158,11,0.4) !important;
  color: #fcd34d !important;
  font-weight: 700;
}

.skin-action-btn.btn-buy:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(245,158,11,0.35) 0%, rgba(245,158,11,0.15) 100%);
  box-shadow: 0 0 16px rgba(245,158,11,0.35);
  transform: translateY(-1px);
}

/* Profile hub (/me) */
.profile-page {
  padding: 2rem 0 4rem;
  max-width: 1100px;
}

.profile-header-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
}

.profile-header-avatar {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}

.profile-header-name {
  font-family: var(--font-header);
  font-size: 1.65rem;
  margin: 0 0 0.2rem;
}

.profile-header-login {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
}

.profile-header-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.profile-tabs {
  margin-bottom: 1.25rem;
}

.profile-section-title {
  font-family: var(--font-header);
  font-size: 1.25rem;
  margin: 0 0 0.35rem;
}

.profile-section-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 1.25rem;
  line-height: 1.5;
}

.profile-overview-panel,
.profile-inventory-panel {
  padding: 1.5rem 1.75rem;
}

.profile-overview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.profile-inventory-grid {
  margin-top: 0.5rem;
}

.profile-shop-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.profile-shop-bar-title {
  font-family: var(--font-header);
  font-weight: 700;
  font-size: 1.05rem;
}

.profile-shop-bar-sub {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-top: 0.15rem;
}

.locker-container--embedded {
  padding: 0;
}

.locker-container--embedded .locker-shop-layout {
  margin-top: 0;
}

@media (max-width: 720px) {
  .profile-header-card {
    flex-direction: column;
    text-align: center;
  }

  .profile-header-badges {
    justify-content: center;
  }

  .profile-shop-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ─── Compact cosmetics shop ─────────────────────────────────────────── */
.loadout-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}
.loadout-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.65rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  min-width: 72px;
}
.loadout-slot.active { border-color: var(--primary); background: rgba(245,158,11,0.08); }
.loadout-slot-label { font-size: 0.65rem; color: var(--text-muted); }
.loadout-slot-thumb { width: 36px; height: 36px; object-fit: contain; border-radius: 6px; }
.loadout-slot-empty { font-size: 0.75rem; color: var(--text-muted); }
.cosmetic-list { display: flex; flex-direction: column; gap: 0.35rem; max-height: 420px; overflow-y: auto; }
.cosmetic-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
}
.cosmetic-row:hover, .cosmetic-row.selected { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); }
.cosmetic-row-name { font-weight: 600; font-size: 0.9rem; }
.cosmetic-row-meta { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-top: 0.15rem; }
.cosmetic-row-action { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.glass-btn-sm { padding: 0.35rem 0.75rem; font-size: 0.8rem; }
.locker-filters { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.locker-filters input, .locker-filters select {
  flex: 1; min-width: 100px; padding: 0.45rem 0.65rem; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1); background: rgba(0,0,0,0.25); color: inherit;
}
.locker-shop-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; padding: 1rem; flex-wrap: wrap; }
.locker-channel-picker { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.locker-channel-picker input { padding: 0.45rem 0.65rem; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); background: rgba(0,0,0,0.25); color: inherit; }
.constructor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.constructor-grid label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.85rem; font-weight: 600; }
.constructor-grid select { padding: 0.5rem; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); background: rgba(0,0,0,0.25); color: inherit; }
.constructor-preview { min-height: 80px; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(0,0,0,0.2); border-radius: 12px; }

