﻿:root {
  --pink: #FF2D6B;
  --pink-light: #FF6B95;
  --pink-dark: #CC1A52;
  --pink-glow: rgba(255,45,107,0.25);
  --purple: #8B5CF6;
  --purple-light: #A78BFA;
  --gradient-main: linear-gradient(135deg, #FF2D6B 0%, #8B5CF6 100%);
  --gradient-card: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.85) 100%);
  --gradient-hot: linear-gradient(135deg, #FF2D6B, #FF6B35);

  --bg-base: #0A0A0F;
  --bg-surface: #111118;
  --bg-card: #1A1A24;
  --bg-elevated: #22222F;
  --bg-overlay: rgba(10,10,15,0.92);
  --bg-glass: rgba(26,26,36,0.85);

  --text-primary: #FFFFFF;
  --text-secondary: #B8B8CC;
  --text-muted: #6B6B88;
  --text-disabled: #3A3A50;

  --border-subtle: rgba(255,255,255,0.06);
  --border-default: rgba(255,255,255,0.10);
  --border-strong: rgba(255,255,255,0.18);
  --border-pink: rgba(255,45,107,0.35);

  --success: #00E096;
  --success-bg: rgba(0,224,150,0.12);
  --warning: #FFB020;
  --warning-bg: rgba(255,176,32,0.12);
  --danger: #FF4757;
  --danger-bg: rgba(255,71,87,0.12);
  --info: #3D9CF5;
  --info-bg: rgba(61,156,245,0.12);
  --gold: #FFD700;

  --like-color: #00E096;
  --like-bg: rgba(0,224,150,0.15);
  --dislike-color: #FF4757;
  --dislike-bg: rgba(255,71,87,0.15);
  --superlike-color: #3D9CF5;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
  --shadow-xl: 0 16px 60px rgba(0,0,0,0.6);
  --shadow-pink: 0 8px 30px rgba(255,45,107,0.35);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.45);

  --font-ui: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-heading: 'Sora', 'Plus Jakarta Sans', sans-serif;
  --text-xs: 11px;
  --text-sm: 13px;
  --text-base: 15px;
  --text-md: 17px;
  --text-lg: 20px;
  --text-xl: 24px;
  --text-2xl: 30px;
  --text-3xl: 38px;

  --nav-height: 56px;
  --bottom-nav-height: 72px;
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);

  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --spring: 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-tap-highlight-color: transparent; }
body {
  font-family: var(--font-ui);
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.app-shell {
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
}

.app-shell {
  display: grid;
  grid-template-rows: var(--nav-height) 1fr;
}

.view {
  height: calc(100dvh - var(--nav-height) - var(--bottom-nav-height));
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: y proximity;
  padding-bottom: 16px;
}

.view-content {
  min-height: 100%;
  padding: var(--space-4);
  padding-bottom: calc(var(--bottom-nav-height) + var(--space-4));
}

.top-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-height);
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  padding: 0 var(--space-4);
  gap: var(--space-3);
}

.top-bar__logo,
.brand {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  letter-spacing: -0.5px;
}

.top-bar__left,
.top-bar__right,
.top-bar__center {
  display: flex;
  align-items: center;
}

.top-bar__left { min-width: 110px; }
.top-bar__center { flex: 1; justify-content: center; }
.top-bar__right { min-width: 110px; justify-content: flex-end; gap: var(--space-2); }

.top-bar__title {
  font-size: var(--text-md);
  font-weight: 700;
  flex: 1;
  text-align: center;
}

.top-bar__action,
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.top-bar__action:active,
.icon-btn:active { transform: scale(0.92); }

h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); font-weight: 700; }
h1 { font-size: var(--text-3xl); line-height: 1.15; letter-spacing: -1px; }
h2 { font-size: var(--text-2xl); letter-spacing: -0.5px; }
h3 { font-size: var(--text-xl); }
p { font-size: var(--text-base); line-height: 1.6; color: var(--text-secondary); }
a { color: var(--pink); text-decoration: none; transition: color var(--transition-fast); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-4); }
.text-gradient {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-family: var(--font-ui);
  font-size: var(--text-base);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  border-radius: inherit;
  transition: opacity var(--transition-fast);
}
.btn:active::after { opacity: 1; }
.btn:active { transform: scale(0.96); }

.btn-primary,
.btn--primary {
  background: var(--gradient-main);
  color: white;
  box-shadow: 0 4px 16px rgba(255,45,107,0.3);
}
.btn-primary:hover,
.btn--primary:hover {
  box-shadow: 0 6px 24px rgba(255,45,107,0.45);
  transform: translateY(-1px);
}

