/* ═══════════════════════════════════════════════════════════════════════════
   OpenSocial master stylesheet — HOT 4D v2
   Glass · Neon · Depth · Motion · Accessibility
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Design tokens ──────────────────────────────────────────────────────── */
:root {
  /* Surfaces */
  --bg: #07070d;
  --bg-2: #0b0b16;
  --bg-3: #0f0f1c;
  --card: rgba(20, 20, 35, 0.72);
  --card-solid: #12121f;
  --card-elev: rgba(25, 25, 42, 0.85);

  /* Text */
  --text: #eaeaf5;
  --text-dim: #c7c7dd;
  --muted: #8b8ba7;
  --muted-2: #6b6b85;

  /* Brand */
  --primary: #ff2d95;
  --primary-dark: #d81b78;
  --hot-pink:   #ff2d95;
  --hot-orange: #ff6b35;
  --hot-purple: #a855f7;
  --hot-cyan:   #00e5ff;
  --hot-lime:   #a3e635;
  --hot-yellow: #fbbf24;
  --hot-red:    #ef4444;
  --hot-muted:  #8b8ba7;

  /* Status */
  --danger: #ef4444;
  --ok: #a3e635;
  --warn: #fbbf24;
  --info: #3b82f6;

  /* Borders */
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --border-soft: rgba(255, 255, 255, 0.05);

  /* Shadows & glows */
  --shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 30px 60px -35px rgba(0,0,0,.95);
  --shadow-sm: 0 1px 0 rgba(255,255,255,.05) inset, 0 12px 24px -16px rgba(0,0,0,.9);
  --shadow-lg: 0 1px 0 rgba(255,255,255,.07) inset, 0 40px 80px -30px rgba(0,0,0,.95);
  --glow-pink:   0 0 24px -6px rgba(255,45,149,.75);
  --glow-cyan:   0 0 24px -6px rgba(0,229,255,.75);
  --glow-purple: 0 0 24px -6px rgba(168,85,247,.75);
  --glow-lime:   0 0 24px -6px rgba(163,230,53,.75);

  /* Radii */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(.2,.8,.2,1);
  --ease-out: cubic-bezier(0,.7,.2,1);
  --dur-fast: .18s;
  --dur: .25s;
  --dur-slow: .35s;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, var(--hot-pink), var(--hot-purple));
  --grad-hot: linear-gradient(135deg, var(--hot-pink), var(--hot-purple) 55%, var(--hot-cyan));
  --grad-success: linear-gradient(135deg, var(--hot-lime), #16a34a);
  --grad-danger: linear-gradient(135deg, #ef4444, #b91c1c);
  --grad-text: linear-gradient(90deg, #fff, #ffb3d9 40%, #b3f0ff 80%);

  /* Layout */
  --navbar-h: 58px;
  --content-max: 1100px;
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(255, 45, 149, 0.18), transparent 60%),
    radial-gradient(1000px 500px at 100% 0%, rgba(0, 229, 255, 0.15), transparent 55%),
    radial-gradient(900px 700px at 50% 120%, rgba(168, 85, 247, 0.18), transparent 60%),
    linear-gradient(160deg, var(--bg) 0%, var(--bg-2) 40%, var(--bg) 100%);
  background-attachment: fixed;
  position: relative;
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.015) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.015) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
  z-index: 0;
}

/* Focus rings — keyboard only */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--hot-cyan);
  outline-offset: 2px;
  border-radius: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--hot-cyan);
  outline-offset: 2px;
}

img, video { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }

/* ── Typography ─────────────────────────────────────────────────────────── */
a { color: var(--hot-cyan); text-decoration: none; transition: color var(--dur); }
a:hover { color: var(--hot-pink); text-decoration: none; }

h1, h2, h3, h4 {
  color: #fff;
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1.2;
  margin: 0 0 .6rem;
}
h1 { font-size: 1.85rem; font-weight: 900; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
h4 { font-size: 1rem; }

p { margin: 0 0 .75rem; }

code, kbd, pre, samp {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: .92em;
}
code {
  background: rgba(0,0,0,.4);
  padding: .1rem .4rem;
  border-radius: 5px;
  color: var(--hot-cyan);
}
pre {
  background: rgba(0,0,0,.4);
  border: 1px solid var(--border);
  padding: .85rem 1rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  line-height: 1.55;
}
kbd {
  display: inline-block;
  padding: 2px 6px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 4px;
  font-weight: 800;
  color: #fff;
  font-size: .72rem;
  line-height: 1.4;
}
blockquote {
  margin: .75rem 0;
  padding: .5rem 1rem;
  border-left: 3px solid var(--hot-pink);
  background: rgba(255,45,149,.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-dim);
}

hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
  margin: 1.5rem 0;
}

/* ── Navbar ─────────────────────────────────────────────────────────────── */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1.5rem;
  background: rgba(10, 10, 20, 0.85);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 20px 40px -30px rgba(255, 45, 149, 0.5);
  min-height: var(--navbar-h);
}
.navbar .brand {
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: -.02em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 30px rgba(255, 45, 149, 0.3);
}
.nav-links { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.nav-links a {
  color: var(--text-dim);
  font-weight: 600;
  font-size: .92rem;
  transition: color var(--dur);
}
.nav-links a:hover { color: #fff; }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text);
  padding: .35rem .55rem;
  border-radius: var(--radius-sm);
}
.nav-toggle:hover { background: rgba(255,255,255,.06); }
.nav-badge {
  background: var(--grad-primary);
  color: #fff;
  font-size: .7rem;
  padding: 1px 6px;
  border-radius: 8px;
  margin-left: 4px;
  font-weight: 700;
  box-shadow: 0 0 12px -2px rgba(255, 45, 149, 0.9);
}

.lang-switcher, .theme-switcher { display: inline-block; }
.lang-switcher select, .theme-switcher select {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(10, 10, 20, 0.7);
  color: var(--text);
  padding: .35rem .6rem;
  font-size: .9rem;
  cursor: pointer;
  transition: border-color var(--dur), box-shadow var(--dur);
}
.lang-switcher select:hover, .theme-switcher select:hover {
  border-color: var(--hot-cyan);
  box-shadow: var(--glow-cyan);
}

.container {
  max-width: var(--content-max);
  margin: 1.5rem auto;
  padding: 0 1rem;
  position: relative;
  z-index: 1;
}
.container-wide { max-width: 1400px; margin-left: auto; margin-right: auto; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .6rem 1.15rem;
  background: var(--grad-primary);
  color: #fff !important;
  border-radius: var(--radius-md);
  border: 0;
  cursor: pointer;
  font-size: .92rem;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.25) inset,
    0 10px 22px -12px rgba(255,45,149,0.9);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur), filter var(--dur);
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .6s var(--ease);
  pointer-events: none;
}
.btn:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.3) inset,
    0 16px 30px -12px rgba(255,45,149,1),
    0 0 30px -5px rgba(255,45,149,0.7);
}
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .5; cursor: default; transform: none; filter: grayscale(.3); }

.btn-secondary {
  background: rgba(255,255,255,0.04);
  color: var(--text) !important;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(0,229,255,0.5);
  box-shadow: var(--glow-cyan);
}
.btn-danger {
  background: var(--grad-danger);
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 10px 22px -12px rgba(239,68,68,.9);
}
.btn-success {
  background: var(--grad-success);
  color: #0a1a0a !important;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 10px 22px -12px rgba(163,230,53,.9);
}
.btn-ghost {
  background: transparent;
  color: var(--text) !important;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: none;
}
.btn-ghost:hover { background: rgba(255,255,255,.06); border-color: var(--hot-cyan); }

.btn-sm { padding: .4rem .8rem; font-size: .8rem; border-radius: var(--radius-sm); }
.btn-lg { padding: .8rem 1.5rem; font-size: 1rem; border-radius: 11px; }
.btn-block { display: flex; width: 100%; }
.btn-icon { padding: .55rem; width: 38px; height: 38px; }

.btn-danger-round, .btn-success-round {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 0;
  font-size: 1.5rem;
  cursor: pointer;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--dur-fast), box-shadow var(--dur);
}
.btn-danger-round { background: var(--grad-danger); box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 10px 22px -12px rgba(239,68,68,0.9); }
.btn-success-round { background: var(--grad-success); box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 10px 22px -12px rgba(163,230,53,0.9); }
.btn-danger-round:hover, .btn-success-round:hover { transform: scale(1.07) translateY(-2px); filter: brightness(1.08); }

/* ── Forms ──────────────────────────────────────────────────────────────── */
.form { display: flex; flex-direction: column; gap: .75rem; max-width: 520px; }
.form.inline { flex-direction: row; flex-wrap: wrap; align-items: center; max-width: none; }
.form label {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  font-weight: 600;
  font-size: .88rem;
  color: var(--text-dim);
}
.form input, .form textarea, .form select {
  padding: .65rem .85rem;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-md);
  font-size: .95rem;
  font-family: inherit;
  background: rgba(10, 10, 20, 0.7);
  color: var(--text);
  transition: border-color var(--dur), box-shadow var(--dur), background var(--dur);
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none;
  border-color: var(--hot-pink);
  background: rgba(15, 15, 28, 0.9);
  box-shadow: 0 0 0 3px rgba(255,45,149,0.18), var(--glow-pink);
}
.form textarea { min-height: 80px; resize: vertical; line-height: 1.55; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }

.inline { display: inline-flex; gap: .5rem; align-items: center; }
.muted { color: var(--muted); font-size: .9rem; }
.error {
  color: #fca5a5;
  background: linear-gradient(135deg, rgba(239,68,68,0.15), rgba(239,68,68,0.05));
  padding: .6rem .85rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(239,68,68,0.4);
  box-shadow: 0 10px 30px -15px rgba(239,68,68,0.6);
}
.ok { color: var(--hot-lime); }
.warn { color: var(--hot-yellow); }

