/* ═══════════════════════════════════════════════════════════
   SEPEP — Components
   Reusable UI Components
   ═══════════════════════════════════════════════════════════ */

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px var(--space-6);
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.1px;
  border: none;
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-spring);
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
  position: relative;
  overflow: hidden;
}

.btn:active { transform: scale(0.96); }

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-primary);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.btn-primary:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.4); }

.btn-blue {
  background: var(--blue);
  color: white;
  box-shadow: 0 4px 16px rgba(10,132,255,0.35);
}

.btn-blue:hover { box-shadow: var(--shadow-glow-blue); }

.btn-gradient {
  background: var(--gradient-blue-purple);
  color: white;
  box-shadow: 0 4px 20px rgba(10,132,255,0.4);
}

.btn-gradient:active { transform: scale(0.96); }

.btn-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--text-primary);
  border: 1px solid var(--glass-border-strong);
  box-shadow: inset 0 1px 0 var(--glass-highlight);
}

.btn-glass:hover { background: var(--surface-3); }

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--separator-strong);
}

.btn-outline:hover { border-color: var(--text-primary); }

.btn-danger {
  background: rgba(255,55,95,0.15);
  color: var(--pink);
  border: 1px solid rgba(255,55,95,0.25);
}

.btn-sm {
  padding: 9px var(--space-4);
  font-size: var(--text-sm);
  border-radius: var(--radius-md);
}

.btn-xs {
  padding: 6px var(--space-3);
  font-size: var(--text-xs);
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 18px var(--space-8);
  font-size: var(--text-md);
  border-radius: var(--radius-xl);
}

.btn-full { width: 100%; }

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-full);
}

.btn-icon-sm {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
}

/* Ripple effect */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at center, rgba(255,255,255,0.2) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--duration-fast);
}
.btn:active::after { opacity: 1; }

/* ── Input Fields ──────────────────────────────────────────── */
.input-wrap {
  position: relative;
  width: 100%;
}

.input {
  width: 100%;
  padding: 14px var(--space-4);
  background: var(--surface-1);
  border: 1.5px solid var(--separator);
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: var(--text-base);
  color: var(--text-primary);
  outline: none;
  transition: all var(--duration-base) var(--ease-smooth);
  -webkit-appearance: none;
}

.input::placeholder { color: var(--text-tertiary); }

.input:focus {
  border-color: var(--blue);
  background: var(--surface-2);
  box-shadow: 0 0 0 4px rgba(10,132,255,0.15);
}

.input-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border-strong);
}

.input-glass:focus {
  border-color: rgba(10,132,255,0.6);
  box-shadow: 0 0 0 4px rgba(10,132,255,0.12);
}

.input-with-icon { padding-left: 48px; }
.input-icon-left {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  pointer-events: none;
}
.input-icon-right {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  cursor: pointer;
}

.input-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

/* Search Bar */
.search-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 12px var(--space-4);
  background: var(--surface-1);
  border-radius: var(--radius-full);
  border: 1px solid var(--separator);
  transition: all var(--duration-base) var(--ease-smooth);
}

.search-bar input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-family);
  font-size: var(--text-base);
  color: var(--text-primary);
}
.search-bar input::placeholder { color: var(--text-tertiary); }

.search-bar.focused {
  background: var(--surface-2);
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(10,132,255,0.12);
}

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform var(--duration-base) var(--ease-spring),
              box-shadow var(--duration-base) var(--ease-smooth);
}

.card:active { transform: scale(0.97); }

.card-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border-strong);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), inset 0 1px 0 var(--glass-highlight);
  transition: transform var(--duration-base) var(--ease-spring);
}

.card-glass:active { transform: scale(0.97); }

/* Post Card */
.post-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin: 0 var(--space-4) var(--space-4);
  border: 1px solid var(--separator);
}

.post-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4);
}

.post-card-footer {
  padding: var(--space-3) var(--space-4);
}

/* Product Card */
.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--separator);
  cursor: pointer;
  transition: transform var(--duration-base) var(--ease-spring),
              box-shadow var(--duration-base);
}