.btn-secondary,
.btn--secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
}

.btn-ghost,
.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-default);
}
.btn-ghost:hover,
.btn--ghost:hover { background: var(--bg-elevated); }

.btn-outline-pink {
  background: transparent;
  color: var(--pink);
  border: 1px solid var(--border-pink);
}
.btn-danger { background: var(--danger); color: white; }
.btn-success { background: var(--success); color: var(--bg-base); font-weight: 700; }
.btn-sm { padding: 8px 16px; font-size: var(--text-sm); }
.btn-lg { padding: 16px 28px; font-size: var(--text-md); }
.btn-full { width: 100%; }
.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-full);
}
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn-loading { pointer-events: none; }
.btn-loading::before {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-right: 8px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.card-glass {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
}
.card-elevated {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}
.card-interactive {
  cursor: pointer;
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}
.card-interactive:hover {
  transform: translateY(-3px);
  border-color: var(--border-pink);
  box-shadow: var(--shadow-card), 0 0 0 1px var(--border-pink);
}
.card-interactive:active { transform: scale(0.98); }

.swipe-stack,
.swipe-stage {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  height: calc(100dvh - var(--nav-height) - var(--bottom-nav-height) - 120px);
  min-height: 400px;
  max-height: 680px;
  touch-action: none;
  user-select: none;
}

.swipe-card {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: grab;
  will-change: transform;
  box-shadow: var(--shadow-xl);
  background: var(--bg-card);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.swipe-card:nth-child(1) { z-index: 3; }
.swipe-card:nth-child(2) {
  z-index: 2;
  transform: scale(0.96) translateY(10px);
  opacity: 0.85;
}
.swipe-card:nth-child(3) {
  z-index: 1;
  transform: scale(0.92) translateY(20px);
  opacity: 0.7;
}
.swipe-card:active { cursor: grabbing; }
.swipe-card.is-dragging { transition: none; box-shadow: var(--shadow-xl); }
.swipe-card.fly-left {
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.4s;
  transform: translateX(-150%) rotate(-25deg);
  opacity: 0;
}
.swipe-card.fly-right {
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.4s;
  transform: translateX(150%) rotate(25deg);
  opacity: 0;
}
.swipe-card.fly-up {
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.4s;
  transform: translateY(-150%) scale(1.1);
  opacity: 0;
}

.swipe-indicator {
  position: absolute;
  top: 24px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 2px;
  border: 3px solid;
  opacity: 0;
  transform: rotate(-15deg);
  pointer-events: none;
  z-index: 10;
  transition: opacity 0.1s;
}
.swipe-indicator--like {
  right: 16px;
  color: var(--like-color);
  border-color: var(--like-color);
  transform: rotate(-15deg);
}
.swipe-indicator--dislike {
  left: 16px;
  color: var(--dislike-color);
  border-color: var(--dislike-color);
  transform: rotate(15deg);
}
.swipe-indicator--superlike {
  left: 50%;
  top: 32px;
  transform: translateX(-50%);
  color: var(--superlike-color);
  border-color: var(--superlike-color);
  letter-spacing: 1px;
}

.swipe-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-4) 0;
}

.swipe-btn {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-size: 22px;
  transition: transform var(--spring), box-shadow var(--transition-fast);
  position: relative;
}
.swipe-btn:active { transform: scale(0.88) !important; }
.swipe-btn--dislike {
  background: var(--bg-elevated);
  border: 2px solid var(--danger);
  color: var(--danger);
  box-shadow: 0 4px 16px rgba(255,71,87,0.2);
}
.swipe-btn--dislike:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(255,71,87,0.35);
}
.swipe-btn--like {
  width: 68px;
  height: 68px;
  background: var(--gradient-main);
  color: white;
  box-shadow: 0 6px 24px rgba(255,45,107,0.4);
  font-size: 28px;
}
.swipe-btn--like:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(255,45,107,0.55);
}
.swipe-btn--superlike {
  background: var(--bg-elevated);
  border: 2px solid var(--superlike-color);
  color: var(--superlike-color);
  box-shadow: 0 4px 16px rgba(61,156,245,0.2);
}
.swipe-btn--superlike:hover { transform: scale(1.08); }
.swipe-btn--undo,
.swipe-btn--wishlist {
  width: 44px;
  height: 44px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  color: var(--text-muted);
  font-size: 16px;
}
.swipe-btn--wishlist.active {
  color: var(--pink);
  border-color: var(--border-pink);
}

.swipe-card__image-wrap,
.swipe-card__media {
  position: relative;
  width: 100%;
  height: 100%;
}

