/* ═══════════════════════════════════════════════════════════
   SEPEP — Screen-Specific Styles
   ═══════════════════════════════════════════════════════════ */

/* ── Splash Screen — Premium ────────────────────────────────── */
.splash-screen {
  background: #0a0a0f;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Orbs */
.splash-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(70px);
}
.splash-orb-1 {
  width: 360px; height: 360px;
  background: rgba(10,132,255,0.30);
  top: -80px; left: -100px;
  animation: orb-float 9s ease-in-out infinite;
}
.splash-orb-2 {
  width: 280px; height: 280px;
  background: rgba(191,90,242,0.25);
  bottom: 60px; right: -80px;
  animation: orb-float 11s ease-in-out infinite reverse;
}
.splash-orb-3 {
  width: 200px; height: 200px;
  background: rgba(255,55,95,0.18);
  top: 45%; left: 50%;
  transform: translate(-50%,-50%);
  animation: orb-pulse 5s ease-in-out infinite;
}
@keyframes orb-float {
  0%,100% { transform: translateY(0) translateX(0); }
  33%      { transform: translateY(-40px) translateX(25px); }
  66%      { transform: translateY(25px) translateX(-20px); }
}
@keyframes orb-pulse {
  0%,100% { transform: translate(-50%,-50%) scale(1);   opacity: 0.7; }
  50%      { transform: translate(-50%,-50%) scale(1.4); opacity: 0.3; }
}

/* Particles */
.splash-particles { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.splash-particle {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(10,132,255,0.6);
  animation: particle-twinkle 3s ease-in-out infinite;
}
.splash-particle:nth-child(2n)   { background: rgba(191,90,242,0.5); width: 3px; height: 3px; }
.splash-particle:nth-child(3n)   { background: rgba(255,55,95,0.4);  width: 2px; height: 2px; }
@keyframes particle-twinkle {
  0%,100% { opacity: 0; transform: scale(0.8); }
  50%      { opacity: 1; transform: scale(1.2); }
}

/* Logo wrap */
.splash-logo-wrap {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  animation: wrap-rise 0.8s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes wrap-rise {
  from { opacity: 0; transform: translateY(30px) scale(0.9); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* Outer ring — rotating gradient border */
.splash-logo-outer-ring {
  width: 126px; height: 126px;
  border-radius: 34px;
  padding: 3px;
  background: linear-gradient(135deg, #0A84FF, #BF5AF2, #FF375F, #0A84FF);
  background-size: 300% 300%;
  animation: ring-spin 4s linear infinite, logo-breathe 3s ease-in-out infinite;
  box-shadow:
    0 0 40px rgba(10,132,255,0.5),
    0 0 80px rgba(191,90,242,0.3),
    0 20px 60px rgba(0,0,0,0.6);
}
@keyframes ring-spin {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}
@keyframes logo-breathe {
  0%,100% { box-shadow: 0 0 40px rgba(10,132,255,0.5), 0 0 80px rgba(191,90,242,0.3), 0 20px 60px rgba(0,0,0,0.6); }
  50%      { box-shadow: 0 0 60px rgba(10,132,255,0.7), 0 0 120px rgba(191,90,242,0.5), 0 20px 60px rgba(0,0,0,0.6); }
}

/* Inner logo icon container */
.splash-logo-icon {
  width: 100%; height: 100%;
  border-radius: 32px;
  background: rgba(14,14,20,0.92);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.08);
}

/* Wordmark — staggered letters */
.splash-wordmark {
  display: flex;
  gap: 1px;
}
.splash-letter {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #ffffff 0%, rgba(255,255,255,0.75) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: letter-rise 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
  display: inline-block;
}
@keyframes letter-rise {
  from { opacity: 0; transform: translateY(20px) scale(0.8); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* Tagline */
.splash-tagline-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  animation: tagline-fade 0.6s ease 1.1s both;
}
@keyframes tagline-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.splash-tag-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0A84FF, #BF5AF2);
}
.splash-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* Bottom loader section */
.splash-bottom {
  position: absolute;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 10;
  animation: tagline-fade 0.5s ease 0.3s both;
}
.splash-loader {
  width: 140px;
  height: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
}
.splash-loader-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0A84FF, #BF5AF2, #FF375F);
  border-radius: 999px;
  animation: splash-load 2.4s cubic-bezier(0.4,0,0.2,1) forwards;
  box-shadow: 0 0 8px rgba(10,132,255,0.8);
}
@keyframes splash-load { to { width: 100%; } }

.splash-version {
  font-size: 11px;
  color: rgba(255,255,255,0.2);
  font-weight: 500;
  letter-spacing: 1px;
}



/* ── Onboarding ────────────────────────────────────────────── */
.onboarding-screen {
  background: var(--bg-primary);
}

.onboarding-wrap {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.onboarding-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-8) var(--space-6);
  opacity: 0;
  transform: translateX(60px);
  transition: all var(--duration-slow) var(--ease-spring);
  pointer-events: none;
}

.onboarding-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.onboarding-slide.exit {
  opacity: 0;
  transform: translateX(-60px);
}

.onboarding-illustration {
  flex: 1;
  width: 100%;
  max-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.onboarding-bg-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
}

.onboarding-card-stack {
  position: relative;
  width: 220px;
  height: 280px;
}

.ob-card {
  position: absolute;
  width: 160px;
  height: 200px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.ob-card-1 {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) rotate(-8deg);
  z-index: 1;
}
.ob-card-2 {
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) rotate(4deg);
  z-index: 2;
}
.ob-card-main {
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 180px;
  height: 220px;
}

.onboarding-text {
  text-align: center;
  padding: var(--space-6) var(--space-4);
}

.onboarding-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: var(--space-8);
}