.check { display: flex; align-items: center; gap: .4rem; font-size: .9rem; cursor: pointer; }
.check input { width: auto; accent-color: var(--hot-pink); }

/* ── Cards & tables ─────────────────────────────────────────────────────── */
.card {
  position: relative;
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01) 45%), var(--card);
  padding: 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: var(--shadow);
  transition: transform var(--dur-slow) var(--ease), box-shadow var(--dur-slow), border-color var(--dur-slow);
}
.card:hover {
  transform: translateY(-4px) rotateX(2deg) rotateY(-2deg);
  border-color: rgba(255,45,149,0.4);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.08) inset,
    0 30px 60px -25px rgba(255,45,149,0.5),
    0 0 40px -10px rgba(0,229,255,0.35);
}
.card.flat { transition: none; }
.card.flat:hover { transform: none; border-color: var(--border); box-shadow: var(--shadow); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.table th, .table td {
  padding: .7rem .85rem;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
  font-size: .9rem;
}
.table th {
  background: linear-gradient(180deg, rgba(255,45,149,0.10), rgba(0,229,255,0.05));
  font-weight: 800;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #fff;
  white-space: nowrap;
}
.table tbody tr { transition: background var(--dur), box-shadow var(--dur); }
.table tbody tr:hover {
  background: linear-gradient(90deg, rgba(255,45,149,0.08), rgba(0,229,255,0.05));
  box-shadow: inset 3px 0 0 var(--hot-pink);
}
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }

/* ── Badges & chips ─────────────────────────────────────────────────────── */
.badge {
  background: linear-gradient(135deg, rgba(255,45,149,0.25), rgba(0,229,255,0.15));
  color: #fff;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: .72rem;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.12);
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}
.badge-ok, .badge-warn, .badge-info, .badge-danger {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: .72rem;
  font-weight: 800;
  border: 1px solid transparent;
}
.badge-ok {
  background: rgba(163,230,53,0.15); color: #d9f99d;
  border-color: rgba(163,230,53,0.4);
  box-shadow: 0 0 14px -4px rgba(163,230,53,0.7);
}
.badge-warn {
  background: rgba(234,179,8,0.15); color: #fde68a;
  border-color: rgba(234,179,8,0.4);
  box-shadow: 0 0 14px -4px rgba(234,179,8,0.7);
}
.badge-danger {
  background: rgba(239,68,68,0.15); color: #fca5a5;
  border-color: rgba(239,68,68,0.4);
  box-shadow: 0 0 14px -4px rgba(239,68,68,0.7);
}
.badge-info {
  background: rgba(59,130,246,0.15); color: #93c5fd;
  border-color: rgba(59,130,246,0.4);
}

.chip {
  display: inline-block;
  padding: .25rem .75rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, rgba(255,45,149,0.18), rgba(0,229,255,0.10));
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.10);
}
.chip.salary {
  background: rgba(163,230,53,0.15);
  color: var(--hot-lime);
  border-color: rgba(163,230,53,0.4);
  font-weight: 700;
  box-shadow: 0 0 12px -3px rgba(163,230,53,0.6);
}

/* ── Notice & empty states ──────────────────────────────────────────────── */
.notice-card {
  position: relative;
  background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.01) 40%), var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  max-width: 540px;
  margin: 3rem auto;
  text-align: center;
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: var(--shadow);
}
.notice-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,45,149,0.5), transparent 40%, rgba(0,229,255,0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: .6;
}
.notice-card h1 { margin-top: 0; }
.notice-card.success { border-color: rgba(163,230,53,.35); }
.notice-card.error   { border-color: rgba(239,62,62,.35); }
.notice-card .ok { color: var(--hot-lime); }
.notice-card .error { color: #fca5a5; }

.empty-state {
  text-align: center;
  padding: 3.5rem 1.5rem;
  background: var(--card);
  border: 1px dashed rgba(255,255,255,.14);
  border-radius: var(--radius-xl);
  color: var(--muted);
  backdrop-filter: blur(14px);
}
.empty-state-icon {
  font-size: 3.5rem;
  display: block;
  margin-bottom: .85rem;
  filter: drop-shadow(0 0 32px rgba(255,45,149,.55));
  animation: floaty 3s ease-in-out infinite;
}
.empty-state h2, .empty-state h3 { color: #fff; margin: .25rem 0; }
.empty-state p { margin: .35rem 0 1.25rem; }

@keyframes floaty {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-10px); }
}

/* ── Skeletons ──────────────────────────────────────────────────────────── */
.skeleton {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,.05);
  border-radius: var(--radius-sm);
  min-height: 1em;
  color: transparent !important;
}
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
              transparent,
              rgba(255,255,255,.06) 45%,
              rgba(255,255,255,.10) 50%,
              rgba(255,255,255,.06) 55%,
              transparent);
  transform: translateX(-100%);
  animation: shimmer 1.6s infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }

.skeleton-line   { height: .85rem; margin: .35rem 0; }
.skeleton-line.w-100 { width: 100%; }
.skeleton-line.w-80  { width: 80%; }
.skeleton-line.w-60  { width: 60%; }
.skeleton-line.w-40  { width: 40%; }
.skeleton-avatar { width: 44px; height: 44px; border-radius: 50%; }
.skeleton-img    { width: 100%; aspect-ratio: 16/9; border-radius: var(--radius-md); }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.01) 40%), var(--card);
  padding: 3rem 2rem;
  border-radius: var(--radius-xl);
  text-align: center;
  border: 1px solid var(--border);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,45,149,0.6), transparent 40%, rgba(0,229,255,0.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: .7;
}
.hero h1 {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Avatars ────────────────────────────────────────────────────────────── */
.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: #2a2a40;
  border: 2px solid rgba(255,45,149,0.35);
  box-shadow: 0 0 14px -4px rgba(255,45,149,0.6);
  flex-shrink: 0;
}
.avatar-sm {
  width: 28px; height: 28px; border-radius: 50%; object-fit: cover;
  background: #2a2a40; vertical-align: middle;
  border: 1px solid rgba(255,255,255,0.15);
  flex-shrink: 0;
}
.avatar-lg {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
  background: #2a2a40;
  border: 3px solid var(--hot-pink);
  box-shadow: 0 0 30px -6px rgba(255,45,149,0.9);
}
.avatar-wrap { position: relative; display: inline-block; }
.presence {
  position: absolute; right: -2px; bottom: -2px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #94a3b8;
  border: 2px solid var(--card-solid);
}
.presence.online {
  background: var(--hot-lime);
  box-shadow: 0 0 12px var(--hot-lime);
}

/* ═══════════════════════════════════════════════════════════════════════
   FEED — composer, post cards, post menu, emoji picker
   ═══════════════════════════════════════════════════════════════════════ */

.composer {
  background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.01) 40%), var(--card);
  padding: 1.2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: var(--shadow);
  position: relative;
}
.composer textarea {
  width: 100%;
  min-height: 70px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-md);
  padding: .65rem .85rem;
  font-family: inherit;
  background: rgba(10, 10, 20, 0.7);
  color: var(--text);
  resize: vertical;
  transition: border-color var(--dur), box-shadow var(--dur);
}
.composer textarea:focus {
  outline: none;
  border-color: var(--hot-pink);
  box-shadow: 0 0 0 3px rgba(255,45,149,0.18), var(--glow-pink);
}
.composer-row { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; margin-top: .5rem; }

.file-btn {
  cursor: pointer;
  padding: .45rem .85rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  font-size: .9rem;
  font-weight: 600;
  transition: all var(--dur);
}
.file-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--hot-cyan);
  box-shadow: var(--glow-cyan);
}

.feed { display: flex; flex-direction: column; gap: 1rem; }
.feed.feed-view-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
@media (max-width: 640px) { .feed.feed-view-grid { grid-template-columns: 1fr; } }

/* Post card */
.post {
  position: relative;
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01) 45%), var(--card);
  padding: 1.2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  transition: transform var(--dur-slow) var(--ease), box-shadow var(--dur-slow), border-color var(--dur-slow);
  animation: postIn .5s var(--ease) backwards;
}
@keyframes postIn {
  from { opacity: 0; transform: translateY(20px) rotateX(-4deg); }
  to   { opacity: 1; transform: translateY(0) rotateX(0); }
}
.post:hover {
  transform: translateY(-4px) rotateX(2deg) rotateY(-2deg);
  border-color: rgba(255,45,149,0.4);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.08) inset,
    0 30px 60px -25px rgba(255,45,149,0.5),
    0 0 40px -10px rgba(0,229,255,0.35);
}
.post::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,.07), transparent 40%);
  opacity: 0;
  transition: opacity var(--dur);
}
.post:hover::after { opacity: 1; }

.post.post-pinned { border-color: rgba(251,191,36,.4); }
.post.post-featured { border-color: rgba(168,85,247,.4); }