.swipe-card__image,
.swipe-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.swipe-card__image.blurred { filter: blur(16px); transform: scale(1.1); }
.swipe-card__lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(10,10,15,0.4);
  backdrop-filter: blur(4px);
  z-index: 5;
}
.swipe-card__lock-overlay i { font-size: 32px; color: var(--pink); }
.swipe-card__lock-overlay span {
  font-size: var(--text-sm);
  color: white;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.swipe-card__overlay,
.swipe-card__meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-4) var(--space-4) var(--space-6);
  background: var(--gradient-card);
  z-index: 4;
}

.swipe-card__seller {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}
.swipe-card__seller-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  object-fit: cover;
}
.swipe-card__seller-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: white;
}
.swipe-card__title,
.swipe-card__meta h2 {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: white;
  line-height: 1.3;
  margin-bottom: var(--space-2);
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}
.swipe-card__meta p { color: #E3E3F2; }
.swipe-card__bottomline,
.swipe-card__meta-line,
.swipe-card__meta-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.swipe-card__price,
.price {
  font-size: var(--text-xl);
  font-weight: 800;
  color: white;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.swipe-card__badge,
.pill {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
}

.swipe-card__dots {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  z-index: 5;
}
.swipe-card__dot {
  width: 20px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255,255,255,0.4);
  transition: background var(--transition-fast), width var(--transition-fast);
}
.swipe-card__dot.active {
  background: white;
  width: 28px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  padding: var(--space-4);
}
@media (min-width: 768px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
}
@media (min-width: 1024px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
}

.product-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  position: relative;
}
.product-card:active { transform: scale(0.97); }
.product-card__image-wrap {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}
.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-card__image { transform: scale(1.05); }
.product-card__image.blurred { filter: blur(12px); transform: scale(1.1); }
.product-card__wishlist-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(10,10,15,0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  color: white;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: all var(--transition-fast);
}
.product-card__wishlist-btn.active {
  background: var(--pink);
  color: white;
  border-color: var(--pink);
}
.product-card__body { padding: var(--space-3); }
.product-card__title {
  font-size: var(--text-sm);
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--space-1);
}
.product-card__price {
  font-size: var(--text-md);
  font-weight: 800;
  color: var(--pink);
}
.product-card__seller {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 2px;
}

.form-group { margin-bottom: var(--space-5); }
.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}
.form-control,
.form-grid input,
.form-grid textarea,
.form-grid select {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: var(--text-base);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  -webkit-appearance: none;
}
.form-control:focus,
.form-grid input:focus,
.form-grid textarea:focus,
.form-grid select:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px var(--pink-glow);
}
.form-control::placeholder { color: var(--text-disabled); }
.form-control.error { border-color: var(--danger); }
.form-error {
  font-size: var(--text-xs);
  color: var(--danger);
  margin-top: var(--space-1);
  display: flex;
  align-items: center;
  gap: 4px;
}
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' stroke='%23B8B8CC' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
  cursor: pointer;
}

.input-group { position: relative; }
.input-group .form-control { padding-left: 44px; }
.input-group .input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 16px;
  pointer-events: none;
}
.input-group .input-action {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
}
.badge-pink { background: rgba(255,45,107,0.15); color: var(--pink); }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-gold { background: rgba(255,215,0,0.15); color: var(--gold); }
.badge-verified {
  background: var(--gradient-main);
  color: white;
  box-shadow: 0 2px 8px rgba(255,45,107,0.25);
}