.ob-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--surface-3);
  transition: all var(--duration-base) var(--ease-spring);
}

.ob-dot.active {
  width: 20px;
  background: var(--blue);
}

.onboarding-footer {
  padding: var(--space-5) var(--space-6);
  padding-bottom: calc(var(--space-5) + env(safe-area-inset-bottom, var(--safe-bottom)));
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.ob-skip {
  background: none;
  border: none;
  font-family: var(--font-family);
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  cursor: pointer;
  text-align: center;
  padding: var(--space-2);
}

/* ── Auth Screen ───────────────────────────────────────────── */
.auth-screen {
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.auth-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.auth-content {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--space-8) var(--space-6);
}

.auth-logo {
  font-size: 28px;
  font-weight: var(--weight-black);
  letter-spacing: -1.5px;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  margin-bottom: var(--space-8);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: var(--space-5) 0;
}

.auth-divider-line {
  flex: 1;
  height: 1px;
  background: var(--separator);
}

.auth-divider-text {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.social-auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: 14px var(--space-5);
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid var(--glass-border-strong);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-smooth);
  box-shadow: inset 0 1px 0 var(--glass-highlight);
  width: 100%;
}

.social-auth-btn:active { transform: scale(0.97); background: var(--surface-2); }

.social-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Home Screen ───────────────────────────────────────────── */
.home-screen {
  background: var(--bg-primary);
}

.home-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: env(safe-area-inset-top, 10px) var(--space-4) 0;
}

.home-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  height: 56px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  margin-top: 4px;
  border-radius: var(--radius-xl);
  padding: 0 var(--space-4);
  border: 1px solid var(--glass-border);
}

.home-logo {
  font-size: 22px;
  font-weight: var(--weight-black);
  letter-spacing: -1px;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home-header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.stories-section {
  padding: 0 0 0 0;
}

.stories-scroll {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  padding: var(--space-4) var(--space-4);
  scrollbar-width: none;
}
.stories-scroll::-webkit-scrollbar { display: none; }

/* Feed Post */
.feed-post {
  margin-bottom: var(--space-2);
  background: var(--bg-card);
  border-top: 1px solid var(--separator);
  border-bottom: 1px solid var(--separator);
}

.feed-post-media {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.feed-post-media img, .feed-post-media video {
  width: 100%;
  display: block;
  object-fit: cover;
}

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

.feed-post-save {
  margin-left: auto;
}



/* Flash Deal */
.flash-deal-card {
  background: linear-gradient(135deg, rgba(255,55,95,0.15), rgba(255,159,10,0.15));
  border: 1px solid rgba(255,55,95,0.25);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  display: flex;
  gap: var(--space-4);
  align-items: center;
  min-width: 260px;
  cursor: pointer;
  transition: transform var(--duration-base) var(--ease-spring);
}

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

.flash-timer {
  display: flex;
  gap: 3px;
  align-items: center;
}

.flash-timer-block {
  background: var(--pink);
  color: white;
  font-size: 12px;
  font-weight: var(--weight-bold);
  padding: 3px 6px;
  border-radius: 5px;
  min-width: 28px;
  text-align: center;
}

.flash-timer-sep {
  color: var(--pink);
  font-weight: var(--weight-bold);
  font-size: 14px;
}

/* ── Discover Screen ───────────────────────────────────────── */
.discover-header {
  padding: env(safe-area-inset-top, 10px) var(--space-4) 0;
  position: relative;
  z-index: 10;
}

.discover-search {
  margin: var(--space-3) 0 var(--space-4);
}

.trending-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

.trending-cell {
  aspect-ratio: 1;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.trending-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-smooth);
}

.trending-cell:active img { transform: scale(1.05); }

.trending-cell.featured {
  grid-column: span 2;
  aspect-ratio: 2/1;
}

/* ── Shop Screen ───────────────────────────────────────────── */
.shop-hero {
  margin: 0 var(--space-4) var(--space-5);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  position: relative;
  height: 200px;
}

.shop-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(0,0,0,0.6), transparent);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Brand Chip */
.brand-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  min-width: 72px;
  cursor: pointer;
}

