/* ═══════════════════════════════════════════════════════════
   CHELAK24 — Complete Stylesheet  (Light theme default)
   ═══════════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --accent:      #6366f1; /* Indigo – modern 2025 */
  --accent-2:    #8b5cf6; /* Violet */
  --accent-rgb:  99, 102, 241;
  --purple:      #a855f7;
  --purple-rgb:  168, 85, 247;
  --pink:        #ec4899;
  --danger:      #ef4444;
  --success:     #10b981;
  --warn:        #f59e0b;
  --bg:          #f4f6fb;
  --surface:     #ffffff;
  --surface-2:   #f1f4fa;
  --surface-3:   #e4e9f5;
  --border:      rgba(99,102,241,0.10);
  --border-2:    rgba(99,102,241,0.05);
  --text:        #0d0f1a;
  --text-muted:  #6b7280;
  --text-dim:    #374151;
  --nav-h:       64px;
  --desk-nav-w:  268px;
  --radius:      20px;
  --radius-sm:   12px;
  --radius-xs:   8px;
  --transition:  0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --grad: linear-gradient(135deg, var(--accent), var(--purple));
  --grad-warm: linear-gradient(135deg, #f97316, #ec4899);
  --shadow:    0 2px 8px rgba(99,102,241,0.10), 0 1px 3px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 32px rgba(99,102,241,0.16), 0 2px 8px rgba(0,0,0,0.08);
  --shadow-xl: 0 20px 60px rgba(99,102,241,0.20), 0 4px 16px rgba(0,0,0,0.10);
  --glow:      0 0 20px rgba(99,102,241,0.30);
}

body.dark {
  --bg:          #08090f;
  --surface:     #0f1118;
  --surface-2:   #161824;
  --surface-3:   #1e2130;
  --border:      rgba(99,102,241,0.15);
  --border-2:    rgba(99,102,241,0.07);
  --text:        #f0f0ff;
  --text-muted:  #8890a8;
  --text-dim:    #b0b8d4;
  --shadow:      0 2px 8px rgba(0,0,0,0.40);
  --shadow-lg:   0 8px 32px rgba(0,0,0,0.50);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; width: 100%; overflow: hidden; }
html { min-height: 100%; min-height: 100dvh; }
body { font-family: var(--font); background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img, video { display: block; max-width: 100%; }
input, textarea, select { font-family: inherit; }

/* ── App Shell ─────────────────────────────────────────────── */
.app-shell { display: flex; height: 100vh; height: 100dvh; overflow: hidden; }
.desktop-nav { width: var(--desk-nav-w); flex-shrink: 0; position: fixed; top: 0; left: 0; height: 100vh; z-index: 200; background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden; }
.desktop-nav.hidden { display: none; }
.app-main { flex: 1; min-width: 0; height: 100vh; height: 100dvh; overflow-y: auto; background: var(--bg); -webkit-overflow-scrolling: touch; }
@media(min-width:768px) { .app-main { margin-left: var(--desk-nav-w); } }
/* Auth pages: no sidebar margin so login fills full width */
.desktop-nav.hidden ~ .app-main { margin-left: 0 !important; }
@media(max-width:767px) { .desktop-nav { display: none !important; } .app-main { margin-left: 0 !important; } }

/* ── Mobile Bottom Nav ─────────────────────────────────────── */
.mobile-nav { position: fixed; bottom: 0; left: 0; right: 0; min-height: var(--nav-h); height: calc(var(--nav-h) + env(safe-area-inset-bottom)); z-index: 200; background: var(--surface); border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-around; padding: 0 8px env(safe-area-inset-bottom); }
.mobile-nav.hidden { display: none; }
@media(min-width:768px) { 
  .mobile-nav { display: none !important; visibility: hidden !important; pointer-events: none !important; } 
}
.mobile-nav-item { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; padding: 6px 4px; border-radius: 14px; background: none; border: none; color: var(--text-muted); font-size: 10px; font-weight: 600; transition: all var(--transition); flex: 1; }
.mobile-nav-item.active { color: var(--accent); }
.mobile-nav-item.active .material-symbols-rounded { filter: drop-shadow(0 0 6px rgba(99,102,241,0.5)); }
.mobile-nav-item .material-symbols-rounded { font-size: 24px; transition: transform var(--transition); }
.mobile-nav-item:active .material-symbols-rounded { transform: scale(0.88); }
.mobile-nav-item span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Blue pulse animation fix - ensure it's contained or hidden when nav is hidden */
.mobile-nav-item.active::after { display: none; } 
.nav-upload-btn { width: 48px; height: 48px; border-radius: 50%; background: var(--grad); border: none; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; box-shadow: 0 4px 14px rgba(99,102,241,0.40); transition: transform var(--transition); }
.nav-upload-btn:active { transform: scale(0.92); }

/* ── Desktop Sidebar ───────────────────────────────────────── */
.desk-nav-logo { display: flex; flex-direction: row; align-items: center; gap: 12px; padding: 18px 16px; border-bottom: 1px solid var(--border); text-align: left; overflow: hidden; }
.desk-nav-logo-img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex-shrink: 0; box-shadow: 0 2px 10px rgba(99,102,241,0.25); }
.desk-nav-logo-text { font-size: 22px; font-weight: 900; background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; display: block; white-space: nowrap; letter-spacing: -0.5px; line-height: 1; }
.desk-nav-user { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.desk-nav-user-row { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: var(--radius-sm); cursor: pointer; transition: background var(--transition); }
.desk-nav-user-row:hover { background: var(--surface-2); }
.desk-nav-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: var(--surface-2); display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; border: 2px solid var(--border); }
.desk-nav-name { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.desk-nav-phone { font-size: 11px; color: var(--text-muted); }
.desk-nav-items { flex: 1; padding: 6px 8px; }
.desk-nav-item { display: flex; align-items: center; gap: 12px; padding: 11px 14px; width: 100%; background: none; border: none; color: var(--text-muted); font-size: 15px; font-weight: 500; transition: all var(--transition); text-align: left; border-radius: var(--radius-sm); margin-bottom: 2px; }
.desk-nav-item:hover { background: var(--surface-2); color: var(--text); }
.desk-nav-item.active { 
  color: var(--accent); 
  background: rgba(var(--accent-rgb), 0.08); 
  font-weight: 700; 
  position: relative;
}
.desk-nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 4px;
  background: var(--grad);
  border-radius: 0 4px 4px 0;
}
.desk-nav-item.active .material-symbols-rounded { color: var(--accent); font-variation-settings: 'FILL' 1; }
.desk-nav-item .material-symbols-rounded { font-size: 22px; flex-shrink: 0; }
.desk-nav-item.desk-nav-admin { color: var(--warn); }
.desk-nav-bottom { padding: 12px 16px; border-top: 1px solid var(--border); }