.avatar { border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar-xs { width: 28px; height: 28px; }
.avatar-sm { width: 36px; height: 36px; }
.avatar-md { width: 48px; height: 48px; }
.avatar-lg { width: 72px; height: 72px; }
.avatar-xl { width: 96px; height: 96px; }
.avatar-xxl { width: 120px; height: 120px; }
.avatar-border { border: 2px solid var(--bg-surface); }
.avatar-ring { outline: 2px solid var(--pink); outline-offset: 2px; }

.online-dot {
  width: 10px;
  height: 10px;
  background: var(--success);
  border-radius: 50%;
  border: 2px solid var(--bg-surface);
  position: absolute;
  bottom: 1px;
  right: 1px;
}
.avatar-wrap { position: relative; display: inline-block; }

.skeleton {
  background: linear-gradient(90deg, var(--bg-elevated) 0%, var(--bg-card) 50%, var(--bg-elevated) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

.toast-container {
  position: fixed;
  bottom: calc(var(--bottom-nav-height) + 16px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  gap: var(--space-2);
  pointer-events: none;
  width: calc(100% - 32px);
  max-width: 380px;
}
.toast {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.3s var(--spring) forwards;
  pointer-events: all;
}
.toast.toast-exit { animation: toastOut 0.25s ease forwards; }
.toast-icon { font-size: 18px; flex-shrink: 0; }
.toast-success .toast-icon { color: var(--success); }
.toast-error .toast-icon { color: var(--danger); }
.toast-info .toast-icon { color: var(--info); }

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-end;
  padding: var(--space-4);
  animation: fadeIn var(--transition-base);
}
@media (min-width: 768px) {
  .modal-overlay { align-items: center; }
}
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: var(--space-6);
  width: 100%;
  max-width: 520px;
  max-height: 90dvh;
  overflow-y: auto;
  animation: slideUp var(--spring);
}
@media (min-width: 768px) {
  .modal { border-radius: var(--radius-xl); }
}
.modal-handle {
  width: 40px;
  height: 4px;
  background: var(--border-strong);
  border-radius: 2px;
  margin: 0 auto var(--space-5);
}
@media (min-width: 768px) { .modal-handle { display: none; } }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
}
.modal-title { font-family: var(--font-heading); font-size: var(--text-xl); }

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(60px + var(--safe-area-bottom));
  padding-bottom: var(--safe-area-bottom);
  background: var(--bg-glass);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 100;
}
.bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 16px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: var(--text-xs);
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
  min-width: 52px;
}
.bottom-nav__item i { font-size: 22px; }
.bottom-nav__item.active { color: var(--pink); }
.bottom-nav__item.active i { filter: drop-shadow(0 0 8px var(--pink)); }
.bottom-nav__item--cta .cta-btn {
  width: 52px;
  height: 52px;
  background: var(--gradient-main);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-pink);
  font-size: 22px;
  color: white;
  margin-bottom: 4px;
  transition: transform var(--spring);
}
.bottom-nav__item--cta .cta-btn:active { transform: scale(0.92); }
.badge-dot {
  position: absolute;
  top: 6px;
  right: 12px;
  width: 8px;
  height: 8px;
  background: var(--pink);
  border-radius: 50%;
  border: 2px solid var(--bg-surface);
  display: none;
}
.badge-dot.visible { display: block; }
.nav-avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }

.panel,
.auth-card,
.profile-card,
.hero,
.feature-card,
.empty-state {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}
.panel,
.auth-card,
.profile-card,
.hero,
.empty-state { box-shadow: var(--shadow-card); }

.hero {
  padding: var(--space-6);
  background: linear-gradient(160deg, rgba(255,45,107,0.2), rgba(139,92,246,0.1) 55%, rgba(10,10,15,0.9));
}
.hero__badge,
.chip {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-full);
  padding: 8px 12px;
  font-size: var(--text-xs);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
}
.hero__title { margin: var(--space-4) 0 var(--space-3); }
.hero__actions { margin-top: var(--space-5); display: flex; gap: var(--space-3); flex-wrap: wrap; }

.feature-grid {
  margin-top: var(--space-5);
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}
.feature-card { padding: var(--space-4); }
.feature-card i { color: var(--pink-light); font-size: 22px; margin-bottom: var(--space-3); }

