/* =========================================================
   HunarPro — Ultra-Premium Monochrome Studio Design (v1.5)
   Dark Mode: Deep Obsidian + Pure White Text (#FFFFFF)
   Light Mode: Pure White + Pure Black Text (#000000)
   Zero Cheap Glow | Frosted Glass | Safe-Area Protected
   ========================================================= */

:root {
  /* DARK MODE (Default — Pure High-Contrast Luxury) */
  --bg-main: #000000;
  --bg-surface: #0a0a0d;
  --bg-elevated: #141418;
  --bg-hover: #1d1d23;
  --bg-glass: rgba(10, 10, 13, 0.82);

  --border-subtle: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.22);

  /* Strict Pure White Typography in Dark Mode */
  --text-primary: #ffffff;
  --text-secondary: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.72);

  /* Monochrome Luxury Accent (Crisp White Pill with Black Ink) */
  --accent: #ffffff;
  --accent-hover: #e4e4e7;
  --accent-soft: rgba(255, 255, 255, 0.12);
  --accent-text: #000000;

  /* Status & Utility Colors */
  --hashtag-color: #ffffff;
  --danger: #ff4d4f;
  --danger-soft: rgba(255, 77, 79, 0.16);
  --success: #22c55e;
  --success-soft: rgba(34, 197, 94, 0.16);
  --ai-badge-bg: rgba(255, 255, 255, 0.12);
  --ai-badge-text: #ffffff;

  /* Safe Areas & Geometry */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --header-height: 60px;
  --nav-height: 64px;

  --font-sans: 'Plus Jakarta Sans', 'Noto Sans Bengali', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-scale: 1;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --transition: 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

/* LIGHT MODE (Pure White Canvas + Strict Pure Black Typography) */
[data-theme="light"] {
  --bg-main: #ffffff;
  --bg-surface: #ffffff;
  --bg-elevated: #f4f4f6;
  --bg-hover: #e9e9ee;
  --bg-glass: rgba(255, 255, 255, 0.86);

  --border-subtle: rgba(0, 0, 0, 0.10);
  --border-strong: rgba(0, 0, 0, 0.22);

  /* Strict Pure Black Typography in Light Mode */
  --text-primary: #000000;
  --text-secondary: #000000;
  --text-muted: rgba(0, 0, 0, 0.68);

  /* Crisp Black Accent Pill with White Ink */
  --accent: #000000;
  --accent-hover: #1f1f24;
  --accent-soft: rgba(0, 0, 0, 0.08);
  --accent-text: #ffffff;

  --hashtag-color: #000000;
  --ai-badge-bg: rgba(0, 0, 0, 0.08);
  --ai-badge-text: #000000;
}

/* Global Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: calc(15px * var(--font-scale));
  line-height: 1.45;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

body.reduce-motion *, body.reduce-motion *::before, body.reduce-motion *::after {
  animation-duration: 0.01ms !important;
  transition-duration: 0.01ms !important;
}

button, input, textarea, select {
  font-family: inherit;
  color: var(--text-primary);
  border: none;
  background: none;
  outline: none;
}

button { cursor: pointer; }
img, video { display: block; max-width: 100%; }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: var(--radius-pill); }

.hide-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }
.hide-scrollbar::-webkit-scrollbar { display: none; }

/* =========================================================
   1. Ultra-Premium Cinematic Splash Intro (2.8s)
   ========================================================= */
.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(circle at 50% 42%, #16161d 0%, #050507 58%, #000000 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.55s ease;
}

.splash-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, black 22%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at center, black 22%, transparent 72%);
  pointer-events: none;
}

.splash-screen.hidden {
  opacity: 0;
  transform: scale(1.04);
  visibility: hidden;
  pointer-events: none;
}

.splash-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.splash-emblem-shell {
  position: relative;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash-orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  animation: splashOrbitIn 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.splash-orbit-ring.outer {
  inset: -12px;
  border-radius: 36px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  animation: splashOuterSpin 10s linear infinite, splashFadeIn 1.2s ease forwards;
}

.splash-logo-core {
  position: relative;
  width: 78px;
  height: 78px;
  border-radius: 22px;
  background: linear-gradient(145deg, #1b1b22, #070709);
  border: 1px solid rgba(255, 255, 255, 0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.75);
  animation: splashCorePop 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Precision Metallic Sheen Sweep (Not Neon Glow) */
.splash-logo-core::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -90%;
  width: 60%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: rotate(25deg);
  animation: splashSheen 1.4s cubic-bezier(0.4, 0, 0.2, 1) 0.55s forwards;
}

.splash-logo-core svg {
  width: 42px;
  height: 42px;
}

.splash-wordmark-wrap {
  text-align: center;
  overflow: hidden;
}

.splash-brand {
  font-size: 30px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.22em;
  opacity: 0;
  transform: translateY(16px);
  animation: splashWordReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.45s forwards;
}

.splash-brand span {
  font-weight: 400;
  opacity: 0.72;
}

.splash-tagline {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  opacity: 0;
  animation: splashFadeIn 0.8s ease 0.95s forwards;
}

.splash-line-track {
  width: 148px;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-top: 4px;
}

.splash-line-fill {
  width: 0%;
  height: 100%;
  background: #ffffff;
  animation: splashLineGrow 2.3s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

@keyframes splashCorePop {
  0% { opacity: 0; transform: scale(0.72) rotate(-8deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes splashOrbitIn {
  0% { opacity: 0; transform: scale(1.35); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes splashOuterSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes splashSheen {
  0% { left: -90%; }
  100% { left: 150%; }
}

@keyframes splashWordReveal {
  0% { opacity: 0; transform: translateY(16px); letter-spacing: 0.28em; }
  100% { opacity: 1; transform: translateY(0); letter-spacing: -0.02em; }
}

@keyframes splashFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes splashLineGrow {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* =========================================================
   2. App Shell, Frosted Glass Header & Safe-Area Protection
   ========================================================= */
.app-shell {
  width: 100%;
  height: 100dvh;
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  position: relative;
  background-color: var(--bg-main);
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 80;
  padding-top: var(--safe-top);
  background-color: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.header-inner {
  height: var(--header-height);
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.04em;
}

.brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.brand-name span {
  font-weight: 400;
  opacity: 0.72;
}

/* Search Bar */
.header-search-wrap {
  flex: 1;
  max-width: 480px;
  position: relative;
}

.search-box {
  width: 100%;
  height: 40px;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 0 14px 0 38px;
  font-size: 13.5px;
  color: var(--text-primary);
  transition: border-color var(--transition), background-color var(--transition);
}

.search-box:focus {
  border-color: var(--border-strong);
  background-color: var(--bg-surface);
}

.search-box::placeholder {
  color: var(--text-muted);
}

.search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-primary);
  opacity: 0.7;
  pointer-events: none;
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  z-index: 120;
  max-height: 290px;
  overflow-y: auto;
  display: none;
}

.search-dropdown.open { display: block; }

.search-item {
  padding: 11px 14px;
  font-size: 13.5px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
}

.search-item:last-child { border-bottom: none; }
.search-item:hover { background: var(--bg-elevated); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  background: transparent;
  border: 1px solid transparent;
  transition: background-color var(--transition), border-color var(--transition), transform 0.12s ease;
}

.icon-btn:hover {
  background-color: var(--bg-elevated);
  border-color: var(--border-subtle);
}

.icon-btn:active { transform: scale(0.93); }

.icon-btn svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  stroke-width: 1.85;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =========================================================
   3. Main Viewport & Crisp Category Strip
   ========================================================= */
.app-main {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 18px);
}

.view-section { display: none; width: 100%; min-height: 100%; }
.view-section.active { display: block; animation: viewFade 0.2s ease; }

@keyframes viewFade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.category-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 30;
}

.cat-chip {
  flex-shrink: 0;
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  background-color: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition);
}

.cat-chip:hover {
  background-color: var(--bg-hover);
  border-color: var(--border-strong);
}

.cat-chip.active {
  background-color: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
  font-weight: 700;
}

/* =========================================================
   4. Stories Bar — Thin Rotating Rainbow Ring (Active Stories Only)
   ========================================================= */
.stories-bar {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 16px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border-subtle);
}

.story-item {
  width: 72px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}

/* Default Normal Ring (No Active Story) */
.story-ring {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  padding: 2.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--border-subtle);
  transition: transform 0.16s ease;
}

.story-item:active .story-ring {
  transform: scale(0.95);
}

/* Thin Smoothly Rotating Rainbow Ring ONLY when has-story is active */
.story-ring.has-story {
  background: transparent;
  padding: 2.5px;
}

.story-ring.has-story::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #ff3b5c,
    #ff8a00,
    #ffd600,
    #22c55e,
    #06b6d4,
    #6366f1,
    #d946ef,
    #ff3b5c
  );
  animation: rainbowRingSpin 5.5s linear infinite;
}

@keyframes rainbowRingSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.story-avatar-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 2.5px;
  background: var(--bg-main);
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  overflow: hidden;
}

