/* ============================================
   SWOOP — CSS Design System
   Dark theme | Cyan/Blue gradient
   ============================================ */

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

:root {
  --bg-0: #080C14;
  --bg-1: #0D1220;
  --bg-2: #111827;
  --bg-3: #1E2A3A;
  --card:  #131E2E;
  --card-hover: #1A2840;

  --cyan:  #06B6D4;
  --cyan-light: #22D3EE;
  --blue:  #3B82F6;
  --blue-light: #60A5FA;
  --accent-grad: linear-gradient(135deg, #06B6D4 0%, #3B82F6 100%);
  --accent-grad-soft: linear-gradient(135deg, rgba(6,182,212,0.15) 0%, rgba(59,130,246,0.15) 100%);

  --text-1: #EFF6FF;
  --text-2: #94A3B8;
  --text-3: #475569;
  --success: #34D399;
  --danger:  #F87171;
  --warning: #FBBF24;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;

  --shadow: 0 4px 24px rgba(0,0,0,0.5);
  --shadow-card: 0 2px 16px rgba(0,0,0,0.4);
  --glow: 0 0 24px rgba(6,182,212,0.25);

  --nav-h: 72px;
  --header-h: 60px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html { height: 100%; overflow: hidden; }
body {
  font-family: 'Outfit', system-ui, sans-serif;
  background: var(--bg-0);
  color: var(--text-1);
  height: 100%; overflow: hidden;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

/* ═══════════ SPLASH ═══════════ */
.splash {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg-0);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 32px;
  animation: splashFade 0.4s ease 2s forwards;
}
@keyframes splashFade { to { opacity: 0; pointer-events: none; } }

.splash-logo { text-align: center; animation: splashIn 0.6s cubic-bezier(0.34,1.56,0.64,1); }
@keyframes splashIn {
  from { transform: scale(0.6) translateY(20px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}

.splash-icon {
  width: 88px; height: 88px; margin: 0 auto 16px;
  filter: drop-shadow(0 0 28px rgba(6,182,212,0.55));
  animation: iconPulse 2s ease-in-out infinite;
}
@keyframes iconPulse {
  0%,100% { filter: drop-shadow(0 0 20px rgba(6,182,212,0.45)); }
  50%      { filter: drop-shadow(0 0 36px rgba(6,182,212,0.7)); }
}
.splash-icon svg { width: 100%; height: 100%; }

.splash-title {
  font-size: 44px; font-weight: 800;
  background: var(--accent-grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  letter-spacing: -2px;
}
.splash-sub { font-size: 13px; color: var(--text-3); margin-top: 6px; letter-spacing: 0.5px; }

.splash-loader { width: 120px; height: 3px; background: var(--bg-3); border-radius: 100px; overflow: hidden; }
.loader-bar { height: 100%; background: var(--accent-grad); border-radius: 100px; animation: loadAnim 1.8s ease-in-out forwards; }
@keyframes loadAnim { from { width: 0; } to { width: 100%; } }

/* ═══════════ APP SHELL ═══════════ */
.app { position: fixed; inset: 0; display: flex; flex-direction: column; background: var(--bg-0); overflow: hidden; }
.hidden { display: none !important; }

/* ═══════════ SCREENS ═══════════ */
.screen {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  background: var(--bg-0);
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.screen.active { transform: translateX(0); z-index: 10; }
.screen.slide-out { transform: translateX(-30%); }

#screen-auth { transform: translateX(0); overflow-y: auto; overflow-x: hidden; padding-bottom: 32px; }

.screen-scroll {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  padding: 16px 16px calc(var(--nav-h) + var(--safe-bottom) + 16px);
  -webkit-overflow-scrolling: touch;
}

/* ═══════════ AUTH ═══════════ */
.auth-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.auth-blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.25; }
.blob-1 { width: 320px; height: 320px; background: radial-gradient(circle, #06B6D4, transparent); top: -120px; right: -80px; animation: blobFloat 9s ease-in-out infinite; }
.blob-2 { width: 260px; height: 260px; background: radial-gradient(circle, #3B82F6, transparent); bottom: 40px; left: -90px; animation: blobFloat 11s ease-in-out infinite reverse; }
@keyframes blobFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(20px,-20px) scale(1.1); }
}

.auth-container { position: relative; z-index: 1; max-width: 420px; margin: 0 auto; padding: 60px 24px 32px; }

.auth-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 36px; }
.logo-icon { width: 46px; height: 46px; flex-shrink: 0; filter: drop-shadow(0 0 16px rgba(6,182,212,0.5)); }
.logo-icon svg { width: 100%; height: 100%; }
.logo-text { font-size: 34px; font-weight: 800; background: var(--accent-grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; letter-spacing: -1px; }

.auth-tabs {
  display: flex; position: relative;
  background: var(--bg-2); border-radius: var(--radius);
  padding: 4px; margin-bottom: 28px; overflow: hidden;
}
.auth-tab {
  flex: 1; padding: 10px; border: none; background: transparent;
  color: var(--text-3); font-family: inherit; font-size: 15px; font-weight: 600;
  cursor: pointer; border-radius: calc(var(--radius) - 4px);
  transition: color 0.2s; position: relative; z-index: 1;
}
.auth-tab.active { color: var(--text-1); }
.tab-indicator {
  position: absolute; top: 4px; bottom: 4px;
  width: calc(50% - 4px); background: var(--bg-3);
  border-radius: calc(var(--radius) - 4px); left: 4px;
  transition: left 0.3s cubic-bezier(0.4,0,0.2,1);
  box-shadow: var(--shadow-card);
}
.tab-indicator.right { left: calc(50%); }

/* ═══════════ FIELDS ═══════════ */
.auth-form { display: flex; flex-direction: column; gap: 20px; }
.auth-form.hidden { display: none; }

.field-group { display: flex; flex-direction: column; gap: 8px; }
.field-label { font-size: 12px; font-weight: 700; color: var(--text-2); letter-spacing: 0.8px; text-transform: uppercase; }
.required { color: var(--cyan); }

.field-wrap {
  display: flex; align-items: center;
  background: var(--bg-2); border: 1.5px solid var(--bg-3);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field-wrap:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(6,182,212,0.12); }

.field-icon { padding: 0 10px 0 14px; font-size: 18px; color: var(--text-3); }
.field-input {
  flex: 1; padding: 14px 16px; background: transparent; border: none; outline: none;
  color: var(--text-1); font-family: inherit; font-size: 15px;
}
.field-wrap .field-input { padding-left: 0; }

.field-select {
  appearance: none; cursor: pointer;
  background: var(--bg-2); border: 1.5px solid var(--bg-3);
  border-radius: var(--radius); padding: 14px 16px;
  width: 100%; color: var(--text-1); font-family: inherit; font-size: 15px;
  transition: border-color 0.2s; outline: none;
}
.field-select:focus { border-color: var(--cyan); }
.select-wrap { position: relative; }
.select-wrap::after { content: '▾'; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }

.field-textarea {
  width: 100%; padding: 14px 16px;
  background: var(--bg-2); border: 1.5px solid var(--bg-3);
  border-radius: var(--radius); color: var(--text-1);
  font-family: inherit; font-size: 15px; resize: vertical; min-height: 100px; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field-textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(6,182,212,0.12); }
.field-counter { font-size: 12px; color: var(--text-3); text-align: right; }

/* PIN */
.pin-inputs { display: flex; gap: 8px; justify-content: center; padding: 8px 0; }
.pin-cell {
  width: 50px; height: 56px;
  background: var(--bg-2); border: 1.5px solid var(--bg-3);
  border-radius: var(--radius); text-align: center;
  font-size: 22px; font-weight: 700; color: var(--text-1);
  font-family: inherit; outline: none; transition: all 0.2s;
}
.pin-cell:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(6,182,212,0.15); transform: scale(1.05); }
.pin-cell.filled { border-color: var(--cyan-light); background: rgba(6,182,212,0.08); }

/* Region */
.region-selector { display: flex; flex-direction: column; gap: 8px; }
.region-option {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; background: var(--bg-2);
  border: 1.5px solid var(--bg-3); border-radius: var(--radius);
  cursor: pointer; transition: all 0.2s;
}
.region-option.selected { border-color: var(--cyan); background: rgba(6,182,212,0.08); }
.region-flag { font-size: 24px; }
.region-name { font-weight: 600; font-size: 15px; }
.region-sub { font-size: 12px; color: var(--text-3); }
.region-check { margin-left: auto; color: var(--cyan); font-weight: 700; font-size: 18px; opacity: 0; transition: opacity 0.2s; }
.region-option.selected .region-check { opacity: 1; }
.region-soon { display: flex; align-items: center; justify-content: center; padding: 10px; font-size: 12px; color: var(--text-3); border: 1px dashed var(--bg-3); border-radius: var(--radius); }

/* Error */
.form-error {
  padding: 12px 16px; background: rgba(248,113,113,0.1);
  border: 1px solid rgba(248,113,113,0.3); border-radius: var(--radius-sm);
  color: var(--danger); font-size: 14px;
  animation: shake 0.4s cubic-bezier(0.36,0.07,0.19,0.97);
}
@keyframes shake { 0%,100% { transform: translateX(0); } 20%,60% { transform: translateX(-6px); } 40%,80% { transform: translateX(6px); } }

/* ═══════════ BUTTONS ═══════════ */
.btn-primary {
  position: relative; overflow: hidden;
  padding: 16px 24px; background: var(--accent-grad);
  border: none; border-radius: var(--radius); color: white;
  font-family: inherit; font-size: 16px; font-weight: 700; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 4px 20px rgba(6,182,212,0.3);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 28px rgba(6,182,212,0.45); }
.btn-primary:active { transform: scale(0.97); }
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0.1); transform: translateX(-100%) skewX(-15deg);
  transition: transform 0.4s;
}
.btn-primary:hover::before { transform: translateX(100%) skewX(-15deg); }

.btn-loader { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.3); border-top-color: white; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn {
  width: 36px; height: 36px; background: var(--bg-2); border: none;
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2); transition: all 0.2s;
}
.icon-btn:hover { background: var(--bg-3); color: var(--text-1); }
.icon-btn:active { transform: scale(0.9); }

/* ═══════════ HEADER ═══════════ */
.app-header {
  height: var(--header-h); display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; background: rgba(8,12,20,0.97);
  backdrop-filter: blur(20px); border-bottom: 1px solid var(--bg-2);
  flex-shrink: 0; z-index: 100;
}
.header-left { display: flex; align-items: center; gap: 12px; }
.header-logo {
  width: 36px; height: 36px; background: var(--accent-grad);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px; box-shadow: 0 2px 12px rgba(6,182,212,0.35);
}
.header-title { font-size: 18px; font-weight: 700; line-height: 1.2; }
.header-region { font-size: 11px; color: var(--text-3); }
.header-right { display: flex; align-items: center; gap: 8px; }

.avatar-btn {
  width: 36px; height: 36px; border-radius: 50%; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; color: white;
  transition: transform 0.2s, box-shadow 0.2s; background: var(--accent-grad);
}
.avatar-btn:hover { transform: scale(1.08); box-shadow: 0 0 12px rgba(6,182,212,0.4); }

/* ═══════════ SEARCH ═══════════ */
.search-bar {
  padding: 8px 16px; background: rgba(8,12,20,0.97);
  backdrop-filter: blur(20px); border-bottom: 1px solid var(--bg-2);
  animation: slideDown 0.25s ease; flex-shrink: 0;
}
@keyframes slideDown { from { transform: translateY(-100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.search-wrap {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-2); border-radius: var(--radius-sm); padding: 10px 14px;
  border: 1.5px solid var(--bg-3);
}
.search-wrap svg { color: var(--text-3); flex-shrink: 0; }
.search-input { flex: 1; background: none; border: none; outline: none; color: var(--text-1); font-family: inherit; font-size: 15px; }
.search-clear { background: none; border: none; cursor: pointer; color: var(--text-3); font-size: 14px; padding: 0 4px; }

/* ═══════════ CATEGORIES ═══════════ */
.categories-scroll { display: flex; gap: 8px; padding: 12px 16px; overflow-x: auto; scrollbar-width: none; flex-shrink: 0; }
.categories-scroll::-webkit-scrollbar { display: none; }
.cat-chip {
  flex-shrink: 0; padding: 7px 14px; background: var(--bg-2);
  border: 1.5px solid var(--bg-3); border-radius: 100px;
  color: var(--text-2); font-family: inherit; font-size: 13px; font-weight: 500;
  cursor: pointer; white-space: nowrap; transition: all 0.2s;
}
.cat-chip.active, .cat-chip:hover { background: rgba(6,182,212,0.12); border-color: var(--cyan); color: var(--cyan-light); }
.cat-chip.active { font-weight: 600; }

/* ═══════════ LISTINGS ═══════════ */
#screen-main { display: flex; flex-direction: column; padding-bottom: var(--nav-h); }

.listings-grid {
  flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  padding: 0 12px calc(var(--safe-bottom) + 12px);
  overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch; align-content: start;
}

.listing-skeleton { background: var(--card); border-radius: var(--radius); height: 220px; animation: shimmer 1.5s ease-in-out infinite; }
@keyframes shimmer { 0%,100% { opacity: 0.4; } 50% { opacity: 0.7; } }

.listing-card {
  background: var(--card); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  animation: cardIn 0.35s ease both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(12px) scale(0.96); } to { opacity: 1; transform: none; } }
.listing-card:hover { border-color: var(--cyan); box-shadow: var(--glow); transform: translateY(-2px); }
.listing-card:active { transform: scale(0.97); }

.card-image { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--bg-3); display: block; }
.card-image-placeholder { width: 100%; aspect-ratio: 4/3; background: var(--bg-3); display: flex; align-items: center; justify-content: center; font-size: 36px; }
.brand-card-ph { aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; opacity: 0.9; }
.brand-card-emoji { font-size: 44px; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4)); }
.card-brand-tag { font-size: 11px; font-weight: 700; color: var(--cyan-light); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 4px; }
.card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; }
.card-price { font-size: 17px; font-weight: 700; background: var(--accent-grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-top: 4px; }
.card-price-free { -webkit-text-fill-color: var(--success); color: var(--success); }
.card-title { font-size: 14px; font-weight: 600; color: var(--text-1); line-height: 1.35; margin-top: 2px; }
.card-meta { display: flex; align-items: center; gap: 4px; margin-top: 8px; font-size: 11px; color: var(--text-3); }

/* ═══════════ EMPTY STATE ═══════════ */
.empty-state { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; text-align: center; gap: 12px; }
.empty-icon { font-size: 64px; animation: bounce 2s ease infinite; }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.empty-title { font-size: 18px; font-weight: 700; color: var(--text-2); }
.empty-sub { font-size: 14px; color: var(--text-3); line-height: 1.5; }

/* ═══════════ BOTTOM NAV ═══════════ */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: calc(var(--nav-h) + var(--safe-bottom));
  display: flex; align-items: center; justify-content: space-around;
  background: rgba(8,12,20,0.97); backdrop-filter: blur(24px);
  border-top: 1px solid var(--bg-2); padding-bottom: var(--safe-bottom); z-index: 999;
}
.nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0; background: none; border: none; cursor: pointer; color: var(--text-3); transition: color 0.2s; }
.nav-item.active { color: var(--cyan-light); }
.nav-icon { width: 22px; height: 22px; }
.nav-label { font-size: 11px; font-weight: 600; font-family: inherit; }