.alert {
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
  border: 1px solid var(--border-default);
}
.alert--danger { background: var(--danger-bg); color: #ff9ca4; }
.alert--success { background: var(--success-bg); color: #8bf8cd; }

.discover-view { display: grid; gap: var(--space-4); }
.discover-header { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.chip--hot { background: rgba(255,45,107,0.15); border-color: var(--border-pink); color: #ffc2d4; }

.auth-card { max-width: 560px; margin: 0 auto; padding: var(--space-6); }
.auth-link { text-align: center; color: var(--pink-light); font-size: var(--text-sm); }
.form-grid { display: grid; gap: var(--space-3); }
.form-grid label { display: grid; gap: var(--space-2); color: var(--text-secondary); font-size: var(--text-sm); }
.form-grid .checkbox { display: flex; gap: var(--space-2); align-items: center; }
.form-grid .checkbox input { width: 16px; height: 16px; }

.profile-card__hero {
  height: 110px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--gradient-main);
}
.profile-card__body { padding: var(--space-6) var(--space-4) var(--space-4); text-align: center; }
.profile-avatar { width: 92px; height: 92px; margin-top: -66px; border-radius: 50%; border: 4px solid var(--bg-card); object-fit: cover; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); margin-top: var(--space-4); }
.stat-grid div { background: var(--bg-elevated); border-radius: var(--radius-md); padding: var(--space-3); }
.stat-grid span { color: var(--text-muted); font-size: var(--text-xs); }

.chat-list { display: grid; gap: var(--space-2); }
.chat-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: var(--space-3);
  align-items: center;
  border: 1px solid var(--border-subtle);
  padding: var(--space-3);
  border-radius: var(--radius-md);
}
.chat-item img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.chat-item__meta { color: var(--text-muted); font-size: var(--text-xs); }

.empty-state {
  text-align: center;
  border-style: dashed;
  padding: var(--space-8) var(--space-4);
}
.empty-state i { font-size: 28px; color: var(--text-muted); margin-bottom: var(--space-2); }

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
@keyframes slideUp { from{opacity:0;transform:translateY(40px)} to{opacity:1;transform:translateY(0)} }
@keyframes slideDown { from{opacity:0;transform:translateY(-20px)} to{opacity:1;transform:translateY(0)} }
@keyframes spin { to{transform:rotate(360deg)} }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.5} }
@keyframes heartbeat {
  0%{transform:scale(1)} 14%{transform:scale(1.2)}
  28%{transform:scale(1)} 42%{transform:scale(1.1)}
  70%{transform:scale(1)}
}
@keyframes swipeLike { to { transform: translateX(150%) rotate(25deg); opacity: 0; } }
@keyframes swipeDislike { to { transform: translateX(-150%) rotate(-25deg); opacity: 0; } }
@keyframes swipeSuperlike { to { transform: translateY(-150%) scale(1.1); opacity: 0; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toastOut { to { opacity: 0; transform: scale(0.9); } }

@media (min-width: 768px) {
  .app-shell {
    display: grid;
    grid-template-columns: 240px 1fr;
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "sidebar topbar"
      "sidebar main";
  }
  .top-bar { grid-area: topbar; position: sticky; top: 0; }
  .view {
    grid-area: main;
    height: calc(100dvh - var(--nav-height));
  }
  .bottom-nav {
    grid-area: sidebar;
    position: sticky;
    top: 0;
    height: 100dvh;
    flex-direction: column;
    justify-content: flex-start;
    border-top: none;
    border-right: 1px solid var(--border-subtle);
    padding: var(--space-5) var(--space-3);
    padding-bottom: 0;
    overflow-y: auto;
    width: 240px;
  }
  .bottom-nav__item {
    flex-direction: row;
    justify-content: flex-start;
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    min-width: unset;
    gap: 10px;
  }
  .bottom-nav__item i { font-size: 18px; width: 22px; }
  .bottom-nav__item span { display: block; }
  .bottom-nav__item.active { background: rgba(255,45,107,0.12); }
  .bottom-nav__item--cta {
    order: -1;
    margin-bottom: var(--space-4);
  }
  .bottom-nav__item--cta .cta-btn {
    width: 100%;
    height: 44px;
    border-radius: var(--radius-md);
    gap: 8px;
    font-size: 16px;
  }
  .bottom-nav__item--cta .cta-btn::before { content: 'Verkaufen'; font-weight: 600; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { padding: var(--space-6); }
  .view-content { padding: var(--space-6); }
}

/* Extended page styles */
.muted { color: var(--text-muted); }

.age-gate-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: var(--space-4);
}
.age-gate-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,10,15,0.7);
  backdrop-filter: blur(8px);
}
.age-gate-modal__content {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  text-align: center;
  padding: var(--space-6);
}
.age-gate-modal__actions {
  margin-top: var(--space-5);
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}

.hero--landing {
  min-height: calc(100dvh - var(--bottom-nav-height) - var(--nav-height));
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-3);
  position: relative;
  overflow: hidden;
}
.floating-cards-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
}
.floating-card {
  position: absolute;
  width: 180px;
  height: 260px;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, rgba(255,45,107,0.35), rgba(139,92,246,0.15));
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-card);
  --base-rot: 0deg;
  animation: floatingCard 9s ease-in-out infinite;
}
.floating-card--1 { left: -20px; top: 16%; --base-rot: -16deg; }
.floating-card--2 { right: 8%; top: 8%; --base-rot: 12deg; animation-delay: -2s; }
.floating-card--3 { right: -30px; bottom: 14%; --base-rot: -10deg; animation-delay: -4s; }
.hero-stats {
  margin-top: var(--space-5);
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.hero-stats div {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(26,26,36,0.65);
}
.hero-stats strong { font-size: 18px; }
.hero-stats span { color: var(--text-muted); font-size: 12px; }
.scroll-indicator {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-default);
  animation: bounceArrow 1.6s ease-in-out infinite;
}