.story-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-plus-badge {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  border: 2.5px solid var(--bg-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
}

.story-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  width: 100%;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.story-count-pill {
  position: absolute;
  z-index: 4;
  top: -2px;
  right: -2px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--bg-main);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================================================
   5. Ultra-Premium Cards, Showcase & Controls
   ========================================================= */
.studio-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.hero-showcase-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  padding: 22px 20px;
  overflow: hidden;
}

.hero-showcase-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  border: 1px solid var(--border-subtle);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.hero-kicker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
}

.hero-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.hero-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 18px;
  max-width: 600px;
}

.quick-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.metric-tile {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 12px;
}

.metric-num {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
}

.metric-cap {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 2px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-md);
  background-color: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
  font-size: 13.5px;
  transition: background-color var(--transition), opacity var(--transition), transform 0.12s ease;
}

.btn-primary:hover:not(:disabled) { background-color: var(--accent-hover); }
.btn-primary:active:not(:disabled) { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.35; cursor: not-allowed; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-md);
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 13.5px;
  transition: background-color var(--transition), border-color var(--transition);
}

.btn-secondary:hover {
  background-color: var(--bg-hover);
  border-color: var(--border-strong);
}

.btn-follow {
  height: 32px;
  padding: 0 15px;
  border-radius: var(--radius-pill);
  background-color: var(--accent);
  color: var(--accent-text);
  font-size: 12.5px;
  font-weight: 700;
  flex-shrink: 0;
  transition: all var(--transition);
}

.btn-follow.following {
  background-color: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}

.talent-stamp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 7px;
  border: 1px solid var(--border-strong);
  background: var(--accent-soft);
  color: var(--text-primary);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--ai-badge-bg);
  border: 1px solid var(--border-subtle);
  color: var(--ai-badge-text);
  font-size: 11px;
  font-weight: 700;
}

.hashtag { color: var(--hashtag-color); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================
   6. Ultra-Premium 5-Tab Bottom Navigation (Frosted Glass)
   ========================================================= */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  background-color: var(--bg-glass);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-top: 1px solid var(--border-subtle);
  padding-bottom: var(--safe-bottom);
}

.bottom-nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  height: var(--nav-height);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  padding: 0 6px;
}

.nav-tab {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  position: relative;
  transition: color var(--transition);
  min-width: 0;
}

.nav-tab svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.85;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.16s ease;
}

.nav-tab span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  padding: 0 3px;
}

.nav-tab.active {
  color: var(--text-primary);
  font-weight: 700;
}

.nav-tab.active svg {
  stroke-width: 2.2;
  transform: translateY(-1px);
}

.nav-tab.active::after {
  content: '';
  position: absolute;
  top: 0;
  width: 28px;
  height: 2.5px;
  background-color: var(--accent);
  border-radius: 0 0 4px 4px;
}

.nav-tab.upload-tab .upload-pill {
  width: 44px;
  height: 36px;
  border-radius: 12px;
  background-color: var(--accent);
  color: var(--accent-text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, opacity var(--transition);
}

.nav-tab.upload-tab:active .upload-pill { transform: scale(0.92); }
.nav-tab.upload-tab svg { stroke: var(--accent-text); stroke-width: 2.4; }

/* =========================================================
   7. Slide-Out Settings Side Drawer (Right Half-Width Panel)
   ========================================================= */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 180;
  background: rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.side-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 190;
  width: min(330px, 84vw);
  background: var(--bg-surface);
  border-left: 1px solid var(--border-strong);
  display: flex;
  flex-direction: column;
  padding-top: var(--safe-top);
  padding-bottom: var(--safe-bottom);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.55);
}

.side-drawer.open {
  transform: translateX(0);
}

@media (min-width: 768px) {
  .side-drawer {
    /* Slightly under half screen on desktop/tablet as requested */
    width: 44vw;
    max-width: 460px;
    min-width: 340px;
  }
}

.drawer-header {
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.drawer-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.drawer-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drawer-cat-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 15px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  text-align: left;
  transition: background-color var(--transition), border-color var(--transition), transform 0.14s ease;
}

.drawer-cat-btn:hover {
  background: var(--bg-hover);
  border-color: var(--border-strong);
}

.drawer-cat-btn:active { transform: scale(0.985); }

.drawer-cat-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.drawer-cat-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-primary);
}

.drawer-cat-icon svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.drawer-cat-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.drawer-cat-desc {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-chevron {
  width: 18px;
  height: 18px;
  stroke: var(--text-primary);
  stroke-width: 2;
  fill: none;
  opacity: 0.65;
  flex-shrink: 0;
}

.drawer-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-muted);
}

/* =========================================================
   8. Center / Sheet Modals (Sub-Settings, Language, Stories)
   ========================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 240;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding-top: var(--safe-top);
}

.modal-backdrop.open { display: flex; animation: viewFade 0.18s ease; }

.modal-sheet {
  width: 100%;
  max-width: 540px;
  max-height: 88dvh;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 22px 22px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: var(--safe-bottom);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65);
}

.modal-header {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
}

.modal-title {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--text-primary);
}

.modal-body {
  padding: 16px 18px;
  overflow-y: auto;
  flex: 1;
}

/* Sub-Setting Row inside Detail Modal */
.setting-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  margin-bottom: 10px;
}

.setting-item-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.setting-item-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.pill-selector-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.mini-pill {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  transition: all var(--transition);
}

.mini-pill.active {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
}

/* Forms & Switches */
.form-group { margin-bottom: 14px; }
.form-label { display: block; font-size: 12.5px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 11px 13px;
  font-size: 14px;
  color: var(--text-primary);
  transition: border-color var(--transition);
}

.form-input:focus, .form-textarea:focus { border-color: var(--border-strong); }
.form-input.error, .form-textarea.error { border-color: var(--danger); }
.error-text { font-size: 12px; color: var(--danger); margin-top: 5px; display: none; }
.error-text.show { display: block; }

.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}
.switch input { opacity: 0; width: 0; height: 0; }
.switch-slider {
  position: absolute;
  inset: 0;
  background-color: var(--bg-hover);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  transition: background-color var(--transition);
  cursor: pointer;
}
.switch-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background-color: var(--text-primary);
  border-radius: 50%;
  transition: transform var(--transition), background-color var(--transition);
}
.switch input:checked + .switch-slider {
  background-color: var(--accent);
  border-color: var(--accent);
}
.switch input:checked + .switch-slider::before {
  transform: translateX(20px);
  background-color: var(--accent-text);
}