.product-card:active { transform: scale(0.96); box-shadow: var(--shadow-xl); }

.product-card-img {
  position: relative;
  overflow: hidden;
}

.product-card-img img {
  width: 100%;
  display: block;
  transition: transform var(--duration-slow) var(--ease-smooth);
}

.product-card:hover .product-card-img img { transform: scale(1.04); }

.product-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
}

.product-card-save {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-full);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-spring);
}

.product-card-save:active { transform: scale(0.85); }
.product-card-save.saved  { color: var(--pink); }

.product-card-info {
  padding: var(--space-3);
}

.product-card-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
  line-height: var(--leading-snug);
  margin-bottom: 4px;
}

.product-card-brand {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-bottom: var(--space-2);
}

.product-card-price {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.price-current {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}

.price-original {
  font-size: var(--text-xs);
  font-weight: var(--weight-regular);
  color: var(--text-tertiary);
  text-decoration: line-through;
}

.price-discount {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--pink);
}

.price-red {
  color: var(--pink) !important;
}

/* Creator Card */
.creator-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--surface-1);
  border-radius: var(--radius-xl);
  border: 1px solid var(--separator);
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-smooth);
}

.creator-card:active { transform: scale(0.97); background: var(--surface-2); }

/* Story Ring */
.story-ring {
  border-radius: var(--radius-full);
  padding: 2px;
  background: var(--gradient-pink-orange);
}

.story-ring-seen {
  background: var(--surface-3);
}

/* ── Avatar ────────────────────────────────────────────────── */
.avatar {
  border-radius: var(--radius-full);
  object-fit: cover;
  flex-shrink: 0;
  overflow: hidden;
}

.avatar-xs  { width: 28px; height: 28px; }
.avatar-sm  { width: 36px; height: 36px; }
.avatar-md  { width: 44px; height: 44px; }
.avatar-lg  { width: 56px; height: 56px; }
.avatar-xl  { width: 72px; height: 72px; }
.avatar-2xl { width: 96px; height: 96px; }
.avatar-3xl { width: 120px; height: 120px; }

.avatar-placeholder {
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--weight-semibold);
  flex-shrink: 0;
  font-size: inherit;
}

/* ── Verified Badge ────────────────────────────────────────── */
.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: var(--blue);
  border-radius: var(--radius-full);
  color: white;
  flex-shrink: 0;
}

.verified-badge-lg {
  width: 22px;
  height: 22px;
}

/* ── Action Row ────────────────────────────────────────────── */
.action-row {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.action-btn {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: var(--font-family);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  transition: all var(--duration-base) var(--ease-smooth);
  padding: var(--space-1) 0;
}

.action-btn:active { transform: scale(0.9); color: var(--text-primary); }
.action-btn.liked  { color: var(--pink); }
.action-btn.saved  { color: var(--blue); }

/* ── Section Header ────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-4);
  margin-bottom: var(--space-4);
}

.section-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.section-link {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--blue);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-family);
}

/* ── Horizontal Scroll ─────────────────────────────────────── */
.h-scroll {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  padding: 0 var(--space-4);
  padding-bottom: var(--space-2);
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.h-scroll::-webkit-scrollbar { display: none; }

/* ── Bottom Sheet ──────────────────────────────────────────── */
.bottom-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: var(--overlay-medium);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 300;
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-smooth);
}

.bottom-sheet-backdrop.visible { opacity: 1; }

.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  max-width: var(--screen-max);
  z-index: 301;
  background: var(--glass-bg-heavy);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid var(--glass-border-strong);
  border-bottom: none;
  border-radius: var(--radius-3xl) var(--radius-3xl) 0 0;
  box-shadow: var(--shadow-2xl), inset 0 1px 0 var(--glass-highlight);
  transition: transform var(--duration-slow) var(--ease-spring);
  overflow: hidden;
}

.bottom-sheet.open { transform: translateX(-50%) translateY(0); }

.sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--separator-strong);
  margin: var(--space-3) auto var(--space-4);
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-5) var(--space-4);
}

.sheet-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.3px;
}

.sheet-body {
  padding: 0 var(--space-5);
  padding-bottom: calc(var(--space-8) + env(safe-area-inset-bottom, var(--safe-bottom)));
  max-height: 70vh;
  overflow-y: auto;
}

/* ── Chip / Pill ───────────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  background: var(--surface-2);
  color: var(--text-secondary);
  border: 1px solid var(--separator);
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-smooth);
  white-space: nowrap;
}

.chip.selected {
  background: var(--blue);
  color: white;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(10,132,255,0.35);
}

.chip:active { transform: scale(0.94); }

/* ── Progress Bar ──────────────────────────────────────────── */
.progress-bar {
  width: 100%;
  height: 4px;
  background: var(--surface-2);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--gradient-blue-purple);
  transition: width var(--duration-slow) var(--ease-smooth);
}

/* ── Stats Row ─────────────────────────────────────────────── */
.stats-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: var(--space-4);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stat-value {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.stat-label {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  font-weight: var(--weight-medium);
}

/* ── Chart ─────────────────────────────────────────────────── */
.mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 40px;
}

.mini-chart-bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: var(--blue);
  opacity: 0.6;
  min-height: 4px;
  transition: opacity var(--duration-base);
}

.mini-chart-bar.active { opacity: 1; }

/* ── List Row ──────────────────────────────────────────────── */
.list-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-4);
  border-bottom: 1px solid var(--separator);
  cursor: pointer;
  transition: background var(--duration-fast);
}

.list-row:last-child { border-bottom: none; }
.list-row:active { background: var(--surface-1); }

.list-row-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.list-row-content { flex: 1; min-width: 0; }

.list-row-title {
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
}

.list-row-subtitle {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin-top: 2px;
}

.chevron {
  color: var(--text-tertiary);
  flex-shrink: 0;
}

/* ── Floating Action Button ────────────────────────────────── */
.fab {
  position: fixed;
  bottom: calc(var(--nav-height) + var(--space-4));
  right: var(--space-4);
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: var(--gradient-blue-purple);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(10,132,255,0.4);
  transition: all var(--duration-base) var(--ease-spring);
  z-index: 90;
}

.fab:active {
  transform: scale(0.90);
  box-shadow: 0 4px 12px rgba(10,132,255,0.3);
}

/* ── Toggle / Switch ───────────────────────────────────────── */
.toggle {
  position: relative;
  width: 48px;
  height: 28px;
  flex-shrink: 0;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-track {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  background: var(--surface-3);
  transition: background var(--duration-base) var(--ease-smooth);
  cursor: pointer;
}

.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background: white;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-base) var(--ease-spring);
}

.toggle input:checked + .toggle-track { background: var(--emerald); }
.toggle input:checked ~ .toggle-thumb { transform: translateX(20px); }

/* ── Notification Dot ──────────────────────────────────────── */
.notif-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--pink);
  flex-shrink: 0;
}

.notif-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  background: var(--pink);
  color: white;
  font-size: 9px;
  font-weight: var(--weight-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 2px solid var(--bg-primary);
}

/* ── Empty State ───────────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-16) var(--space-8);
  text-align: center;
  gap: var(--space-4);
}

.empty-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-2xl);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  margin-bottom: var(--space-2);
}

.empty-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.empty-desc {
  font-size: var(--text-base);
  color: var(--text-tertiary);
  line-height: var(--leading-relaxed);
}

/* ── Video player overlay ──────────────────────────────────── */
.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--overlay-light);
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--duration-base);
}
.video-overlay.visible { opacity: 1; }

/* ── Category Pill ─────────────────────────────────────────── */
.category-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-3);
  background: var(--surface-1);
  border: 1px solid var(--separator);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-smooth);
  min-width: 70px;
}

.category-pill:active { transform: scale(0.94); background: var(--surface-2); }
.category-pill.active {
  background: rgba(10,132,255,0.12);
  border-color: var(--blue);
}