.categories-scroll {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x proximity;
}
.categories-scroll::-webkit-scrollbar { display: none; }
.category-pill {
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  padding: 10px 16px;
  color: var(--text-primary);
  font-size: var(--text-sm);
  white-space: nowrap;
  transition: border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}
.category-pill small { color: var(--text-muted); }
.category-pill:hover,
.category-pill.active {
  border-color: var(--pink);
  color: var(--pink-light);
}
.category-pill:active { transform: scale(0.96); }

.how-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
.how-step-card { padding: var(--space-4); }
.how-step-card i { font-size: 22px; margin-bottom: var(--space-2); color: var(--pink-light); }
.how-step-number {
  font-family: var(--font-heading);
  font-size: 24px;
  margin-bottom: 6px;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.cta-split-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-default);
  background: linear-gradient(165deg, rgba(255,45,107,0.2), rgba(139,92,246,0.1), rgba(26,26,36,0.85));
}
.cta-split-card__half {
  background: rgba(17,17,24,0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}
.cta-split-card__half h3 { font-size: 20px; margin-bottom: 6px; }

.stories-row {
  display: flex;
  overflow-x: auto;
  gap: var(--space-3);
  padding-bottom: 2px;
}
.story-item {
  min-width: 70px;
  max-width: 82px;
  display: grid;
  gap: 6px;
  text-align: center;
  color: var(--text-secondary);
}
.story-item__ring {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  border-radius: 50%;
  padding: 2px;
  border: 1px solid var(--border-default);
}
.story-item__ring--new {
  background: var(--gradient-main);
  border: none;
}
.story-item__avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-elevated);
}
.story-item__name {
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.coldstart-banner {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-4);
}
.coldstart-progress {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: var(--bg-surface);
  overflow: hidden;
}
.coldstart-progress__bar {
  height: 100%;
  background: var(--gradient-main);
}
.coldstart-icons {
  display: flex;
  gap: var(--space-2);
  color: var(--text-secondary);
  font-size: 12px;
  flex-wrap: wrap;
}

.discover-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
.discover-main { min-width: 0; }
.discover-side-panel { display: none; }
.swipe-card__tap {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  border: 0;
  background: transparent;
  z-index: 6;
}
.swipe-card__tap--left { left: 0; }
.swipe-card__tap--right { right: 0; }

.tab-pane[hidden] { display: none !important; }

.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
.product-gallery { overflow: hidden; position: relative; }
.product-gallery__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.product-gallery__track::-webkit-scrollbar { display: none; }
.product-gallery__slide {
  scroll-snap-align: center;
  aspect-ratio: 3/4;
}
.product-gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-gallery__dots {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  z-index: 7;
}
.buy-bar {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  padding: var(--space-3);
}

.auth-screen {
  min-height: calc(100dvh - var(--nav-height) - 24px);
  display: grid;
  place-items: center;
}
.auth-card { width: min(620px, 100%); }
.auth-card--narrow { width: min(470px, 100%); }
.auth-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 28px;
  margin-bottom: 8px;
}
.auth-logo span { color: var(--pink); }
.role-selector {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
}
.role-card {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  padding: 12px 8px;
  display: grid;
  justify-items: center;
  gap: 6px;
}
.role-card.active {
  border-color: var(--pink);
  box-shadow: 0 0 0 2px rgba(255,45,107,0.2) inset;
  color: #fff;
}
.checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text-secondary);
}
.checkbox-line input { margin-top: 2px; }
.password-strength {
  margin-top: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--bg-surface);
  overflow: hidden;
}
.password-strength span {
  display: block;
  height: 100%;
  width: 0;
  transition: width var(--transition-fast), background var(--transition-fast);
}
.auth-proof { margin-top: var(--space-4); text-align: center; color: var(--text-secondary); }
.auth-divider {
  margin: var(--space-4) 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 12px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  width: 26%;
  height: 1px;
  background: var(--border-subtle);
  margin: 0 10px;
}

.twofa-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 8px;
  background: rgba(255,45,107,0.15);
  color: var(--pink-light);
  font-size: 30px;
  animation: pulse 1.4s ease-in-out infinite;
}
.code-input-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.code-input {
  width: 100%;
  height: 54px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  background: var(--bg-elevated);
  color: #fff;
  text-align: center;
  font-size: 26px;
  font-weight: 700;
}
.code-input:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px var(--pink-glow);
}
.timer-wrap {
  display: grid;
  place-items: center;
  gap: 8px;
  margin: 8px 0;
}
.timer-wrap svg { width: 86px; height: 86px; }
.timer-circle-bg {
  fill: none;
  stroke: rgba(255,255,255,0.08);
  stroke-width: 8;
}
.timer-circle-progress {
  fill: none;
  stroke: var(--pink);
  stroke-width: 8;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  stroke-linecap: round;
}