.brand-chip-avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  border: 2px solid var(--separator);
  overflow: hidden;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all var(--duration-base) var(--ease-spring);
}

.brand-chip:active .brand-chip-avatar {
  transform: scale(0.88);
  border-color: var(--blue);
}

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

/* ── Product Screen ────────────────────────────────────────── */
.product-screen {
  background: var(--bg-primary);
}

.product-gallery {
  position: relative;
  height: 460px;
  overflow: hidden;
}

.product-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-dots {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
}

.gallery-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transition: all var(--duration-base) var(--ease-spring);
}

.gallery-dot.active {
  width: 16px;
  border-radius: 3px;
  background: white;
}

.product-back-btn {
  position: absolute;
  top: calc(env(safe-area-inset-top, 10px) + 10px);
  left: var(--space-4);
  z-index: 20;
}

.product-share-btn {
  position: absolute;
  top: calc(env(safe-area-inset-top, 10px) + 10px);
  right: var(--space-4);
  z-index: 20;
}

.product-details {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.product-info-section {
  padding: var(--space-5) var(--space-4);
}

.product-price-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-2) 0 var(--space-4);
}

.product-price-main {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  letter-spacing: -0.5px;
}

.product-footer {
  position: sticky;
  bottom: 0;
  padding: var(--space-4);
  padding-bottom: calc(var(--space-4) + env(safe-area-inset-bottom, var(--safe-bottom)));
  background: var(--glass-bg-heavy);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border-top: 1px solid var(--separator);
  display: flex;
  gap: var(--space-3);
  align-items: center;
}

/* Review Stars */
.star-row {
  display: flex;
  gap: 2px;
  align-items: center;
}

.star {
  color: var(--orange);
  font-size: 14px;
}

/* Size Selector */
.size-options {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.size-btn {
  min-width: 44px;
  height: 40px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--separator);
  background: none;
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-smooth);
}

.size-btn.selected {
  border-color: var(--text-primary);
  background: var(--text-primary);
  color: var(--bg-primary);
}

.size-btn.unavailable {
  color: var(--text-quaternary);
  position: relative;
}

.size-btn.unavailable::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  height: 1px;
  background: var(--separator);
  transform: translate(-50%,-50%) rotate(-45deg);
}

/* Color Selector */
.color-options {
  display: flex;
  gap: var(--space-3);
}

.color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-spring);
}

.color-swatch.selected {
  border-color: var(--text-primary);
  box-shadow: 0 0 0 3px var(--bg-primary), 0 0 0 5px var(--text-primary);
}

/* ── Creator Profile ───────────────────────────────────────── */
.creator-cover {
  position: relative;
  height: 200px;
}

.creator-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.creator-cover-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(transparent, var(--bg-primary));
}

.creator-avatar-wrap {
  position: relative;
  margin-top: -40px;
  margin-left: var(--space-4);
  width: fit-content;
}

.creator-profile-header {
  padding: var(--space-3) var(--space-4) var(--space-5);
}

.creator-name-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: 4px;
}

.creator-handle {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

.creator-bio {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin: var(--space-3) 0;
}

.creator-stats {
  display: flex;
  gap: var(--space-6);
  padding: var(--space-4) var(--space-4);
  border-top: 1px solid var(--separator);
  border-bottom: 1px solid var(--separator);
}

.creator-action-row {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4);
}

.creator-tab-bar {
  display: flex;
  border-bottom: 1px solid var(--separator);
}

.creator-tab {
  flex: 1;
  padding: var(--space-3) 0;
  border: none;
  background: none;
  font-family: var(--font-family);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-tertiary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--duration-base) var(--ease-smooth);
}

.creator-tab.active {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
}

.creator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2px;
}

.creator-grid-cell {
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
}

.creator-grid-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-smooth);
}
.creator-grid-cell:active img { transform: scale(1.05); }

/* ── Video Screen ──────────────────────────────────────────── */
.video-screen {
  background: #000;
  overflow: hidden;
}