.category-pill-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.category-pill-label {
  font-size: 10px;
  font-weight: var(--weight-semibold);
  color: var(--text-secondary);
  text-align: center;
  white-space: nowrap;
}

.category-pill.active .category-pill-label { color: var(--blue); }

/* ── Price Tag ─────────────────────────────────────────────── */
.price-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border-strong);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}

/* ── Story Bubble ──────────────────────────────────────────── */
.story-bubble {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  flex-shrink: 0;
}

.story-bubble:active .story-avatar { transform: scale(0.9); }

.story-avatar {
  border-radius: var(--radius-full);
  transition: transform var(--duration-base) var(--ease-spring);
  overflow: hidden;
}

.story-username {
  font-size: 11px;
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  text-align: center;
  max-width: 68px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Notification item ─────────────────────────────────────── */
.notif-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border-bottom: 1px solid var(--separator);
  cursor: pointer;
  transition: background var(--duration-fast);
  position: relative;
}

.notif-item:active { background: var(--surface-1); }

.notif-item.unread::before {
  content: '';
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.notif-item.unread { padding-left: calc(var(--space-4) + 14px); }

/* ── Chat Bubble ───────────────────────────────────────────── */
.chat-bubble {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: var(--radius-xl);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  position: relative;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.chat-bubble-sent {
  background: var(--blue);
  color: white;
  border-bottom-right-radius: 6px;
  margin-left: auto;
}

.chat-bubble-received {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border-strong);
  color: var(--text-primary);
  border-bottom-left-radius: 6px;
  box-shadow: inset 0 1px 0 var(--glass-highlight);
}

/* ── Cart Item ─────────────────────────────────────────────── */
.cart-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--surface-1);
  border-radius: var(--radius-xl);
  border: 1px solid var(--separator);
}

.cart-item-img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface-2);
}

.cart-item-content { flex: 1; min-width: 0; }

.quantity-control {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--surface-2);
  border-radius: var(--radius-full);
  padding: 4px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--bg-elevated);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
  transition: all var(--duration-base) var(--ease-spring);
}

.qty-btn:active { transform: scale(0.85); }

.qty-value {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  min-width: 20px;
  text-align: center;
}

/* ── Earnings Card ─────────────────────────────────────────── */
.earnings-card {
  background: var(--gradient-blue-purple);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
}

.earnings-card::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}

.earnings-card::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}

/* ── Collection Grid ───────────────────────────────────────── */
.collection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  padding: 0 var(--space-4);
}

.collection-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  aspect-ratio: 3/4;
}

.collection-card:nth-child(3n+2) { margin-top: var(--space-6); }

.collection-card-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-smooth);
}

.collection-card:active .collection-card-bg { transform: scale(1.04); }

.collection-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-4);
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
}

/* ── Gradient Overlays ─────────────────────────────────────── */
.gradient-top {
  background: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent);
}

.gradient-bottom {
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

/* ── Segmented Control ─────────────────────────────────────── */
.seg-control {
  display: flex;
  background: var(--surface-1);
  border-radius: var(--radius-md);
  padding: 3px;
  gap: 2px;
}

.seg-btn {
  flex: 1;
  padding: 8px;
  border: none;
  background: none;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-smooth);
  font-family: var(--font-family);
}

.seg-btn.active {
  background: var(--bg-elevated);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

/* ── Floating Search ───────────────────────────────────────── */
.floating-search {
  position: absolute;
  bottom: calc(var(--nav-height) + var(--space-4));
  left: var(--space-4);
  right: var(--space-4);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 14px var(--space-5);
  background: var(--glass-bg-heavy);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid var(--glass-border-strong);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-xl), inset 0 1px 0 var(--glass-highlight);
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-smooth);
}

.floating-search:active { transform: scale(0.97); }

/* ── Home Header Logo Dropdown ─────────────────────────────── */
.home-logo-container {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  padding: 6px 10px;
  margin-left: -10px;
  border-radius: var(--radius-lg);
  transition: background-color var(--duration-base) var(--ease-smooth);
  user-select: none;
  -webkit-user-select: none;
}