/* Toast Notification */
.toast-container {
  position: fixed;
  top: calc(var(--safe-top) + 16px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  width: calc(100% - 32px);
  max-width: 380px;
}

.toast {
  background: var(--accent);
  color: var(--accent-text);
  border-radius: var(--radius-md);
  padding: 11px 16px;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
  animation: toastIn 0.22s ease;
  text-align: center;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 768px) {
  .modal-backdrop { align-items: center; padding: 20px; }
  .modal-sheet { border-radius: 22px; padding-bottom: 0; }
  .header-inner { padding: 0 24px; }
  .category-strip, .stories-bar { padding-left: 24px; padding-right: 24px; }
}

/* =========================================================
   9. Premium Searchable Language Picker
   ========================================================= */
.lang-picker-sheet { max-height: 82dvh; }
.lang-modal-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.lang-search-area { padding: 12px 18px; border-bottom: 1px solid var(--border-subtle); background: var(--bg-surface); flex-shrink: 0; }
.lang-search-box-wrap { position: relative; display: flex; align-items: center; }
.lang-search-icon { position: absolute; left: 13px; width: 17px; height: 17px; stroke: var(--text-primary); opacity: 0.7; stroke-width: 2; fill: none; pointer-events: none; }

.lang-search-input {
  width: 100%;
  height: 44px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0 38px 0 40px;
  font-size: 14px;
  color: var(--text-primary);
}
.lang-search-input:focus { border-color: var(--border-strong); background: var(--bg-main); }
.lang-search-input::placeholder { color: var(--text-muted); }

.lang-search-clear {
  position: absolute;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}
.lang-search-clear.show { display: flex; }
.lang-search-clear:hover { background: var(--bg-hover); }
.lang-search-clear svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2.2; fill: none; }

.lang-list-body { padding: 10px 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.lang-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: transparent;
  text-align: left;
  transition: background-color var(--transition), border-color var(--transition);
}
.lang-row:hover { background: var(--bg-elevated); border-color: var(--border-subtle); }
.lang-row.active { background: var(--accent-soft); border-color: var(--border-strong); }
.lang-row-left { display: flex; align-items: center; gap: 12px; min-width: 0; }

.lang-code-pill {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-primary);
  flex-shrink: 0;
}
.lang-row.active .lang-code-pill { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.lang-meta { min-width: 0; }
.lang-native { font-size: 14.5px; font-weight: 700; color: var(--text-primary); }
.lang-sub { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lang-active-tag { flex-shrink: 0; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--accent); color: var(--accent-text); font-size: 11px; font-weight: 700; }
.lang-empty-state { padding: 36px 16px; text-align: center; color: var(--text-muted); display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 13.5px; }
.lang-empty-state svg { width: 30px; height: 30px; stroke: var(--text-muted); stroke-width: 1.7; fill: none; }

/* =========================================================
   10. Part 2 Ready — Onboarding, Calendar, Cropper & Profile
   ========================================================= */
.onboard-wrap { max-width: 560px; margin: 0 auto; padding: 18px 14px 28px; }
.onboard-card { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 20px; padding: 20px 18px; }
.onboard-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border-subtle); }
.onboard-title { font-size: 20px; font-weight: 800; color: var(--text-primary); margin-bottom: 4px; }
.onboard-sub { font-size: 13px; color: var(--text-muted); }

.square-avatar-box {
  position: relative; width: 78px; height: 78px; border-radius: 16px;
  background: var(--bg-elevated); border: 1.5px dashed var(--border-strong);
  flex-shrink: 0; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.square-avatar-box.has-photo { border-style: solid; }
.square-avatar-preview { width: 100%; height: 100%; border-radius: 14px; object-fit: cover; display: none; }
.square-avatar-box.has-photo .square-avatar-preview { display: block; }
.square-avatar-placeholder { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--text-muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.square-avatar-box.has-photo .square-avatar-placeholder { display: none; }
.square-avatar-plus {
  position: absolute; right: -7px; bottom: -7px; width: 26px; height: 26px; border-radius: 8px;
  background: var(--accent); color: var(--accent-text); border: 2px solid var(--bg-surface);
  display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 800;
}

.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dob-input-row { display: flex; gap: 8px; align-items: stretch; }
.dob-cal-btn { width: 46px; flex-shrink: 0; border-radius: var(--radius-md); background: var(--bg-elevated); border: 1px solid var(--border-subtle); color: var(--text-primary); display: flex; align-items: center; justify-content: center; }
.dob-cal-btn svg { width: 19px; height: 19px; stroke: currentColor; stroke-width: 1.9; fill: none; }

.picker-trigger-btn { width: 100%; min-height: 44px; background: var(--bg-elevated); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 10px 13px; display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; font-size: 14px; color: var(--text-primary); }
.picker-trigger-btn.error { border-color: var(--danger); }
.picker-trigger-placeholder { color: var(--text-muted); }
.word-counter-row { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--text-muted); }
.word-counter-row.over-limit { color: var(--danger); font-weight: 700; }

.cal-controls { display: grid; grid-template-columns: 1fr 110px; gap: 8px; margin-bottom: 12px; }
.cal-nav-box { display: flex; align-items: center; justify-content: space-between; background: var(--bg-elevated); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 4px; }
.cal-nav-btn { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--text-primary); font-weight: 700; }
.cal-month-label { font-size: 13.5px; font-weight: 700; color: var(--text-primary); }
.cal-year-input { width: 100%; height: 42px; background: var(--bg-elevated); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); text-align: center; font-size: 14px; font-weight: 700; color: var(--text-primary); }
.cal-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 6px; text-align: center; font-size: 11px; font-weight: 700; color: var(--text-muted); }
.cal-days-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal-day-btn { height: 38px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--text-primary); background: transparent; }
.cal-day-btn:hover:not(:disabled) { background: var(--bg-elevated); }
.cal-day-btn.selected { background: var(--accent); color: var(--accent-text); font-weight: 800; }
.cal-day-btn:disabled { opacity: 0; pointer-events: none; }
.cal-quick-years { display: flex; gap: 6px; overflow-x: auto; padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--border-subtle); }
.cal-year-chip { flex-shrink: 0; padding: 5px 11px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 600; background: var(--bg-elevated); border: 1px solid var(--border-subtle); color: var(--text-primary); }
.cal-year-chip.active { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }

.cropper-stage-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cropper-canvas-box { position: relative; width: 260px; height: 260px; border-radius: 18px; overflow: hidden; border: 2px solid var(--accent); background: #000000; touch-action: none; cursor: grab; }
.cropper-grid-overlay { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(to right, rgba(255,255,255,0.2) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,0.2) 1px, transparent 1px); background-size: 33.33% 33.33%; }
.cropper-slider-row { width: 100%; max-width: 280px; display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-primary); }
.cropper-range { flex: 1; accent-color: var(--accent); }

.profile-wrap { max-width: 820px; margin: 0 auto; padding: 16px 14px 28px; }
.profile-top-card { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 20px; padding: 18px; margin-bottom: 14px; }
.profile-identity-row { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.profile-square-dp { width: 82px; height: 82px; border-radius: 18px; background: var(--bg-elevated); border: 1.5px solid var(--border-strong); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 800; color: var(--text-primary); overflow: hidden; }
.profile-square-dp img { width: 100%; height: 100%; object-fit: cover; }
.profile-stats-row { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.stat-box { background: var(--bg-elevated); border: 1px solid var(--border-subtle); border-radius: 12px; padding: 9px 6px; }
.stat-val { font-size: 16px; font-weight: 800; color: var(--text-primary); }
.stat-lbl { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.profile-name-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.profile-fullname { font-size: 18px; font-weight: 800; color: var(--text-primary); }
.profile-handle { font-size: 13px; color: var(--text-muted); font-weight: 600; }
.profile-badges-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.hire-open-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 6px; background: var(--success-soft); color: var(--success); font-size: 11px; font-weight: 700; }
.hire-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.profile-bio-text { font-size: 13.5px; color: var(--text-primary); white-space: pre-line; margin-bottom: 14px; }
.boost-trial-banner { background: var(--bg-elevated); border: 1px solid var(--border-strong); border-left: 3px solid var(--accent); border-radius: 12px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.boost-trial-title { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.boost-trial-sub { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.boost-countdown-pill { font-family: ui-monospace, monospace; font-size: 12.5px; font-weight: 800; padding: 6px 10px; border-radius: 8px; background: var(--accent); color: var(--accent-text); }
.profile-actions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.profile-tabs-bar { display: grid; grid-template-columns: repeat(5, 1fr); background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 14px; padding: 4px; gap: 4px; margin-bottom: 14px; }
.profile-tab-btn { height: 42px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--text-muted); font-size: 10.5px; font-weight: 700; }
.profile-tab-btn svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 1.9; fill: none; }
.profile-tab-btn.active { background: var(--accent); color: var(--accent-text); }
.profile-content-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.profile-empty-box { grid-column: 1 / -1; background: var(--bg-surface); border: 1px dashed var(--border-strong); border-radius: 16px; padding: 32px 16px; text-align: center; }
/* =========================================================
   11. Monetization Studio, 3-Strike Shield, Partner & Store
   ========================================================= */
.partner-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--accent-text);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.partner-verified-badge svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  stroke-width: 2.6;
  fill: none;
}

.monetize-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 14px;
}