.nav-create-btn { color: var(--text-3); }
.nav-create-circle {
  width: 52px; height: 52px; background: var(--accent-grad); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; margin-top: -20px; box-shadow: 0 4px 20px rgba(6,182,212,0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-create-btn:hover .nav-create-circle { transform: scale(1.08); box-shadow: 0 6px 28px rgba(6,182,212,0.6); }
.nav-create-btn:active .nav-create-circle { transform: scale(0.95); }

/* ═══════════ DETAIL SCREENS ═══════════ */
.detail-header {
  height: var(--header-h); display: flex; align-items: center;
  padding: 0 12px; background: rgba(8,12,20,0.97);
  backdrop-filter: blur(20px); border-bottom: 1px solid var(--bg-2);
  flex-shrink: 0; gap: 8px;
}
.back-btn {
  width: 36px; height: 36px; background: var(--bg-2); border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-2); transition: all 0.2s; flex-shrink: 0;
}
.back-btn:hover { background: var(--bg-3); color: var(--text-1); }
.back-btn:active { transform: scale(0.9); }
.detail-header-title { flex: 1; font-size: 16px; font-weight: 700; text-align: center; }

.detail-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; padding-bottom: 100px; }

.detail-brand-banner { width: 100%; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; opacity: 0.9; }
.detail-brand-emoji { font-size: 80px; filter: drop-shadow(0 4px 16px rgba(0,0,0,0.5)); }