.dashboard-welcome {
  padding: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.alert-banner {
  margin-top: 12px;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
}
.alert-banner--warning {
  border-color: rgba(255,176,32,0.35);
  background: rgba(255,176,32,0.09);
}
.stats-grid-2x2 {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: grid;
  gap: 6px;
}
.stat-card i {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(130deg, rgba(255,45,107,0.22), rgba(139,92,246,0.22));
  color: var(--pink-light);
}
.stat-card strong { font-size: 20px; }
.stat-card span { color: var(--text-muted); font-size: 12px; }
.swipe-stat-chips {
  display: flex;
  gap: var(--space-2);
  margin: 10px 0;
  flex-wrap: wrap;
}
.progress-line {
  height: 8px;
  border-radius: 999px;
  background: var(--bg-surface);
  overflow: hidden;
  margin: 6px 0 10px;
}
.progress-line span {
  display: block;
  height: 100%;
  background: var(--gradient-main);
}
.quick-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.quick-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: grid;
  justify-items: start;
  gap: 8px;
  color: var(--text-secondary);
}
.quick-card i { font-size: 18px; color: var(--pink-light); }
.timeline-list {
  display: grid;
  gap: var(--space-3);
  list-style: none;
}
.timeline-list li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: var(--space-2);
}
.timeline-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  display: grid;
  place-items: center;
  color: var(--pink-light);
}

.settings-tabs {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  margin-bottom: 12px;
}
.settings-grid-2 {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.settings-grid-3 {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-cover {
  height: 180px;
  border-radius: var(--radius-xl);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  position: relative;
}
.profile-cover__fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(255,45,107,0.35), rgba(139,92,246,0.3));
}
.profile-identity {
  margin-top: -12px;
  text-align: center;
  padding: 0 var(--space-4) var(--space-4);
}
.profile-stats-row {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.profile-stats-row div {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 6px;
  display: grid;
  gap: 2px;
}
.profile-stats-row strong { font-size: 18px; }
.profile-stats-row span { color: var(--text-muted); font-size: 11px; }
.profile-actions {
  margin-top: 12px;
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  flex-wrap: wrap;
}
.review-list {
  display: grid;
  gap: var(--space-2);
  margin-top: 10px;
}
.review-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px;
  background: var(--bg-elevated);
}

.wizard-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 12px;
}
.wizard-step {
  border: 1px solid var(--border-default);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 12px;
}
.wizard-step.active {
  color: #fff;
  border-color: var(--pink);
  box-shadow: 0 0 0 1px var(--border-pink);
}
.wizard-actions {
  display: flex;
  gap: var(--space-2);
  justify-content: space-between;
  flex-wrap: wrap;
}
.category-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
}
.category-tile {
  display: grid;
  justify-items: center;
  gap: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 12px 8px;
  color: var(--text-secondary);
}
.category-tile input { display: none; }
.category-tile.active {
  border-color: var(--pink);
  box-shadow: 0 0 0 2px rgba(255,45,107,0.2) inset;
  color: #fff;
}
.condition-cards {
  display: grid;
  gap: var(--space-2);
  grid-template-columns: 1fr;
}
.condition-card {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  padding: 12px;
  color: var(--text-secondary);
}
.condition-card input { display: none; }
.condition-card.active {
  border-color: var(--pink);
  box-shadow: 0 0 0 1px var(--border-pink), var(--shadow-sm);
  color: #fff;
}
.upload-zone {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: rgba(34,34,47,0.45);
  padding: var(--space-6);
  text-align: center;
  display: grid;
  gap: 8px;
  cursor: pointer;
}
.upload-zone i { font-size: 28px; color: var(--pink-light); }
.upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
}
.upload-preview-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}
.upload-preview-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
.upload-preview-item .badge {
  position: absolute;
  left: 6px;
  top: 6px;
}
.price-input-wrap {
  position: relative;
}
.price-input-wrap > span {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}
.price-input-wrap input { padding-left: 34px; }