.monetize-card.is-monetized {
  border-width: 1.5px;
  background: linear-gradient(160deg, var(--bg-surface), var(--bg-elevated));
}

.monetize-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.monetize-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.monetize-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.monetize-apply-btn {
  height: 34px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--accent-text);
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
  transition: opacity var(--transition), transform 0.12s ease;
}

.monetize-apply-btn:disabled {
  opacity: 0.34;
  cursor: not-allowed;
}

.monetize-apply-btn:active:not(:disabled) {
  transform: scale(0.95);
}

.progress-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

.progress-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.progress-remaining {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.progress-track {
  width: 100%;
  height: 7px;
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--accent);
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.progress-fill.complete {
  background: var(--success);
}

.strike-shield-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  font-size: 12px;
}

.strike-shield-bar.danger {
  border-color: var(--danger);
  background: var(--danger-soft);
}

.strike-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.strike-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  background: transparent;
}

.strike-dot.active {
  background: var(--danger);
  border-color: var(--danger);
}

.partner-perks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.partner-perk-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 11px;
}

.partner-perk-title {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-primary);
}

.partner-perk-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Creator Store Grid & Cards */
.store-list-wrap {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.store-product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.store-product-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 3px;
}

.profile-actions-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
/* =========================================================
   12. Multi-Story Viewer (1–100 Switchable) & Story Studio Editor
   ========================================================= */
.story-viewer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: #000000;
  display: none;
  align-items: center;
  justify-content: center;
}

.story-viewer-backdrop.open { display: flex; }

.story-viewer-frame {
  position: relative;
  width: 100%;
  max-width: 430px;
  height: 100dvh;
  max-height: 860px;
  background: #070709;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .story-viewer-frame {
    height: 92dvh;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.16);
  }
}

.story-progress-bars {
  position: absolute;
  top: calc(var(--safe-top) + 10px);
  left: 10px;
  right: 10px;
  z-index: 20;
  display: flex;
  gap: 4px;
}

.story-prog-seg {
  flex: 1;
  height: 2.5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
}

.story-prog-fill {
  width: 0%;
  height: 100%;
  background: #ffffff;
}

.story-prog-seg.done .story-prog-fill { width: 100%; }

.story-viewer-topbar {
  position: absolute;
  top: calc(var(--safe-top) + 22px);
  left: 12px;
  right: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.story-viewer-user {
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  padding: 5px 11px 5px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.story-viewer-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #1d1d23;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.story-viewer-avatar img { width: 100%; height: 100%; object-fit: cover; }

.story-viewer-name { font-size: 13px; font-weight: 700; color: #ffffff; }
.story-viewer-meta { font-size: 10.5px; color: rgba(255, 255, 255, 0.72); }

.story-viewer-stage {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.story-viewer-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-nav-zone {
  position: absolute;
  top: 74px;
  bottom: 70px;
  z-index: 12;
  cursor: pointer;
}
.story-nav-zone.prev { left: 0; width: 32%; }
.story-nav-zone.next { right: 0; width: 68%; }

.story-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 18;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.story-arrow-btn.prev { left: 10px; }
.story-arrow-btn.next { right: 10px; }

.story-viewer-footer {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: calc(var(--safe-bottom) + 14px);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.story-music-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  max-width: 72%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =========================================================
   Story Studio Editor (Full Interactive Canvas + Timeline)
   ========================================================= */
.studio-editor-backdrop {
  position: fixed;
  inset: 0;
  z-index: 280;
  background: #000000;
  display: none;
  flex-direction: column;
  padding-top: var(--safe-top);
  padding-bottom: var(--safe-bottom);
}

.studio-editor-backdrop.open { display: flex; }

.editor-topbar {
  height: 54px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: #09090c;
  flex-shrink: 0;
}

.editor-dur-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
}

.dur-chip {
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #17171d;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
}

.dur-chip.active {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.editor-canvas-area {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: #000000;
  position: relative;
  overflow: hidden;
}

.editor-stage {
  position: relative;
  height: 100%;
  max-height: 100%;
  aspect-ratio: 9 / 16;
  max-width: 100%;
  background: #111116;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  overflow: hidden;
  touch-action: none;
  user-select: none;
}

.editor-base-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Draggable Layers (Text, Stickers, UPI/QR, Affiliate, PiP) */
.canvas-layer {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: grab;
  touch-action: none;
  z-index: 6;
  padding: 4px 8px;
  border: 1.5px solid transparent;
  border-radius: 10px;
  max-width: 88%;
  text-align: center;
}

.canvas-layer.selected {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  z-index: 12;
}

.canvas-layer:active { cursor: grabbing; }

.layer-upi-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 10px;
  background: #ffffff;
  color: #000000;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.layer-link-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.82);
  color: #ffffff;
  border: 1.5px solid #ffffff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.layer-qr-card {
  background: #ffffff;
  padding: 6px;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
  width: 96px;
}

.layer-qr-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 6px;
}

.layer-qr-cap {
  color: #000000;
  font-size: 9.5px;
  font-weight: 800;
  margin-top: 3px;
  text-align: center;
}

.layer-pip-box {
  width: 108px;
  aspect-ratio: 9 / 14;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #ffffff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
  background: #000000;
}

.layer-pip-box img, .layer-pip-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Selected Layer Quick Controls (Resize + Timeline + Cut) */
.layer-quick-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background: #121217;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  flex-wrap: wrap;
}
.layer-quick-bar.show { display: flex; }

.layer-mini-input {
  width: 48px;
  height: 28px;
  background: #1f1f27;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 7px;
  text-align: center;
  font-size: 12px;
  color: #ffffff;
  font-weight: 700;
}

/* Editor Bottom Control Panel */
.editor-panel {
  background: #0a0a0d;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
}

.editor-tool-content {
  max-height: 215px;
  overflow-y: auto;
  padding: 12px 14px;
}

.editor-tabs-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: #050507;
}

.editor-tab-btn {
  height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 10.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.62);
}

.editor-tab-btn.active {
  color: #ffffff;
  background: #15151b;
}

/* Music Loop Timeline & Movable Selection Window */
.music-timeline-scroll {
  width: 100%;
  overflow-x: auto;
  background: #14141a;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 12px 10px;
  margin-top: 10px;
}

.music-timeline-track {
  position: relative;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 100%;
}

.wave-bar {
  width: 4px;
  flex-shrink: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.28);
}

.music-loop-box {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 10px;
  border: 2px solid #ffffff;
  background: rgba(255, 255, 255, 0.18);
  cursor: ew-resize;
  touch-action: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 3px 6px;
}

.music-loop-tag {
  font-size: 10px;
  font-weight: 800;
  background: #ffffff;
  color: #000000;
  padding: 1px 5px;
  border-radius: 5px;
}