.post header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .5rem;
  position: relative;
  padding-right: 42px;
}
.post header time { color: var(--muted); font-size: .85rem; display: block; }
.post header a { color: #fff; font-weight: 800; }

.post-flags { display: flex; gap: .35rem; margin-bottom: .5rem; flex-wrap: wrap; }
.post-flag {
  font-size: .68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.flag-pin  { background: rgba(251,191,36,.18); color: #fcd34d; border: 1px solid rgba(251,191,36,.4); }
.flag-feat { background: rgba(168,85,247,.18); color: #d8b4fe; border: 1px solid rgba(168,85,247,.4); }

.post-content {
  margin: .5rem 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  color: var(--text);
  line-height: 1.6;
  font-size: 1rem;
}
.post-content.truncated {
  max-height: 4.8em;
  overflow: hidden;
  position: relative;
}
.post-content.truncated::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2em;
  background: linear-gradient(180deg, transparent, rgba(12,12,24,.95));
  pointer-events: none;
}
.post-readmore {
  background: none;
  border: 0;
  color: var(--hot-cyan);
  font-family: inherit;
  font-weight: 700;
  font-size: .85rem;
  cursor: pointer;
  padding: .1rem 0 .55rem;
}
.post-readmore:hover { color: #fff; }

.post-media {
  max-width: 100%;
  border-radius: var(--radius-md);
  margin-top: .5rem;
  border: 1px solid var(--border-soft);
}
.post-media[data-lightbox] { cursor: zoom-in; transition: transform var(--dur); }
.post-media[data-lightbox]:hover { transform: scale(1.005); }
.post-rich { color: var(--text); font-size: .96rem; line-height: 1.6; margin-bottom: .65rem; }
.post-rich img { max-width: 100%; border-radius: var(--radius-md); }

.attach-link {
  display: inline-block;
  margin-top: .5rem;
  padding: .45rem .85rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  font-size: .9rem;
  transition: all var(--dur);
}
.attach-link:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--hot-cyan);
  box-shadow: var(--glow-cyan);
}

.post-actions {
  display: flex;
  gap: .5rem;
  margin-top: .75rem;
  border-top: 1px solid var(--border-soft);
  padding-top: .6rem;
}
.post-actions button {
  background: none;
  border: 0;
  cursor: pointer;
  padding: .35rem .7rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  color: var(--muted);
  font-family: inherit;
  font-weight: 600;
  transition: all var(--dur);
}
.post-actions button:hover,
.post-actions button.active {
  background: linear-gradient(135deg, rgba(255,45,149,0.15), rgba(0,229,255,0.10));
  color: #fff;
  box-shadow: var(--glow-pink);
}

/* Post menu (⋯) */
.post-menu-btn {
  position: absolute;
  top: 0;
  right: 0;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur);
  z-index: 3;
}
.post-menu-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.post-menu-btn.active { background: rgba(255,255,255,.1); color: #fff; }

.post-menu {
  position: absolute;
  top: 40px;
  right: 8px;
  z-index: 50;
  min-width: 210px;
  background: rgba(15,15,28,.98);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: .35rem;
  box-shadow: 0 20px 50px -12px rgba(0,0,0,.95), 0 0 40px -15px rgba(255,45,149,.4);
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px) scale(.98);
  transition: opacity var(--dur-fast), transform var(--dur-fast);
}
.post-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.post-menu-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .75rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: .86rem;
  font-weight: 600;
  cursor: pointer;
  border: 0;
  background: none;
  font-family: inherit;
  width: 100%;
  text-align: left;
  transition: background var(--dur-fast);
}
.post-menu-item:hover { background: rgba(255,255,255,.06); }
.post-menu-item.danger { color: #fca5a5; }
.post-menu-item.danger:hover { background: rgba(239,68,68,.12); }
.post-menu-item .mi-icon { width: 20px; text-align: center; }
.post-menu-item.sep {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: .25rem;
  padding-top: .55rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

/* Composer hot 4D */
.hot-composer {
  position: relative;
  margin-bottom: 1.25rem;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(255,45,149,.55), rgba(168,85,247,.55), rgba(0,229,255,.55), rgba(255,45,149,.55));
  background-size: 300% 300%;
  animation: hotBorderFlow 12s linear infinite;
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 24px 60px -28px rgba(255,45,149,.55);
}
@keyframes hotBorderFlow {
  0%,100% { background-position: 0% 50%; }
  50%     { background-position: 100% 50%; }
}
.hot-composer-inner {
  position: relative;
  border-radius: 18px;
  padding: 1rem 1.05rem 1.05rem;
  background: linear-gradient(160deg, rgba(20,20,35,.96), rgba(12,12,24,.98));
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
}
.hot-composer-head { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.hot-composer-head img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.15); flex-shrink: 0; }
.hot-composer-head .hch-name { font-weight: 800; font-size: .95rem; color: #fff; }
.hot-composer-head .hch-hint { font-size: .78rem; color: var(--hot-muted); margin-top: .1rem; }
.hot-textarea {
  width: 100%;
  min-height: 64px;
  max-height: 320px;
  padding: .35rem .25rem .5rem;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  resize: none;
  outline: none;
}
.hot-textarea::placeholder { color: rgba(139,139,167,.85); }
.hot-char-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .5rem;
  font-size: .75rem;
  color: var(--hot-muted);
  padding: 0 .25rem .35rem;
}
.hot-char-row .char-count.warn { color: var(--hot-yellow); }
.hot-char-row .char-count.danger { color: #ff5c8a; }
.hot-char-ring {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: conic-gradient(var(--hot-cyan) 0turn, var(--hot-cyan) var(--p,0turn), rgba(255,255,255,.1) var(--p,0turn));
  display: inline-flex;
  position: relative;
}
.hot-char-ring::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: rgba(15,15,28,.95);
}
.hot-media-grid {
  display: grid;
  gap: .4rem;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  margin: .5rem .25rem .25rem;
}
.hot-media-grid:empty { display: none; }
.hot-media-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0a0a14;
  border: 1px solid var(--border);
  aspect-ratio: 1/1;
}
.hot-media-item img, .hot-media-item video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hot-media-item .hm-badge {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: rgba(0,0,0,.75);
  color: #fff;
  font-size: .68rem;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  font-weight: 700;
}
.hot-media-item .hm-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: rgba(0,0,0,.75);
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hot-media-item .hm-remove:hover { background: #e11d48; transform: scale(1.08); }
.hot-context-row { display: flex; flex-wrap: wrap; gap: .35rem; margin: .35rem .25rem 0; }
.hot-context-row:empty { display: none; }
.hot-context-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .65rem;
  border-radius: var(--radius-pill);
  font-size: .78rem;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(255,45,149,.18), rgba(168,85,247,.18));
  border: 1px solid rgba(255,45,149,.35);
  color: #fff;
}
.hot-context-chip .hcc-x {
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  font-size: .85rem;
  line-height: 1;
  padding: 0;
  opacity: .7;
}
.hot-progress {
  height: 4px;
  margin: .55rem .25rem 0;
  background: rgba(255,255,255,.08);
  border-radius: var(--radius-pill);
  overflow: hidden;
  display: none;
}
.hot-progress.show { display: block; }
.hot-progress > span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--hot-pink), var(--hot-cyan));
  border-radius: inherit;
  transition: width .15s linear;
}
.hot-status { margin: .35rem .25rem 0; font-size: .78rem; color: var(--hot-muted); min-height: 16px; }
.hot-toolbar {
  display: flex;
  align-items: center;
  gap: .3rem;
  padding-top: .75rem;
  margin-top: .5rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.hot-tool {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid transparent;
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-size: 1.05rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--dur-fast), background var(--dur-fast), border-color var(--dur-fast);
  font-family: inherit;
}
.hot-tool:hover {
  background: rgba(255,255,255,.09);
  border-color: rgba(0,229,255,.45);
  transform: translateY(-2px);
}
.hot-tool.active {
  background: linear-gradient(135deg, rgba(255,45,149,.35), rgba(168,85,247,.35));
  border-color: rgba(255,45,149,.6);
}
.hot-toolbar-spacer { flex: 1; }
.hot-post-btn {
  padding: .55rem 1.35rem;
  border: 0;
  border-radius: 11px;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--hot-pink), var(--hot-purple) 55%, var(--hot-cyan));
  background-size: 200% 200%;
  animation: hotBtnFlow 6s ease-in-out infinite;
  box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 12px 28px -10px rgba(255,45,149,.85);
  transition: transform var(--dur-fast), filter var(--dur-fast);
}
@keyframes hotBtnFlow {
  0%,100% { background-position: 0% 50%; }
  50%     { background-position: 100% 50%; }
}
.hot-post-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.hot-post-btn:disabled { filter: grayscale(.4) brightness(.8); cursor: not-allowed; animation: none; }
.hot-post-btn .hp-hint { font-weight: 500; font-size: .72rem; opacity: .8; margin-left: .35rem; }

/* Emoji picker */
.hot-pop {
  position: absolute;
  z-index: 60;
  background: rgba(15,15,28,.98);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.9), 0 0 40px -12px rgba(255,45,149,.4);
  padding: .6rem;
  width: 340px;
  max-width: calc(100vw - 32px);
  opacity: 0;
  transform: translateY(6px) scale(.98);
  pointer-events: none;
  transition: opacity var(--dur-fast) ease, transform var(--dur-fast) ease;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.hot-pop.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.hot-pop-title {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--hot-muted);
  padding: 0 .25rem .45rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hot-pop-close {
  background: none;
  border: 0;
  color: var(--hot-muted);
  cursor: pointer;
  font-size: .9rem;
  padding: 2px 6px;
  border-radius: 6px;
  line-height: 1;
}
.hot-pop-close:hover { color: #fff; background: rgba(255,255,255,.08); }

#emojiGrid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: .2rem;
  max-height: 220px;
  overflow-y: auto;
  padding-right: .2rem;
}
#emojiGrid::-webkit-scrollbar { width: 6px; }
#emojiGrid::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: var(--radius-pill); }
#emojiGrid button {
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
  padding: .35rem;
  border-radius: var(--radius-sm);
  transition: background var(--dur-fast), transform var(--dur-fast);
  font-family: inherit;
}
#emojiGrid button:hover { background: rgba(255,255,255,.1); transform: scale(1.2); }
#emojiGrid button:active { transform: scale(.9); }

#pop-emoji { top: calc(100% + 6px); right: 0; }
@media (max-width: 420px) {
  .hot-pop { width: calc(100vw - 32px); }
  #emojiGrid { grid-template-columns: repeat(6, 1fr); }
}

/* ═══════════════════════════════════════════════════════════════════════
   MODALS — edit, report, delete, generic
   ═══════════════════════════════════════════════════════════════════════ */
.fd-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fdFade var(--dur-fast) ease;
}
@keyframes fdFade { from { opacity: 0; } to { opacity: 1; } }
.fd-modal.hidden { display: none; }