.video-feed {
  height: 100%;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
}
.video-feed::-webkit-scrollbar { display: none; }

.video-item {
  position: relative;
  height: 100vh;
  height: 100dvh;
  scroll-snap-align: start;
  overflow: hidden;
  background: #000;
}

.video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.2) 40%,
    rgba(0,0,0,0) 70%
  );
}

.video-sidebar {
  position: absolute;
  right: var(--space-4);
  bottom: calc(env(safe-area-inset-bottom, 12px) + 80px);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  align-items: center;
}

.video-sidebar-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  transition: transform var(--duration-base) var(--ease-spring);
}

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

.video-sidebar-icon {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.2);
}

.video-sidebar-label {
  font-size: 11px;
  font-weight: var(--weight-medium);
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.video-bottom {
  position: absolute;
  bottom: env(safe-area-inset-bottom, 12px);
  left: 0;
  right: 72px;
  padding: 0 var(--space-4) var(--space-5);
}

.video-product-strip {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  padding-bottom: var(--space-2);
  margin-bottom: var(--space-3);
}
.video-product-strip::-webkit-scrollbar { display: none; }

.video-product-chip {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 12px 8px 8px;
  background: var(--glass-bg-heavy);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border-strong);
  border-radius: var(--radius-full);
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--duration-base) var(--ease-spring);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}

.video-product-chip:active { transform: scale(0.95); }

.video-product-chip img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
}

/* ── Chat Screen ───────────────────────────────────────────── */
.chat-list-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);
}

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

.chat-list-item.unread .chat-preview {
  color: var(--text-primary);
  font-weight: var(--weight-medium);
}

.chat-preview {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-time {
  font-size: var(--text-xs);
  color: var(--text-quaternary);
  flex-shrink: 0;
}

/* Chat conversation */
.chat-conversation {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
}

.chat-day-label {
  text-align: center;
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  font-weight: var(--weight-medium);
  margin: var(--space-3) 0;
}

.chat-msg-wrap {
  display: flex;
  flex-direction: column;
}

.chat-msg-wrap.sent { align-items: flex-end; }
.chat-msg-wrap.received { align-items: flex-start; }

.chat-input-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom, var(--safe-bottom)));
  background: var(--glass-bg-heavy);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border-top: 1px solid var(--separator);
}

.chat-input {
  flex: 1;
  background: var(--surface-1);
  border: 1px solid var(--separator);
  border-radius: var(--radius-full);
  padding: 10px 16px;
  font-family: var(--font-family);
  font-size: var(--text-base);
  color: var(--text-primary);
  outline: none;
}

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

/* ── Cart Screen ───────────────────────────────────────────── */
.cart-summary {
  background: var(--surface-1);
  border: 1px solid var(--separator);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  margin: var(--space-4);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-sm);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--separator);
}
.cart-summary-row:last-child { border-bottom: none; font-weight: var(--weight-semibold); font-size: var(--text-base); }

/* ── Checkout Screen ───────────────────────────────────────── */
.checkout-section {
  background: var(--surface-1);
  border: 1px solid var(--separator);
  border-radius: var(--radius-xl);
  margin: 0 var(--space-4) var(--space-4);
  overflow: hidden;
}

.checkout-section-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: var(--space-4) var(--space-4) var(--space-2);
}

/* ── Payment Success ───────────────────────────────────────── */
.success-screen {
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  padding: var(--space-8);
}

.success-icon-wrap {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-full);
  background: rgba(48,209,88,0.15);
  border: 2px solid var(--emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: success-pop var(--duration-slow) var(--ease-spring) forwards;
}

@keyframes success-pop {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.confetti-piece {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  animation: confetti-fall var(--duration-slowest) ease forwards;
}

@keyframes confetti-fall {
  0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(300px) rotate(360deg); opacity: 0; }
}

/* ── Studio Screen ─────────────────────────────────────────── */
.studio-stat-card {
  flex: 1;
  background: var(--surface-1);
  border: 1px solid var(--separator);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
}

.studio-chart-wrap {
  background: var(--surface-1);
  border: 1px solid var(--separator);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  margin: 0 var(--space-4) var(--space-4);
}

/* ── Settings Screen ───────────────────────────────────────── */
.settings-group {
  background: var(--surface-1);
  border: 1px solid var(--separator);
  border-radius: var(--radius-xl);
  margin: 0 var(--space-4) var(--space-4);
  overflow: hidden;
}

.settings-row {
  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);
}

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

.settings-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.settings-row-content { flex: 1; }
.settings-row-title { font-size: var(--text-base); color: var(--text-primary); }
.settings-row-subtitle { font-size: var(--text-xs); color: var(--text-tertiary); margin-top: 2px; }