.color-swatch-row {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  padding: 4px 0;
}

.color-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}
.color-dot.active { border-color: #ffffff; transform: scale(1.14); }

.grade-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
}

.grade-row label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 3px;
}

.grade-row input[type="range"] {
  width: 100%;
  accent-color: #ffffff;
}
/* =========================================================
   13. Notifications Hub & Upgraded Profile Highlights
   ========================================================= */
.icon-btn-wrap {
  position: relative;
  display: inline-flex;
}

.notif-badge-count {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--danger);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-main);
  pointer-events: none;
}

.notif-badge-count.hidden {
  display: none;
}

.notif-filter-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.notif-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 11px;
  padding: 11px 12px;
  border-radius: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  margin-bottom: 8px;
  transition: border-color var(--transition), background-color var(--transition);
}

.notif-row.unread {
  border-color: var(--border-strong);
  background: var(--bg-hover);
}

.notif-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
  cursor: pointer;
}

.notif-avatar {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notif-type-tag {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  border: 2px solid var(--bg-surface);
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notif-text-wrap {
  min-width: 0;
  flex: 1;
}

.notif-line {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.35;
}

.notif-line strong {
  font-weight: 800;
}

.notif-sub-quote {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notif-time {
  font-size: 10.5px;
  color: var(--text-muted);
  margin-top: 3px;
}

.notif-video-thumb {
  width: 66px;
  height: 42px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
}

.notif-video-thumb span {
  position: relative;
  z-index: 2;
}

/* Upgraded Profile: 6 Balanced Stat Tiles (Zero Overlap on Mobile) */
.profile-stats-grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

/* Special Highlighted 100-Word Bio Box */
.bio-highlight-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--accent);
  border-radius: 13px;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.bio-highlight-label {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.bio-highlight-text {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.45;
  white-space: pre-line;
}

/* Profile Music Mini-Player & Highlighted Contact Strip */
.profile-extras-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.profile-music-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
}

.profile-music-play {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.profile-contact-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  text-decoration: none;
  color: var(--text-primary);
}

.visitor-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
}
/* =========================================================
   14. Pro Story Studio Upgrade, Crisp Scrim & WhatsApp Chat
   ========================================================= */

/* Crystal-Clear Top Dark Scrim so Story Progress Bars show even on 100% White Photos */
.story-viewer-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 118px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.34) 58%, transparent 100%);
  z-index: 15;
  pointer-events: none;
}

.story-prog-seg {
  height: 3.5px;
  background: rgba(0, 0, 0, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
}

.story-prog-fill {
  background: #ffffff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.85);
}

.story-viewer-bg-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050507;
}

.story-viewer-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}

/* Ultra-Premium Pro Story Studio Editor (Zero Childish Emojis) */
.studio-editor-backdrop {
  background: #050507;
}

.editor-topbar {
  height: 56px;
  padding: 0 12px;
  background: rgba(12, 12, 16, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.editor-top-left, .editor-top-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ed-icon-pill {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #16161d;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.16s ease, opacity 0.16s ease;
}

.ed-icon-pill:hover:not(:disabled) { background: #23232e; }
.ed-icon-pill:disabled { opacity: 0.32; cursor: not-allowed; }
.ed-icon-pill svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.editor-stage {
  background: #060608;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
}

.editor-bg-transform-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: move;
  touch-action: none;
}

.editor-bg-media {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  will-change: transform, filter;
}

.editor-bg-media.cover-mode {
  object-fit: cover;
}

.editor-stage-hint {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 14;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.84);
  font-size: 10.5px;
  font-weight: 600;
  pointer-events: none;
  white-space: nowrap;
}

.editor-panel {
  background: #09090d;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.editor-tool-content {
  max-height: 230px;
  padding: 12px 14px;
}

.editor-tabs-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  background: #040406;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.editor-tab-btn {
  height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.56);
  border-top: 2px solid transparent;
  transition: all 0.18s ease;
}

.editor-tab-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.editor-tab-btn.active {
  color: #ffffff;
  background: #121218;
  border-top-color: #ffffff;
}

.pro-panel-card {
  background: #121218;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  padding: 11px 12px;
  margin-bottom: 8px;
}

.pro-slider-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.pro-slider-row:last-child { margin-bottom: 0; }

.pro-slider-lbl {
  width: 78px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
}

.pro-slider-val {
  width: 40px;
  text-align: right;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
  flex-shrink: 0;
}

.pro-range {
  flex: 1;
  accent-color: #ffffff;
  height: 4px;
}

/* Graphic Sticker Grid (Custom SVG + Searchable 3D/2D Library) */
.sticker-grid-pro {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.sticker-tile-btn {
  height: 64px;
  border-radius: 12px;
  background: #15151d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: border-color 0.15s ease, transform 0.12s ease;
}

.sticker-tile-btn:hover {
  border-color: #ffffff;
  background: #1d1d28;
}

.sticker-tile-btn:active { transform: scale(0.95); }

.sticker-tile-btn img, .sticker-tile-btn svg {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.sticker-tile-cap {
  font-size: 9.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.canvas-sticker-graphic {
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.canvas-sticker-graphic img, .canvas-sticker-graphic svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.55));
}

.canvas-stamp-sticker {
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

/* =========================================================
   15. WhatsApp-Style Direct Chat System (Ultra-Premium)
   ========================================================= */
.chat-modal-sheet {
  max-width: 500px;
  height: 88dvh;
  max-height: 88dvh;
}

.chat-list-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  margin-bottom: 8px;
  text-align: left;
  transition: background-color var(--transition), border-color var(--transition);
}

.chat-list-item:hover {
  background: var(--bg-hover);
  border-color: var(--border-strong);
}

.chat-avatar-wrap {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: var(--text-primary);
  flex-shrink: 0;
}

.chat-online-dot {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--success);
  border: 2.5px solid var(--bg-surface);
}

.chat-thread-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.chat-messages-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  background: var(--bg-main);
}

.chat-bubble-row {
  display: flex;
  flex-direction: column;
  max-width: 82%;
}

.chat-bubble-row.me {
  align-self: flex-end;
  align-items: flex-end;
}

.chat-bubble-row.them {
  align-self: flex-start;
  align-items: flex-start;
}

.chat-bubble {
  padding: 9px 13px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.4;
  word-break: break-word;
}

.chat-bubble-row.me .chat-bubble {
  background: var(--accent);
  color: var(--accent-text);
  border-bottom-right-radius: 4px;
}

.chat-bubble-row.them .chat-bubble {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-bottom-left-radius: 4px;
}

.chat-bubble img, .chat-bubble video {
  max-width: 220px;
  border-radius: 10px;
  margin-bottom: 5px;
}

.chat-meta {
  font-size: 10px;
  margin-top: 3px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.chat-ticks {
  color: #38bdf8;
  font-weight: 800;
  letter-spacing: -2px;
}

.chat-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
}

.chat-text-input {
  flex: 1;
  height: 42px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 0 15px;
  font-size: 13.5px;
  color: var(--text-primary);
}

.chat-text-input:focus {
  border-color: var(--border-strong);
}
/* =========================================================
   16. Part 3 — Home Mixed Feed (1 Long -> 4 Shorts -> 3 Long)
   ========================================================= */
.feed-stream-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 14px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.feed-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
}

/* Long Video Card (16:9 Studio Cinema Card) */
.long-feed-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  overflow: hidden;
  transition: border-color var(--transition), transform 0.16s ease;
  cursor: pointer;
}

.long-feed-card:hover {
  border-color: var(--border-strong);
}

.long-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #070709;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.long-thumb-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-art-canvas {
  width: 100%;
  height: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
  position: relative;
}

.thumb-art-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.thumb-art-center {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.thumb-play-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}

.thumb-duration-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 3px 8px;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
}