.detail-body { padding: 20px 16px; }
.detail-category-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; background: rgba(6,182,212,0.1); border: 1px solid rgba(6,182,212,0.25); border-radius: 100px; font-size: 12px; font-weight: 600; color: var(--cyan-light); margin-bottom: 12px; }
.detail-price { font-size: 32px; font-weight: 800; background: var(--accent-grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 8px; line-height: 1; }
.detail-price-free { font-size: 24px; -webkit-text-fill-color: var(--success); color: var(--success); }
.detail-title { font-size: 20px; font-weight: 700; margin-bottom: 16px; line-height: 1.3; }
.detail-stats { display: flex; gap: 16px; margin-bottom: 20px; padding: 12px 16px; background: var(--bg-2); border-radius: var(--radius-sm); }
.stat-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-3); }
.detail-desc-label { font-size: 12px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 8px; }
.detail-desc { font-size: 15px; color: var(--text-2); line-height: 1.7; }

.seller-card { margin: 20px 16px 0; padding: 16px; background: var(--bg-2); border-radius: var(--radius); display: flex; align-items: center; gap: 14px; cursor: pointer; transition: background 0.2s; border: 1px solid var(--bg-3); }
.seller-card:hover { background: var(--card-hover); border-color: var(--cyan); }
.seller-avatar { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 20px; color: white; flex-shrink: 0; }
.seller-name { font-size: 16px; font-weight: 700; }
.seller-region { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.seller-arrow { margin-left: auto; color: var(--text-3); font-size: 20px; }

.detail-actions { position: fixed; bottom: 0; left: 0; right: 0; padding: 16px; background: rgba(8,12,20,0.97); backdrop-filter: blur(24px); border-top: 1px solid var(--bg-2); display: flex; gap: 10px; }

.btn-secondary { padding: 14px 20px; background: var(--bg-2); border: 1.5px solid var(--bg-3); border-radius: var(--radius); color: var(--text-2); font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.btn-secondary:hover { border-color: var(--cyan); color: var(--text-1); }
.btn-danger { background: rgba(248,113,113,0.1); border-color: rgba(248,113,113,0.3); color: var(--danger); }
.btn-danger:hover { background: rgba(248,113,113,0.2); border-color: var(--danger); }

/* ═══════════ PROFILE ═══════════ */
.profile-hero { padding: 28px 20px 20px; display: flex; flex-direction: column; align-items: center; gap: 14px; background: linear-gradient(180deg, var(--bg-2) 0%, transparent 100%); }
.profile-avatar-big { width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 32px; color: white; box-shadow: 0 4px 20px rgba(0,0,0,0.4); border: 3px solid var(--bg-3); }
.profile-username { font-size: 22px; font-weight: 800; }
.profile-region { font-size: 13px; color: var(--text-3); }

.profile-stats-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 16px 16px; margin-top: 16px; }
.profile-stat { background: var(--card); border-radius: var(--radius); padding: 16px; text-align: center; border: 1px solid var(--bg-3); }
.stat-num { font-size: 24px; font-weight: 800; background: var(--accent-grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label { font-size: 12px; color: var(--text-3); margin-top: 2px; }

.profile-section-label { font-size: 11px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: 1px; padding: 0 16px; margin: 4px 0 12px; }

.profile-listing-card { margin: 0 16px 10px; background: var(--card); border-radius: var(--radius); overflow: hidden; cursor: pointer; border: 1px solid var(--bg-3); display: flex; transition: border-color 0.2s; }
.profile-listing-card:hover { border-color: var(--cyan); }
.profile-listing-img { width: 80px; height: 80px; object-fit: cover; flex-shrink: 0; background: var(--bg-3); display: block; }
.profile-listing-img-ph { width: 80px; height: 80px; flex-shrink: 0; background: var(--bg-3); display: flex; align-items: center; justify-content: center; font-size: 28px; }
.profile-listing-body { padding: 12px 14px; flex: 1; min-width: 0; }
.profile-listing-title { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-listing-price { font-size: 16px; font-weight: 700; background: var(--accent-grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-top: 4px; }
.profile-listing-meta { font-size: 11px; color: var(--text-3); margin-top: 6px; }

.seller-profile-hero { padding: 32px 20px 24px; display: flex; flex-direction: column; align-items: center; gap: 14px; background: linear-gradient(180deg, var(--bg-2) 0%, transparent 100%); }

/* ═══════════ CREATE ═══════════ */
.create-form { padding: 16px; display: flex; flex-direction: column; gap: 20px; }

/* Brand Grid */
.brand-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.brand-btn {
  padding: 12px 10px;
  background: var(--bg-2); border: 1.5px solid var(--bg-3);
  border-radius: var(--radius); color: var(--text-2);
  font-family: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.18s;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.brand-btn:hover { border-color: var(--cyan); color: var(--text-1); }
.brand-btn.active { background: rgba(6,182,212,0.12); border-color: var(--cyan); color: var(--cyan-light); }

/* ═══════════ TOAST ═══════════ */
.toast {
  position: fixed; bottom: calc(var(--nav-h) + 12px); left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-3); border: 1px solid var(--bg-2);
  padding: 12px 20px; border-radius: 100px;
  font-size: 14px; font-weight: 500; white-space: nowrap;
  z-index: 10000; box-shadow: var(--shadow);
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1); opacity: 0;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 100px; }

/* ═══════════ RATINGS ═══════════ */
.rating-widget {
  display: flex; gap: 4px; align-items: center; justify-content: center; margin-top: 12px;
}
.rating-star {
  font-size: 32px; color: var(--bg-3); cursor: pointer; transition: transform 0.2s, color 0.2s;
  user-select: none; -webkit-tap-highlight-color: transparent;
}
.rating-star:hover { transform: scale(1.15); }
.rating-star:active { transform: scale(0.9); }
.rating-star.filled { color: var(--warning); filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.4)); }
.rating-star.preview { color: var(--warning); opacity: 0.7; }

.rating-display {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(251, 191, 36, 0.1); border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 100px; padding: 4px 12px;
  font-size: 13px; font-weight: 700; color: var(--warning);
  margin-top: 8px;
}

/* Rating Action Buttons */
.user-rating-info {
  margin-top: 12px;
  text-align: center;
}

.rating-action-btn {
  padding: 6px 14px;
  background: var(--bg-2);
  border: 1.5px solid var(--bg-3);
  border-radius: 100px;
  color: var(--text-2);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.rating-action-btn:hover {
  border-color: var(--cyan);
  color: var(--text-1);
}
.rating-action-btn:active {
  transform: scale(0.95);
}

.rating-edit-btn {
  background: rgba(6, 182, 212, 0.08);
  border-color: rgba(6, 182, 212, 0.3);
  color: var(--cyan-light);
}
.rating-edit-btn:hover {
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--cyan);
}

.rating-delete-btn {
  background: rgba(248, 113, 113, 0.08);
  border-color: rgba(248, 113, 113, 0.25);
  color: var(--danger);
}
.rating-delete-btn:hover {
  background: rgba(248, 113, 113, 0.15);
  border-color: var(--danger);
}

/* Cooldown Badge */
.rating-cooldown-badge {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(71, 85, 105, 0.15);
  border: 1px solid var(--bg-3);
  border-radius: var(--radius-sm);
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.5;
  text-align: center;
  max-width: 220px;
}

/* Modify Count Badge */
.modify-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(71, 85, 105, 0.12);
  border: 1px solid var(--bg-3);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3);
}