/* ── Creator Social Feed Post Products ─────────────────────── */
.post-product-carousel {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  padding: 0 var(--space-4) var(--space-4);
  scrollbar-width: none;
}
.post-product-carousel::-webkit-scrollbar {
  display: none;
}
.post-product-card {
  width: 110px;
  background: var(--surface-1);
  border: 1px solid var(--separator);
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}
.post-product-card-img {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.post-product-card-save {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  color: var(--text-tertiary);
}
.post-product-card-save.saved {
  color: var(--blue);
}
.post-product-card-info {
  padding: 6px var(--space-2) var(--space-2);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.post-product-card-brand {
  font-size: 10px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.post-product-card-price {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}

/* ── Discover Screen Revamped ──────────────────────────────── */
.ai-assistant-banner {
  background: linear-gradient(135deg, rgba(10,132,255,0.08) 0%, rgba(191,90,242,0.08) 100%);
  border: 1px solid var(--separator);
  border-radius: var(--radius-2xl);
  margin: 0 var(--space-4) var(--space-4);
  padding: var(--space-4);
}
.chip-ai {
  background: var(--surface-1) !important;
  color: var(--text-secondary) !important;
  border: 1px solid var(--separator) !important;
  white-space: nowrap;
  font-size: 12px !important;
}
.ai-sparkles-btn {
  font-weight: 600 !important;
  color: var(--blue) !important;
}
.creator-preview-card {
  width: 250px;
  background: var(--surface-1);
  border: 1px solid var(--separator);
  border-radius: var(--radius-2xl);
  padding: var(--space-4);
  flex-shrink: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: transform var(--duration-base) var(--ease-spring);
}
.creator-preview-card:active {
  transform: scale(0.97);
}
.creator-preview-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.follow-btn-discover {
  font-size: 11px !important;
  padding: 4px var(--space-3) !important;
  border-radius: var(--radius-full) !important;
}
.creator-preview-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.creator-preview-thumb {
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.discover-tabs-bar {
  display: flex;
  padding: 0 var(--space-4);
  gap: var(--space-4);
  border-bottom: 1px solid var(--separator);
  margin-bottom: var(--space-4);
}
.discover-tab {
  padding: 10px 0;
  background: none;
  border: none;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-tertiary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--duration-base) var(--ease-smooth);
}
.discover-tab.active {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
}
.discover-popular-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
.popular-post-card {
  background: var(--surface-1);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid var(--separator);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.popular-post-media {
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.popular-post-emoji {
  font-size: 48px;
  opacity: 0.8;
}
.popular-post-avatar-overlay {
  position: absolute;
  bottom: 8px;
  left: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
}
.popular-post-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: white;
  border: 1.5px solid white;
}
.popular-post-handle {
  font-size: 11px;
  font-weight: 600;
  color: white;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}
.popular-post-count-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  color: white;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 2px;
  z-index: 2;
}
.popular-post-card-footer {
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── Watch Screen Styles ───────────────────────────────────── */
.video-header-tabs {
  position: absolute;
  top: calc(env(safe-area-inset-top, 10px) + 8px);
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  padding: 0 var(--space-4);
  scrollbar-width: none;
}
.video-header-tabs::-webkit-scrollbar {
  display: none;
}
.video-top-tab {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-family);
  white-space: nowrap;
  cursor: pointer;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.video-top-tab.active {
  color: white;
  border-bottom-color: white;
}
.video-follow-plus {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  border: 1.5px solid #000;
}
.video-shop-items-btn {
  width: 100%;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-lg);
  padding: 12px var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-family);
  cursor: pointer;
  margin-top: 8px;
  transition: all var(--duration-base) var(--ease-spring);
}
.video-shop-items-btn:active {
  transform: scale(0.97);
  background: rgba(0,0,0,0.8);
}
.video-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 100;
  display: flex;
  align-items: flex-end;
}
.video-drawer-sheet {
  width: 100%;
  background: var(--bg-primary);
  border-radius: 20px 20px 0 0;
  padding: var(--space-4) 0;
  max-height: 70%;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 -8px 30px rgba(0,0,0,0.25);
}
.video-drawer-sheet.open {
  transform: translateY(0);
}
.video-drawer-handle {
  width: 36px;
  height: 5px;
  background: var(--surface-3);
  border-radius: var(--radius-full);
  align-self: center;
  margin-bottom: var(--space-3);
}
.video-drawer-header {
  padding: 0 var(--space-4) var(--space-4);
  border-bottom: 1px solid var(--separator);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.video-drawer-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-2);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.video-drawer-content {
  overflow-y: auto;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.drawer-product-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--surface-1);
  border: 1px solid var(--separator);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: background var(--duration-fast);
}
.drawer-product-row:active {
  background: var(--surface-2);
}
.drawer-product-image {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.drawer-product-info {
  flex: 1;
  min-width: 0;
}
.drawer-product-brand {
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
}
.drawer-product-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.drawer-product-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 2px;
}
.drawer-product-shop-btn {
  padding: 6px 14px !important;
  border-radius: var(--radius-full) !important;
}