.thumb-quality-pill {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 3px 8px;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.boost-pin-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #ffffff;
  color: #000000;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

.long-card-body {
  padding: 13px 14px 14px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.feed-creator-dp {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  cursor: pointer;
}

.feed-creator-dp img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.long-card-info {
  flex: 1;
  min-width: 0;
}

.long-card-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.32;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.long-card-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.long-card-desc-snip {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 4-Short Shelf Block inside Home Feed (2x2 on Mobile, 4-Col on Desktop) */
.shorts-shelf-block {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 14px;
}

.shorts-shelf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.shorts-shelf-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-primary);
}

.shorts-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (min-width: 768px) {
  .shorts-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.short-shelf-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #08080b;
  aspect-ratio: 9 / 15;
  cursor: pointer;
  transition: transform 0.16s ease, border-color var(--transition);
}

.short-shelf-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.short-shelf-overlay {
  position: absolute;
  inset: 0;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, transparent 45%, rgba(0, 0, 0, 0.35) 100%);
  color: #ffffff;
}

.short-shelf-caption {
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.28;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.short-shelf-views {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.82;
  margin-top: 3px;
}

.infinite-loader-row {
  text-align: center;
  padding: 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
}

/* =========================================================
   17. Part 3 — Infinite Vertical Shorts / Reels Player
   ========================================================= */
.shorts-feed-container {
  width: 100%;
  height: calc(100dvh - var(--header-height) - var(--nav-height) - var(--safe-top) - var(--safe-bottom));
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  background: #000000;
}

.reel-slide {
  position: relative;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  overflow: hidden;
}

.reel-stage {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 100%;
  background: #09090d;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .reel-stage {
    height: calc(100% - 20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.16);
  }
}

.reel-video-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.reel-video-el.square-ratio {
  aspect-ratio: 1 / 1;
  height: auto;
  max-height: 100%;
}

.reel-visual-bg {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  text-align: center;
  color: #ffffff;
  cursor: pointer;
}

.reel-visual-pulse {
  width: 78px;
  height: 78px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 16px;
}

.reel-top-bar {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}

.reel-top-pill {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  pointer-events: auto;
}

/* Right Action Rail (Like, Comments, Spinning Repost, Save, Remix) */
.reel-actions-rail {
  position: absolute;
  right: 10px;
  bottom: 20px;
  z-index: 14;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.reel-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.reel-action-circle {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: transform 0.16s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.reel-action-btn:active .reel-action-circle {
  transform: scale(0.9);
}

.reel-action-btn.liked .reel-action-circle {
  background: #ff3b5c;
  border-color: #ff3b5c;
  color: #ffffff;
}

.reel-action-btn.saved .reel-action-circle,
.reel-action-btn.reposted .reel-action-circle {
  background: #ffffff;
  border-color: #ffffff;
  color: #000000;
}

.reel-action-circle svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Spinning Repost Animation (Exactly as requested) */
@keyframes repostFullSpin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.2); }
  100% { transform: rotate(360deg) scale(1); }
}

.repost-spinning svg {
  animation: repostFullSpin 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reel Bottom Info Overlay */
.reel-bottom-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 11;
  padding: 54px 72px 18px 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.45) 60%, transparent 100%);
  color: #ffffff;
}

.reel-creator-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
}

.reel-creator-dp {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #1c1c24;
  border: 1.5px solid #ffffff;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  overflow: hidden;
}

.reel-creator-name {
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
  cursor: pointer;
}

.reel-caption-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.94);
  line-height: 1.38;
  margin-bottom: 7px;
}

.reel-audio-strip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =========================================================
   18. Part 3 — Cinema Long Video Player (Zoom, Quality, 22 Suggested)
   ========================================================= */
.cinema-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 260;
  background: var(--bg-main);
  display: none;
  flex-direction: column;
  padding-top: var(--safe-top);
  padding-bottom: var(--safe-bottom);
  overflow: hidden;
}

.cinema-modal-backdrop.open {
  display: flex;
  animation: viewFade 0.18s ease;
}

.cinema-topbar {
  height: 50px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.cinema-player-stage {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #000000;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cinema-player-stage.zoomed-fill {
  position: fixed;
  inset: 0;
  z-index: 320;
  max-width: none;
  aspect-ratio: auto;
  height: 100dvh;
  width: 100vw;
}

.cinema-video-el {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.cinema-player-stage.zoomed-fill .cinema-video-el {
  object-fit: cover;
}

.cinema-overlay-tools {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cinema-tool-pill {
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.cinema-scroll-body {
  flex: 1;
  overflow-y: auto;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 14px 14px 32px;
}

.cinema-main-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 6px;
}

.cinema-stats-line {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.cinema-desc-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 13px;
  padding: 11px 13px;
  margin-bottom: 14px;
  cursor: pointer;
}

.cinema-desc-text {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.45;
  white-space: pre-line;
}

.cinema-desc-text.collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cinema-creator-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  margin-bottom: 12px;
}

.cinema-action-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.cinema-chip-btn {
  flex-shrink: 0;
  height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cinema-chip-btn.active {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
}

/* 22 Suggested Related Videos List */
.suggested-section-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.suggested-row {
  display: flex;
  gap: 11px;
  padding: 9px;
  border-radius: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  margin-bottom: 9px;
  cursor: pointer;
  transition: border-color var(--transition), background-color var(--transition);
}

.suggested-row:hover {
  border-color: var(--border-strong);
  background: var(--bg-elevated);
}

.suggested-thumb {
  position: relative;
  width: 136px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: #09090d;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 11px;
}

/* Unlimited Comments Sheet */
.comment-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.comment-item:last-child {
  border-bottom: none;
}

.comment-author {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-primary);
}

.comment-body {
  font-size: 13px;
  color: var(--text-primary);
  margin-top: 2px;
  line-height: 1.4;
}
/* =========================================================
   19. Real Avatar Framing & Built-in Emoji / Sticker Picker
   ========================================================= */
.notif-avatar,
.chat-avatar-wrap,
.reel-creator-dp,
.feed-creator-dp {
  overflow: hidden;
}

.notif-avatar img,
.chat-avatar-wrap img,
.reel-creator-dp img,
.feed-creator-dp img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Built-in Emoji & Sticker Tray (Chat & Comments — Works on PC & Mobile) */
.emoji-picker-tray {
  display: none;
  flex-direction: column;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-strong);
  max-height: 225px;
  flex-shrink: 0;
}

.emoji-picker-tray.open {
  display: flex;
  animation: viewFade 0.14s ease;
}

.emoji-picker-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 7px 12px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
}

.emoji-grid {
  flex: 1;
  overflow-y: auto;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
}

.emoji-btn {
  height: 36px;
  border-radius: 10px;
  font-size: 21px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  transition: background-color 0.14s ease, transform 0.12s ease;
}

.emoji-btn:hover {
  background: var(--bg-hover);
  transform: scale(1.12);
}

.chat-sticker-grid {
  flex: 1;
  overflow-y: auto;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.chat-sticker-tile {
  height: 62px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  padding: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.chat-sticker-tile:hover {
  border-color: var(--border-strong);
  background: var(--bg-hover);
}

.chat-sticker-tile svg {
  width: 34px;
  height: 34px;
}

.chat-sticker-bubble {
  background: transparent !important;
  border: none !important;
  padding: 2px !important;
}

.chat-sticker-bubble svg {
  width: 92px;
  height: 92px;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
}
/* =========================================================
   20. Part 4 — Ultra-Premium Creator Upload Studio & Analytics
   ========================================================= */
.upload-studio-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 16px 14px 36px;
}

/* Top Sub-Navigation: Upload New vs My Studio Analytics */
.studio-mode-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 15px;
  margin-bottom: 16px;
}

.studio-mode-btn {
  height: 40px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all var(--transition);
}

.studio-mode-btn.active {
  background: var(--accent);
  color: var(--accent-text);
}

.studio-section-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 14px;
}