.list-cards {
  display: grid;
  gap: var(--space-3);
}
.list-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  padding: 10px;
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: var(--space-3);
  align-items: center;
}
.list-card img {
  width: 88px;
  height: 88px;
  border-radius: var(--radius-md);
  object-fit: cover;
}
.list-card__body { min-width: 0; display: grid; gap: 6px; }
.list-card__body h3 {
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.list-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.list-card__menu summary {
  list-style: none;
  cursor: pointer;
  color: var(--text-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  padding: 4px 10px;
}
.list-card__menu summary::-webkit-details-marker { display: none; }
.list-card__actions {
  margin-top: 8px;
  display: grid;
  gap: 8px;
}

.order-timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.order-step {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  padding: 6px 8px;
  font-size: 11px;
  text-align: center;
  color: var(--text-muted);
}
.order-step.done {
  border-color: var(--pink);
  color: #fff;
}

.messages-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
.messages-list-panel,
.messages-chat-panel {
  min-height: 420px;
  padding: 12px;
}
.chat-item.active {
  border-color: var(--border-pink);
  background: rgba(255,45,107,0.08);
}
.chat-item__meta.unread { color: #fff; font-weight: 600; }
.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}
.chat-head__user {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.mobile-only { display: inline-flex; }
.chat-product-ref {
  margin-top: 10px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  padding: 8px;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 8px;
}
.chat-product-ref img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}
.chat-security {
  margin-top: 10px;
  border: 1px solid rgba(255,176,32,0.35);
  background: rgba(255,176,32,0.1);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}
.chat-messages {
  margin-top: 10px;
  height: 50dvh;
  overflow-y: auto;
  display: grid;
  gap: 8px;
  padding-right: 2px;
}
.chat-bubble {
  max-width: 88%;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  padding: 10px 12px;
}
.chat-bubble.mine {
  margin-left: auto;
  background: linear-gradient(130deg, rgba(255,45,107,0.3), rgba(139,92,246,0.3));
  border-color: var(--border-pink);
}
.chat-bubble p { color: #fff; line-height: 1.45; }
.chat-bubble small { color: var(--text-muted); font-size: 10px; display: inline-block; margin-top: 4px; }
.chat-input {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
}
.chat-input textarea {
  min-height: 46px;
  max-height: 140px;
  resize: none;
}

.checkout-summary {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: var(--space-3);
  align-items: center;
  padding: 12px;
  margin-bottom: 12px;
}
.checkout-summary img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: var(--radius-md);
}
.payment-element-wrap {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  min-height: 56px;
  background: var(--bg-elevated);
  color: var(--text-secondary);
}

.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  background: var(--bg-elevated);
  margin-bottom: 8px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: #fff;
}
.faq-item p { margin-top: 8px; }

.ticket-thread { max-height: 55dvh; overflow-y: auto; }
.ticket-message {
  display: flex;
  margin-bottom: 8px;
}
.ticket-message.mine { justify-content: flex-end; }
.ticket-message__bubble {
  max-width: 88%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  border-radius: 14px;
  padding: 10px 12px;
}
.ticket-message.mine .ticket-message__bubble {
  border-color: var(--border-pink);
  background: rgba(255,45,107,0.12);
}

.legal-page {
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  padding: clamp(16px, 4vw, 32px);
}
.legal-breadcrumb {
  color: var(--text-muted);
  font-size: 12px;
  margin-bottom: 10px;
}
.legal-page h1 {
  font-size: 32px;
  margin-bottom: 16px;
}
.legal-page h2 {
  font-size: 20px;
  margin: 18px 0 8px;
  padding-left: 10px;
  border-left: 3px solid var(--pink);
}
.legal-page p {
  color: #ddddef;
  line-height: 1.75;
}
.legal-page a { color: var(--pink-light); }
.back-to-top {
  position: fixed;
  right: 16px;
  bottom: calc(var(--bottom-nav-height) + 16px);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-default);
  background: var(--bg-elevated);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
}

@keyframes floatingCard {
  0%, 100% { transform: translateY(0) rotate(var(--base-rot, 0deg)); }
  50% { transform: translateY(-16px) rotate(var(--base-rot, 0deg)); }
}
@keyframes bounceArrow {
  0%, 100% { transform: translateY(0); opacity: 0.9; }
  50% { transform: translateY(6px); opacity: 0.55; }
}

@media (max-width: 767px) {
  .settings-grid-2,
  .settings-grid-3 { grid-template-columns: 1fr; }
}

@media (min-width: 768px) {
  .how-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cta-split-card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .discover-layout { grid-template-columns: 260px minmax(320px, 420px) 260px; justify-content: center; }
  .discover-side-panel { display: block; }
  .product-detail-layout { grid-template-columns: minmax(320px, 520px) 1fr; align-items: start; }
  .messages-layout { grid-template-columns: 340px 1fr; }
  .mobile-only { display: none; }
  .chat-messages { height: calc(100dvh - 290px); }
  .profile-cover { height: 250px; }
  .wizard-step { font-size: 13px; }
}