/* ── Profile Screen Styles ─────────────────────────────────── */
.profile-avatar-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1.5px solid var(--separator);
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-edit-link {
  border: none;
  background: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  cursor: pointer;
  padding: 0;
  margin-top: 4px;
}
.profile-action-row {
  display: flex;
  padding: 0 var(--space-4);
  gap: var(--space-3);
  align-items: center;
}
.profile-btn-dark {
  flex: 1;
  background: var(--text-primary);
  color: var(--bg-primary);
  border: none;
  border-radius: 8px;
  height: 38px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-family);
  transition: opacity 0.2s;
}
.profile-btn-dark:active {
  opacity: 0.85;
}
.profile-btn-light {
  flex: 1;
  background: none;
  color: var(--text-primary);
  border: 1px solid var(--separator-strong);
  border-radius: 8px;
  height: 38px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-family);
  transition: background 0.2s;
}
.profile-btn-light:active {
  background: var(--surface-1);
}
.profile-btn-icon {
  width: 38px;
  height: 38px;
  background: none;
  color: var(--text-primary);
  border: 1px solid var(--separator-strong);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.profile-btn-icon:active {
  background: var(--surface-1);
}
.profile-suggested-creator-card {
  width: 140px;
  border: 1px solid var(--separator);
  border-radius: var(--radius-2xl);
  padding: var(--space-4) var(--space-3) var(--space-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  background: var(--surface-1);
  text-align: center;
}
.profile-suggested-avatar-wrap {
  position: relative;
  margin-bottom: var(--space-2);
}
.profile-suggested-username {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}
.profile-suggested-followedby {
  font-size: 10px;
  color: var(--text-tertiary);
  margin-top: 2px;
  line-height: 1.3;
  height: 26px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: var(--space-3);
}
.profile-suggested-follow-btn {
  width: 100%;
  background: var(--blue);
  color: white;
  border: none;
  border-radius: 20px;
  padding: 5px 0;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-family);
}
.profile-tabs-bar {
  display: flex;
  padding: 0 var(--space-4);
  border-bottom: 1px solid var(--separator);
  margin-top: var(--space-5);
}
.profile-tab {
  flex: 1;
  padding: var(--space-3) 0;
  background: none;
  border: none;
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-tertiary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  text-align: center;
  transition: all var(--duration-base) var(--ease-smooth);
}
.profile-tab.active {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
}
.profile-empty-state {
  text-align: center;
  padding: var(--space-8) var(--space-4);
}

/* ── Search Screen Styles ──────────────────────────────────── */
.search-suggest-list {
  display: flex;
  flex-direction: column;
}
.search-suggest-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 14px 0;
  border-bottom: 1px solid var(--separator);
  cursor: pointer;
}
.search-suggest-row:active {
  opacity: 0.7;
}
.search-suggest-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-suggest-text {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ── Profile Drawer Modals ─────────────────────────────────── */
.profile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 200;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 280ms ease, visibility 280ms ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.profile-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}
.profile-drawer-sheet {
  width: 100%;
  max-width: 500px;
  background: var(--bg-elevated);
  border-top-left-radius: var(--radius-3xl);
  border-top-right-radius: var(--radius-3xl);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
  transform: translateY(100%);
  transition: transform 380ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: var(--space-5) var(--space-4) calc(var(--space-6) + env(safe-area-inset-bottom, 20px));
  z-index: 201;
  border-top: 1px solid var(--separator-strong);
}
.profile-drawer-overlay.open .profile-drawer-sheet {
  transform: translateY(0);
}
.profile-drawer-handle {
  width: 36px;
  height: 5px;
  background: var(--separator-strong);
  border-radius: var(--radius-full);
  margin: 0 auto var(--space-4);
}
.profile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-5);
}
.profile-drawer-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}
.profile-drawer-close {
  background: var(--surface-3);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
}
/* Share options */
.share-options-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.share-option-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
}
.share-option-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--separator);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: background 0.2s;
}
.share-option-btn:hover .share-option-icon {
  background: var(--surface-3);
}
.share-option-label {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
  text-align: center;
}
/* Input lines */
.profile-form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