.studio-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.studio-sec-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.studio-sec-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Format Selector (Short Max 3m vs Long Unlimited) */
.format-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.format-choice-card {
  padding: 14px 12px;
  border-radius: 14px;
  background: var(--bg-elevated);
  border: 1.5px solid var(--border-subtle);
  text-align: left;
  transition: all var(--transition);
}

.format-choice-card:hover {
  border-color: var(--border-strong);
}

.format-choice-card.active {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.format-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.format-card-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
}

.format-card-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
}

.format-choice-card.active .format-card-badge {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
}

.format-card-desc {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Video File Dropzone & Live Inspector Preview */
.upload-dropzone {
  border: 1.5px dashed var(--border-strong);
  border-radius: 16px;
  background: var(--bg-elevated);
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background-color var(--transition);
}

.upload-dropzone:hover,
.upload-dropzone.dragover {
  border-color: var(--accent);
  background: var(--bg-hover);
}

.upload-drop-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--accent);
  color: var(--accent-text);
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-drop-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}

.upload-preview-box {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #000000;
  border: 1px solid var(--border-strong);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-preview-video {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  display: block;
}

.upload-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}

.meta-spec-pill {
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.meta-spec-pill.valid {
  background: var(--success-soft);
  border-color: var(--success);
  color: var(--success);
}

.meta-spec-pill.invalid {
  background: var(--danger-soft);
  border-color: var(--danger);
  color: var(--danger);
}

.validation-alert-box {
  padding: 12px 13px;
  border-radius: 12px;
  background: var(--danger-soft);
  border: 1px solid var(--danger);
  color: var(--text-primary);
  font-size: 12.5px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* Thumbnail Studio (Custom Upload + Capture Frame from Video) */
.thumb-studio-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  align-items: center;
}

@media (max-width: 480px) {
  .thumb-studio-grid {
    grid-template-columns: 1fr;
  }
}

.thumb-preview-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.thumb-preview-frame.short-thumb {
  aspect-ratio: 9 / 14;
  max-width: 110px;
}

.thumb-preview-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hashtag Suggestions & Added Chips */
.hashtag-suggest-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.hashtag-chip-btn {
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 700;
  transition: all var(--transition);
}

.hashtag-chip-btn:hover {
  border-color: var(--border-strong);
}

.hashtag-chip-btn.selected {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
}

/* Dynamic Resolution Checklist Grid */
.res-checklist-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.res-check-btn {
  height: 38px;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all var(--transition);
}

.res-check-btn.active {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
}

/* 30-Day Free Boost Selector (1x, 2x, 3x, 4x) */
.boost-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

@media (min-width: 600px) {
  .boost-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.boost-card-btn {
  padding: 12px 10px;
  border-radius: 13px;
  background: var(--bg-elevated);
  border: 1.5px solid var(--border-subtle);
  text-align: left;
  transition: all var(--transition);
}

.boost-card-btn:hover {
  border-color: var(--border-strong);
}

.boost-card-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}

.boost-card-btn.active .boost-card-sub {
  color: var(--accent-text);
  opacity: 0.78;
}

.boost-card-mult {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.boost-card-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.3;
}

/* Pre-Upload Copyright & Policy Shield Banner */
.shield-check-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 13px;
  background: var(--success-soft);
  border: 1px solid var(--success);
  margin-bottom: 14px;
}

.shield-check-card.warn {
  background: var(--danger-soft);
  border-color: var(--danger);
}

/* Upload Progress Bar */
.publish-progress-wrap {
  display: none;
  margin-bottom: 12px;
}

.publish-progress-wrap.show {
  display: block;
}

/* My Studio Analytics & Video Manager */
.studio-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

@media (min-width: 600px) {
  .studio-kpi-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.studio-kpi-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 13px;
}

.studio-kpi-val {
  font-size: 20px;
  font-weight: 900;
  color: var(--text-primary);
}

.studio-kpi-lbl {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 2px;
}

.studio-manage-row {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.studio-manage-thumb {
  position: relative;
  width: 112px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #0a0a0d;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.studio-manage-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.studio-manage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}
/* =========================================================
   21. Part 4 Pro — Visibility, Edit Mode, More Details & Shorts Editor
   ========================================================= */
.edit-mode-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--accent-text);
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 800;
}

.vis-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

@media (min-width: 580px) {
  .vis-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.vis-choice-btn {
  padding: 11px 10px;
  border-radius: 13px;
  background: var(--bg-elevated);
  border: 1.5px solid var(--border-subtle);
  text-align: left;
  transition: all var(--transition);
}

.vis-choice-btn:hover {
  border-color: var(--border-strong);
}

.vis-choice-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}

.vis-choice-btn.active .vis-choice-sub {
  color: var(--accent-text);
  opacity: 0.78;
}

.vis-choice-name {
  font-size: 13px;
  font-weight: 800;
}

.vis-choice-sub {
  font-size: 10.5px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.25;
}

.schedule-box-wrap {
  margin-top: 10px;
  padding: 12px;
  border-radius: 13px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
}

.ai-choice-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.ai-choice-btn {
  padding: 11px 12px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1.5px solid var(--border-subtle);
  text-align: left;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-primary);
  transition: all var(--transition);
}

.ai-choice-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}

.tag-pill-box {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.seo-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}

.seo-tag-pill button {
  font-size: 13px;
  font-weight: 900;
  color: var(--text-muted);
  line-height: 1;
}

.more-details-toggle {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-primary);
}

.more-details-body {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.channel-search-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-strong);
  border-radius: 18px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.short-editor-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  margin-top: 12px;
}
/* =========================================================
   22. Double-Tap ±10s Seek HUD, Green Views/Likes, Glowing Blue Hashtags & Viral Popup
   ========================================================= */

/* Glowing Light-Blue Hashtags Everywhere */
.hashtag {
  color: #38bdf8 !important;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.55);
  cursor: pointer;
}

.hashtag:hover {
  color: #7dd3fc !important;
  text-shadow: 0 0 14px rgba(56, 189, 248, 0.85);
}

.hashtag-chip-btn {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.32);
  background: rgba(56, 189, 248, 0.08);
}

.hashtag-chip-btn.selected {
  background: rgba(56, 189, 248, 0.22) !important;
  border-color: #38bdf8 !important;
  color: #bae6fd !important;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.42);
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.65);
}

/* Green-Highlighted Views + Highlighted Likes Badges on All Video Cards */
.card-stats-highlight-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.views-green-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.45);
  color: #4ade80;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.2);
}

.likes-highlight-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.42);
  color: #fb7185;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.16);
}

.short-stats-mini-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.short-stats-mini-row .views-green-pill,
.short-stats-mini-row .likes-highlight-pill {
  padding: 2px 6px;
  font-size: 9.5px;
  background: rgba(0, 0, 0, 0.68);
}

/* Double-Tap Left/Right ±10s Accumulating Seek Zones (Leaves Center & Bottom Scrubber Free) */
.seek-tap-zone {
  position: absolute;
  top: 48px;
  bottom: 54px;
  width: 28%;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

.seek-tap-zone.left {
  left: 0;
  border-radius: 0 50% 50% 0;
}

.seek-tap-zone.right {
  right: 0;
  border-radius: 50% 0 0 50%;
}

/* In Shorts Player, keep Right Action Rail clickable */
.reel-stage .seek-tap-zone {
  top: 56px;
  bottom: 130px;
  width: 26%;
}

.reel-stage .seek-tap-zone.right {
  right: 66px;
}

.seek-hud-badge {
  opacity: 0;
  transform: scale(0.84);
  padding: 9px 15px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.02em;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65);
  white-space: nowrap;
}

.seek-tap-zone.active-flash {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16) 0%, transparent 72%);
}

.seek-tap-zone.active-flash .seek-hud-badge {
  opacity: 1;
  transform: scale(1);
}

/* Viral Hashtag & Tag History Autocomplete Popup (Upload Studio) */
.viral-suggest-wrap {
  position: relative;
}