.fd-modal-card {
  width: 100%;
  max-width: 560px;
  background: linear-gradient(160deg, rgba(20,20,35,.98), rgba(12,12,24,.99));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.95), 0 0 60px -20px rgba(255,45,149,.5);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  animation: fdModalIn var(--dur-slow) var(--ease);
}
@keyframes fdModalIn {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.fd-modal-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, rgba(255,45,149,.6), transparent 40%, rgba(0,229,255,.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.fd-modal-card h2 {
  margin: 0 0 1rem;
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.fd-modal-card h2::before { content: "✏️"; }
.fd-modal-card.report h2::before { content: "⚠️"; }
.fd-modal-card.delete h2::before { content: "🗑️"; }

.fd-label {
  display: block;
  margin-bottom: .8rem;
  font-size: .76rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.fd-input, .fd-textarea, .fd-select {
  width: 100%;
  margin-top: .35rem;
  padding: .75rem .9rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.4);
  color: var(--text);
  font-family: inherit;
  font-size: .92rem;
}
.fd-textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.fd-input:focus, .fd-textarea:focus, .fd-select:focus {
  outline: none;
  border-color: var(--hot-cyan);
  box-shadow: 0 0 0 3px rgba(0,229,255,.15);
}

.fd-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: .55rem;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.fd-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .6rem 1.2rem;
  border-radius: var(--radius-md);
  border: 0;
  font-family: inherit;
  font-size: .88rem;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: filter var(--dur), transform var(--dur);
}
.fd-btn:hover { transform: translateY(-1px); }
.fd-btn.primary { background: var(--grad-primary); color: #fff; box-shadow: 0 12px 26px -12px rgba(255,45,149,1); }
.fd-btn.primary:hover { filter: brightness(1.1); }
.fd-btn.ghost { background: rgba(255,255,255,.05); color: var(--text); border: 1px solid rgba(255,255,255,.12); }
.fd-btn.ghost:hover { background: rgba(255,255,255,.1); }
.fd-btn.danger { background: var(--grad-danger); color: #fff; }
.fd-btn.danger:hover { filter: brightness(1.1); }
.fd-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; filter: grayscale(.5); }

.fd-char-count {
  font-size: .75rem;
  color: var(--muted);
  text-align: right;
  margin-top: .35rem;
  font-weight: 600;
}
.fd-char-count.warn { color: var(--hot-yellow); }
.fd-char-count.over { color: #fca5a5; }

/* ═══════════════════════════════════════════════════════════════════════
   IMAGE LIGHTBOX
   ═══════════════════════════════════════════════════════════════════════ */
.fd-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,.95);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fdFade var(--dur) ease;
  padding: 1rem;
}
.fd-lightbox.hidden { display: none; }
.fd-lightbox img {
  max-width: 95vw;
  max-height: 92vh;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -20px rgba(255,45,149,.5), 0 0 120px -30px rgba(0,229,255,.4);
  animation: lightboxImgIn var(--dur) var(--ease);
}
@keyframes lightboxImgIn {
  from { transform: scale(.9); opacity: 0; }
  to   { transform: scale(1);  opacity: 1; }
}
.fd-lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--dur), background var(--dur);
}
.fd-lightbox-close:hover {
  background: rgba(239,68,68,.3);
  border-color: #ef4444;
  transform: rotate(90deg);
}

/* ═══════════════════════════════════════════════════════════════════════
   TOASTS
   ═══════════════════════════════════════════════════════════════════════ */
.fd-toast,
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: .85rem 1.15rem;
  border-radius: var(--radius);
  background: var(--grad-primary);
  color: #fff;
  font-weight: 700;
  font-size: .88rem;
  z-index: 99999;
  box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 20px 50px -15px rgba(255,45,149,1);
  animation: fdToastIn var(--dur-slow) var(--ease);
  max-width: 340px;
}
@keyframes fdToastIn {
  from { opacity: 0; transform: translateY(20px) scale(.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.fd-toast.ok, .toast.ok { background: var(--grad-success); color: #0a1a0a; }
.fd-toast.err, .toast.err { background: var(--grad-danger); color: #fff; }
.fd-toast.warn, .toast.warn { background: linear-gradient(135deg, var(--hot-yellow), #d97706); color: #1a1000; }

/* ═══════════════════════════════════════════════════════════════════════
   KEYBOARD SHORTCUT HINT
   ═══════════════════════════════════════════════════════════════════════ */
.kbd-hint,
.vw-kbd-hint {
  position: fixed;
  bottom: 24px;
  left: 24px;
  padding: .6rem .9rem;
  border-radius: var(--radius);
  background: rgba(15,15,28,.9);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: .76rem;
  font-weight: 600;
  backdrop-filter: blur(14px);
  z-index: 500;
  display: flex;
  gap: .75rem;
  align-items: center;
  box-shadow: 0 14px 32px -18px rgba(0,0,0,.9);
  max-width: 90vw;
  flex-wrap: wrap;
}
.kbd-hint kbd,
.vw-kbd-hint kbd {
  background: rgba(255,255,255,.08);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,.12);
  font-family: inherit;
  font-weight: 800;
  color: #fff;
  font-size: .72rem;
}
@media (max-width: 900px) { .kbd-hint, .vw-kbd-hint { display: none; } }

/* ═══════════════════════════════════════════════════════════════════════
   BACKGROUND ORBS
   ═══════════════════════════════════════════════════════════════════════ */
.orbs,
.fd-orbs,
.pm-orbs,
.vw-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.orbs span,
.fd-orbs span,
.pm-orbs span,
.vw-orbs span {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .25;
  animation: orbsOrbit 26s ease-in-out infinite;
}
.orbs span:nth-child(1),
.fd-orbs span:nth-child(1),
.pm-orbs span:nth-child(1),
.vw-orbs span:nth-child(1) { width: 480px; height: 480px; background: var(--hot-pink); top: -10%; left: -10%; }
.orbs span:nth-child(2),
.fd-orbs span:nth-child(2),
.pm-orbs span:nth-child(2),
.vw-orbs span:nth-child(2) { width: 400px; height: 400px; background: var(--hot-cyan); top: 35%; right: -10%; animation-delay: -9s; }
.orbs span:nth-child(3),
.fd-orbs span:nth-child(3),
.pm-orbs span:nth-child(3),
.vw-orbs span:nth-child(3) { width: 360px; height: 360px; background: var(--hot-purple); bottom: -10%; left: 30%; animation-delay: -18s; }
@keyframes orbsOrbit {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(50px,-40px) scale(1.12); }
  66%     { transform: translate(-40px,50px) scale(.9); }
}

/* ═══════════════════════════════════════════════════════════════════════
   MESSENGER
   ═══════════════════════════════════════════════════════════════════════ */
.messenger-full {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0;
  height: calc(100vh - 140px);
  min-height: 500px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: var(--shadow);
}
.convo-list { border-right: 1px solid var(--border-soft); display: flex; flex-direction: column; }
.convo-header { padding: .85rem 1rem; border-bottom: 1px solid var(--border-soft); background: rgba(255,255,255,0.02); }
.convo-header h2 { margin: 0; font-size: 1.05rem; font-weight: 800; color: #fff; }
.convo-items { flex: 1; overflow-y: auto; }
.convo-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem .95rem;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text);
  text-decoration: none;
  position: relative;
  transition: background var(--dur), box-shadow var(--dur);
}
.convo-item:hover {
  background: rgba(255,255,255,0.04);
  box-shadow: inset 3px 0 0 var(--hot-cyan);
}
.convo-item.active {
  background: linear-gradient(90deg, rgba(255,45,149,0.12), rgba(0,229,255,0.06));
  box-shadow: inset 3px 0 0 var(--hot-pink);
}
.convo-meta { flex: 1; min-width: 0; }
.convo-name { font-weight: 700; display: flex; justify-content: space-between; gap: .5rem; color: #fff; }
.convo-name time { font-weight: 400; color: var(--muted); font-size: .75rem; }
.convo-preview {
  color: var(--muted);
  font-size: .85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.unread-badge {
  background: var(--grad-primary);
  color: #fff;
  font-size: .7rem;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  font-weight: 800;
  box-shadow: 0 0 12px -2px rgba(255,45,149,0.9);
}

.chat-panel { display: flex; flex-direction: column; min-width: 0; }
.chat-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem 1rem;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(10,10,20,0.5);
  backdrop-filter: blur(10px);
}
.chat-header-info { flex: 1; min-width: 0; }
.chat-header-name { font-weight: 800; color: #fff; }
.chat-header-status { font-size: .8rem; color: var(--muted); }
.chat-header-status.online { color: var(--hot-lime); text-shadow: 0 0 10px rgba(163,230,53,0.7); }
.chat-actions { display: flex; gap: .35rem; }
.icon-btn {
  background: transparent;
  border: 0;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: all var(--dur);
}
.icon-btn:hover {
  background: linear-gradient(135deg, rgba(255,45,149,0.18), rgba(0,229,255,0.10));
  box-shadow: var(--glow-pink);
}

#messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  background: rgba(0,0,0,0.2);
}
.bubble {
  max-width: 68%;
  padding: .55rem .9rem;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  font-size: .95rem;
  line-height: 1.4;
}
.bubble.sent {
  align-self: flex-end;
  background: var(--grad-primary);
  color: #fff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 10px 24px -12px rgba(255,45,149,0.9);
}
.bubble.received {
  align-self: flex-start;
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border-bottom-left-radius: 4px;
  border: 1px solid var(--border-soft);
}
.bubble-meta {
  font-size: .7rem;
  opacity: .75;
  align-self: flex-end;
  display: flex;
  align-items: center;
  gap: 2px;
}
.bubble-image, .bubble-video { max-width: 100%; border-radius: var(--radius); display: block; }
.bubble-file { color: inherit; text-decoration: underline; font-weight: 700; }
.bubble .tick { font-size: .75rem; }
.bubble.sent .tick { color: #ffe4f4; }

.typing-indicator {
  min-height: 20px;
  padding: 0 1rem;
  font-size: .8rem;
  color: var(--muted);
  font-style: italic;
}
.attach-preview { font-size: .85rem; color: var(--muted); padding: 0 1rem .5rem; }

#dm-form {
  display: flex;
  gap: .5rem;
  padding: .75rem 1rem;
  border-top: 1px solid var(--border-soft);
  align-items: center;
  background: rgba(10,10,20,0.5);
  backdrop-filter: blur(10px);
}
#dm-form input[name="content"] {
  flex: 1;
  padding: .65rem 1rem;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-pill);
  background: rgba(10,10,20,0.7);
  color: var(--text);
  font-family: inherit;
  font-size: .95rem;
  transition: border-color var(--dur), box-shadow var(--dur);
}
#dm-form input[name="content"]:focus {
  outline: none;
  border-color: var(--hot-pink);
  box-shadow: 0 0 0 3px rgba(255,45,149,0.18), var(--glow-pink);
}
#dm-form .attach-btn {
  cursor: pointer;
  font-size: 1.2rem;
  padding: .4rem .55rem;
  border-radius: 50%;
  transition: all var(--dur);
}
#dm-form .attach-btn:hover {
  background: linear-gradient(135deg, rgba(255,45,149,0.18), rgba(0,229,255,0.10));
  box-shadow: var(--glow-pink);
}
.chat-empty { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--muted); }