.home-logo-container:active {
  background-color: var(--surface-2);
}

.logo-dropdown {
  position: absolute;
  top: 60px;
  left: var(--space-4);
  width: 200px;
  background: var(--glass-bg-heavy);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border: 1px solid var(--glass-border-strong);
  border-radius: var(--radius-xl);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 var(--glass-highlight);
  padding: 6px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transform-origin: top left;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.15s ease;
}

.logo-dropdown.hidden {
  display: none !important;
  opacity: 0;
  transform: scale(0.9) translateY(-10px);
}

.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 14px;
  border: none;
  background: none;
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  font-family: var(--font-family);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-smooth);
  text-align: left;
}

.dropdown-item:active {
  background: var(--surface-3);
}

.dropdown-item.active {
  color: var(--text-primary);
  background: var(--surface-2);
}

.dropdown-item .item-icon {
  font-size: 16px;
  opacity: 0.8;
}

/* ── Discover Screen Redesign ─────────────────────────────── */

.discover-title-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4) 0 6px;
  width: 100%;
}

.discover-title {
  font-family: 'Playfair Display', 'Didot', 'Georgia', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 32px;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin: 0;
  text-align: center;
}

.discover-search-wrapper {
  padding: 6px var(--space-4) var(--space-4);
  width: 100%;
}

.discover-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--separator);
  border-radius: var(--radius-xl);
  padding: 12px 16px;
  cursor: pointer;
  transition: background-color var(--duration-base) var(--ease-smooth);
}

.discover-search-bar:active {
  background-color: var(--surface-3);
}

.discover-search-bar .search-icon {
  font-size: 14px;
  opacity: 0.7;
}

.discover-search-bar .search-placeholder {
  color: var(--text-tertiary);
  font-size: 13px;
  font-weight: 500;
}

/* Category Chips */
.category-chips-carousel {
  display: flex;
  gap: 8px;
  padding: 2px var(--space-4) var(--space-4);
  overflow-x: auto;
  white-space: nowrap;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--surface-1);
  border: 1px solid var(--separator);
  color: var(--text-secondary);
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-smooth);
}

.category-chip.active {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

/* Featured Creators Spotlights */
.creator-spotlight-carousel {
  display: flex;
  gap: 12px;
  padding: 4px var(--space-4) 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.creator-spotlight-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 95px;
  flex-shrink: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--separator);
  border-radius: var(--radius-xl);
  padding: var(--space-3) var(--space-2);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform var(--duration-base) var(--ease-smooth);
}

.creator-spotlight-card:active {
  transform: scale(0.95);
}

.creator-spotlight-img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--blue);
  box-shadow: 0 2px 8px rgba(10, 132, 255, 0.2);
}

.creator-spotlight-handle {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 8px;
  text-align: center;
  max-width: 80px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Masonry Grid */
.discover-masonry {
  display: flex;
  gap: 12px;
  padding: 0 var(--space-4);
  width: 100%;
}

.masonry-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  width: 50%;
}

.masonry-card {
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  background: var(--surface-2);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.masonry-card:active {
  transform: scale(0.98);
}

.masonry-card img, .masonry-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.masonry-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
  display: flex;
  align-items: center;
  gap: 6px;
}

.masonry-card-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid white;
}