.viral-suggest-popup {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 95;
  background: var(--bg-surface);
  border: 1.5px solid rgba(56, 189, 248, 0.5);
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.62);
  max-height: 260px;
  overflow-y: auto;
  display: none;
}

.viral-suggest-popup.open {
  display: block;
  animation: viewFade 0.14s ease;
}

.viral-popup-head {
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.viral-tag-option {
  width: 100%;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
  transition: background-color 0.14s ease;
}

.viral-tag-option:last-child {
  border-bottom: none;
}

.viral-tag-option:hover {
  background: var(--bg-hover);
}

.viral-tag-name {
  font-size: 13.5px;
  font-weight: 800;
  color: #38bdf8;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.45);
}

.viral-tag-vol {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #7dd3fc;
  flex-shrink: 0;
}
/* =========================================================
   23. Uniform Premium Video Borders, Tip/Contact Cards, Processing & History
   ========================================================= */

/* Consistent Ultra-Premium Studio Border for BOTH API Videos & Uploaded Videos */
.long-feed-card {
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}

[data-theme="light"] .long-feed-card {
  border: 1.5px solid rgba(0, 0, 0, 0.14);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.long-thumb-wrap {
  margin: 8px 8px 0;
  width: calc(100% - 16px);
  border-radius: 13px;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 6px 18px rgba(0, 0, 0, 0.45);
  background: #050507;
}

.short-shelf-card {
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.42);
}

/* Cinema Long Video Player Crisp Studio Frame (Eliminates Cut / Blended Edges) */
.cinema-player-stage {
  border: 1.5px solid rgba(255, 255, 255, 0.24);
  border-radius: 14px;
  margin: 10px auto 0;
  width: calc(100% - 20px);
  max-width: 940px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.65);
  background: #000000;
}

.cinema-player-stage.zoomed-fill {
  margin: 0;
  width: 100vw;
  max-width: none;
  border-radius: 0;
  border: none;
}

.cinema-video-el {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
  display: block;
}

/* Uniform Vertical Shorts Studio Frame */
.reel-stage {
  border: 1.5px solid rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  height: calc(100% - 14px);
  width: calc(100% - 14px);
  max-width: 430px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.72);
  background: #040406;
}

.reel-video-el {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

/* Live Processing Progress Card inside My Studio */
.processing-studio-card {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(15, 23, 42, 0.65));
  border: 1.5px solid rgba(56, 189, 248, 0.52);
  border-radius: 16px;
  padding: 13px 14px;
  margin-bottom: 12px;
}

.processing-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.2);
  border: 1px solid #38bdf8;
  color: #7dd3fc;
  font-size: 10.5px;
  font-weight: 800;
}

/* Creator Tip / UPI / QR & Brand Contact Action Pills inside Video Player */
.cinema-chip-btn.tip-btn {
  background: rgba(34, 197, 94, 0.16);
  border-color: rgba(34, 197, 94, 0.5);
  color: #4ade80;
}

.cinema-chip-btn.brand-btn {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.5);
  color: #38bdf8;
}

.tip-qr-modal-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 8px 4px;
}

.tip-qr-frame {
  width: 210px;
  height: 210px;
  border-radius: 16px;
  padding: 10px;
  background: #ffffff;
  border: 2px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tip-qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.upi-copy-strip {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 13px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
}

/* Profile 6-Tab Bar (Shorts, Longs, Reposts, Saved, History, Store) */
.profile-tabs-bar.tabs-6 {
  grid-template-columns: repeat(6, 1fr);
}

.profile-tabs-bar.tabs-6 .profile-tab-btn {
  font-size: 10px;
  padding: 8px 2px;
}

.history-header-bar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-radius: 13px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

/* Search History Row inside Header Dropdown */
.search-hist-head {
  padding: 7px 12px;
  font-size: 10.5px;
  font-weight: 800;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* =========================================================
24. Glitch-Free Polish: Light Mode Fix, Auto-Hide Cinema Tools,
    YouTube Rotate Unblock, Full Description & Real Comments UI
   ========================================================= */

/* 1. FIX: লাইট মোডের ডান ধারের কালো ছাপ (.side-drawer বন্ধ অবস্থায় শ্যাডো বন্ধ) */
.side-drawer {
  visibility: hidden;
  pointer-events: none;
  box-shadow: none !important;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.32s ease, box-shadow 0.32s ease;
}

.side-drawer.open {
  visibility: visible;
  pointer-events: auto;
  box-shadow: -18px 0 50px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="light"] .side-drawer.open {
  box-shadow: -12px 0 36px rgba(0, 0, 0, 0.16) !important;
}

/* লাইট মোডে কার্ড, থাম্বনেইল, হ্যাশট্যাগ ও ভিউ-লাইক পিল একদম পরিষ্কার করা */
[data-theme="light"] .long-thumb-wrap {
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10);
}

[data-theme="light"] .views-green-pill {
  color: #15803d;
  background: rgba(34, 197, 94, 0.13);
  border-color: rgba(21, 128, 61, 0.35);
  box-shadow: none;
}

[data-theme="light"] .likes-highlight-pill {
  color: #be123c;
  background: rgba(244, 63, 94, 0.11);
  border-color: rgba(190, 18, 60, 0.30);
  box-shadow: none;
}

[data-theme="light"] .hashtag {
  color: #0284c7 !important;
  text-shadow: none;
}

/* ডার্ক ভিডিও ওভারলের ওপর সবসময় উজ্জ্বল রঙ বজায় রাখা */
.short-shelf-overlay .views-green-pill,
.reel-stage .views-green-pill {
  color: #4ade80 !important;
  background: rgba(0, 0, 0, 0.72) !important;
  border-color: rgba(34, 197, 94, 0.5) !important;
}

.short-shelf-overlay .likes-highlight-pill,
.reel-stage .likes-highlight-pill {
  color: #fb7185 !important;
  background: rgba(0, 0, 0, 0.72) !important;
  border-color: rgba(244, 63, 94, 0.5) !important;
}

.reel-bottom-overlay .hashtag {
  color: #38bdf8 !important;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.55) !important;
}

/* 2. FIX: লাল গোলের বাটনগুলো (CC, 1x, Settings, Zoom) ৩ সেকেন্ড পর অটো গায়েব ও টাচে ফিরে আসা */
.cinema-overlay-tools {
  z-index: 25 !important;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.32s ease, transform 0.32s ease;
}

.cinema-overlay-tools.tools-hidden {
  opacity: 0 !important;
  transform: translateY(-6px);
  pointer-events: none !important;
}

/* 3. FIX: বেগুনি গোলের YouTube কোণের রোটেট [ ] বাটন আনব্লক করা (ডাবল-ট্যাপ ±10s ঠিক রেখে) */
.cinema-player-stage .seek-tap-zone {
  top: 44px !important;
  bottom: 76px !important;
  width: 24% !important;
  height: auto !important;
  z-index: 14 !important;
}

.cinema-player-stage .seek-tap-zone.right {
  bottom: 96px !important;
}

.cinema-player-stage.zoomed-fill .seek-tap-zone {
  top: 56px !important;
  bottom: 108px !important;
}

/* 4. FIX: লং ভিডিওর পুরো ডেসক্রিপশন পরিষ্কার ও পড়ার উপযোগী করা */
.cinema-desc-box {
  display: block !important;
  opacity: 1 !important;
}

.cinema-desc-text {
  font-size: 13px;
  line-height: 1.52;
  white-space: pre-line;
  word-break: break-word;
  color: var(--text-primary);
}

.cinema-desc-text.collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 5. Real YouTube & Cloud Comments UI (নন-ক্লিকেবল কমেন্ট প্রোফাইল) */
.comment-item .feed-creator-dp,
.comment-item .comment-author {
  cursor: default !important;
  pointer-events: none;
}

.comment-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.comment-source-pill {
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.comment-sub-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.comment-load-more-wrap {
  padding: 12px 0 4px;
  text-align: center;
}