/* Call modal */
.call-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fdFade var(--dur) ease-out;
}
.call-modal-card {
  background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.01) 40%), rgba(15, 15, 28, 0.98);
  color: #fff;
  border-radius: 22px;
  padding: 2.5rem;
  text-align: center;
  box-shadow:
    0 1px 0 rgba(255,255,255,.06) inset,
    0 30px 60px -25px rgba(0,0,0,.95),
    0 0 60px -15px rgba(255,45,149,.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  min-width: 320px;
  border: 1px solid var(--border);
  position: relative;
}
.call-modal-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,45,149,.6), transparent 40%, rgba(0,229,255,.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.call-modal-card h2 { margin: 0; }
.call-modal-actions { display: flex; gap: 1.5rem; margin-top: .5rem; }

.hidden { display: none !important; }

/* ═══════════════════════════════════════════════════════════════════════
   DIRECTORY / USERS
   ═══════════════════════════════════════════════════════════════════════ */
.directory-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}
.directory-header h1 { margin: 0; font-weight: 900; letter-spacing: -.02em; }
.directory-filters { display: flex; gap: .35rem; flex-wrap: wrap; }
.filter-chip {
  padding: .45rem .9rem;
  border-radius: var(--radius-pill);
  font-size: .88rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--dur);
}
.filter-chip:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--hot-cyan);
  box-shadow: var(--glow-cyan);
}
.filter-chip.active {
  background: var(--grad-primary);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 22px -12px rgba(255,45,149,0.9);
}

.user-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.user-card {
  position: relative;
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01) 45%), var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: var(--shadow);
  transition: transform var(--dur-slow) var(--ease), box-shadow var(--dur-slow), border-color var(--dur-slow);
}
.user-card:hover {
  transform: translateY(-6px) rotateX(3deg) rotateY(-3deg);
  border-color: rgba(255,45,149,0.4);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.08) inset,
    0 30px 60px -25px rgba(255,45,149,0.5),
    0 0 40px -10px rgba(0,229,255,0.35);
}
.user-card-link { display: block; text-align: center; color: var(--text); text-decoration: none; }
.user-card-link:hover { text-decoration: none; }
.user-card-avatar { display: inline-block; position: relative; }
.user-card-avatar .presence {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #94a3b8;
  border: 2px solid var(--card-solid);
}
.user-card-avatar .presence.online {
  background: var(--hot-lime);
  box-shadow: 0 0 12px var(--hot-lime);
}
.user-card-name { font-weight: 800; margin-top: .5rem; color: #fff; }
.user-card-username { color: var(--muted); font-size: .85rem; }
.user-card-bio { color: var(--muted); font-size: .85rem; margin-top: .4rem; }
.user-card-mutual { margin-top: .35rem; font-size: .8rem; color: var(--hot-cyan); }
.user-card-actions { display: flex; gap: .4rem; justify-content: center; flex-wrap: wrap; margin-top: auto; }

/* ═══════════════════════════════════════════════════════════════════════
   FRIENDS
   ═══════════════════════════════════════════════════════════════════════ */
.friend-btn {
  padding: .5rem .9rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  cursor: pointer;
  font-size: .9rem;
  font-family: inherit;
  font-weight: 700;
  transition: all var(--dur);
}
.friend-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--hot-cyan);
  box-shadow: var(--glow-cyan);
}
.friend-btn.add { background: var(--grad-primary); border-color: transparent; color: #fff; box-shadow: 0 10px 22px -12px rgba(255,45,149,0.9); }
.friend-btn.add:hover { filter: brightness(1.08); }
.friend-btn.accept { background: var(--grad-success); border-color: transparent; color: #0a1a0a; box-shadow: 0 10px 22px -12px rgba(163,230,53,0.9); }
.friend-btn.decline { color: #fca5a5; border-color: rgba(239,68,68,0.4); }
.friend-btn.decline:hover { background: rgba(239,68,68,0.12); box-shadow: 0 0 20px -5px rgba(239,68,68,0.7); }
.friend-btn.friends { background: rgba(163,230,53,0.12); border-color: rgba(163,230,53,0.35); color: var(--hot-lime); }
.friend-btn.pending { color: var(--muted); }
.friend-btn.blocked { color: #fca5a5; }
.friend-btn:disabled { opacity: .6; cursor: default; }

.friend-tabs {
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 1rem;
}
.friend-tab {
  padding: .65rem 1rem;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  font-weight: 700;
  font-size: .95rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: all var(--dur);
}
.friend-tab:hover { color: #fff; text-decoration: none; }
.friend-tab.active {
  color: #fff;
  border-bottom-color: var(--hot-pink);
  text-shadow: 0 0 20px rgba(255,45,149,0.7);
}
.tab-badge {
  background: var(--grad-primary);
  color: #fff;
  font-size: .7rem;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  font-weight: 800;
  box-shadow: 0 0 12px -2px rgba(255,45,149,0.9);
}

.friend-list { display: flex; flex-direction: column; gap: .5rem; }
.friend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 1rem;
  background: linear-gradient(160deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01) 45%), var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  transition: transform var(--dur), box-shadow var(--dur), border-color var(--dur);
}
.friend-row:hover {
  transform: translateY(-2px);
  border-color: rgba(255,45,149,0.35);
  box-shadow: 0 20px 40px -20px rgba(255,45,149,0.5);
}
.friend-row-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex: 1;
  color: var(--text);
  text-decoration: none;
  min-width: 0;
}
.friend-row-link:hover { text-decoration: none; }
.friend-row-info { min-width: 0; }
.friend-row-name { font-weight: 800; color: #fff; }
.friend-row-meta { color: var(--muted); font-size: .85rem; }
.friend-row-bio { color: var(--muted); font-size: .85rem; margin-top: .15rem; }
.friend-row-actions { display: flex; gap: .4rem; flex-wrap: wrap; }

.profile-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}
.mutual-note { color: var(--muted); font-size: .9rem; }
.profile-friends-summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .85rem 1rem;
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01) 45%), var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 1rem 0;
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
}
.friend-avatar-stack { display: flex; }
.friend-avatar-stack a { margin-left: -8px; }
.friend-avatar-stack a:first-child { margin-left: 0; }
.friend-avatar-stack img {
  border: 2px solid var(--card-solid);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

/* ═══════════════════════════════════════════════════════════════════════
   VIDEO
   ═══════════════════════════════════════════════════════════════════════ */
.video-page { display: grid; gap: 1.5rem; }
.video-main { display: flex; flex-direction: column; gap: 1rem; }
.video-shell {
  position: relative;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 30px 60px -25px rgba(0,0,0,.95), 0 0 50px -20px rgba(255,45,149,.4);
  border: 1px solid var(--border);
}
#hls-player { display: block; width: 100%; max-height: 70vh; background: #000; }

.vc-overlay {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .5rem;
  padding: .5rem .8rem;
  background: rgba(0,0,0,.65);
  border-radius: var(--radius-pill);
  opacity: 0;
  transition: opacity var(--dur);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
}
.video-shell:hover .vc-overlay,
.vc-overlay:focus-within { opacity: 1; }
.vc-btn {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  padding: .4rem .65rem;
  border-radius: var(--radius-pill);
  transition: all var(--dur);
}
.vc-btn:hover {
  background: linear-gradient(135deg, rgba(255,45,149,0.3), rgba(0,229,255,0.2));
  box-shadow: var(--glow-pink);
}
.vc-play { font-size: 1.3rem; }

.vc-timeline {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: .55rem .85rem;
  background: linear-gradient(to top, rgba(0,0,0,.85), transparent);
  display: flex;
  align-items: center;
  gap: .75rem;
}
#vc-seek { flex: 1; accent-color: var(--hot-pink); cursor: pointer; }
.vc-time { color: #fff; font-size: .85rem; font-variant-numeric: tabular-nums; }

.video-info {
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01) 45%), var(--card);
  padding: 1.2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow: var(--shadow);
}
.video-info h1 { margin: 0 0 .5rem; font-size: 1.25rem; color: #fff; }
.video-meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--muted);
  font-size: .9rem;
}
.video-meta time { margin-left: auto; }
.video-actions { display: flex; gap: .5rem; margin-top: 1rem; flex-wrap: wrap; }
.action-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .55rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  cursor: pointer;
  font-size: .9rem;
  text-decoration: none;
  font-family: inherit;
  font-weight: 600;
  transition: all var(--dur);
}
.action-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--hot-cyan);
  box-shadow: var(--glow-cyan);
  text-decoration: none;
  transform: translateY(-2px);
}
.action-btn.active {
  background: var(--grad-primary);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 22px -12px rgba(255,45,149,0.9);
}