/* ── Buttons ────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 20px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 600; border: none; cursor: pointer; transition: all var(--transition); position: relative; overflow: hidden; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 4px 14px rgba(99,102,241,0.35); }
.btn-primary:hover { opacity: 0.92; box-shadow: 0 6px 20px rgba(99,102,241,0.45); transform: translateY(-1px); }
.btn-secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:not(.btn) { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 16px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 600; cursor: pointer; }
.btn-secondary:hover { background: var(--surface-3); }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-ghost:hover { background: var(--surface-2); border-color: rgba(99,102,241,0.25); }
.btn-danger { background: var(--danger); color: #fff; box-shadow: 0 4px 14px rgba(239,68,68,0.30); }
.btn-danger:hover { opacity: 0.88; box-shadow: 0 6px 20px rgba(239,68,68,0.40); }
.btn-success { background: var(--success); color: #fff; }
.btn-full { width: 100%; }
.btn-lg { padding: 14px 22px; font-size: 16px; border-radius: 14px; }
.btn-icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: none; border: none; color: var(--text); cursor: pointer; transition: background var(--transition); }
.btn-icon:hover { background: var(--surface-2); }
.btn-icon-sm { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--surface-2); border: none; color: var(--text); cursor: pointer; transition: background var(--transition); }
.btn-icon-sm:hover { background: var(--surface-3); }
.btn-icon-xs { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--surface-2); border: none; color: var(--text); cursor: pointer; }
.btn-icon-xs .material-symbols-rounded { font-size: 16px; }

/* ── Utilities ──────────────────────────────────────────────── */
.mt4  { margin-top: 4px; }
.mt8  { margin-top: 8px; }
.mt12 { margin-top: 12px; }
.mt16 { margin-top: 16px; }
.mb4  { margin-bottom: 4px; }
.mb8  { margin-bottom: 8px; }
.mb12 { margin-bottom: 12px; }
.mb16 { margin-bottom: 16px; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hidden { display: none !important; }
.hidden-input { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; overflow: hidden !important; clip-path: inset(50%) !important; }
.danger { color: var(--danger); }

/* ── Spinner ────────────────────────────────────────────────── */
.spin-sm { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.35); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; display: inline-block; flex-shrink: 0; }
.spin-dark { border-color: rgba(0,0,0,0.15); border-top-color: var(--text); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Animations ─────────────────────────────────────────────── */
.anim-fade { animation: fadeInO 0.2s ease forwards; }
@keyframes fadeInO { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOutO { to { opacity: 0; } }
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.anim-pop { animation: popAnim 0.55s ease forwards; }
@keyframes popAnim { 0% { transform:translate(-50%,-50%) scale(0); opacity:1; } 50% { transform:translate(-50%,-50%) scale(1.3); opacity:1; } 100% { transform:translate(-50%,-50%) scale(0.9); opacity:0; } }

/* ── Splash ────────────────────────────────────────────────── */
.splash {
  position: fixed; inset: 0; z-index: 9999;
  background: linear-gradient(160deg, #0d0f1a 0%, #1a1040 50%, #0d1630 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
}
.splash-logo {
  width: 92px; height: 92px; border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 40px rgba(99,102,241,0.55), 0 0 80px rgba(168,85,247,0.28);
  animation: splashPulse 2.2s ease-in-out infinite;
  overflow: hidden;
}
.splash-logo-img { width: 92px; height: 92px; border-radius: 24px; object-fit: cover; }
@keyframes splashPulse {
  0%,100% { box-shadow: 0 0 40px rgba(99,102,241,0.55), 0 0 80px rgba(168,85,247,0.28); }
  50% { box-shadow: 0 0 70px rgba(99,102,241,0.85), 0 0 130px rgba(168,85,247,0.50); }
}
.splash-icon { font-size: 44px; color: #fff; }
.splash-title { font-size: 32px; font-weight: 900; color: #fff; letter-spacing: -0.5px; }
.splash-sub { font-size: 14px; color: rgba(255,255,255,0.50); }
.splash-bar-wrap { width: 220px; height: 3px; background: rgba(255,255,255,0.10); border-radius: 2px; overflow: hidden; }
.splash-bar { height: 100%; background: var(--grad); border-radius: 2px; transition: width 0.35s cubic-bezier(0.4,0,0.2,1); }

/* ── Toast ──────────────────────────────────────────────────── */
.toasts-container { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%); z-index: 3000; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
@media(min-width:768px) { .toasts-container { bottom: 24px; } }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 40px; font-size: 14px; font-weight: 500; pointer-events: auto; box-shadow: 0 4px 20px rgba(0,0,0,0.14); animation: slideUpToast 0.3s ease forwards; white-space: nowrap; max-width: 90vw; }
.toast-out { animation: fadeDownToast 0.3s ease forwards; }
.toast-success { background: #1A1A1A; color: #fff; }
body.dark .toast-success { background: #FFF; color: #111; }
.toast-error { background: var(--danger); color: #fff; }
.toast-info { background: var(--accent); color: #fff; }
.toast-warning { background: var(--warn); color: #fff; }
.toast .material-symbols-rounded { font-size: 19px; flex-shrink: 0; }
@keyframes slideUpToast { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeDownToast { from { opacity:1; transform:translateY(0); } to { opacity:0; transform:translateY(10px); } }

/* ── Skeleton ──────────────────────────────────────────────── */
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 6px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skel-row { display: flex; align-items: center; gap: 12px; padding: 10px 16px; }
.skel-avatar { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; }
.skel-lines { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.skel-line-sm { height: 12px; width: 40%; border-radius: 6px; }
.skel-line-md { height: 12px; width: 65%; border-radius: 6px; }

/* ── Empty state ───────────────────────────────────────────── */
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 64px 24px; gap: 12px; text-align: center; }
.empty-state .material-symbols-rounded { font-size: 48px; color: var(--text-muted); }
.empty-state strong { font-size: 18px; font-weight: 700; }
.empty-state span { font-size: 14px; color: var(--text-muted); }

/* ── Page layout ───────────────────────────────────────────── */
.screen-scroll { min-height: 100vh; min-height: 100dvh; padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 16px); }
@media(min-width:768px) { .screen-scroll { padding-bottom: 24px; max-width: 820px; margin: 0 auto; } }
.screen-header { position: sticky; top: 0; z-index: 100; background: var(--surface); border-bottom: 1px solid var(--border); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.screen-header-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 16px; gap: 12px; }
.screen-title { font-size: 18px; font-weight: 800; flex: 1; }
.screen-body { padding: 16px; }
.page-container { overflow-y: auto; height: 100%; padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 20px); -webkit-overflow-scrolling: touch; }
@media(min-width:768px) { .page-container { padding-bottom: 40px; max-width: 820px; margin: 0 auto; } }
.section-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 8px; }
.header-title-group { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: 6px; }
.load-more-wrap { display: flex; justify-content: center; padding: 16px; }

/* ═══════════════════════════════════════════════════════════
   AUTH PAGES — Full Screen Layout
   ═══════════════════════════════════════════════════════════ */
.auth-page {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  background: var(--surface);
}

.auth-split {
  display: flex;
  width: 100%;
  height: 100%;
}

/* ── LEFT HERO PANEL ───────────────────────────────── */
.auth-hero {
  display: none;
  position: relative;
  flex: 1;
  overflow: hidden;
  background: #e8e4f7;
}
@media(min-width: 1024px) { .auth-hero { display: block; } }

/* City illustration fills the full hero panel */
.auth-city-bg {
  position: absolute;
  inset: 0;
  background: url('city-bg.png') center center / cover no-repeat;
  z-index: 0;
}

/* Gradient overlay: dark on left so text is readable, fades to transparent right */
.auth-city-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(75, 20, 180, 0.88) 0%,
    rgba(60, 80, 200, 0.70) 45%,
    rgba(60, 80, 200, 0.15) 100%
  );
  z-index: 1;
}

/* Text content: sits above bg */
.auth-hero-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 52px 56px;
}

.auth-hero-logo { margin-bottom: 44px; }

.auth-real-logo {
  width: 90px;
  height: 90px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 8px 32px rgba(0,0,0,0.30);
}

.auth-hero-tag {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 16px;
}

.auth-hero-title {
  font-size: 40px;
  font-weight: 900;
  line-height: 1.13;
  color: #fff;
  margin-bottom: 18px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.auth-hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.82);
  line-height: 1.65;
  margin-bottom: 44px;
}

.auth-features { display: flex; flex-direction: column; gap: 20px; }

.auth-feature { display: flex; align-items: center; gap: 14px; }

.auth-feature .material-symbols-rounded {
  font-size: 22px;
  background: rgba(255,255,255,0.18);
  border-radius: 12px;
  padding: 9px;
  flex-shrink: 0;
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.auth-feature strong { display: block; font-size: 15px; font-weight: 800; color: #fff; margin-bottom: 1px; }
.auth-feature span { font-size: 13px; color: rgba(255,255,255,0.75); }

/* ── RIGHT FORM PANEL ──────────────────────────────── */
.auth-form-wrap {
  width: 100%;
  max-width: 100%;
  flex-shrink: 0;
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 28px;
  background: var(--surface);
}
@media(min-width: 1024px) {
  .auth-form-wrap {
    width: 480px;
    max-width: 480px;
    padding: 52px 56px;
    border-left: 1px solid var(--border);
  }
}
@media(min-width: 1280px) {
  .auth-form-wrap { width: 520px; max-width: 520px; }
}

/* Mobile logo */
.auth-logo-mobile { display: flex; align-items: center; gap: 12px; margin-bottom: 36px; }
@media(min-width: 1024px) { .auth-logo-mobile { display: none; } }
.auth-real-logo-sm { width: 46px; height: 46px; border-radius: 13px; object-fit: cover; flex-shrink: 0; box-shadow: 0 4px 12px rgba(0,0,0,0.12); }
.auth-logo-mobile h1 { font-size: 22px; font-weight: 900; }
.auth-logo-mobile p { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* Auth card inner */
.auth-card { width: 100%; }

.auth-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(var(--accent-rgb),0.12), rgba(var(--purple-rgb),0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.auth-card-icon .material-symbols-rounded { font-size: 26px; color: var(--purple); }

.auth-card h2 { font-size: 30px; font-weight: 900; margin-bottom: 10px; color: var(--text); }
.auth-card-sub { font-size: 15px; color: var(--text-muted); margin-bottom: 28px; line-height: 1.6; }

/* Phone input */
.phone-input-wrap {
  display: flex;
  align-items: center;
  background: var(--surface-2);
  border: 2px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.phone-input-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
  background: var(--surface);
}
.phone-prefix { padding: 16px 4px 16px 16px; font-size: 16px; font-weight: 700; color: var(--text-muted); white-space: nowrap; }
.phone-input { flex: 1; background: none; border: none; padding: 16px 16px 16px 6px; font-size: 16px; color: var(--text); outline: none; min-width: 0; }

/* Submit */
.auth-submit-btn {
  background: linear-gradient(135deg, var(--accent) 0%, var(--purple) 100%);
  box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.32);
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  padding: 15px 24px;
  transition: all 0.22s ease;
}
.auth-submit-btn:hover { opacity: 0.91; transform: translateY(-1px); box-shadow: 0 8px 28px rgba(var(--accent-rgb), 0.42); }
.auth-submit-btn:active { transform: translateY(0); }

/* OTP / Register centered screens */
.auth-center { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 28px; background: var(--bg); }

.auth-card-sm {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border-radius: 28px;
  padding: 36px 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.auth-card-sm h2 { font-size: 22px; font-weight: 900; margin-bottom: 8px; }

.auth-icon-box { width: 60px; height: 60px; border-radius: 18px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.auth-icon-box.blue { background: rgba(var(--accent-rgb), 0.10); color: var(--accent); }
.auth-icon-box.green { background: rgba(16, 185, 129, 0.10); color: var(--success); }
.auth-icon-box .material-symbols-rounded { font-size: 30px; }

.auth-hint { font-size: 13px; color: var(--text-muted); margin-top: 14px; text-align: center; line-height: 1.5; }


/* ── Form elements ──────────────────────────────────────────── */
.form-label { display: block; font-size: 12px; font-weight: 700; color: var(--text-muted); margin-bottom: 7px; letter-spacing: 0.3px; text-transform: uppercase; }
.form-input { width: 100%; padding: 13px 16px; background: var(--surface-2); border: 1.5px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-size: 15px; outline: none; transition: all var(--transition); }
.form-input:focus { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px rgba(99,102,241,0.10); }
.form-input::placeholder { color: var(--text-muted); opacity: 0.7; }
.form-hint { margin-top: 6px; font-size: 12px; line-height: 1.4; color: var(--text-muted); }
.username-input-wrap { display: flex; align-items: center; background: var(--surface-2); border: 1.5px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; transition: border-color var(--transition); }
.username-input-wrap:focus-within { border-color: var(--accent); background: var(--surface); }
.username-input-wrap span { padding-left: 14px; color: var(--text-muted); font-weight: 700; }
.username-input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); padding: 13px 14px 13px 4px; font-size: 16px; }
.form-textarea { width: 100%; background: var(--surface-2); border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; color: var(--text); font-size: 15px; resize: vertical; outline: none; min-height: 80px; }
.form-textarea:focus { border-color: var(--accent); }
.form-card { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); padding: 16px; margin-bottom: 16px; }
.form-body { display: flex; flex-direction: column; gap: 12px; }
.form-row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.form-row-title { font-size: 15px; font-weight: 600; }
.form-row-sub { font-size: 13px; color: var(--text-muted); }
.phone-input-wrap { display: flex; align-items: center; background: var(--surface-2); border: 1.5px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 14px; transition: border-color var(--transition); }
.phone-input-wrap:focus-within { border-color: var(--accent); background: var(--surface); }
.phone-prefix { padding: 13px 4px 13px 14px; font-size: 16px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.phone-input { flex: 1; background: none; border: none; padding: 13px 14px; font-size: 16px; color: var(--text); outline: none; min-width: 0; }
.otp-input-wrap { margin: 18px 0; }
.otp-input { width: 100%; text-align: center; letter-spacing: 12px; font-size: 28px; font-weight: 800; padding: 14px; background: var(--surface-2); border: 1.5px solid var(--border); border-radius: var(--radius-sm); color: var(--text); outline: none; }
.otp-input:focus { border-color: var(--accent); }

/* ── Toggle ─────────────────────────────────────────────────── */
.toggle-switch { position: relative; display: inline-block; width: 48px; height: 26px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: #ccc; border-radius: 26px; cursor: pointer; transition: background 0.2s; }
.toggle-slider::before { content: ''; position: absolute; width: 20px; height: 20px; left: 3px; bottom: 3px; background: white; border-radius: 50%; transition: transform 0.2s; box-shadow: 0 1px 4px rgba(0,0,0,0.2); }
.toggle-switch input:checked + .toggle-slider { background: var(--accent); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(22px); }
.toggle-track { position: absolute; inset: 0; background: #ccc; border-radius: 26px; cursor: pointer; transition: background 0.2s; }
.toggle-track::before { content: ''; position: absolute; width: 20px; height: 20px; left: 3px; bottom: 3px; background: white; border-radius: 50%; transition: transform 0.2s; box-shadow: 0 1px 4px rgba(0,0,0,0.2); }
.toggle-switch input:checked + .toggle-track { background: var(--accent); }
.toggle-switch input:checked + .toggle-track::before { transform: translateX(22px); }

/* ── Welcome modals ─────────────────────────────────────────── */
.welcome-overlay { align-items: flex-end; }
@media(min-width:600px) { .welcome-overlay { align-items: center; } }
.welcome-card { background: var(--surface); border-radius: 24px 24px 0 0; width: 100%; max-width: 420px; padding: 32px 24px 28px; text-align: center; animation: slideUp 0.3s ease; }
@media(min-width:600px) { .welcome-card { border-radius: 24px; } }
.welcome-emoji { font-size: 56px; margin-bottom: 12px; }
.welcome-title { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.welcome-sub { font-size: 15px; color: var(--text-muted); line-height: 1.5; margin-bottom: 4px; }
.welcome-admin-tag { font-size: 13px; color: var(--warn); font-weight: 600; margin-bottom: 4px; }

/* ── Confirm dialog ─────────────────────────────────────────── */
.confirm-box { background: var(--surface); border-radius: 24px; padding: 24px; max-width: 320px; width: 90%; box-shadow: var(--shadow-xl); border: 1px solid var(--border); animation: slideUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); display: flex; flex-direction: column; align-items: center; margin: auto; }
.confirm-msg { font-size: 16px; font-weight: 600; line-height: 1.5; color: var(--text); margin-bottom: 24px; text-align: center; overflow-wrap: break-word; width: 100%; }
.confirm-btns { display: flex; gap: 12px; width: 100%; }
.confirm-btns .btn { flex: 1; padding: 12px; border-radius: 12px; font-size: 15px; font-weight: 700; }

/* ── Modal ──────────────────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 1000; display: flex; align-items: flex-end; justify-content: center; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal-overlay.center { align-items: center; }
@media(min-width:600px) { .modal-overlay { align-items: center; padding: 20px; } }
.modal-box { background: var(--surface); border-radius: 24px 24px 0 0; width: 100%; max-width: 460px; max-height: 85vh; overflow: hidden; display: flex; flex-direction: column; animation: slideUp 0.3s ease; box-shadow: 0 -8px 40px rgba(0,0,0,0.2); }
@media(min-width:600px) { .modal-box { border-radius: 24px; max-height: calc(100vh - 40px); } }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.modal-header h3 { font-size: 18px; font-weight: 800; letter-spacing: -0.3px; }
.modal-close-btn { background: var(--surface-2); border: none; cursor: pointer; color: var(--text-muted); display: flex; padding: 6px; border-radius: 50%; transition: all var(--transition); }
.modal-close-btn:hover { background: var(--surface-3); color: var(--text); transform: rotate(90deg); }
.modal-body { padding: 20px 24px; flex: 1; overflow-y: auto; scrollbar-width: thin; }
.modal-footer { display: flex; gap: 12px; padding: 16px 24px; border-top: 1px solid var(--border); }
.modal-footer .btn-secondary, .modal-footer .btn-primary, .modal-footer .btn-danger { flex: 1; padding: 14px; border-radius: 14px; font-weight: 700; cursor: pointer; border: none; font-size: 15px; }
.modal-footer .btn-secondary { background: var(--surface-2); color: var(--text); }
.modal-footer .btn-primary { background: var(--accent); color: #fff; }
.modal-footer .btn-danger { background: var(--danger); color: #fff; }

/* ── Bottom sheet ───────────────────────────────────────────── */
.bottom-sheet { position: fixed; bottom: 0; left: 0; right: 0; background: var(--surface); border-radius: 20px 20px 0 0; z-index: 900; padding: 0 0 max(16px, env(safe-area-inset-bottom)); animation: slideUp 0.25s ease; max-height: 80vh; overflow-y: auto; }
.bottom-sheet-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 12px; border-bottom: 1px solid var(--border); }
.bottom-sheet-header h3 { font-size: 16px; font-weight: 700; }
.sheet-action-item { display: flex; align-items: center; gap: 14px; padding: 14px 20px; cursor: pointer; transition: background var(--transition); font-size: 15px; }
.sheet-action-item:hover { background: var(--surface-2); }
.sheet-action-item .material-symbols-rounded { font-size: 22px; color: var(--text-muted); }
.sheet-action-item { width: 100%; border: 0; background: transparent; color: var(--text); text-align: left; }
.sheet-action-item div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sheet-action-item strong { font-size: 15px; font-weight: 650; }
.sheet-action-item small { font-size: 12px; color: var(--text-muted); }
/* Share sheet */
.share-url-row { display: flex; align-items: center; gap: 8px; margin: 12px 20px; padding: 10px 14px; background: var(--surface-2); border-radius: 12px; border: 1px solid var(--border); }
.share-url-text { flex: 1; font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.share-copy-btn { flex-shrink: 0; background: var(--grad); border: none; color: #fff; border-radius: 8px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.share-copy-btn .material-symbols-rounded { font-size: 17px; }
/* Create Ad Modal */
.create-ad-sheet { max-width: 520px; margin: 0 auto; }
.create-ad-field { display: flex; flex-direction: column; gap: 6px; }
.create-ad-label { font-size: 12px; font-weight: 700; color: var(--text-muted); display: flex; align-items: center; gap: 5px; text-transform: uppercase; letter-spacing: 0.4px; }
.create-ad-label .material-symbols-rounded { font-size: 15px; }
.create-ad-input { width: 100%; padding: 11px 14px; background: var(--surface-2); border: 1.5px solid var(--border); border-radius: 12px; color: var(--text); font-size: 14px; outline: none; transition: border-color 0.2s; box-sizing: border-box; }
.create-ad-input:focus { border-color: var(--accent); }
.create-ad-file { padding: 10px 14px; cursor: pointer; }
.create-ad-row { display: flex; gap: 10px; }
.create-ad-row .create-ad-field { flex: 1; }
.create-ad-submit { width: 100%; padding: 14px; background: var(--grad); color: #fff; font-size: 15px; font-weight: 800; border: none; border-radius: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 6px; transition: opacity 0.2s; }
.create-ad-submit:hover { opacity: 0.9; }
.create-ad-submit .material-symbols-rounded { font-size: 20px; }
.profile-pic-preview { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.profile-pic-preview img, .profile-pic-preview > .material-symbols-rounded { width: 56px; height: 56px; border-radius: 50%; background: var(--surface-2); object-fit: cover; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 36px; }
.profile-pic-preview div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.profile-pic-preview strong { font-size: 16px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-pic-preview span { font-size: 13px; color: var(--text-muted); }
.share-item { display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; padding: 8px; border-radius: 12px; transition: background var(--transition); }
.share-item:hover { background: var(--surface-2); }
.share-item span { font-size: 12px; color: var(--text-muted); }

/* ── Zoom overlay ───────────────────────────────────────────── */
.zoom-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 2000; display: flex; align-items: center; justify-content: center; cursor: zoom-out; animation: fadeInO 0.2s ease; }
.zoom-img { max-width: 95vw; max-height: 95vh; object-fit: contain; border-radius: 12px; cursor: default; }
.zoom-close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,0.5); color: #fff; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.zoom-close .material-symbols-rounded { font-size: 22px; }

/* ── Verified Badge ─────────────────────────────────────────── */
.verified-badge { color: var(--accent); font-variation-settings: 'FILL' 1; vertical-align: middle; }
.verified-badge.badge-lg { font-size: 22px; }
.verified-badge.badge-sm { font-size: 16px; }
.verified-badge.badge-xs { font-size: 14px; }

/* ═══════════════════════════════════════════════════════════
   EXPLORE / SEARCH
   ═══════════════════════════════════════════════════════════ */
.search-bar-wrap { padding: 10px 16px; position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--border); }
.search-bar { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border-radius: 30px; padding: 0 16px; border: 1.5px solid var(--border); }
.search-bar:focus-within { border-color: var(--accent); }
.search-icon { color: var(--text-muted); font-size: 20px; flex-shrink: 0; }
.search-input { flex: 1; background: none; border: none; outline: none; padding: 11px 0; font-size: 15px; color: var(--text); }
.search-input::placeholder { color: var(--text-muted); }
.search-section { padding: 0 16px 16px; }
.search-section-title { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin: 12px 0 8px; display: flex; align-items: center; gap: 6px; }
.search-count { background: var(--surface-2); border-radius: 20px; padding: 1px 7px; font-size: 11px; color: var(--text-muted); font-weight: 600; text-transform: none; letter-spacing: 0; }
.search-users { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.search-user-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; border-bottom: 1px solid var(--border); transition: background var(--transition); text-align: left; width: 100%; background: none; }
.search-user-item:last-child { border-bottom: none; }
.search-user-item:hover { background: var(--surface-2); }
.search-user-biz { background: linear-gradient(135deg, rgba(29,155,240,0.04), transparent) !important; }
.search-user-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--surface-2); flex-shrink: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; position: relative; }
.search-avatar-biz { border: 2px solid var(--accent); }
.search-biz-dot { position: absolute; bottom: -2px; right: -2px; line-height: 1; }
.search-user-info { flex: 1; min-width: 0; }
.search-user-name { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-user-sub { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.search-user-loc { display: flex; align-items: center; gap: 2px; font-size: 12px; color: var(--text-muted); }
.search-user-arrow { color: var(--text-muted); font-size: 20px; flex-shrink: 0; }

/* ── Media Grid ─────────────────────────────────────────────── */
.media-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 3px; }
@media(min-width:600px) { .media-grid { gap: 5px; } }
.media-card { aspect-ratio: 1; position: relative; overflow: hidden; background: var(--surface-2); cursor: pointer; border-radius: 6px; transition: transform var(--transition); }
.media-card.is-loading { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3,#2a2a2a) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.media-card:hover { transform: scale(1.02); z-index: 1; }
.media-card img, .media-card video { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.media-card:hover img, .media-card:hover video { transform: scale(1.06); }
.media-card-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Poster yo'q video — skeleton ustida ko'rsatiladi */
.media-card-thumb.loading-thumb { opacity: 1; }
/* Poster yo'q bo'lganda chiroyli placeholder */
.media-card-no-poster { width:100%; height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; background: linear-gradient(135deg, var(--surface-2) 0%, var(--surface-3,var(--surface-2)) 100%); }
.media-card-no-poster .material-symbols-rounded { font-size:32px; color:var(--text-muted); opacity:0.5; font-variation-settings:'FILL' 1; }
.media-card-no-poster span.np-label { font-size:10px; color:var(--text-muted); opacity:0.4; }
.media-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.70) 0%, rgba(0,0,0,0.10) 50%, transparent 100%); opacity: 0; transition: opacity var(--transition); }
.media-card:hover .media-card-overlay { opacity: 1; }
@media(hover:none) {
  .media-card-overlay { opacity: 1; }
  .my-delete-btn { opacity: 1; }
}
.media-card-bottom { position: absolute; bottom: 0; left: 0; right: 0; padding: 8px; }
.media-card-views { font-size: 11px; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 3px; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.media-card-badge { position: absolute; top: 6px; left: 6px; }
.ad-badge-mini { display: inline-flex; align-items: center; gap: 3px; background: rgba(0,0,0,0.60); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.18); border-radius: 20px; padding: 3px 8px; font-size: 10px; font-weight: 800; color: #fff; letter-spacing: 0.2px; }
.ad-badge-mini .material-symbols-rounded { font-size: 12px; color: var(--accent); font-variation-settings: 'FILL' 1; }
.media-card-desc { display: none; }
.media-card-type-icon { position: absolute; bottom: 6px; right: 6px; background: rgba(0,0,0,0.55); border-radius: 50%; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.media-card-type-icon .material-symbols-rounded { font-size: 13px; color: #fff; }
.media-card-multi { position: absolute; top: 6px; right: 6px; background: rgba(0,0,0,0.65); border-radius: 6px; padding: 2px 7px; font-size: 11px; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 3px; backdrop-filter: blur(4px); }
.aspect-916 { aspect-ratio: 9/16; }
.my-media-card { position: relative; overflow: hidden; background: var(--surface-2); border-radius: 6px; aspect-ratio: 1; cursor: pointer; transition: transform var(--transition); }
.my-media-card:hover { transform: scale(1.02); }
.my-delete-btn { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,0.70); border: none; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity var(--transition); backdrop-filter: blur(4px); }
.my-media-card:hover .my-delete-btn { opacity: 1; }

/* ═══════════════════════════════════════════════════════════
   REELS / FEED
   ═══════════════════════════════════════════════════════════ */
.reels-wrap { height: 100vh; height: 100dvh; overflow: hidden; position: relative; background: #000; }
.reels-topbar { position: absolute; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: calc(12px + env(safe-area-inset-top)) 16px 12px; background: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent); }
.reels-topbar-title { font-size: 17px; font-weight: 800; color: #fff; }
/* Legacy (eski kod uchun) */
.reels-btn-back, .reels-btn-mute { background: rgba(255,255,255,0.15); border: none; color: #fff; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; }

/* Yangi topbar tugmalar */
.reels-topbar-btn { background: rgba(255,255,255,0.15); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.25); color: #fff; border-radius: 24px; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0 14px; height: 38px; gap: 6px; font-size: 13px; font-weight: 600; transition: background var(--transition); }
.reels-topbar-btn:hover { background: rgba(255,255,255,0.25); }
.reels-topbar-btn .material-symbols-rounded { font-size: 20px; }
.reels-mute-btn { min-width: 100px; }
.reels-mute-btn.muted { background: rgba(244,33,46,0.25); border-color: rgba(244,33,46,0.4); }
.mute-btn-label { font-size: 12px; font-weight: 600; }
.reels-empty-screen { background: var(--bg); }
.reels-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: calc(100dvh - 56px - var(--nav-h)); background: var(--bg); color: var(--text); gap: 12px; text-align: center; padding: 24px; }
.reels-container { height: 100vh; height: 100dvh; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; background: #000; }
.reels-container::-webkit-scrollbar { display: none; }
.feed-container { height: 100vh; height: 100dvh; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; }
.feed-container::-webkit-scrollbar { display: none; }
.feed-item { height: 100vh; height: 100dvh; scroll-snap-align: start; position: relative; background: #000; overflow: hidden; }
.feed-media-wrap { position: absolute; inset: 0; }
.feed-media-wrap video, .feed-media-wrap img { width: 100%; height: 100%; object-fit: cover; }
.feed-media { width: 100%; height: 100%; position: relative; overflow: hidden; }
.feed-media-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feed-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.feed-video, .feed-media-img { object-position: center center; }
/* 1:1 yoki landscape media uchun contain rejimi */
.feed-media-img.fit-contain { width: 100% !important; height: auto !important; max-height: 100% !important; object-fit: contain !important; position: absolute !important; top: 50% !important; left: 50% !important; transform: translate(-50%,-50%) !important; z-index: 1; }
.feed-video.fit-contain { width: 100% !important; height: auto !important; max-height: 100% !important; object-fit: contain !important; position: absolute !important; top: 50% !important; left: 50% !important; transform: translate(-50%,-50%) !important; z-index: 1; }
.media-blur-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(26px) brightness(0.4) saturate(1.4); transform: scale(1.1); pointer-events: none; z-index: 0; }

/* ── Video yuklanish animatsiyasi ── */
@keyframes videoSpinner {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes videoPulse {
  0%, 100% { opacity: 0.5; transform: scale(0.92); }
  50%       { opacity: 1;   transform: scale(1); }
}
.video-loading-overlay {
  position: absolute; inset: 0; z-index: 15;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; pointer-events: none;
  background: transparent;
  transition: opacity 0.35s ease;
}
/* Poster yo'q bo'lganda qoʻngʻir gradient fon */
.video-loading-overlay.no-poster {
  background: linear-gradient(135deg, #111 0%, #1a1a1a 100%);
}
.video-loading-overlay.hidden { opacity: 0; pointer-events: none; }
.video-loading-ring {
  width: 52px; height: 52px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.08);
  border-top-color: rgba(255,255,255,0.75);
  animation: videoSpinner 0.9s linear infinite;
}
.video-loading-logo {
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--grad); position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  animation: videoPulse 1.6s ease-in-out infinite;
}
.video-loading-logo .material-symbols-rounded { font-size: 14px; color: #fff; font-variation-settings: 'FILL' 1; }
.video-loading-wrap { position: relative; width: 52px; height: 52px; }
.video-loading-label { font-size: 12px; color: rgba(255,255,255,0.4); letter-spacing: 0.3px; }
.feed-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 45%, transparent 70%, rgba(0,0,0,0.15) 100%); }
.feed-gradient { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%); pointer-events: none; }
.feed-info { position: absolute; bottom: 0; left: 0; right: 72px; z-index: 8; padding: 16px 16px calc(var(--nav-h) + env(safe-area-inset-bottom) + 20px); }
@media(min-width:768px) { .feed-info { right: 80px; padding-bottom: 32px; } }
.feed-author-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.feed-author { font-size: 14px; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 8px; max-width: 100%; min-width: 0; padding: 0; background: none; border: 0; text-align: left; }
.feed-author-info { display: flex; flex-direction: column; gap: 2px; }
.feed-avatar { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; border: 2px solid rgba(255,255,255,0.5); flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.15); box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.feed-avatar img { width: 100%; height: 100%; object-fit: cover; }
.feed-avatar .material-symbols-rounded { color: rgba(255,255,255,0.8); font-size: 24px; }
.feed-avatar-biz { border: 2.5px solid var(--accent); box-shadow: 0 0 0 2px rgba(29,155,240,0.4), 0 2px 8px rgba(0,0,0,0.3); }
.feed-author-name { font-size: 14px; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 4px; min-width: 0; text-shadow: 0 1px 3px rgba(0,0,0,0.4); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-date { font-size: 11.5px; color: rgba(255,255,255,0.78); display: inline-flex; align-items: center; gap: 4px; text-shadow: 0 1px 2px rgba(0,0,0,0.4); margin-top: 2px; line-height: 1.2; }
.feed-desc-wrap { margin-top: 8px; }
.feed-desc { font-size: 14px; color: rgba(255,255,255,0.92); line-height: 1.45; text-shadow: 0 1px 2px rgba(0,0,0,0.4); overflow-wrap: anywhere; white-space: pre-wrap; word-break: break-word; margin: 0; }
.feed-desc-clamped { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feed-desc-expanded { display: block; max-height: 50vh; overflow-y: auto; padding: 8px 10px; background: rgba(0,0,0,0.35); border-radius: 12px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.feed-desc-expanded::-webkit-scrollbar { width: 4px; }
.feed-desc-expanded::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.3); border-radius: 4px; }
.feed-desc-toggle { display: inline-block; margin-top: 4px; padding: 2px 0; background: none; border: 0; color: #fff; font-size: 12.5px; font-weight: 700; cursor: pointer; opacity: 0.85; text-shadow: 0 1px 2px rgba(0,0,0,0.4); }
.feed-desc-toggle:hover { opacity: 1; text-decoration: underline; }
.profile-bio-wrap { max-width: 320px; margin: 0 auto 12px; }
.profile-bio-clamped { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.profile-bio-toggle { display: inline-block; margin-top: 4px; background: none; border: 0; color: var(--accent); font-size: 13px; font-weight: 600; cursor: pointer; padding: 2px 6px; }
.profile-bio-toggle:hover { text-decoration: underline; }
/* ── Hashtag + Mention links ── */
.hashtag-link, .mention-link { display: inline; background: none; border: 0; padding: 0; margin: 0; font-size: inherit; font-weight: 700; cursor: pointer; line-height: inherit; text-shadow: none; }
.hashtag-link { color: #60a5fa; }
.mention-link { color: #a78bfa; }
.hashtag-link:hover { color: #93c5fd; text-decoration: underline; }
.mention-link:hover { color: #c4b5fd; text-decoration: underline; }
.feed-desc .hashtag-link { color: #93c5fd; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.feed-desc .mention-link { color: #c4b5fd; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.profile-bio .hashtag-link { color: var(--accent); }
.profile-bio .mention-link { color: #7c3aed; }

/* ── Nav badge ── */
.nav-notif-wrap { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.nav-badge { position: absolute; top: -6px; right: -8px; min-width: 17px; height: 17px; border-radius: 9px; background: #ef4444; color: #fff; font-size: 10px; font-weight: 700; line-height: 17px; text-align: center; padding: 0 3px; border: 2px solid var(--surface); }
.mobile-nav-item .nav-badge { top: -4px; right: -4px; }

/* ── Notifications screen ── */
.notif-list { display: flex; flex-direction: column; gap: 0; }
.notif-card { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background var(--transition); position: relative; }
.notif-card:hover { background: var(--surface-2); }
.notif-card.unread { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.notif-card.unread:hover { background: color-mix(in srgb, var(--accent) 13%, var(--surface)); }
.notif-avatar { position: relative; flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; background: var(--surface-2); overflow: visible; cursor: pointer; }
.notif-avatar img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; display: block; }
.notif-avatar .material-symbols-rounded { font-size: 28px; color: var(--text-muted); position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.notif-type-icon { position: absolute; bottom: -2px; right: -4px; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid var(--surface); font-size: 10px; }
.notif-type-icon .material-symbols-rounded { font-size: 11px; }
.notif-type-like { background: #ef4444; color: #fff; }
.notif-type-comment { background: var(--accent); color: #fff; }
.notif-type-reply { background: #10b981; color: #fff; }
.notif-type-mention { background: #f59e0b; color: #fff; }
.notif-body { flex: 1; min-width: 0; }
.notif-msg { font-size: 14px; color: var(--text); margin: 0 0 3px; line-height: 1.4; }
.notif-msg strong { color: var(--text); }
.notif-text { font-size: 13px; color: var(--text-muted); margin: 0 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.notif-time { font-size: 12px; color: var(--text-dim); }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 6px; }
.notif-loading { padding: 16px; }
.notif-skel { display: flex; gap: 12px; align-items: center; padding: 10px 0; }
.notif-skel-avatar { width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; }
.notif-skel-lines { flex: 1; display: flex; flex-direction: column; gap: 6px; }

/* ── @mention autocomplete ── */
.mention-dropdown { position: absolute; bottom: 100%; left: 0; right: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 -4px 24px rgba(0,0,0,0.15); overflow: hidden; z-index: 200; max-height: 220px; overflow-y: auto; }
.mention-option { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 14px; background: none; border: 0; border-bottom: 1px solid var(--border); cursor: pointer; text-align: left; transition: background var(--transition); }
.mention-option:last-child { border-bottom: 0; }
.mention-option:hover { background: var(--surface-2); }
.mention-option-pic { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--surface-2); display: flex; align-items: center; justify-content: center; }
.mention-no-pic { font-size: 20px; color: var(--text-muted); }
.mention-option-name { font-size: 14px; font-weight: 600; color: var(--text); }
.mention-option-un { font-size: 12px; color: var(--text-muted); margin-left: 4px; }
.feed-actions { position: absolute; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 20px); right: 12px; z-index: 10; display: flex; flex-direction: column; align-items: center; gap: 16px; }
@media(min-width:768px) { .feed-actions { bottom: 28px; } }
.feed-action-btn { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 62px; color: #fff; font-size: 11px; font-weight: 700; cursor: pointer; text-shadow: 0 1px 3px rgba(0,0,0,0.5); border: none; background: none; transition: transform 0.15s; outline: none; -webkit-tap-highlight-color: transparent; }
.feed-action-btn:focus { outline: none; }
.feed-action-btn:active { transform: scale(0.92); }
.feed-action-icon { width: 52px; height: 52px; aspect-ratio: 1 / 1; border-radius: 50%; background: rgba(255,255,255,0.16); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.28); box-sizing: border-box; flex: 0 0 52px; overflow: visible; transition: all var(--transition); }
.feed-action-btn:focus-visible .feed-action-icon { outline: none; box-shadow: 0 0 0 3px rgba(255,255,255,0.36); }
.feed-action-btn:hover .feed-action-icon, .feed-action-btn:active .feed-action-icon { background: rgba(255,255,255,0.24); }
.feed-action-icon .material-symbols-rounded { font-size: 28px; line-height: 1; }
.feed-like-btn,
.feed-action-btn:has(.feed-action-like) { width: 74px; padding: 0; border-radius: 999px; background: transparent !important; }
.feed-action-icon.feed-action-like,
.feed-like-btn .feed-action-icon.feed-action-like {
  width: 56px !important;
  height: 56px !important;
  min-width: 56px;
  min-height: 56px;
  flex-basis: 56px;
  border-radius: 9999px !important;
  clip-path: circle(50% at 50% 50%);
  background: rgba(12,12,12,0.52);
  border: 2px solid rgba(255,255,255,0.36);
  box-shadow: 0 8px 22px rgba(0,0,0,0.32), inset 0 0 0 1px rgba(255,255,255,0.08);
}
.feed-action-btn:hover .feed-action-icon.feed-action-like,
.feed-action-btn:active .feed-action-icon.feed-action-like,
.feed-like-btn:hover .feed-action-icon.feed-action-like,
.feed-like-btn:active .feed-action-icon.feed-action-like {
  background: rgba(18,18,18,0.66);
}
.feed-action-icon.feed-action-like > .material-symbols-rounded,
.feed-like-btn .feed-action-icon.feed-action-like > .material-symbols-rounded {
  font-size: 32px !important;
}
.feed-call-btn { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; background: rgba(0,186,124,0.25); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff; padding: 9px 16px; border-radius: 24px; font-size: 13px; font-weight: 700; border: 1.5px solid rgba(0,186,124,0.5); width: fit-content; margin-top: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; box-shadow: 0 2px 12px rgba(0,0,0,0.2); transition: background var(--transition); }
.feed-call-btn:hover { background: rgba(0,186,124,0.4); }
.like-active { color: #F4212E !important; font-variation-settings: 'FILL' 1 !important; }

/* Feed action like wrapper */
.feed-action-icon.feed-action-like { border-radius: 9999px !important; }
.feed-action-like { position: relative; display: flex; align-items: center; justify-content: center; width: 56px !important; height: 56px !important; }
.feed-action-like.liked .material-symbols-rounded { color: #F4212E; font-variation-settings: 'FILL' 1; }

/* Biznes like icon */
.biz-like-icon { position: relative; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
.biz-heart { font-size: 38px; color: rgba(255,255,255,0.9); transition: color 0.2s, transform 0.2s; }
.biz-heart.filled { color: #F4212E; font-variation-settings: 'FILL' 1; transform: scale(1.1); }
.biz-like-badge { position: absolute; bottom: 2px; right: 0; background: var(--accent); border-radius: 50%; width: 17px; height: 17px; display: flex; align-items: center; justify-content: center; border: 1.5px solid rgba(0,0,0,0.55); }
.biz-like-badge .material-symbols-rounded { font-size: 10px; color: #fff; font-variation-settings: 'FILL' 1; }
.biz-like-icon.liked .biz-heart { color: #F4212E; font-variation-settings: 'FILL' 1; }
.biz-like-icon.liked .biz-like-badge { background: #F4212E; animation: bizLikePop 0.4s cubic-bezier(0.175,0.885,0.32,1.275); }
@keyframes bizLikePop { 0% { transform: scale(0); } 70% { transform: scale(1.3); } 100% { transform: scale(1); } }
.feed-dots {
  position: absolute;
  top: 52px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 30;
  padding: 6px 10px;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(4px);
  border-radius: 20px;
}
.feed-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.feed-dot.active {
  background: #fff;
  width: 24px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.5);
}
.media-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  width: 100%;
  height: 100%;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.3) transparent;
  -webkit-overflow-scrolling: touch;
}
.media-slider::-webkit-scrollbar {
  height: 6px;
}
.media-slider::-webkit-scrollbar-track {
  background: transparent;
}
.media-slider::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.25);
  border-radius: 10px;
}
.media-slider:hover::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.45);
}
@media(max-width: 768px) {
  .media-slider::-webkit-scrollbar { display: none; }
  .media-slider { scrollbar-width: none; }
}
.media-slide { flex: 0 0 100%; scroll-snap-align: start; width: 100%; height: 100%; position: relative; overflow: hidden; }
.mute-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); background: rgba(0,0,0,0.55); border-radius: 50%; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; color: #fff; pointer-events: none; z-index: 30; animation: fadeInO 0.2s ease, fadeOutO 0.5s ease 1s forwards; }
.play-pop-anim { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); background: rgba(0,0,0,0.55); border-radius: 50%; width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; color: #fff; pointer-events: none; z-index: 30; animation: fadeInO 0.2s ease, fadeOutO 0.4s ease 0.8s forwards; }
.play-pop-anim .material-symbols-rounded { font-size: 36px; }
/* Video paused holati — doimiy ko'rinadigan overlay */
.feed-item.is-paused::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.25); z-index: 20; pointer-events: none; }
.feed-item.is-paused .pause-indicator { opacity: 1; }
.pause-indicator { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); background: rgba(0,0,0,0.60); border-radius: 50%; width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; color: #fff; pointer-events: none; z-index: 25; opacity: 0; transition: opacity 0.2s; backdrop-filter: blur(4px); }
.pause-indicator .material-symbols-rounded { font-size: 36px; }
.is-buffering::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 40px; height: 40px; border: 3px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite; }
.heart-anim { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(0); font-size: 72px; color: #F4212E; pointer-events: none; z-index: 30; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4)); }

/* ── Biznes like animatsiyasi (profil rasmi + yurak) ─────────── */
.biz-like-anim { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(0); pointer-events: none; z-index: 30; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.biz-like-anim-img { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 4px 24px rgba(0,0,0,0.5); }
.biz-like-anim-fallback { width: 90px; height: 90px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--purple)); display: flex; align-items: center; justify-content: center; border: 3px solid #fff; box-shadow: 0 4px 24px rgba(0,0,0,0.5); }
.biz-like-anim-fallback .material-symbols-rounded { font-size: 40px; color: #fff; font-variation-settings: 'FILL' 1; }
.biz-like-anim-heart { font-size: 28px; line-height: 1; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4)); }
.feed-ad { background: #0a0a0a; }
.ad-badge {
  position: absolute;
  top: calc(72px + env(safe-area-inset-top));
  left: 16px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  animation: adBadgeFadeIn 0.5s ease;
}
.ad-badge .material-symbols-rounded {
  font-size: 18px;
  color: var(--accent);
  font-variation-settings: 'FILL' 1;
}
@keyframes adBadgeFadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.ad-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 28px;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  border: none;
  cursor: pointer;
  margin-top: 14px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
  width: fit-content;
}
.ad-cta-btn:hover {
  transform: translateY(-2px) scale(1.03);
  filter: brightness(1.1);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}
.ad-cta-btn:active { transform: scale(0.96); }
.ad-cta-btn .material-symbols-rounded { font-size: 20px; }
.ad-title { font-size: 14px; font-weight: 600; }

@media(min-width:768px) {
  .reels-wrap { display: flex; justify-content: center; align-items: center; background: #111; }
  .reels-topbar { left: 50%; width: min(calc(100vw - var(--desk-nav-w)), calc(100dvh * 9 / 16)); max-width: 430px; transform: translateX(-50%); }
  .feed-container { width: min(calc(100vw - var(--desk-nav-w)), calc(100dvh * 9 / 16)); max-width: 430px; height: 100dvh; background: #000; box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 18px 60px rgba(0,0,0,0.35); }
  .feed-item { width: 100%; height: 100dvh; }
}

/* ═══════════════════════════════════════════════════════════
   PROFILE
   ═══════════════════════════════════════════════════════════ */
/* ─── Profile Card ──────────────────────────────────────────── */
.profile-card { text-align: center; padding: 28px 20px 20px; background: var(--surface); margin-bottom: 2px; }

/* Avatar */
.profile-avatar-wrap { display: flex; justify-content: center; margin-bottom: 16px; position: relative; width: fit-content; margin-left: auto; margin-right: auto; }
.profile-avatar { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: var(--surface-2); display: flex; align-items: center; justify-content: center; border: 3px solid var(--surface); box-shadow: 0 0 0 2px var(--border), var(--shadow); cursor: pointer; transition: transform var(--transition); }
.profile-avatar:hover { transform: scale(1.04); }
.profile-avatar-biz { box-shadow: 0 0 0 3px var(--accent), 0 4px 20px rgba(99,102,241,0.25); animation: bizPulse 2.5s ease infinite; }
@keyframes bizPulse { 0%,100% { box-shadow: 0 0 0 3px var(--accent), 0 4px 20px rgba(99,102,241,0.20); } 50% { box-shadow: 0 0 0 5px var(--accent), 0 4px 24px rgba(99,102,241,0.35); } }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar-icon { font-size: 48px; color: var(--text-muted); }
.avatar-edit-btn { position: absolute; bottom: 0; right: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--grad); border: 2.5px solid var(--surface); display: flex; align-items: center; justify-content: center; cursor: pointer; color: #fff; box-shadow: 0 2px 8px rgba(99,102,241,0.35); transition: transform var(--transition); }
.avatar-edit-btn:hover { transform: scale(1.1); }
.avatar-edit-btn .material-symbols-rounded { font-size: 15px; }
.avatar-biz-ring { display: none; }

/* Name & info */
.profile-name { font-size: 21px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 3px; letter-spacing: -0.3px; }
.profile-username { font-size: 14px; color: var(--text-muted); margin-bottom: 8px; font-weight: 500; }
.profile-bio { max-width: 320px; margin: 0 auto 12px; font-size: 14px; line-height: 1.5; color: var(--text-dim); overflow-wrap: anywhere; }

.profile-action-chips { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 auto 16px; padding: 0 16px; width: 100%; max-width: 400px; }
.profile-chip { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 650; cursor: pointer; transition: all var(--transition); border: 1px solid var(--border); background: var(--surface-2); color: var(--text); position: relative; min-width: 120px; }
.profile-chip:hover { border-color: var(--accent); background: var(--surface); transform: translateY(-1px); box-shadow: var(--shadow); }
.profile-chip .material-symbols-rounded { font-size: 18px; color: var(--accent); }
.chip-copy-icon { font-size: 14px !important; opacity: 0.4; margin-left: auto; }
.profile-chip-hidden { cursor: default; background: var(--surface-2); border-color: transparent; color: var(--text-muted); opacity: 0.7; }
.profile-chip-hidden .material-symbols-rounded { color: var(--text-muted); }

.profile-premium-badge { display: inline-flex; align-items: center; gap: 5px; background: linear-gradient(135deg, rgba(99,102,241,0.10), rgba(168,85,247,0.12)); border: 1px solid rgba(99,102,241,0.20); border-radius: 20px; padding: 5px 14px; font-size: 12px; font-weight: 700; color: var(--accent); margin-bottom: 12px; cursor: pointer; transition: all var(--transition); }

/* Stats row — Instagram style */
.profile-stats { display: flex; justify-content: center; gap: 0; margin-top: 18px; border-top: 1px solid var(--border); }
.profile-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: 1; padding: 16px 8px 12px; position: relative; cursor: default; }
.profile-stat:not(:last-child)::after { content: ''; position: absolute; right: 0; top: 25%; height: 50%; width: 1px; background: var(--border); }
.profile-stat-num { font-size: 22px; font-weight: 800; color: var(--text); line-height: 1; letter-spacing: -0.5px; }
.profile-stat-lbl { font-size: 11px; color: var(--text-muted); font-weight: 500; margin-top: 2px; }

.profile-media-section { padding: 0 2px; background: var(--surface); }
.badge-biz { display: inline-flex; align-items: center; gap: 4px; background: rgba(29,155,240,0.10); color: var(--accent); border-radius: 20px; padding: 3px 10px; font-size: 11px; font-weight: 700; }
.badge-free { display: inline-flex; align-items: center; gap: 4px; background: var(--surface-2); color: var(--text-muted); border-radius: 20px; padding: 3px 10px; font-size: 11px; font-weight: 700; }

/* ═══════════════════════════════════════════════════════════
   UPLOAD — Redesigned
   ═══════════════════════════════════════════════════════════ */
.upload-screen { background: var(--bg); }
.upload-header-icon { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), var(--purple)); display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.upload-header-icon .material-symbols-rounded { font-size: 20px; }

.upload-page-body { max-width: 540px; margin: 0 auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 24px); }
@media(min-width:768px) { .upload-page-body { padding-bottom: 40px; } }

/* Drop zone */
.upload-zone-card { background: var(--surface); border-radius: 20px; border: 2px dashed var(--border); cursor: pointer; overflow: hidden; transition: border-color var(--transition), box-shadow var(--transition); min-height: 200px; }
.upload-zone-card:hover, .upload-zone-card.drag-active { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(29,155,240,0.08); }

/* Empty state */
.upload-dz-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 44px 24px; text-align: center; }
.upload-dz-icon-wrap { width: 72px; height: 72px; border-radius: 20px; background: linear-gradient(135deg, rgba(29,155,240,0.12), rgba(124,58,237,0.12)); display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.upload-dz-big-icon { font-size: 36px; color: var(--accent); }
.upload-dz-texts { display: flex; flex-direction: column; gap: 4px; }
.upload-dz-texts strong { font-size: 16px; font-weight: 700; }
.upload-dz-texts span { font-size: 13px; color: var(--text-muted); }
.upload-dz-tag { display: inline-flex; align-items: center; gap: 4px; background: rgba(29,155,240,0.10); color: var(--accent); border-radius: 20px; padding: 4px 10px; font-size: 12px; font-weight: 600; margin-top: 4px; width: fit-content; align-self: center; }

/* Preview grid */
.upload-preview-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 8px; }
.upload-preview-grid.single { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
.upload-preview-item { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 1/1; background: #000; }
.upload-preview-grid.single .upload-preview-item { aspect-ratio: 1/1; max-height: 320px; }
.upload-preview-add { border-radius: 14px; aspect-ratio: 1/1; background: var(--surface-2); border: 2px dashed var(--border); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--text-muted); font-size: 12px; font-weight: 600; cursor: pointer; transition: all var(--transition); }
.upload-preview-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.upload-preview-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%); }
.upload-preview-type { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,0.5); border-radius: 8px; padding: 4px 6px; display: flex; align-items: center; }
.upload-preview-type .material-symbols-rounded { font-size: 16px; color: #fff; }
.upload-preview-remove { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; background: rgba(244,33,46,0.9); border: none; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.upload-preview-remove .material-symbols-rounded { font-size: 16px; }
.upload-preview-name { position: absolute; bottom: 0; left: 0; right: 0; padding: 6px 8px; font-size: 11px; color: #fff; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upload-preview-add:hover { border-color: var(--accent); color: var(--accent); background: rgba(99,102,241,0.05); }
.upload-preview-add .material-symbols-rounded { font-size: 32px; }

/* File detail list */
.upload-files-detail { background: var(--surface); border-radius: 14px; border: 1px solid var(--border); overflow: hidden; }
.upload-file-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--border-2); }
.upload-file-row:last-child { border-bottom: none; }
.upload-file-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.upload-file-icon.img-icon { background: rgba(0,186,124,0.12); color: var(--success); }
.upload-file-icon.vid-icon { background: rgba(29,155,240,0.12); color: var(--accent); }
.upload-file-icon .material-symbols-rounded { font-size: 20px; }
.upload-file-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.upload-file-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upload-file-size { font-size: 12px; color: var(--text-muted); }
.upload-file-del { width: 32px; height: 32px; border-radius: 50%; background: rgba(244,33,46,0.08); border: none; color: var(--danger); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.upload-file-del .material-symbols-rounded { font-size: 18px; }

/* Fields */
.upload-field-card { background: var(--surface); border-radius: 16px; border: 1px solid var(--border); padding: 16px; }
.upload-field-label { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 10px; }
.upload-field-label .material-symbols-rounded { font-size: 17px; }
.upload-field-hint { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.upload-textarea { width: 100%; background: var(--surface-2); border: 1.5px solid var(--border); border-radius: 12px; padding: 12px 14px; color: var(--text); font-size: 15px; resize: none; outline: none; transition: border-color var(--transition); line-height: 1.5; }
.upload-textarea:focus { border-color: var(--accent); background: var(--surface); }
.upload-char-count { font-size: 11px; color: var(--text-muted); text-align: right; margin-top: 4px; }

/* Toggle row */
.upload-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.upload-toggle-info { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.upload-toggle-icon { font-size: 20px; color: var(--accent); flex-shrink: 0; }
.upload-toggle-title { font-size: 15px; font-weight: 600; }
.upload-toggle-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.upload-biz-only-notice { display: flex; align-items: center; gap: 12px; padding: 4px 0; color: var(--text-muted); }
.upload-biz-only-notice .material-symbols-rounded { font-size: 24px; color: var(--text-muted); opacity: 0.5; }
.upload-biz-only-notice div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.upload-biz-only-notice strong { font-size: 14px; color: var(--text); }
.upload-biz-only-notice span { font-size: 12px; }

/* Promo banner */
.upload-promo-banner { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: linear-gradient(135deg, rgba(29,155,240,0.08), rgba(124,58,237,0.08)); border: 1.5px solid rgba(124,58,237,0.20); border-radius: 16px; padding: 14px 16px; cursor: pointer; transition: all var(--transition); }
.upload-promo-banner:hover { border-color: var(--purple); background: linear-gradient(135deg, rgba(29,155,240,0.12), rgba(124,58,237,0.12)); }
.upload-promo-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.upload-promo-icon { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, var(--accent), var(--purple)); display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.upload-promo-icon .material-symbols-rounded { font-size: 22px; }
.upload-promo-title { font-size: 14px; font-weight: 700; color: var(--purple); }
.upload-promo-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.upload-promo-arrow { font-size: 22px; color: var(--purple); flex-shrink: 0; }

/* Progress */
.upload-progress-card { background: var(--surface); border-radius: 14px; border: 1px solid var(--border); padding: 14px 16px; }
.upload-progress-header { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.upload-progress-pct { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--accent); }
.upload-progress-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: progressPulse 1s ease infinite; flex-shrink: 0; }
@keyframes progressPulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.5; transform:scale(1.3); } }
.upload-progress-track { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.upload-progress-bar { height: 100%; background: linear-gradient(90deg, var(--accent), var(--purple)); border-radius: 3px; transition: width 0.25s ease; }

/* Submit button — big & bold */
.upload-submit-btn-main { width: 100%; padding: 0; background: linear-gradient(135deg, var(--accent) 0%, #1a7fd4 50%, var(--purple) 100%); border: none; border-radius: 18px; color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: space-between; overflow: hidden; transition: opacity var(--transition), transform var(--transition); min-height: 58px; box-shadow: 0 6px 24px rgba(29,155,240,0.35); }
.upload-submit-btn-main:hover:not(:disabled) { opacity: 0.93; transform: translateY(-1px); box-shadow: 0 8px 28px rgba(29,155,240,0.45); }
.upload-submit-btn-main:active:not(:disabled) { transform: translateY(0); }
.upload-submit-btn-main.disabled, .upload-submit-btn-main:disabled { background: var(--surface-3); color: var(--text-muted); cursor: not-allowed; box-shadow: none; }
.upload-submit-btn-main.uploading { opacity: 0.7; cursor: wait; }
.upload-btn-inner { display: flex; align-items: center; gap: 10px; padding: 16px 20px; font-size: 16px; font-weight: 700; }
.upload-btn-inner .material-symbols-rounded { font-size: 22px; }
.upload-btn-badge { background: rgba(255,255,255,0.2); border-radius: 20px; padding: 4px 14px; font-size: 12px; font-weight: 700; margin-right: 16px; white-space: nowrap; }

/* Legacy compat */
.progress-track { height: 4px; background: var(--surface-2); border-radius: 2px; overflow: hidden; margin-top: 8px; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--accent), var(--purple)); border-radius: 2px; transition: width 0.3s ease; }
.progress-label { font-size: 12px; color: var(--text-muted); text-align: right; margin-top: 2px; }

/* ═══════════════════════════════════════════════════════════
   SETTINGS
   ═══════════════════════════════════════════════════════════ */
.settings-wrap { max-width: 600px; margin: 0 auto; padding: 16px; }
.settings-title { font-size: 22px; font-weight: 700; margin-bottom: 20px; }
.settings-section { background: var(--surface); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; border: 1px solid var(--border); }
.settings-section-title { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; padding: 12px 16px 4px; }
.settings-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; transition: background var(--transition); border-top: 1px solid var(--border); }
.settings-item:first-of-type { border-top: none; }
.settings-item:hover { background: var(--surface-2); }
.settings-item-left { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.settings-item-left > .material-symbols-rounded { font-size: 22px; color: var(--accent); flex-shrink: 0; }
.settings-item-label { font-size: 15px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.settings-premium-tag { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #fff; box-shadow: 0 1px 3px rgba(245,158,11,0.3); letter-spacing: 0.2px; }
.settings-item-sub { font-size: 13px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.settings-chevron { color: var(--text-muted); font-size: 20px; flex-shrink: 0; }
.settings-logout-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; background: none; border: none; color: var(--danger); font-size: 16px; font-weight: 600; cursor: pointer; }
.settings-logout-btn:hover { background: rgba(244,33,46,0.06); }
.settings-version { text-align: center; color: var(--text-muted); font-size: 12px; padding: 16px 0 8px; }
.settings-input { width: 100%; background: var(--surface-2); border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; color: var(--text); font-size: 15px; outline: none; transition: border-color 0.2s; }
.settings-input:focus { border-color: var(--accent); }
.settings-input-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.settings-label { font-size: 13px; color: var(--text-muted); margin-bottom: 6px; display: block; }
.settings-input-with-prefix { display: flex; align-items: center; background: var(--surface-2); border: 1.5px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; transition: border-color 0.2s; }
.settings-input-with-prefix:focus-within { border-color: var(--accent); }
.settings-input-prefix { padding: 0 8px 0 14px; font-size: 16px; font-weight: 600; color: var(--text-muted); flex-shrink: 0; }
.settings-input-prefixed { border: none !important; background: transparent !important; border-radius: 0 !important; padding-left: 2px !important; flex: 1; }
.reply-banner { display: flex; align-items: center; gap: 6px; padding: 8px 16px; background: var(--surface-2); border-top: 1px solid var(--border); font-size: 13px; color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════
   COMMENTS
   ═══════════════════════════════════════════════════════════ */
.comments-panel { position: fixed; bottom: 0; left: 0; right: 0; height: min(78vh, calc(100dvh - env(safe-area-inset-top) - 12px)); background: var(--surface); border-radius: 20px 20px 0 0; z-index: 700; display: flex; flex-direction: column; transform: translateY(100%); transition: transform 0.3s cubic-bezier(0.4,0,0.2,1); box-shadow: 0 -4px 32px rgba(0,0,0,0.12); }
.comments-panel.active { transform: translateY(0); }
@media(min-width:900px) { .comments-panel { left: var(--desk-nav-w); max-width: 480px; } }
.comments-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.comments-header h3 { font-size: 16px; font-weight: 700; }
.comments-close-btn { background: none; border: none; cursor: pointer; color: var(--text-muted); display: flex; padding: 4px; }
.comments-list { flex: 1; overflow-y: auto; padding: 8px 0; }
.comments-input-row { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--border); flex-shrink: 0; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
.comments-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar-fallback { display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--text-muted); }
.comments-input { flex: 1; background: var(--surface-2); border: 1.5px solid var(--border); border-radius: 20px; padding: 8px 14px; color: var(--text); font-size: 14px; outline: none; }
.comments-input:focus { border-color: var(--accent); }
.comments-send-btn { background: var(--accent); border: none; border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #fff; flex-shrink: 0; }
.comments-empty, .comments-error, .comments-end { text-align: center; padding: 32px 16px; color: var(--text-muted); font-size: 14px; }
.comment-item { display: flex; gap: 10px; padding: 10px 16px; }
.comment-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; cursor: pointer; flex-shrink: 0; }
.comment-avatar-biz { border: 1.5px solid var(--accent); }
.comment-body { flex: 1; min-width: 0; }
.comment-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.comment-author { font-weight: 600; font-size: 13px; cursor: pointer; }
.comment-author:hover { color: var(--accent); }
.comment-time { font-size: 12px; color: var(--text-muted); }
.comment-text { font-size: 14px; line-height: 1.4; word-break: break-word; }
.comment-actions { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.comment-like-btn, .comment-reply-btn, .comment-delete-btn { background: none; border: none; cursor: pointer; color: var(--text-muted); display: flex; align-items: center; gap: 4px; font-size: 12px; padding: 2px 4px; border-radius: 6px; }
.comment-like-btn.liked { color: var(--danger); }
.comment-like-btn.liked .material-symbols-rounded { font-variation-settings: 'FILL' 1; }
.comment-reply-btn:hover { color: var(--accent); }
.comment-delete-btn:hover { color: var(--danger); }
.comment-like-count { font-size: 12px; color: var(--text-muted); }
.comment-replies { margin-top: 8px; padding-left: 8px; border-left: 2px solid var(--border); }
.reply-item { display: flex; gap: 8px; padding: 6px 0; }
.reply-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; cursor: pointer; flex-shrink: 0; }
.comment-avatar.material-symbols-rounded { font-size: 20px; }
.reply-avatar.material-symbols-rounded { font-size: 16px; }
.reply-body { flex: 1; min-width: 0; }

/* ═══════════════════════════════════════════════════════════
   BUSINESS
   ═══════════════════════════════════════════════════════════ */
.biz-wrap { max-width: 480px; margin: 0 auto; padding: 16px; }
.biz-hero { text-align: center; padding: 24px 16px 20px; }
.biz-hero-icon { width: 72px; height: 72px; border-radius: 20px; background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(29,155,240,0.12)); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.biz-hero-icon .material-symbols-rounded { font-size: 38px; color: var(--purple); }
.biz-hero-title { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.biz-hero-sub { color: var(--text-muted); font-size: 15px; }
.biz-active-card { background: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(29,155,240,0.08)); border: 1.5px solid var(--purple); border-radius: 14px; padding: 14px 16px; margin-bottom: 16px; }
.biz-active-badge { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--purple); margin-bottom: 4px; }
.biz-expire-text { color: var(--text-muted); font-size: 13px; }
.biz-features { background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); margin-bottom: 20px; }
.biz-feature-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--border); }
.biz-feature-item:first-child { border-top: none; }
.biz-feature-icon { font-size: 22px; color: var(--text-muted); flex-shrink: 0; }
.biz-feature-item.active .biz-feature-icon { color: var(--purple); }
.biz-feature-title { font-size: 15px; font-weight: 500; }
.biz-feature-desc { font-size: 13px; color: var(--text-muted); }
.biz-cta { text-align: center; padding: 8px 0 16px; }
.biz-cta-text { color: var(--text-muted); margin-bottom: 12px; }
.biz-cta-btn { display: inline-flex; align-items: center; gap: 8px; background: #0088cc; color: #fff; padding: 12px 24px; border-radius: 30px; font-weight: 700; text-decoration: none; font-size: 15px; }
.biz-cta-hint { color: var(--text-muted); font-size: 13px; margin-top: 8px; }
.biz-back { text-align: center; padding: 8px 0; }
.promo-icon { width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg,var(--accent),var(--purple)); display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.promo-icon .material-symbols-rounded { font-size: 26px; }
.promo-card-btn { display: inline-flex; align-items: center; gap: 8px; background: #0088cc; color: #fff; padding: 12px 24px; border-radius: 30px; font-weight: 700; text-decoration: none; font-size: 15px; border: none; cursor: pointer; }

/* ═══════════════════════════════════════════════════════════
   ADMIN
   ═══════════════════════════════════════════════════════════ */
.admin-wrap { max-width: 800px; margin: 0 auto; padding: 16px; }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.admin-title { font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.admin-badge { background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.admin-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-bottom: 16px; }
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tab { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 20px; border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: all var(--transition); }
.admin-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.admin-tab .material-symbols-rounded { font-size: 18px; }
.admin-content { min-height: 200px; }
.admin-stats-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-bottom: 20px; }
@media(min-width:600px) { .admin-stats-grid { grid-template-columns: repeat(3,1fr); } }
@media(min-width:800px) { .admin-stats-grid { grid-template-columns: repeat(5,1fr); } }
.admin-stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.stat-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.stat-icon .material-symbols-rounded { font-size: 20px; }
.stat-value { font-size: 22px; font-weight: 800; }
.stat-label { font-size: 12px; color: var(--text-muted); }
.stat-sub { font-size: 11px; color: var(--success); }
.admin-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.admin-search { flex: 1; min-width: 180px; background: var(--surface); border: 1.5px solid var(--border); border-radius: 10px; padding: 9px 14px; color: var(--text); font-size: 14px; outline: none; }
.admin-search:focus { border-color: var(--accent); }
.admin-toolbar-count { font-size: 13px; color: var(--text-muted); }
.admin-users-list { display: flex; flex-direction: column; gap: 8px; }
.admin-user-row { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.admin-user-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--surface-2); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.admin-user-info { flex: 1; min-width: 0; }
.admin-user-name { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.admin-user-phone { font-size: 12px; color: var(--text-muted); }
.admin-user-username { font-size: 12px; color: var(--accent); }
.admin-blocked-badge { background: rgba(244,33,46,0.10); color: var(--danger); font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 20px; }
.admin-user-actions { display: flex; gap: 6px; flex-shrink: 0; }
.admin-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--border); font-size: 13px; font-weight: 600; cursor: pointer; background: var(--surface); color: var(--text); transition: all var(--transition); }
.admin-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.admin-btn-sm { padding: 6px 10px; }
.admin-btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.admin-btn-danger { background: rgba(244,33,46,0.08); color: var(--danger); border-color: rgba(244,33,46,0.2); }
.admin-btn-success { background: rgba(0,186,124,0.08); color: var(--success); border-color: rgba(0,186,124,0.2); }
.admin-btn .material-symbols-rounded { font-size: 16px; }
.admin-file-picker { width: 100%; display: flex; align-items: center; gap: 12px; border: 1.5px dashed var(--border); background: var(--surface-2); color: var(--text); border-radius: 12px; padding: 14px; text-align: left; cursor: pointer; }
.admin-file-picker:hover { border-color: var(--accent); background: rgba(29,155,240,0.06); }
.admin-file-picker > .material-symbols-rounded { width: 40px; height: 40px; border-radius: 10px; background: var(--surface); display: flex; align-items: center; justify-content: center; color: var(--accent); flex-shrink: 0; }
.admin-file-picker div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.admin-file-picker strong { font-size: 14px; font-weight: 700; }
.admin-file-picker small { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-videos-grid { display: flex; flex-direction: column; gap: 8px; }
.admin-videos-grid { display: flex; flex-direction: column; gap: 8px; }
.admin-video-card { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.admin-video-thumb { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: var(--surface-2); }
.admin-video-info { flex: 1; min-width: 0; }
.admin-video-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-video-meta { font-size: 12px; color: var(--text-muted); display: flex; gap: 8px; flex-wrap: wrap; }
.admin-video-actions { display: flex; gap: 6px; flex-shrink: 0; }
.admin-ads-grid { display: flex; flex-direction: column; gap: 10px; }
.admin-ad-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px; }
.admin-ad-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.admin-ad-thumb { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: var(--surface-2); }
.admin-ad-info { flex: 1; min-width: 0; }
.admin-ad-title { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-ad-meta { font-size: 12px; color: var(--text-muted); display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.admin-ad-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px; }
.admin-ad-badge.active { background: rgba(0,186,124,0.12); color: var(--success); }
.admin-ad-badge.inactive { background: rgba(244,33,46,0.10); color: var(--danger); }
.admin-ad-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
.admin-stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; text-align: center; }
.admin-stat-num { font-size: 26px; font-weight: 800; color: var(--accent); }
.admin-stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.admin-section-title { font-size: 16px; font-weight: 700; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 480px) {
  .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-user-actions { flex-direction: column; }
  .admin-ad-actions { flex-direction: column; }
  .profile-stats { gap: 0; }
  .desk-nav-logo-img { width: 72px; height: 72px; }
}

/* ═══════════════════════════════════════════════════════════
   GLOBAL TOP PROGRESS BAR
   ═══════════════════════════════════════════════════════════ */
.global-progress-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 99999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.global-progress-bar.active { opacity: 1; }
.global-progress-bar.done { opacity: 0; transition: opacity 0.3s ease 0.1s; }
.global-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent, #1d9bf0), var(--purple, #a855f7));
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 8px rgba(29,155,240,0.6);
}

/* ═══════════════════════════════════════════════════════════
   NOTIFICATIONS SCREEN
   ═══════════════════════════════════════════════════════════ */
.notif-list { display: flex; flex-direction: column; gap: 10px; padding: 10px 12px 18px; }
.notif-card {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: background var(--transition), border-color var(--transition), transform 0.12s ease;
  position: relative;
}
.notif-card:hover { background: var(--surface-2); border-color: color-mix(in srgb, var(--accent) 28%, var(--border)); }
.notif-card:active { transform: scale(0.99); background: var(--surface-2); }
.notif-card.unread { background: color-mix(in srgb, var(--accent) 7%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 32%, var(--border)); }
.notif-card.unread:active { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }

.notif-avatar {
  position: relative; flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 50%; overflow: visible;
  cursor: pointer;
}
.notif-avatar img {
  width: 46px; height: 46px;
  border-radius: 50%; object-fit: cover;
  background: var(--surface-2);
}
.notif-avatar .material-symbols-rounded {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); border-radius: 50%;
  font-size: 24px; color: var(--text-muted);
}
.notif-type-icon {
  position: absolute; bottom: -2px; right: -2px;
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg);
}
.notif-type-icon .material-symbols-rounded { font-size: 11px; color: #fff; }
.notif-type-like    { background: #ef4444; }
.notif-type-comment { background: var(--accent); }
.notif-type-reply   { background: var(--purple, #a855f7); }
.notif-type-mention { background: #f59e0b; }

.notif-body { flex: 1; min-width: 0; }
.notif-msg { font-size: 14px; line-height: 1.4; margin: 0 0 2px; }
.notif-msg strong { color: var(--text); }
.notif-text { font-size: 13px; color: var(--text-muted); margin: 0 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-time { font-size: 12px; color: var(--text-muted); }
.notif-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0; margin-top: 6px;
}

/* Skeleton */
.notif-skel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin: 0 12px 10px;
}
.notif-skel { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.notif-skel-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--surface-2); flex-shrink: 0; }
.notif-skel-lines { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.notif-loading { padding: 10px 0 0; }

/* Nav badge */
.nav-notif-wrap { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.nav-badge {
  position: absolute; top: -6px; right: -8px;
  min-width: 16px; height: 16px; padding: 0 4px;
  background: #ef4444; color: #fff;
  font-size: 10px; font-weight: 700; line-height: 16px;
  border-radius: 8px; text-align: center;
  border: 2px solid var(--bg);
  pointer-events: none;
}