/* ═══════════ UPGRADE SCREEN ═══════════ */
.upgrade-slider {
  display: flex; flex-direction: column; gap: 16px; padding-top: 8px;
}
.upgrade-card {
  background: var(--card); border: 1px solid var(--bg-3);
  border-radius: var(--radius-lg); padding: 24px;
  display: flex; flex-direction: column;
}
.upgrade-card.highlight {
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 4px 24px rgba(6, 182, 212, 0.1);
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.05) 0%, var(--card) 100%);
}
.upgrade-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.upgrade-price { font-size: 15px; color: var(--cyan-light); font-weight: 600; margin-bottom: 16px; }
.upgrade-features { list-style: none; margin-bottom: 24px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.upgrade-features li { color: var(--text-1); }
.upgrade-features li.disabled { color: var(--text-3); text-decoration: line-through; }
.upgrade-status { text-align: center; font-size: 14px; color: var(--text-3); font-weight: 600; padding: 12px 0; background: var(--bg-2); border-radius: var(--radius); }

/* Verified Badge */
.verified-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(52, 211, 153, 0.1); color: var(--success);
  padding: 4px 10px; border-radius: 100px;
  font-size: 12px; font-weight: 700; margin-top: 4px;
  border: 1px solid rgba(52, 211, 153, 0.2);
}
.verified-icon { width: 14px; height: 14px; }

/* Unverified Warning */
.unverified-warning {
  background: rgba(248, 113, 113, 0.1); border: 1px solid rgba(248, 113, 113, 0.2);
  color: var(--danger); border-radius: var(--radius);
  padding: 12px; margin: 0 20px 16px;
  font-size: 13px; font-weight: 600; line-height: 1.4;
  display: flex; gap: 10px; align-items: flex-start;
}
.unverified-warning svg { flex-shrink: 0; margin-top: 2px; }