.share-panel {
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01) 45%), var(--card);
  padding: 1.2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: .75rem;
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
}
.share-row { display: flex; gap: .5rem; }
.share-row input, .share-row textarea {
  flex: 1;
  padding: .55rem .8rem;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-md);
  font-size: .85rem;
  font-family: inherit;
  background: rgba(10,10,20,0.7);
  color: var(--text);
  transition: border-color var(--dur), box-shadow var(--dur);
}
.share-row input:focus, .share-row textarea:focus {
  outline: none;
  border-color: var(--hot-pink);
  box-shadow: 0 0 0 3px rgba(255,45,149,0.18);
}
.share-targets { display: flex; gap: .75rem; }
.share-target {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text);
  font-size: 1.2rem;
  text-decoration: none;
  transition: all var(--dur);
}
.share-target:hover {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 0 24px -5px rgba(255,45,149,0.9);
  transform: translateY(-3px);
}

.clips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .85rem;
}
.clip-tile {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  position: relative;
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  transition: transform var(--dur), box-shadow var(--dur), border-color var(--dur);
}
.clip-tile:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(255,45,149,0.4);
  box-shadow: 0 20px 40px -20px rgba(255,45,149,0.5);
}
.clip-tile img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.clip-title { padding: .6rem .85rem; font-size: .85rem; }
.clip-duration {
  position: absolute;
  top: .35rem;
  right: .35rem;
  background: rgba(0,0,0,.75);
  color: #fff;
  font-size: .7rem;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
}

.video-comments {
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01) 45%), var(--card);
  padding: 1.2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
}
.video-comments h2 { margin-top: 0; }
#video-comment-form textarea {
  width: 100%;
  min-height: 80px;
  padding: .55rem .8rem;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-md);
  font-family: inherit;
  background: rgba(10,10,20,0.7);
  color: var(--text);
  transition: border-color var(--dur), box-shadow var(--dur);
}
#video-comment-form textarea:focus {
  outline: none;
  border-color: var(--hot-pink);
  box-shadow: 0 0 0 3px rgba(255,45,149,0.18);
}
.comment-form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: .5rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.vc-comment {
  display: flex;
  gap: .75rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--border-soft);
}
.vc-comment:last-child { border-bottom: 0; }
.vc-comment-body { flex: 1; }
.vc-comment-head { display: flex; align-items: center; gap: .5rem; font-size: .9rem; }
.vc-comment-head time { margin-left: auto; color: var(--muted); font-size: .8rem; }
.vc-comment-content { margin-top: .25rem; }
.time-chip {
  background: var(--grad-primary);
  color: #fff;
  border: 0;
  padding: 2px 10px;
  border-radius: 6px;
  font-size: .75rem;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 0 12px -2px rgba(255,45,149,0.8);
}
.time-chip:hover { filter: brightness(1.1); }

.vc-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15,15,28,.95);
  color: #fff;
  padding: .7rem 1.2rem;
  border-radius: var(--radius);
  font-size: .9rem;
  z-index: 9999;
  animation: fdFade var(--dur) ease-out;
  border: 1px solid var(--border);
  box-shadow: 0 0 30px -8px rgba(255,45,149,0.7);
}

/* Trim editor */
.video-edit { display: flex; flex-direction: column; gap: 1rem; }
.edit-stage video {
  width: 100%;
  max-height: 60vh;
  background: #000;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 0 40px -15px rgba(255,45,149,0.5);
}
.edit-timeline {
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01) 45%), var(--card);
  padding: 1.2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
}
.timeline-labels {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .5rem;
  font-size: .85rem;
  color: var(--muted);
}
.timeline-labels strong { color: #fff; }
.timeline-track {
  position: relative;
  height: 44px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  user-select: none;
  cursor: pointer;
}
.timeline-selection {
  position: absolute;
  top: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,45,149,0.25), rgba(0,229,255,0.15));
  border-top: 2px solid var(--hot-pink);
  border-bottom: 2px solid var(--hot-pink);
}
.timeline-handle {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 14px;
  background: var(--grad-primary);
  border-radius: 6px;
  cursor: ew-resize;
  transform: translateX(-50%);
  box-shadow: 0 0 20px -4px rgba(255,45,149,0.9);
}
.timeline-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2px;
  height: 12px;
  background: #fff;
  border-radius: 1px;
  box-shadow: 0 -5px 0 #fff, 0 5px 0 #fff;
}
.timeline-playhead {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  background: #fff;
  pointer-events: none;
  transform: translateX(-50%);
  box-shadow: 0 0 12px rgba(255,255,255,0.9);
}
.timeline-ruler {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: .75rem;
  margin-top: .35rem;
}
.edit-controls { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.edit-controls label { display: flex; align-items: center; gap: .35rem; font-size: .9rem; }
.edit-save {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01) 45%), var(--card);
  padding: 1.2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
}
.edit-save label { display: flex; flex-direction: column; gap: .25rem; flex: 1; min-width: 200px; }
.edit-save input {
  padding: .55rem .8rem;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-md);
  font-family: inherit;
  background: rgba(10,10,20,0.7);
  color: var(--text);
  transition: border-color var(--dur), box-shadow var(--dur);
}
.edit-save input:focus {
  outline: none;
  border-color: var(--hot-pink);
  box-shadow: 0 0 0 3px rgba(255,45,149,0.18);
}

/* ═══════════════════════════════════════════════════════════════════════
   JOBS
   ═══════════════════════════════════════════════════════════════════════ */
.jobs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}
.jobs-header h1 { margin: 0; font-weight: 900; letter-spacing: -.02em; }
.jobs-header-actions { display: flex; gap: .5rem; }

.jobs-search { display: flex; gap: .5rem; margin-bottom: 1.25rem; }
.jobs-search input {
  flex: 1;
  padding: .8rem 1.1rem;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-pill);
  background: rgba(10,10,20,0.7);
  color: var(--text);
  font-family: inherit;
  font-size: .95rem;
  transition: border-color var(--dur), box-shadow var(--dur);
}
.jobs-search input:focus {
  outline: none;
  border-color: var(--hot-pink);
  box-shadow: 0 0 0 3px rgba(255,45,149,0.18), var(--glow-pink);
}

.jobs-layout { display: grid; grid-template-columns: 260px 1fr; gap: 1.5rem; }
.jobs-filters {
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01) 45%), var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  height: fit-content;
  position: sticky;
  top: 80px;
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: var(--shadow);
}
.jobs-filters h3 { margin: 0 0 .85rem; font-size: 1.05rem; color: #fff; }
.jobs-filters label { display: block; margin-bottom: .65rem; font-size: .85rem; color: var(--muted); }
.jobs-filters select, .jobs-filters input {
  width: 100%;
  margin-top: .25rem;
  padding: .5rem .7rem;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-md);
  background: rgba(10,10,20,0.7);
  color: var(--text);
  font-family: inherit;
}
.jobs-filters select:focus, .jobs-filters input:focus {
  outline: none;
  border-color: var(--hot-pink);
  box-shadow: 0 0 0 3px rgba(255,45,149,0.18);
}
.jobs-filters button { margin-top: .25rem; margin-right: .35rem; }

.job-card {
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01) 45%), var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.4rem;
  margin-bottom: .85rem;
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow: var(--shadow);
  transition: transform var(--dur), box-shadow var(--dur), border-color var(--dur);
}
.job-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,45,149,0.4);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 30px 60px -25px rgba(255,45,149,0.5), 0 0 40px -10px rgba(0,229,255,0.35);
}
.job-card.featured { border-left: 3px solid var(--hot-pink); box-shadow: 0 0 30px -10px rgba(255,45,149,0.6); }
.job-card.compact { padding: .85rem 1.1rem; display: flex; justify-content: space-between; align-items: center; }
.job-card.compact h3 { margin: 0 0 .35rem; font-size: 1rem; }

.job-card-top { display: flex; align-items: flex-start; gap: .75rem; }
.job-card-top time { color: var(--muted); font-size: .8rem; }
.job-card-body { flex: 1; min-width: 0; }
.job-card-body h2 { margin: 0 0 .2rem; font-size: 1.15rem; }
.job-card-body h2 a { color: #fff; }
.job-card-body h2 a:hover { color: var(--hot-cyan); }
.job-card-company { color: var(--muted); font-size: .9rem; margin-bottom: .5rem; }
.job-card-meta { display: flex; flex-wrap: wrap; gap: .35rem; }
.job-card-excerpt { color: var(--muted); font-size: .9rem; margin: .5rem 0 0; }
.job-card-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }
.tag {
  font-size: .75rem;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.05);
  color: var(--hot-cyan);
  border: 1px solid rgba(0,229,255,0.2);
}