/* ── Discover AI Chat Screen Styles ────────────────────────── */
.ai-chat-conversation {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-2) 0;
}
.ai-chat-bubble {
  padding: 10px 14px;
  border-radius: var(--radius-xl);
  font-size: 14px;
  line-height: 1.5;
  max-width: 80%;
  animation: scale-pop 0.28s var(--ease-spring) both;
}
.ai-chat-bubble-received {
  background: var(--surface-2);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.ai-chat-bubble-sent {
  background: var(--blue);
  color: white;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}
.ai-chat-product-card {
  background: var(--surface-2);
  border: 1px solid var(--separator);
  border-radius: var(--radius-xl);
  padding: 10px;
  display: flex;
  gap: 10px;
  cursor: pointer;
  margin-top: 4px;
  align-self: flex-start;
  width: 250px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, background-color 0.2s;
}
.ai-chat-product-card:active {
  transform: scale(0.98);
  background: var(--surface-3);
}
.ai-chat-input-bar {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  border-top: 1px solid var(--separator);
  padding-top: var(--space-3);
  margin-top: auto;
}
.ai-chat-input {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--separator);
  border-radius: var(--radius-full);
  padding: 10px 16px;
  font-family: var(--font-family);
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
}
.ai-chat-input:focus {
  border-color: var(--blue);
}
.ai-chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--space-3);
}
.ai-chat-chip {
  background: var(--surface-2);
  border: 1px solid var(--separator);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}
.ai-chat-chip:hover {
  background: var(--surface-3);
  color: var(--text-primary);
}
.ai-typing-indicator {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-radius: var(--radius-xl);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  width: fit-content;
}
.ai-typing-dot {
  width: 6px;
  height: 6px;
  background: var(--text-tertiary);
  border-radius: 50%;
  animation: typing-bounce 1s infinite ease-in-out;
}
.ai-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.ai-typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* ── Story Viewer Overlay ───────────────────────────────────── */
.story-viewer-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  color: white;
  padding: var(--space-4);
  animation: fade-in 0.25s ease both;
  font-family: var(--font-family);
}
.story-viewer-progress-bar {
  display: flex;
  gap: 4px;
  margin-top: calc(env(safe-area-inset-top, 20px) + 4px);
  margin-bottom: var(--space-3);
}
.story-viewer-progress-track {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  overflow: hidden;
}
.story-viewer-progress-fill {
  height: 100%;
  width: 0;
  background: white;
  transition: width 4s linear;
}
.story-viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}
.story-viewer-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  border: 1.5px solid white;
}
.story-viewer-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(50,50,50,0.5) 0%, #000 100%);
  border-radius: var(--radius-2xl);
  margin-bottom: var(--space-5);
  border: 1px solid rgba(255,255,255,0.1);
  position: relative;
}
.story-viewer-emoji-glow {
  font-size: 72px;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.4));
}
.story-viewer-footer {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: calc(env(safe-area-inset-bottom, 16px) + 8px);
}
.story-viewer-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  padding: 10px 16px;
  color: white;
  font-family: var(--font-family);
  font-size: 14px;
  outline: none;
}
.story-viewer-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

/* ── Watch Video Drawer & Comments Styles ──────────────────── */
.video-comments-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-1) 0;
}
.video-comment-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 6px 0;
}
.video-comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.video-comment-bubble {
  flex: 1;
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.video-comment-user {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}
.video-comment-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}
.video-comment-input-bar {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  border-top: 1px solid var(--separator);
  padding-top: var(--space-3);
  margin-top: auto;
}
.video-comment-input {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--separator);
  border-radius: var(--radius-full);
  padding: 8px 14px;
  font-family: var(--font-family);
  font-size: 13px;
  color: var(--text-primary);
  outline: none;
}
.video-comment-input:focus {
  border-color: var(--blue);
}

/* ── Create Post Screen Styles ──────────────────────────────── */
.media-selector-area {
  width: 100%;
  height: 240px;
  border: 2px dashed var(--separator);
  border-radius: var(--radius-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  background: var(--surface-1);
  transition: all var(--duration-base) var(--ease-spring);
  position: relative;
}

.media-selector-area:hover {
  border-color: var(--blue);
  background: var(--surface-2);
}

.media-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  pointer-events: none;
}

.media-preview-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.media-preview-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-2xl);
}

.remove-preview-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10;
  transition: transform var(--duration-fast);
}

.remove-preview-btn:active {
  transform: scale(0.9);
}