.masonry-card-username {
  font-size: 10px;
  font-weight: 600;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Trending Products Spotlight */
.trending-products-spotlight {
  background: linear-gradient(135deg, #7F00FF 0%, #E100FF 100%);
  margin: var(--space-5) var(--space-4);
  border-radius: var(--radius-2xl);
  padding: 16px;
  box-shadow: 0 8px 24px rgba(225, 0, 255, 0.25);
  color: white;
}

.spotlight-header {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

.spotlight-carousel {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  width: 100%;
  padding-bottom: 2px;
}

.spotlight-product-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xl);
  padding: 10px;
  width: 105px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.spotlight-product-card:active {
  transform: scale(0.96);
}

.spotlight-product-img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  background: white;
  padding: 2px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.spotlight-product-name {
  font-size: 10px;
  font-weight: 700;
  color: white;
  margin-top: 8px;
  max-width: 90px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotlight-product-brand {
  font-size: 8px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 2px;
}

.spotlight-product-price {
  font-size: 9px;
  font-weight: 700;
  color: #FFF;
  background: rgba(0, 0, 0, 0.2);
  padding: 3px 6px;
  border-radius: var(--radius-full);
  margin-top: 6px;
}

/* ── Liquid Glass Collection Card Styles ─────────────────── */

.liquid-glass-card {
  position: relative;
  height: 120px;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease;
}

.liquid-glass-card:active {
  transform: scale(0.97);
  box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.2);
}

.liquid-glass-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.liquid-glass-card-shine {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, transparent 60%);
  pointer-events: none;
  z-index: 2;
}

.liquid-glass-card-blur {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15) 30%, rgba(0,0,0,0.65) 100%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2;
}

.liquid-glass-card-content {
  position: absolute;
  inset: 0;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 3;
}

.liquid-glass-card-title {
  font-size: 16px;
  font-weight: 800;
  color: white;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.3px;
}

.liquid-glass-card-meta {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  margin-top: 4px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.liquid-glass-card-privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.liquid-glass-card-privacy-badge.private {
  background: rgba(255, 59, 48, 0.25);
  border-color: rgba(255, 59, 48, 0.3);
}

/* ── Realtime Chat & Liquid Glass Messaging Styles ── */
.chat-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: background 0.2s ease;
}
.chat-list-item:hover, .chat-list-item:active {
  background: rgba(255, 255, 255, 0.05);
}
.chat-list-item.unread {
  background: rgba(10, 132, 255, 0.05);
}
.chat-preview {
  font-size: 13px;
  color: var(--text-secondary);
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.chat-time {
  font-size: 11px;
  color: var(--text-tertiary);
  flex-shrink: 0;
}
.chat-conversation {
  display: flex;
  flex-direction: column;
  padding: 10px 0;
}
.chat-msg-wrap {
  display: flex;
  flex-direction: column;
  margin: 6px 16px;
  animation: slideInMsg 0.25s ease-out;
}
@keyframes slideInMsg {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-bubble {
  padding: 10px 16px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.45;
  color: white;
  max-width: 75%;
  word-break: break-word;
  position: relative;
}
.chat-bubble-sent {
  align-self: flex-end;
  background: var(--blue);
  border-bottom-right-radius: 4px;
}
.chat-bubble-received {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom-left-radius: 4px;
}

/* Liquid Glass Message Container / Shared Cards */
.liquid-glass-panel {
  background: rgba(20, 20, 25, 0.6) !important;
  backdrop-filter: blur(25px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3) !important;
  transition: all 0.3s ease;
}
.liquid-glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.45) !important;
}

/* Share Sheet bottom drawer system */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.drawer.open {
  display: flex;
}
.drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeInOverlay 0.25s ease-out;
}
@keyframes fadeInOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}
.drawer-content {
  position: relative;
  width: 100%;
  max-width: 500px;
  max-height: 75vh;
  border-radius: 28px 28px 0 0;
  padding: 24px;
  background: var(--bg-elevated);
  display: flex;
  flex-direction: column;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.4);
  animation: slideUpDrawer 0.3s cubic-bezier(0.1, 0.76, 0.55, 0.94);
  z-index: 1001;
}
@keyframes slideUpDrawer {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* Glass inputs and buttons */
.liquid-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.liquid-btn:hover {
  background: var(--gradient-pink-orange);
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(255, 55, 95, 0.3);
}

/* Kırmızı cam efektli engelli etiketi */
.badge-blocked-glass {
  background: rgba(255, 59, 48, 0.12);
  color: #ff453a;
  border: 1px solid rgba(255, 59, 48, 0.2);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