.job-logo {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  flex-shrink: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-weight: 800;
  font-size: 1.5rem;
  background-image: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.job-logo img { width: 100%; height: 100%; object-fit: cover; }
.job-logo.lg { width: 80px; height: 80px; font-size: 2rem; border-radius: 16px; }

.verified-badge {
  display: inline-block;
  background: var(--grad-primary);
  color: #fff;
  padding: 1px 8px;
  border-radius: 6px;
  font-size: .7rem;
  margin-left: 4px;
  font-weight: 700;
  box-shadow: 0 0 12px -2px rgba(255,45,149,0.9);
}

.job-detail { display: grid; grid-template-columns: 1fr 320px; gap: 1.5rem; }
.job-detail-main { min-width: 0; }
.job-detail-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.job-detail-header h1 { margin: 0 0 .25rem; font-weight: 900; color: #fff; }
.job-detail-company { color: var(--muted); margin: 0; }
.job-detail-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1.5rem; }
.job-section {
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01) 45%), var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  margin-bottom: 1rem;
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow: var(--shadow);
}
.job-section h2 { margin: 0 0 .85rem; font-size: 1.1rem; color: #fff; }
.job-section.job-stats { display: flex; gap: 1.5rem; font-size: .9rem; color: var(--muted); }
.rich { line-height: 1.7; }

.job-detail-side { display: flex; flex-direction: column; gap: 1rem; }
.side-card {
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01) 45%), var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow: var(--shadow);
}
.side-card h3 { margin: 0 0 .35rem; font-size: 1.05rem; color: #fff; }
.applied-status { display: flex; flex-direction: column; gap: .35rem; }

/* ── Status pills ───────────────────────────────────────────────────────── */
.status {
  font-size: .72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  display: inline-block;
  border: 1px solid transparent;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.status-pending { background: rgba(148,163,184,.18); color: #cbd5e1; border-color: rgba(148,163,184,.35); }
.status-reviewed { background: rgba(59,130,246,.18); color: #93c5fd; border-color: rgba(59,130,246,.4); }
.status-shortlisted { background: rgba(168,85,247,.18); color: #d8b4fe; border-color: rgba(168,85,247,.4); }
.status-accepted, .status-completed, .status-approved, .status-active, .status-paid {
  background: rgba(163,230,53,.15); color: var(--hot-lime);
  border-color: rgba(163,230,53,.4);
  box-shadow: 0 0 12px -3px rgba(163,230,53,0.6);
}
.status-rejected, .status-cancelled, .status-disputed, .status-failed,
.status-declined, .status-missed {
  background: rgba(239,68,68,.15); color: #fca5a5;
  border-color: rgba(239,68,68,.4);
  box-shadow: 0 0 12px -3px rgba(239,68,68,0.6);
}
.status-in_progress, .status-submitted, .status-delivered, .status-revision,
.status-processing, .status-ringing {
  background: rgba(245,158,11,.15); color: #fcd34d;
  border-color: rgba(245,158,11,.4);
  box-shadow: 0 0 12px -3px rgba(245,158,11,0.6);
}
.status-expired, .status-refunded {
  background: rgba(100,116,139,.18); color: #cbd5e1;
  border-color: rgba(100,116,139,.4);
}

.provider-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.provider-card {
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01) 45%), var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  color: var(--text);
  text-decoration: none;
  text-align: center;
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow: var(--shadow);
  transition: transform var(--dur), box-shadow var(--dur), border-color var(--dur);
}
.provider-card:hover {
  transform: translateY(-6px) rotateX(3deg) rotateY(-3deg);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 30px 60px -25px rgba(255,45,149,0.5);
  border-color: rgba(255,45,149,0.4);
  text-decoration: none;
}
.provider-card h3 { margin: .5rem 0 .25rem; font-size: 1rem; color: #fff; }
.provider-logo {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  margin: 0 auto;
  background: rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  background-image: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.provider-logo img { width: 100%; height: 100%; object-fit: cover; }
.provider-logo.lg { width: 96px; height: 96px; font-size: 2.5rem; }

.provider-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01) 45%), var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  margin-bottom: 1rem;
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow: var(--shadow);
}
.provider-header-info { flex: 1; }
.provider-header-info h1 { margin: 0 0 .25rem; color: #fff; }
.provider-header-actions { display: flex; gap: .5rem; }

.applicant-list { display: flex; flex-direction: column; gap: .85rem; }
.applicant {
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01) 45%), var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  display: grid;
  grid-template-columns: 240px 1fr auto;
  gap: 1rem;
  align-items: start;
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow: var(--shadow);
}
.applicant-head { display: flex; gap: .75rem; align-items: center; color: var(--text); text-decoration: none; }
.applicant-head:hover { text-decoration: none; }
.applicant-name { font-weight: 800; color: #fff; }
.applicant-actions { display: flex; gap: .35rem; flex-wrap: wrap; align-items: center; }

.order-list { display: flex; flex-direction: column; gap: .65rem; }
.order-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(160deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01) 45%), var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  color: var(--text);
  text-decoration: none;
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  transition: transform var(--dur), box-shadow var(--dur), border-color var(--dur);
}
.order-card:hover {
  background: linear-gradient(135deg, rgba(255,45,149,0.06), rgba(0,229,255,0.03));
  border-color: rgba(255,45,149,0.35);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -20px rgba(255,45,149,0.5);
  text-decoration: none;
}
.order-number { font-family: ui-monospace, monospace; font-size: .8rem; color: var(--muted); }
.order-title { font-weight: 800; margin: .15rem 0; color: #fff; }
.order-meta { display: flex; align-items: center; gap: .75rem; }
.order-amount { font-weight: 800; color: var(--hot-cyan); }

.order-detail { display: flex; flex-direction: column; gap: 1rem; }
.order-header {
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01) 45%), var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow: var(--shadow);
}
.order-header h1 { margin: .25rem 0; color: #fff; }
.order-header-right { text-align: right; }
.order-actions { display: flex; flex-wrap: wrap; gap: .5rem; }

.milestone {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .85rem 1.1rem;
  margin-bottom: .7rem;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(10px);
}
.milestone-head { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.milestone-amount { font-weight: 800; margin-left: auto; color: var(--hot-cyan); }
.milestone-actions { margin-top: .5rem; display: flex; gap: .35rem; flex-wrap: wrap; }

.deliverable {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .85rem 1.1rem;
  margin-bottom: .6rem;
  background: rgba(255,255,255,0.03);
}

.order-thread #order-messages {
  max-height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: .75rem;
}
.order-msg {
  display: flex;
  gap: .5rem;
  padding: .5rem 0;
  border-bottom: 1px solid var(--border-soft);
}
.order-msg time { color: var(--muted); font-size: .75rem; margin-left: .5rem; }

/* ═══════════════════════════════════════════════════════════════════════
   PAYMENT GATEWAY
   ═══════════════════════════════════════════════════════════════════════ */
.gateway-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .85rem;
  margin-top: 1rem;
}
.gateway-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius);
  padding: 1.1rem;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  font-family: inherit;
  transition: all var(--dur);
}
.gateway-btn:hover {
  border-color: var(--hot-cyan);
  transform: translateY(-3px);
  box-shadow: 0 0 30px -8px rgba(0,229,255,0.7);
}
.gateway-btn:disabled { opacity: .6; cursor: default; }
.gateway-label { font-weight: 700; display: block; color: #fff; }

.payment-pending {
  background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(245,158,11,0.05));
  color: #fcd34d;
  border: 1px solid rgba(245,158,11,0.4);
  border-radius: var(--radius);
  padding: .85rem 1.1rem;
  margin-bottom: 1rem;
  display: flex;
  gap: .5rem;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: 0 0 24px -8px rgba(245,158,11,0.6);
}
.payment-pending a { color: #fde68a; font-weight: 700; }

#inline-payment .modal-card { max-width: 520px; }
#inline-mount { margin: 1rem 0; }
#inline-mount pre {
  background: rgba(10,10,20,0.7);
  border: 1px solid var(--border);
  padding: .85rem;
  border-radius: var(--radius-md);
  font-size: .85rem;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ── Generic modal ──────────────────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal.hidden { display: none; }
.modal-card {
  background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.01) 40%), rgba(15, 15, 28, 0.98);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 30px 60px -25px rgba(0,0,0,.95), 0 0 60px -20px rgba(255,45,149,.5);
  position: relative;
}
.modal-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,45,149,.6), transparent 40%, rgba(0,229,255,.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: .6;
}
.modal-card h2 { margin-top: 0; color: #fff; }
.modal-card label { display: block; margin-bottom: .7rem; font-size: .9rem; color: var(--muted); }
.modal-card input, .modal-card textarea {
  width: 100%;
  margin-top: .3rem;
  padding: .6rem .8rem;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-md);
  font-family: inherit;
  background: rgba(10,10,20,0.7);
  color: var(--text);
  transition: border-color var(--dur), box-shadow var(--dur);
}
.modal-card input:focus, .modal-card textarea:focus {
  outline: none;
  border-color: var(--hot-pink);
  box-shadow: 0 0 0 3px rgba(255,45,149,0.18), var(--glow-pink);
}
.modal-actions { display: flex; gap: .5rem; margin-top: .85rem; }

/* ── Pagination ─────────────────────────────────────────────────────────── */
.pagination { display: flex; gap: .35rem; justify-content: center; margin-top: 1rem; }
.pagination a {
  padding: .45rem .85rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--dur);
}
.pagination a.active {
  background: var(--grad-primary);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 22px -12px rgba(255,45,149,0.9);
}
.pagination a:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--hot-cyan);
  box-shadow: var(--glow-cyan);
}

/* ── Uploader ───────────────────────────────────────────────────────────── */
.uploader {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .9rem;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  cursor: pointer;
  color: var(--text);
  font-size: .9rem;
  font-weight: 600;
  transition: all var(--dur);
}
.uploader:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--hot-cyan);
  box-shadow: var(--glow-cyan);
}
.uploader input[type="file"] { display: none; }
.uploader-progress {
  width: 100%;
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-top: .5rem;
}
.uploader-progress > span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--hot-pink), var(--hot-cyan));
  transition: width .12s;
  box-shadow: 0 0 16px rgba(255,45,149,0.7);
}
.attachment-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.attachment-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .6rem;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  font-size: .8rem;
  max-width: 240px;
  overflow: hidden;
}
.attachment-chip img { width: 24px; height: 24px; object-fit: cover; border-radius: 4px; }

/* ── Groups / profile headers ──────────────────────────────────────────── */
.group-header {
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01) 45%), var(--card);
  padding: 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow: var(--shadow);
}
.member-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.member {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .75rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-pill);
  color: var(--text);
  font-size: .9rem;
  transition: all var(--dur);
}
.member:hover {
  border-color: var(--hot-cyan);
  box-shadow: var(--glow-cyan);
}
.profile-header { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }

.notification {
  background: linear-gradient(160deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01) 45%), var(--card);
  padding: .85rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: .5rem;
  transition: all var(--dur);
}
.notification:hover {
  border-color: rgba(0,229,255,0.4);
  box-shadow: 0 0 24px -8px rgba(0,229,255,0.5);
}
.notification.unread {
  border-left: 4px solid var(--hot-pink);
  box-shadow: 0 0 24px -8px rgba(255,45,149,0.7);
}
.notification time { color: var(--muted); font-size: .85rem; display: block; }

.footer {
  text-align: center;
  color: var(--muted);
  padding: 2rem 1rem;
  font-size: .9rem;
  border-top: 1px solid var(--border);
  margin-top: 3rem;
}

/* ── Reels strip ───────────────────────────────────────────────────────── */
.reels-strip {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  padding: .85rem;
  margin-bottom: 1rem;
  background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.01) 45%), var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.reels-strip-head {
  display: flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: .95rem;
}
.reels-strip-title {
  background: linear-gradient(90deg, var(--hot-pink), var(--hot-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.reels-strip-more { margin-left: auto; font-size: .78rem; color: var(--muted); font-weight: 600; }
.reels-strip-scroll {
  display: flex;
  gap: .55rem;
  overflow-x: auto;
  padding-bottom: .35rem;
  scrollbar-width: none;
}
.reels-strip-scroll::-webkit-scrollbar { display: none; }
.reel-thumb { flex-shrink: 0; width: 110px; text-decoration: none; color: inherit; transition: transform var(--dur); }
.reel-thumb:hover { transform: translateY(-3px); color: inherit; }
.reel-thumb-preview {
  position: relative;
  width: 110px;
  height: 180px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  border: 2px solid transparent;
  background-image: linear-gradient(#000,#000), linear-gradient(135deg, var(--hot-pink), var(--hot-purple), var(--hot-cyan));
  background-origin: border-box;
  background-clip: padding-box, border-box;
}
.reel-thumb-preview img, .reel-thumb-preview video { width: 100%; height: 100%; object-fit: cover; display: block; }
.reel-thumb-play {
  position: absolute;
  bottom: 8px;
  left: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0,0,0,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  color: #fff;
}
.reel-thumb-views {
  position: absolute;
  bottom: 8px;
  right: 8px;
  padding: .15rem .45rem;
  border-radius: var(--radius-pill);
  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
}
.reel-thumb-info { display: flex; align-items: center; gap: .35rem; margin-top: .35rem; }
.reel-thumb-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.15);
}
.reel-thumb-name {
  font-size: .72rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

/* ── Stories ───────────────────────────────────────────────────────────── */
.stories-bar {
  display: flex;
  gap: .75rem;
  overflow-x: auto;
  padding: .75rem;
  margin-bottom: 1rem;
  background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.01) 45%), var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  scrollbar-width: none;
}
.stories-bar::-webkit-scrollbar { display: none; }
.story { flex-shrink: 0; text-align: center; cursor: pointer; transition: transform var(--dur); }
.story:hover { transform: translateY(-3px); }
.story-avatar {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, var(--hot-pink), var(--hot-orange), var(--hot-cyan));
  display: inline-block;
}
.story-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--card-solid);
  display: block;
}
.story-avatar.me::after {
  content: "+";
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--card-solid);
}
.story-name {
  font-size: .72rem;
  color: var(--text);
  margin-top: .35rem;
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════════════════════════════════ */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-left   { text-align: left; }
.text-muted  { color: var(--muted); }
.text-white  { color: #fff; }

.flex     { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center     { align-items: center; }
.items-start      { align-items: flex-start; }
.items-end        { align-items: flex-end; }
.justify-between  { justify-content: space-between; }
.justify-center   { justify-content: center; }
.justify-end      { justify-content: flex-end; }
.gap-1  { gap: .25rem; }
.gap-2  { gap: .5rem; }
.gap-3  { gap: .75rem; }
.gap-4  { gap: 1rem; }
.gap-6  { gap: 1.5rem; }
.flex-wrap  { flex-wrap: wrap; }
.flex-1     { flex: 1; min-width: 0; }

.mt-0  { margin-top: 0; }
.mt-1  { margin-top: .25rem; }
.mt-2  { margin-top: .5rem; }
.mt-3  { margin-top: .75rem; }
.mt-4  { margin-top: 1rem; }
.mt-6  { margin-top: 1.5rem; }
.mb-0  { margin-bottom: 0; }
.mb-1  { margin-bottom: .25rem; }
.mb-2  { margin-bottom: .5rem; }
.mb-3  { margin-bottom: .75rem; }
.mb-4  { margin-bottom: 1rem; }
.mb-6  { margin-bottom: 1.5rem; }
.ml-auto { margin-left: auto; }
.mr-auto { margin-right: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }

.p-0  { padding: 0; }
.p-2  { padding: .5rem; }
.p-3  { padding: .75rem; }
.p-4  { padding: 1rem; }
.p-6  { padding: 1.5rem; }

.w-full  { width: 100%; }
.h-full  { height: 100%; }
.rounded { border-radius: var(--radius); }
.rounded-full { border-radius: 50%; }

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.relative { position: relative; }
.absolute { position: absolute; }
.sticky   { position: sticky; }
.fixed    { position: fixed; }

.hidden   { display: none !important; }
.invisible { visibility: hidden; }
.opacity-0 { opacity: 0; }
.pointer   { cursor: pointer; }

.no-select { user-select: none; -webkit-user-select: none; }
.no-scroll { overflow: hidden; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
  margin: .75rem 0;
  border: 0;
}

/* ═══════════════════════════════════════════════════════════════════════
   RTL
   ═══════════════════════════════════════════════════════════════════════ */
[dir="rtl"] .post-actions button { margin-left: 0; margin-right: 0; }
[dir="rtl"] .dm.sent { align-self: flex-start; }
[dir="rtl"] .dm.received { align-self: flex-end; }
[dir="rtl"] .conversation { text-align: right; }
[dir="rtl"] .composer-row { flex-direction: row-reverse; }
[dir="rtl"] .comment-form { flex-direction: row-reverse; }
[dir="rtl"] time, [dir="rtl"] .count, [dir="rtl"] .badge {
  direction: ltr;
  unicode-bidi: embed;
}
[dir="rtl"] .post-menu { right: auto; left: 8px; }
[dir="rtl"] .post header { padding-right: 0; padding-left: 42px; }
[dir="rtl"] .post-menu-btn { right: auto; left: 0; }

/* Font stacks per script */
html[lang^="zh"] body, html[lang^="ja"] body, html[lang^="ko"] body {
  font-family: -apple-system, "PingFang SC", "Hiragino Sans", "Noto Sans CJK SC",
               "Microsoft YaHei", sans-serif;
}
html[lang="ar"] body, html[lang="he"] body, html[lang="fa"] body, html[lang="ur"] body {
  font-family: "Segoe UI", "Noto Naskh Arabic", "Noto Sans Hebrew", Tahoma, sans-serif;
}
html[lang="hi"] body {
  font-family: "Noto Sans Devanagari", "Mangal", system-ui, sans-serif;
}

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .jobs-layout, .job-detail { grid-template-columns: 1fr; }
  .jobs-filters { position: static; }
  .applicant { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 20, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 30px 60px -20px rgba(0,0,0,.9);
  }
  .nav-links.open { display: flex; }
  .messenger-full { grid-template-columns: 1fr; height: auto; }
  .convo-list { max-height: 220px; border-right: 0; border-bottom: 1px solid var(--border-soft); }
  .chat-panel { height: 70vh; }
  .form-grid { grid-template-columns: 1fr; }
  .post { padding: .85rem; }
  .video-info { padding: .85rem; }
  .hero { padding: 2rem 1.2rem; }
  h1 { font-size: 1.5rem; }

  .fd-modal-card { padding: 1.1rem; }
  .fd-modal-actions { flex-direction: column-reverse; }
  .fd-modal-actions .fd-btn { width: 100%; justify-content: center; }

  .post-menu {
    right: -6px;
    min-width: 190px;
  }
}

@media (max-width: 520px) {
  .fd-toast, .toast {
    left: 12px;
    right: 12px;
    bottom: 12px;
    text-align: center;
    max-width: none;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  body::before { display: none; }
  .orbs span, .fd-orbs span, .pm-orbs span, .vw-orbs span { display: none; }
  .hot-composer, .hot-post-btn { animation: none !important; }
  .empty-state-icon { animation: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════════
   PRINT
   ═══════════════════════════════════════════════════════════════════════ */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }
  body::before,
  .orbs, .fd-orbs, .pm-orbs, .vw-orbs,
  .navbar,
  .post-menu-btn, .post-menu,
  .post-actions,
  .sb-float-toggle,
  .fd-toast, .toast,
  .kbd-hint, .vw-kbd-hint,
  .scroll-top,
  .new-posts-banner,
  .fd-modal, .fd-lightbox,
  .card::before, .post::after, .hero::before {
    display: none !important;
  }
  a { color: #0066cc !important; text-decoration: underline; }
  a[href^="http"]:after { content: " (" attr(href) ")"; font-size: .85em; color: #666; }
  .card, .post, .table {
    background: #fff !important;
    border: 1px solid #ccc !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  h1, h2, h3, h4 { color: #000 !important; background: none !important; -webkit-background-clip: initial !important; background-clip: initial !important; }
}

/* ═══════════════════════════════════════════════════════════════════════
   SCROLLBARS
   ═══════════════════════════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--hot-pink), var(--hot-purple));
  border-radius: 99px;
  border: 2px solid rgba(0,0,0,0.3);
}
::-webkit-scrollbar-thumb:hover { filter: brightness(1.15); }
* { scrollbar-color: var(--hot-pink) rgba(0,0,0,0.2); scrollbar-width: thin; }

/* ═══════════════════════════════════════════════════════════════════════
   SELECTION
   ═══════════════════════════════════════════════════════════════════════ */
::selection {
  background: linear-gradient(135deg, var(--hot-pink), var(--hot-purple));
  color: #fff;
}
::-moz-selection {
  background: var(--hot-pink);
  color: #fff;
}