.create-post-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-4);
  padding-bottom: calc(env(safe-area-inset-bottom, 16px) + 8px);
  background: var(--bg-primary);
  border-top: 1px solid var(--separator);
  z-index: 10;
}

/* Upload Box Styles */
.upload-box {
  width: 100%;
  height: 200px;
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  background: var(--surface-1);
  position: relative;
  transition: border-color 0.2s;
}

.upload-box:not(.has-file):hover {
  border-color: var(--blue);
}

.upload-box.has-file {
  border: none;
}

.tag-products-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.tag-product-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--surface-1);
  border: 1px solid var(--separator);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--duration-fast);
}

.tag-product-card:hover {
  background: var(--surface-2);
}

.tag-product-card.selected {
  border-color: var(--blue);
  background: rgba(10, 132, 255, 0.05);
}

.tag-product-emoji {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.tag-product-details {
  flex: 1;
}

.tag-product-brand {
  font-size: 11px;
  font-weight: 600;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.tag-product-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.tag-product-checkbox {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tag-product-checkbox .checkbox-box {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid var(--text-quaternary);
  transition: all var(--duration-fast);
  position: relative;
}

.tag-product-card.selected .tag-product-checkbox .checkbox-box {
  background: var(--blue);
  border-color: var(--blue);
}

.tag-product-card.selected .tag-product-checkbox .checkbox-box::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════
   LTK — Brand Spotlight (Feed İçi Marka Önerileri)
   ═══════════════════════════════════════════════════════════ */

.brand-spotlight-card {
  margin: 8px 0 4px;
  padding: 16px 0 20px;
  border-top: 1px solid var(--separator);
  border-bottom: 1px solid var(--separator);
  background: var(--bg-primary);
}

.brand-spotlight-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 14px;
}

.brand-spotlight-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.brand-spotlight-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-family);
}

.brand-spotlight-list {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.brand-spotlight-list::-webkit-scrollbar { display: none; }

.brand-spotlight-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 88px;
  flex-shrink: 0;
}

.brand-spotlight-logo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1.5px solid var(--separator);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s ease;
}
.brand-spotlight-logo:hover { transform: scale(1.05); }

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

.brand-spotlight-follow-btn {
  font-size: 12px;
  font-weight: 700;
  color: white;
  background: var(--blue);
  border: none;
  border-radius: 20px;
  padding: 6px 14px;
  cursor: pointer;
  font-family: var(--font-family);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.brand-spotlight-follow-btn.following {
  background: var(--surface-2);
  color: var(--text-secondary);
  border: 1px solid var(--separator);
}
.brand-spotlight-follow-btn:hover { opacity: 0.85; transform: scale(0.97); }

/* ═══════════════════════════════════════════════════════════
   LTK — Influencer Cards (Feed Sonu Creator Kartları)
   ═══════════════════════════════════════════════════════════ */

.ltk-creator-card {
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: var(--space-3);
  border: 1px solid var(--separator);
  transition: transform 0.2s ease;
}
.ltk-creator-card:hover { transform: translateY(-1px); }

.ltk-creator-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 12px;
  gap: 10px;
}

.ltk-creator-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

/* ═══════════════════════════════════════════════════════════
   Brand Profile — Post Grid Card
   ═══════════════════════════════════════════════════════════ */

.brand-post-card {
  transition: opacity 0.2s ease;
}
.brand-post-card:hover { opacity: 0.88; }

/* ═══════════════════════════════════════════════════════════
   Auth — Hesap Türü Seçim Kartları
   ═══════════════════════════════════════════════════════════ */

.account-type-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1.5px solid var(--separator);
  background: var(--surface);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.account-type-card:hover {
  border-color: var(--blue);
  background: rgba(10,132,255,0.04);
  transform: translateY(-1px);
}

.account-type-card.selected {
  border-color: var(--blue);
  background: rgba(10,132,255,0.07);
  box-shadow: 0 0 0 3px rgba(10,132,255,0.12);
}

.account-type-card.account-type-brand:hover {
  border-color: #BF5AF2;
  background: rgba(191,90,242,0.05);
}

.account-type-card.account-type-brand.selected {
  border-color: #BF5AF2;
  background: rgba(191,90,242,0.08);
  box-shadow: 0 0 0 3px rgba(191,90,242,0.15);
}

.account-type-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.account-type-text {
  flex: 1;
  min-width: 0;
}

.account-type-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.account-type-desc {
  font-size: 11px;
  color: var(--text-tertiary);
  line-height: 1.4;
}

.account-type-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.2s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.account-type-card.account-type-brand .account-type-check {
  background: #BF5AF2;
}


