/* ============================================================
   VEMBANGAN — 2026 Premium Dark Pink Design System
   Deep dark base · neon pink accents · glassmorphism 2.0
   GPU-only motion (transform/opacity) · mobile-first
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  --bg: #07070A;
  --bg-2: #0F0F14;
  --card: rgba(255, 255, 255, 0.085);
  --card-2: rgba(255, 255, 255, 0.13);
  --pink: #FF2D95;
  --pink-2: #FF5EB7;
  --pink-3: #FF8ACB;
  --success: #3DDC97;
  --warning: #FFB84D;
  --danger: #FF5C7A;
  --text: #FFFFFF;
  --text-2: #B9B9C5;
  --text-3: #7C7C8A;
  --border: rgba(255, 255, 255, 0.14);
  --border-glass: rgba(255, 255, 255, 0.22);
  --pink-grad: linear-gradient(135deg, #FF2D95 0%, #FF5EB7 60%, #FF8ACB 100%);
  --pink-glow: 0 0 24px rgba(255, 45, 149, 0.35);
  --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.35);
  --shadow-lift: 0 28px 60px rgba(0, 0, 0, 0.45), 0 10px 40px rgba(255, 45, 149, 0.18);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --t-fast: 150ms;
  --t-med: 250ms;
  --t-slow: 350ms;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --nav-h: 68px;
  --font-display: "Satoshi", "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --font-body: "Inter", "Satoshi", "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { min-width: 0; }
html { color-scheme: dark; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg, video, iframe { max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; padding: 0; }
::selection { background: rgba(255, 45, 149, .35); color: #fff; }

:focus-visible {
  outline: 2px solid var(--pink-2);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(30px, 5vw, 48px); }
h2 { font-size: clamp(22px, 3.4vw, 32px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
small, .small { font-size: 13px; }
.muted, .description, .byline { color: var(--text-2); line-height: 1.65; }
.grad-text {
  background: var(--pink-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.icon {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  flex: 0 0 auto;
  transition: transform var(--t-med) var(--ease);
}

/* ---------- 3. Ambient background FX ---------- */
.bg-fx {
  position: fixed; inset: 0; z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(255, 45, 149, 0.10), transparent 60%),
    radial-gradient(900px 700px at -10% 30%, rgba(120, 35, 160, 0.12), transparent 60%),
    var(--bg);
}
.bg-fx i {
  position: absolute;
  width: 46vmax; height: 46vmax;
  border-radius: 50%;
  filter: blur(110px);
  opacity: .22;
  will-change: transform;
}
.bg-fx i:nth-child(1) { background: radial-gradient(circle, #FF2D95, transparent 65%); top: -18vmax; right: -12vmax; animation: drift-a 26s ease-in-out infinite alternate; }
.bg-fx i:nth-child(2) { background: radial-gradient(circle, #7B2CBF, transparent 65%); bottom: -20vmax; left: -14vmax; animation: drift-b 32s ease-in-out infinite alternate; }
.bg-fx i:nth-child(3) { background: radial-gradient(circle, #FF5EB7, transparent 65%); top: 40%; left: 55%; width: 26vmax; height: 26vmax; opacity: .12; animation: drift-c 38s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate3d(-9vmax, 7vmax, 0) scale(1.12); } }
@keyframes drift-b { to { transform: translate3d(8vmax, -6vmax, 0) scale(1.08); } }
@keyframes drift-c { to { transform: translate3d(-12vmax, -8vmax, 0); } }
.bg-fx::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: .04;
  pointer-events: none;
}
@keyframes logo-breathe {
  from { transform: scale(.985); filter: drop-shadow(0 0 20px rgba(255, 45, 149, .28)); }
  to { transform: scale(1.035); filter: drop-shadow(0 0 38px rgba(255, 45, 149, .55)); }
}
.bg-particles { position: absolute; inset: 0; pointer-events: none; }
.bg-particles b {
  position: absolute; bottom: -3vh;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--pink-2);
  opacity: 0;
  will-change: transform, opacity;
  animation: rise linear infinite;
}
@keyframes rise {
  0%   { transform: translate3d(0, 0, 0) scale(.6); opacity: 0; }
  12%  { opacity: .5; }
  100% { transform: translate3d(var(--px, 20px), -108vh, 0) scale(1); opacity: 0; }
}

/* ---------- 4. Buttons ---------- */
.primary, .ghost, .action-btn, .sponsor-step {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 600;
  border-radius: var(--r-sm);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform var(--t-med) var(--spring),
    box-shadow var(--t-med) var(--ease),
    filter var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease),
    background var(--t-fast) var(--ease);
  will-change: transform;
}
.primary {
  padding: 13px 22px;
  min-height: 46px;
  background: var(--pink-grad);
  color: #fff;
  font-weight: 700;
  letter-spacing: .01em;
  box-shadow: 0 8px 24px rgba(255, 45, 149, .28);
}
.primary::after { /* shine sweep */
  content: "";
  position: absolute; top: -4px; bottom: -4px; left: -70%;
  width: 45%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .4), transparent);
  transform: skewX(-22deg) translateX(0);
  transition: transform .7s var(--ease);
  pointer-events: none;
}
.primary:hover { transform: translateY(-2px) scale(1.03); filter: brightness(1.08); box-shadow: 0 14px 34px rgba(255, 45, 149, .45), var(--pink-glow); }
.primary:hover::after { transform: skewX(-22deg) translateX(420%); }
.primary:active { transform: translateY(0) scale(.98); }

.ghost {
  padding: 12px 20px;
  min-height: 46px;
  background: var(--card);
  border: 1px solid var(--border-glass);
  color: var(--text);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.ghost:hover { transform: translateY(-2px); border-color: rgba(255, 94, 183, .45); box-shadow: 0 10px 26px rgba(0, 0, 0, .35); background: var(--card-2); }
.ghost:active { transform: translateY(0) scale(.98); }

.btn-lg { padding: 16px 30px; min-height: 54px; font-size: 17px; border-radius: var(--r-md); }

.btn-loading { pointer-events: none; color: transparent !important; }
.btn-loading::before {
  content: "";
  position: absolute; top: 50%; left: 50%;
  width: 20px; height: 20px;
  margin: -10px 0 0 -10px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .35);
  transform: scale(0);
  animation: ripple .55s var(--ease) forwards;
  pointer-events: none;
}
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }

.disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }
.disabled:hover { transform: none; filter: none; }

/* ---------- 5. Glass top navigation ---------- */
.topbar {
  position: fixed; inset: 0 0 auto;
  z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 16px;
  padding: 0 clamp(14px, 3.5vw, 40px);
  background: rgba(15, 15, 20, .72);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  transform: translateY(0);
  transition: transform var(--t-slow) var(--ease), background var(--t-slow) var(--ease);
}
.topbar.nav-hidden { transform: translateY(-100%); }
.topbar::after { /* hairline pink glow */
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 45, 149, .5), transparent);
  opacity: 0;
  transition: opacity var(--t-slow) var(--ease);
}
.topbar.scrolled::after { opacity: 1; }
.premium-user .topbar::after { opacity: 1; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  cursor: pointer;
  animation: fade-in var(--t-slow) var(--ease) both;
}
.brand img {
  width: clamp(42px, 5vw, 58px);
  height: auto;
  max-height: 46px;
  display: block;
  object-fit: contain;
  opacity: .98;
  filter: drop-shadow(0 0 0 rgba(255, 45, 149, 0));
  transition: transform var(--t-med) var(--spring), filter var(--t-med) var(--ease), opacity var(--t-fast) var(--ease);
}
.brand:hover img {
  transform: scale(1.03);
  opacity: 1;
  filter: drop-shadow(0 0 18px rgba(255, 45, 149, .42));
}
.brand strong {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.1vw, 26px);
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
  color: var(--text);
}
.brand strong span {
  background: var(--pink-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-premium, .premium-mark {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 13.5px; font-weight: 700;
  letter-spacing: .02em;
}
.nav-premium {
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 45, 149, .18), rgba(255, 94, 183, .10));
  border: 1px solid rgba(255, 45, 149, .4);
  transition: transform var(--t-med) var(--spring), box-shadow var(--t-med) var(--ease);
  animation: glow-pulse 2.6s ease-in-out infinite;
}
.nav-premium:hover { transform: translateY(-1px) scale(1.04); box-shadow: var(--pink-glow); }
.nav-premium .icon { color: var(--pink-2); }
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 10px rgba(255, 45, 149, .18); }
  50%      { box-shadow: 0 0 22px rgba(255, 45, 149, .42); }
}
.premium-mark { background: var(--pink-grad); color: #fff; box-shadow: 0 6px 18px rgba(255, 45, 149, .35); }

.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn, .profile-btn {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border-glass);
  border-radius: 13px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform var(--t-med) var(--spring), border-color var(--t-fast) var(--ease), box-shadow var(--t-med) var(--ease);
}
.icon-btn:hover, .profile-btn:hover { transform: translateY(-2px) scale(1.05); border-color: rgba(255, 94, 183, .5); box-shadow: 0 8px 20px rgba(0, 0, 0, .4); }
.profile-btn { overflow: hidden; }
.profile-btn img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}
.premium-user .profile-btn { border: 0; padding: 2px; background: var(--pink-grad); box-shadow: var(--pink-glow); }
.premium-user .profile-btn img { border-radius: 11px; }

/* ---------- 6. Search panel ---------- */
.search-panel {
  position: fixed; z-index: 950;
  top: var(--nav-h); left: 0; right: 0;
  padding: 16px clamp(14px, 3.5vw, 40px) 20px;
  background: rgba(15, 15, 20, .85);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  transform: translateY(-115%);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--t-slow) var(--ease), opacity var(--t-slow) var(--ease);
}
.search-panel.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.search-panel input {
  width: min(720px, 100%);
  display: block; margin: 0 auto;
  padding: 15px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-glass);
  background: var(--card);
  color: var(--text);
  font-size: 16px;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.search-panel input:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255, 45, 149, .18); }
#searchResults { width: min(720px, 100%); margin: 12px auto 0; display: grid; gap: 8px; max-height: 50vh; overflow-y: auto; }
.search-result {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--card);
  transition: transform var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
  animation: fade-up var(--t-slow) var(--ease) both;
}
.search-result:hover { transform: translateX(4px); border-color: rgba(255, 94, 183, .4); background: var(--card-2); }
.search-result span { color: var(--text-3); font-size: 13px; }

/* ---------- 7. Layout shell ---------- */
.page {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: calc(var(--nav-h) + 18px) 0 48px;
}

.panel, .legal, .content-view, .comments {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .045)),
    rgba(17, 17, 23, .76);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(18px, 3vw, 28px);
  margin-bottom: 16px;
  backdrop-filter: blur(24px) saturate(1.28);
  -webkit-backdrop-filter: blur(24px) saturate(1.28);
  box-shadow: 0 22px 54px rgba(0, 0, 0, .48), inset 0 1px 0 rgba(255, 255, 255, .08);
  max-width: 100%;
  overflow: hidden;
}

/* ---------- 8. Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(300px, 24vw, 360px);
  padding: clamp(22px, 3vw, 38px) clamp(24px, 5vw, 56px);
  margin-bottom: 30px;
  border-radius: 28px;
  border: 1px solid var(--border-glass);
  background:
    radial-gradient(800px 420px at 80% -20%, rgba(255, 45, 149, .16), transparent 60%),
    radial-gradient(620px 380px at 8% 110%, rgba(123, 44, 191, .18), transparent 60%),
    var(--card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
}
.hero::before { /* mesh grid */
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(620px 380px at 70% 20%, #000 10%, transparent 75%);
  mask-image: radial-gradient(620px 380px at 70% 20%, #000 10%, transparent 75%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: min(660px, 58%); }
.hero-logo-mark {
  display: none;
  position: absolute;
  right: clamp(18px, 5vw, 52px);
  top: 50%;
  width: clamp(120px, 16vw, 210px);
  height: auto;
  max-height: 72%;
  object-fit: contain;
  opacity: .9;
  filter: drop-shadow(0 0 24px rgba(255, 45, 149, .32));
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  margin-bottom: 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 45, 149, .35);
  background: rgba(255, 45, 149, .08);
  color: var(--pink-3);
  font-size: 13px; font-weight: 600; letter-spacing: .04em;
  animation: fade-up .6s var(--ease) both;
}
.hero-eyebrow .icon { width: 15px; height: 15px; }
.hero-title {
  font-size: clamp(34px, 4.5vw, 56px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.04;
  margin: 0 0 12px;
  animation: fade-up .6s var(--ease) .08s both;
}
.hero-sub {
  color: var(--text-2);
  font-size: clamp(15px, 1.7vw, 17.5px);
  max-width: 50ch;
  margin-bottom: 18px;
  animation: fade-up .6s var(--ease) .16s both;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; animation: fade-up .6s var(--ease) .24s both; }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: clamp(14px, 3vw, 34px);
  margin-bottom: 10px;
  animation: fade-up .6s var(--ease) .32s both;
}
.stat-chip strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  letter-spacing: 0;
  background: var(--pink-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat-chip span { color: var(--text-3); font-size: 13px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 18px;
  color: var(--text-2); font-size: 13.5px;
  animation: fade-up .6s var(--ease) .4s both;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust .icon { width: 16px; height: 16px; color: var(--success); }

.float-chip {
  position: absolute;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, .055);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-card);
  will-change: transform;
  animation: float 6.5s ease-in-out infinite alternate;
}
.float-chip .icon { color: var(--pink-2); }
.fc-1 { top: 15%; right: 6%; animation-delay: 0s; }
.fc-2 { top: 45%; right: 11%; animation-delay: -2.2s; }
.fc-3 { top: 73%; right: 4%; animation-delay: -4.1s; }
@keyframes float { from { transform: translate3d(0, -9px, 0) rotate(-1deg); } to { transform: translate3d(0, 11px, 0) rotate(1.2deg); } }

/* legacy alias used by inner pages */
.hero-strip {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3.5vw, 34px);
  margin-bottom: 22px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.hero-strip p { color: var(--text-2); }

/* ---------- 9. Feed: tabs / grid / cards ---------- */
.tabs { margin-bottom: 20px; }
.tab-row {
  display: inline-flex; gap: 6px;
  margin: 4px 0 22px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--border-glass);
  background: var(--card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.tab-row button {
  position: relative;
  padding: 10px 22px;
  border-radius: 999px;
  color: var(--text-2);
  font-weight: 600; font-size: 14.5px;
  transition: color var(--t-fast) var(--ease), background var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), transform var(--t-med) var(--spring);
}
.tab-row button:hover { color: var(--text); transform: translateY(-1px); }
.tab-row button.active {
  color: #fff;
  background: var(--pink-grad);
  box-shadow: 0 6px 18px rgba(255, 45, 149, .35);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
  gap: 16px;
}

.content-card {
  position: relative;
  /* The whole card is a 1:1 square; the thumbnail flexes to fill the space
     above the title/uploader row (which keeps its natural height). */
  aspect-ratio: 1 / 1;
  display: flex;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
  transition:
    transform var(--t-slow) var(--ease),
    box-shadow var(--t-slow) var(--ease),
    border-color var(--t-slow) var(--ease);
  will-change: transform;
}
.content-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 94, 183, .35);
  box-shadow: var(--shadow-lift);
}
.content-card > a { display: flex; flex-direction: column; width: 100%; min-height: 0; }
.thumb {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  /* Portrait/landscape media is shown whole (contain), centred, with on-brand
     letterbox bars filling the sides instead of cropping the image. */
  background:
    radial-gradient(135% 110% at 50% 45%, rgba(255, 45, 149, .12), transparent 70%),
    linear-gradient(180deg, #15141c, #0d0d13);
}
/* Pulse cards open on tap only. Kill the native long-press menu
   (open-in-new-tab / save-image / callout) so hold-to-preview is clean on mobile,
   while a fast vertical swipe still scrolls the feed (touch-action: manipulation). */
.content-card > a,
.thumb,
.thumb[data-preview-media] {
  touch-action: manipulation;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
.thumb img, .thumb video {
  position: relative;
  z-index: 0;
  width: 100%; height: 100%;
  object-fit: contain; display: block;
  transition: transform .6s var(--ease);
  will-change: transform;
  /* Long-press/drag should target the thumb we control, never the raw media. */
  pointer-events: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  user-select: none;
}
.content-card:hover .thumb img, .content-card:hover .thumb video { transform: scale(1.06); }
.thumb-preview-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(135% 110% at 50% 45%, rgba(255, 45, 149, .12), transparent 70%),
    linear-gradient(180deg, #15141c, #0d0d13);
  transition: opacity var(--t-fast) var(--ease);
}
.thumb.previewing .thumb-preview-stage { opacity: 1; }
.thumb-preview-media {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  animation: preview-pop .22s var(--ease) both;
}
@keyframes preview-pop {
  from { opacity: 0; transform: scale(1.025); }
  to { opacity: 1; transform: none; }
}
.thumb::after { /* veil */
  content: "";
  position: absolute; inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(7, 7, 10, .55), transparent 45%);
  pointer-events: none;
}
.locked .thumb img { filter: blur(14px) brightness(.7); transform: scale(1.08); }
.lock {
  position: absolute; inset: 0; z-index: 6;
  display: grid; place-items: center;
  color: #fff;
  background: rgba(7, 7, 10, .45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.lock .icon { width: 40px; height: 40px; color: var(--pink-2); filter: drop-shadow(0 0 14px rgba(255, 45, 149, .65)); }

.badges { position: absolute; top: 12px; left: 12px; z-index: 4; display: flex; gap: 6px; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: .05em;
  color: #fff;
  background: rgba(7, 7, 10, .6);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.badge.solid { background: var(--pink-grad); border-color: transparent; animation: glow-pulse 2s infinite; }
.badge.rare {
  background: linear-gradient(90deg, #7B2CBF, #FF2D95, #FF8ACB, #7B2CBF);
  background-size: 250%;
  border-color: transparent;
  animation: shimmer-bg 2.6s linear infinite;
}
@keyframes shimmer-bg { from { background-position: 0% center; } to { background-position: 250% center; } }
.badge .icon, .vip .icon { width: 13px; height: 13px; }

.card-body { flex: 0 0 auto; padding: 6px 11px 8px; }
.card-body h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  /* Take only the lines the title needs (1 short, 2 long) instead of always
     reserving two — short titles no longer waste a line, so the thumb grows. */
  max-height: calc(1.2em * 2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.card-body p {
  margin: 0 0 6px;
  color: var(--text-2); font-size: 12.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* Tiny uploader row under the card title (feed cards) */
.card-user { display: flex; align-items: center; gap: 5px; margin-top: 3px; min-width: 0; }
.card-user-pic {
  flex: 0 0 auto;
  width: 18px; height: 18px;
  display: grid; place-items: center;
  border-radius: 50%;
  overflow: hidden;
  background: var(--card-2);
  border: 1px solid var(--border);
}
.card-user-pic img { width: 100%; height: 100%; object-fit: cover; }
.card-user-pic .icon { width: 11px; height: 11px; color: var(--pink-3); }
.card-user-name {
  min-width: 0;
  color: var(--text-2); font-size: 11.5px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.meta {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(7, 7, 10, .72);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 12px;
  line-height: 1;
}
.meta span { display: inline-flex; align-items: center; gap: 4px; min-width: 0; white-space: nowrap; }
.meta .icon { width: 13px; height: 13px; color: var(--pink-3); }
.meta time { display: inline-flex; align-items: center; gap: 4px; }
.meta .time { margin-left: auto; font-size: 11.5px; letter-spacing: .02em; opacity: .9; }

.pager { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 28px 0 8px; }
.pager button {
  width: 44px; height: 44px;
  border-radius: 13px;
  background: var(--card);
  border: 1px solid var(--border-glass);
  color: var(--text);
  font-weight: 700;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform var(--t-med) var(--spring), border-color var(--t-fast) var(--ease), box-shadow var(--t-med) var(--ease);
}
.pager button:hover { transform: translateY(-2px) scale(1.06); border-color: rgba(255, 94, 183, .5); box-shadow: var(--pink-glow); }
.pager button:disabled {
  opacity: .38;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.pager span { min-width: 32px; text-align: center; font-weight: 700; color: var(--pink-3); font-variant-numeric: tabular-nums; }

/* ---------- 10. Skeleton loading ---------- */
.skeleton-card {
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--card);
  overflow: hidden;
}
.skeleton-card .sk-thumb { flex: 1 1 auto; min-height: 0; }
.skeleton-card .sk-line { height: 12px; border-radius: 7px; margin: 10px 12px 0; }
.skeleton-card .sk-line:last-child { width: 55%; margin-bottom: 12px; }
.sk { position: relative; overflow: hidden; background: rgba(255, 255, 255, .05); }
.sk::after {
  content: "";
  position: absolute; inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .07), transparent);
  animation: sk-sweep 1.3s var(--ease) infinite;
}
@keyframes sk-sweep { to { transform: translateX(100%); } }

/* ---------- 11. Modals ---------- */
.modal {
  position: fixed; inset: 0; z-index: 1200;
  display: grid; place-items: center;
  padding: 18px;
  background: rgba(4, 4, 7, .62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-med) var(--ease), visibility 0s linear var(--t-med);
}
.modal.open { opacity: 1; visibility: visible; transition: opacity var(--t-med) var(--ease); }
.modal section {
  width: min(500px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  padding: 30px 28px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-glass);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .045)),
    rgba(19, 19, 26, .94);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .6), 0 0 60px rgba(255, 45, 149, .07);
  transform: translateY(22px) scale(.96);
  transition: transform var(--t-slow) var(--spring);
}
.modal.open section { transform: translateY(0) scale(1); }
.modal h2 { padding-right: 36px; }
.modal .primary { width: 100%; }
.rank-modal-cta { margin-top: 16px; }
.rank-modal-cta .primary, .rank-modal-cta .ghost { width: auto; flex: 1 1 auto; }
.modal code { font-size: 12.5px; background: rgba(255, 255, 255, .07); padding: 2px 7px; border-radius: 6px; }
.modal-x {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: transform var(--t-med) var(--spring), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.modal-x:hover { transform: rotate(90deg) scale(1.06); color: #fff; border-color: rgba(255, 94, 183, .5); }

.tier-grid { display: grid; gap: 12px; margin-top: 18px; }
.tier {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 18px;
  border: 1px solid var(--border-glass);
  border-radius: var(--r-md);
  background: var(--card);
  transition: transform var(--t-med) var(--spring), border-color var(--t-fast) var(--ease), box-shadow var(--t-med) var(--ease);
}
.tier:hover { transform: translateY(-3px); border-color: rgba(255, 45, 149, .55); box-shadow: var(--pink-glow); }
.tier strong { font-family: var(--font-display); }
.tier span {
  font-weight: 800;
  background: var(--pink-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  white-space: nowrap;
}
.perk-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 9px; }
.perk-list li { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 14.5px; }
.perk-list .icon { width: 17px; height: 17px; color: var(--success); }

/* ---------- 12. Age gate ---------- */
.age-gate {
  position: fixed; inset: 0; z-index: 4000;
  display: grid; place-items: center;
  padding: 18px;
  background:
    radial-gradient(700px 460px at 70% 20%, rgba(255, 45, 149, .14), transparent 60%),
    radial-gradient(560px 420px at 15% 85%, rgba(123, 44, 191, .16), transparent 60%),
    rgba(5, 5, 8, .94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.age-gate.hidden { opacity: 0; pointer-events: none; transition: opacity var(--t-slow) var(--ease); }
.age-gate section {
  width: min(530px, 100%);
  text-align: center;
  padding: clamp(24px, 5vw, 40px) clamp(18px, 5vw, 32px);
  border-radius: 26px;
  border: 1px solid var(--border-glass);
  background: rgba(19, 19, 26, .8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .6);
  animation: gate-in .5s var(--spring) both;
  overflow: hidden;
}
@keyframes gate-in { from { transform: translateY(26px) scale(.95); opacity: 0; } to { transform: none; opacity: 1; } }
.age-gate img {
  width: clamp(150px, 40vw, 220px);
  height: auto;
  max-height: 110px;
  object-fit: contain;
  margin: 0 auto 22px;
  display: block;
  filter: drop-shadow(0 0 24px rgba(255, 45, 149, .34));
  animation: logo-breathe 2.4s ease-in-out infinite alternate, fade-up .55s var(--ease) both;
  pointer-events: none;
}
.age-gate h1 { font-size: 30px; margin: 16px 0 10px; }
.age-gate p { color: var(--text-2); max-width: 42ch; margin: 0 auto 24px; }
.age-gate div { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- 13. Profile dropdown ---------- */
.profile-menu {
  position: fixed; z-index: 1100;
  top: calc(var(--nav-h) + 10px);
  right: clamp(14px, 3.5vw, 40px);
  width: min(340px, calc(100% - 28px));
  padding: 12px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-glass);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .04)),
    rgba(19, 19, 26, .94);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(.97);
  transform-origin: top right;
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--spring), visibility 0s linear var(--t-med);
}
.profile-menu.open { opacity: 1; visibility: visible; transform: none; transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--spring); }
.profile-head { display: flex; align-items: center; gap: 13px; padding: 12px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.profile-head img, .profile-head > .icon { width: 54px; height: 54px; border-radius: 16px; object-fit: cover; }
.profile-head small { display: block; color: var(--text-3); margin-top: 2px; font-size: 12.5px; }
.profile-menu a, .profile-menu button {
  width: 100%;
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px;
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-size: 14.5px; font-weight: 500;
  text-align: left;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.profile-menu a:hover, .profile-menu button:hover { background: rgba(255, 45, 149, .1); color: #fff; transform: translateX(3px); }
.profile-menu .icon { width: 18px; height: 18px; color: var(--pink-3); }

.vip {
  display: inline-flex; align-items: center; gap: 4px;
  margin-left: 6px; padding: 3px 9px;
  border-radius: 999px;
  background: var(--pink-grad);
  color: #fff;
  font-size: 10.5px; font-weight: 800; letter-spacing: .05em;
  animation: glow-pulse 2.4s infinite;
}

/* Conqueror — prestige pill for 1,000,000+ REP, beside the rank badge. */
.conqueror {
  display: inline-flex; align-items: center; gap: 4px;
  margin-left: 6px; padding: 3px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #FF4D4D 0%, #FF8A1E 55%, #FFD86B 100%);
  color: #2a1400;
  font-size: 10.5px; font-weight: 900; letter-spacing: .04em;
  box-shadow: 0 0 14px rgba(255, 138, 30, .5);
}
.conqueror .icon { width: 13px; height: 13px; }

/* ---------- 14. Content view / comments ---------- */
.content-view {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  padding: clamp(14px, 2.2vw, 20px);
}
.content-view h1 { font-size: clamp(18px, 2.4vw, 24px); margin-bottom: 6px; line-height: 1.2; overflow-wrap: anywhere; }
.post-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px;
  margin: 0 0 10px;
  color: var(--text-3); font-size: 12.5px;
}
.post-meta span { display: inline-flex; align-items: center; gap: 5px; }
.post-meta .icon { width: 13px; height: 13px; color: var(--pink-3); }
.byline { display: flex; align-items: center; gap: 6px; margin-bottom: 18px; font-size: 14.5px; }
.byline-time { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; color: var(--text-3); font-size: 12.5px; }
.byline-time .icon { width: 14px; height: 14px; color: var(--pink-3); }
.media-stack { display: grid; gap: 8px; margin-bottom: 10px; }

/* Uploader card — pinned at the bottom of a pulse, inside the container.
   Desktop: avatar + name + followers on the left, button on the right.
   Mobile: slim band with the followers count stacked above the button. */
.uploader-card {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 12px;
  padding: 9px 11px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .035);
}
.uploader-id { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.uploader-avatar {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 13px;
  overflow: hidden;
  border: 1px solid rgba(255, 94, 183, .4);
  background: radial-gradient(circle at 35% 20%, rgba(255, 94, 183, .18), rgba(255, 255, 255, .05));
}
.uploader-avatar img { width: 100%; height: 100%; object-fit: cover; }
.uploader-avatar .icon { width: 22px; height: 22px; color: var(--pink-3); }
.uploader-info { display: grid; gap: 1px; min-width: 0; }
.uploader-name {
  display: flex; align-items: center; flex-wrap: wrap; gap: 5px;
  color: #fff; font-weight: 800; font-size: 14px;
}
.uploader-name .rank-badge { padding: 3px 8px; font-size: 10.5px; }
.uploader-followers { color: var(--text-3); font-size: 11.5px; white-space: nowrap; line-height: 1.2; }
.uploader-action {
  flex: 0 0 auto;
  display: grid; gap: 3px;
  justify-items: end;
  text-align: right;
}
.uf-stacked { display: none; } /* desktop shows followers under the name instead */
.uploader-action .compact, .uploader-action .btn-mini { min-height: 38px; padding: 8px 14px; font-size: 13px; }
.media-stack .shield-wrap { position: relative; min-width: 0; }
/* transparent overlay over images to deter long-press / drag saving */
.media-stack .media-shield { position: absolute; inset: 0; z-index: 2; }
/* Single attachment: show the whole image/video, capped height, never cropped. */
.media-stack .media-item {
  display: block;
  width: 100%;
  height: auto;
  max-height: 720px;
  object-fit: contain;
  border-radius: var(--r-md);
  background: var(--bg-2);
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
}
/* Multiple attachments flow into a uniform, responsive gallery — no overlap. */
.media-stack.is-gallery { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); align-items: start; }
.media-stack.is-gallery .shield-wrap { aspect-ratio: 1 / 1; }
.media-stack.is-gallery .media-item {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}

/* Panel header row (title + action button) */
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; margin-bottom: 14px; }
.panel-head h1 { margin: 0; font-size: clamp(20px, 3vw, 28px); line-height: 1.15; }
.panel-head .primary, .panel-head .btn-mini { flex: 0 0 auto; }

/* My Uploads management cards */
.manage-grid { grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }
.upload-manage {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
}
.upload-manage-thumb { display: block; aspect-ratio: 4 / 3; background: var(--bg-2); overflow: hidden; }
.upload-manage-media { width: 100%; height: 100%; object-fit: cover; display: block; }
.upload-manage-body { display: flex; flex-direction: column; gap: 7px; padding: 11px 12px 12px; }
.upload-manage-body h3 {
  margin: 0; font-size: 14.5px; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
  overflow: hidden; overflow-wrap: anywhere;
}
.meta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; }
.meta-line span { display: inline-flex; align-items: center; gap: 4px; }
.meta-line .icon { width: 14px; height: 14px; }
.status-flag { text-transform: capitalize; color: #ffb84d; font-weight: 800; }
.private-flag { color: var(--pink-3); }

/* Owner tools (view / edit / delete) */
.own-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.own-tools .btn-mini { justify-content: center; width: 100%; }
.btn-mini {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 10px; cursor: pointer;
  font-size: 13px; font-weight: 700; text-decoration: none;
  border: 1px solid var(--border); background: rgba(255,255,255,.04); color: var(--text-2);
}
.btn-mini:hover { border-color: var(--pink-3); color: #fff; }
.btn-mini.danger { border-color: rgba(255,80,80,.45); color: #ff8a8a; }
.btn-mini.danger:hover { background: rgba(255,80,80,.12); color: #fff; }
.btn-mini[disabled] { opacity: .5; cursor: not-allowed; }
.btn-mini .icon { width: 15px; height: 15px; }

/* Content builder (create.php) */
#uploadForm, #editForm { gap: 14px; }
#uploadForm > .muted.small, #editForm > .muted.small { margin: -8px 0 0; font-size: 12.5px; line-height: 1.45; }
#uploadForm fieldset, #editForm fieldset { gap: 8px; padding: 14px; }
#uploadForm .builder-label, #editForm .builder-label { margin-bottom: -4px; }
.builder-toolbar .tb { flex: 0 1 auto; }
.builder-label { font-weight: 700; }
.upload-limit-note { margin: -4px 0 12px; }
.upload-limit-chip { min-height: 40px; padding: 9px 13px; font-size: 13px; }
.upload-limit-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .04);
}
.upload-limit-box > .icon {
  width: 24px;
  height: 24px;
  color: var(--pink-3);
}
.upload-limit-box h2 { margin-bottom: 4px; font-size: 20px; }
.upload-limit-box .ghost { margin-top: 8px; }

/* Desktop: fill the width — title + hashtags share a row, builder stays wide,
   and the upload action sits as a compact button instead of stretching. */
@media (min-width: 920px) {
  #uploadForm, #editForm {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  #uploadForm > *, #editForm > * { grid-column: 1 / -1; }
  #uploadForm > label:nth-of-type(1),
  #uploadForm > label:nth-of-type(2),
  #editForm > label:nth-of-type(1),
  #editForm > label:nth-of-type(2) { grid-column: span 1; }
  #uploadForm fieldset:last-of-type { grid-template-columns: 1fr 1fr; }
  #uploadForm fieldset:last-of-type legend { grid-column: 1 / -1; }
  #uploadForm > #uploadBtn, #editForm .cta-row { justify-self: start; min-width: 220px; }
}
.builder { border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; background: var(--bg-2); }
.builder-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.03); }
.tb { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 9px; cursor: pointer; font-size: 14px; font-weight: 700; border: 1px solid var(--border); background: rgba(255,255,255,.05); color: var(--text-2); }
.tb:hover { border-color: var(--pink-3); color: #fff; }
.tb-color { position: relative; gap: 6px; }
.tb-color .color-dot { width: 16px; height: 16px; border-radius: 5px; border: 1px solid rgba(255,255,255,.5); background: #ff2d95; }
.tb-color input[type="color"] { width: 22px; height: 22px; border: 0; background: none; padding: 0; cursor: pointer; }
.tb-sep { width: 1px; align-self: stretch; background: var(--border); margin: 2px 4px; }

.rank-picker {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
}
.rank-picker legend { padding: 0 6px; font-weight: 800; color: var(--text); }
.rank-select-all,
.rank-choice {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.rank-select-all {
  width: fit-content;
  padding: 8px 11px;
  border-radius: 10px;
  border: 1px solid var(--border-glass);
  background: rgba(255,255,255,.045);
  font-weight: 800;
}
.rank-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}
.rank-choice {
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.035);
}
.rank-choice:has(input:checked) { border-color: rgba(255, 94, 183, .42); background: rgba(255,45,149,.075); }
.rank-choice input:disabled + .rank-badge { opacity: .72; }
.visibility-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
}
.visibility-picker legend { padding: 0 6px; font-weight: 800; color: var(--text); }
.visibility-picker label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin: 0;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.035);
}
.visibility-picker label:has(input:checked) { border-color: rgba(255, 94, 183, .42); background: rgba(255,45,149,.075); }

/* block list */
.builder-blocks { min-height: 140px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.builder-blocks:empty::before {
  content: "Add text, an image / video, or a button to start building your pulse.";
  display: grid; place-items: center;
  min-height: 116px;
  padding: 0 16px;
  color: var(--text-3);
  font-size: 13.5px;
  text-align: center;
}
.bl { display: flex; align-items: flex-start; gap: 8px; padding: 8px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,.02); }
.bl.dragging { opacity: .5; border-color: var(--pink-3); }
.bl-handle { cursor: grab; user-select: none; color: var(--text-3); font-size: 18px; line-height: 1.4; padding: 2px 4px; }
.bl-handle:active { cursor: grabbing; }
.bl-content { flex: 1; min-width: 0; }
.bl-del { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--border); background: rgba(255,80,80,.08); color: #ff8a8a; font-size: 18px; line-height: 1; cursor: pointer; }
.bl-del:hover { background: rgba(255,80,80,.18); color: #fff; }
.b-text { min-height: 24px; padding: 6px 8px; font-size: 15px; line-height: 1.6; outline: none; border-radius: 8px; }
.b-text:focus { background: rgba(255,255,255,.03); }
.b-text:empty::before { content: attr(data-placeholder); color: var(--text-3); }
.b-media { display: block; max-width: 100%; max-height: 360px; height: auto; border-radius: 10px; }
.b-media-remove {
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 5;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid rgba(255, 92, 122, .45);
  background: rgba(11, 11, 15, .72);
  color: #ff9aae;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}
.b-media-remove:hover { background: rgba(255, 92, 122, .18); color: #fff; }
.b-button-row { width: 100%; min-height: 42px; padding: 2px 0; }
.b-btn { display: inline-flex; align-items: center; padding: 9px 18px; border-radius: 10px; background: var(--pink); color: #fff; font-weight: 800; cursor: grab; touch-action: pan-y; }
.b-btn:active { cursor: grabbing; }
.builder-prog, .upload-progress progress { width: 100%; height: 8px; display: block; border: 0; border-radius: 999px; }
.upload-dialog { width: min(460px, 92vw); }
.upload-inline { display: grid; gap: 10px; margin-top: 2px; }
.upload-inline .btn-mini.danger { justify-self: start; }
.profile-upload-bar { width: 100%; height: 8px; border: 0; border-radius: 999px; overflow: hidden; }
.profile-upload-bar::-webkit-progress-bar { background: rgba(255,255,255,.08); border-radius: 999px; }
.profile-upload-bar::-webkit-progress-value { background: var(--pink-grad); border-radius: 999px; }
.profile-upload-bar::-moz-progress-bar { background: var(--pink-grad); border-radius: 999px; }
.upload-progress { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,.03); }
.upload-progress .up-text { font-weight: 800; font-size: 14px; }
.upload-progress progress::-moz-progress-bar { background: var(--pink-grad); border-radius: 999px; }

/* Full-screen "uploading" view that covers the form. Cancel hides it again and
   returns to the form with everything intact (and discards any cloud media). */
.upload-screen {
  position: fixed; inset: 0; z-index: 1400;
  display: grid; place-items: center;
  padding: 24px;
  background: rgba(7, 7, 10, .85);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  animation: up-fade .25s var(--ease, ease) both;
}
.upload-screen[hidden] { display: none; }
.upload-screen-card {
  width: min(440px, 100%);
  display: grid; gap: 16px; justify-items: center; text-align: center;
  padding: clamp(22px, 4vw, 34px);
  border-radius: var(--r-lg, 22px);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .045)), rgba(17, 17, 23, .94);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  animation: up-rise .3s var(--spring, cubic-bezier(.4,1.4,.5,1)) both;
}
.upload-screen-card h2 { margin: 0; font-size: clamp(19px, 3.4vw, 23px); }
.upload-screen-card p { margin: 0; }
.upload-screen-card .upload-progress { width: 100%; background: transparent; border: 0; padding: 0; gap: 8px; }
.upload-screen-card .btn-block { width: 100%; }
.upload-screen-orbit {
  width: 64px; height: 64px; display: grid; place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, rgba(255, 94, 183, .3), rgba(255, 45, 149, .1));
  border: 1px solid rgba(255, 94, 183, .45);
  box-shadow: 0 0 30px rgba(255, 45, 149, .35);
  animation: up-pulse 1.5s ease-in-out infinite;
}
.upload-screen-orbit .icon { width: 28px; height: 28px; color: var(--pink-2, #ff6ab5); }
body.upload-screen-open { overflow: hidden; }
@keyframes up-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes up-rise { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes up-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.08); opacity: .82; } }
@media (prefers-reduced-motion: reduce) {
  .upload-screen, .upload-screen-card, .upload-screen-orbit { animation: none; }
}

/* button dialog */
.vem-dialog {
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  /* Opaque surface so modal details read clearly (was translucent --card). */
  background:
    radial-gradient(420px 220px at 100% -10%, rgba(255, 45, 149, .12), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02)),
    #131319;
  color: var(--text);
  padding: 22px;
  width: min(420px, 92vw);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), var(--pink-glow);
}
.vem-dialog::backdrop {
  background: rgba(2, 4, 12, .74);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.vem-dialog h3 { margin: 0 0 14px; }
.vem-dialog label { display: block; margin-bottom: 12px; font-weight: 600; font-size: 14px; }
.vem-dialog input { width: 100%; margin-top: 6px; }
.vem-dialog input[type="color"] { height: 40px; padding: 2px; }
.button-position {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
}
.button-position legend { padding: 0 5px; color: var(--text-3); font-size: 12px; font-weight: 800; }
.button-position label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  margin: 0;
  border-radius: 9px;
  background: rgba(255,255,255,.04);
}
.dialog-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 6px; }
.primary-mini { background: var(--pink); color: #fff; border-color: transparent; }

/* Rendered builder content (content.php) */
.builder-view { font-size: 15px; line-height: 1.55; margin-bottom: 10px; }
.builder-view .b-text { margin: 0 0 6px; }
.builder-view .media-item { display: block; max-width: 100%; height: auto; border-radius: var(--r-md); margin: 8px 0; background: var(--bg-2); -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }
.builder-view .b-button-row { margin: 6px 0; }
.content-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; margin: 8px 0; border-radius: 12px; background: var(--pink); color: #fff; font-weight: 800; text-decoration: none; }
.builder-view .content-btn { cursor: pointer; touch-action: auto; }
.content-btn:hover { filter: brightness(1.08); }
.content-view .description { margin: 0 0 6px; font-size: 14px; line-height: 1.5; }
.hashtags { display: flex; flex-wrap: wrap; gap: 6px 8px; color: var(--pink-3); font-size: 13px; margin-bottom: 0; }
.hashtag {
  padding: 0;
  background: none;
  color: var(--pink-3);
  font-size: 13px; font-weight: 700;
  cursor: pointer;
  transition: color var(--t-fast) var(--ease);
}
.hashtag:hover { color: var(--pink-2); text-decoration: underline; }
.locked-panel {
  display: grid; place-items: center; gap: 14px;
  text-align: center;
  padding: 54px 22px;
  margin-bottom: 18px;
  border-radius: var(--r-md);
  border: 1px dashed rgba(255, 45, 149, .4);
  background: rgba(255, 45, 149, .05);
}
.locked-panel .icon { width: 52px; height: 52px; color: var(--pink-2); filter: drop-shadow(0 0 18px rgba(255, 45, 149, .5)); }
.locked-panel h2 { margin: 0; }
.locked-panel p { margin: 0; color: var(--text-2); }

/* All actions sit on one row, equal width, minimal height — no wasted space. */
.actions { display: flex; flex-wrap: nowrap; gap: 7px; margin: 12px 0 0; }
.action-btn {
  flex: 1 1 0;
  min-width: 0;
  padding: 9px 8px;
  min-height: 40px;
  background: var(--card);
  border: 1px solid var(--border-glass);
  color: var(--text-2);
  font-weight: 600; font-size: 13px;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.action-btn span { overflow: hidden; text-overflow: ellipsis; }
.action-btn:hover { transform: translateY(-2px); color: #fff; border-color: rgba(255, 94, 183, .45); box-shadow: 0 8px 20px rgba(0, 0, 0, .35); }
.action-btn:active { transform: scale(.97); }
.action-btn.active { color: var(--pink-2); border-color: rgba(255, 45, 149, .55); background: rgba(255, 45, 149, .1); }
.action-btn.active .icon { fill: var(--pink-2); animation: heart-pop .45s var(--spring); }
@keyframes heart-pop { 0% { transform: scale(1); } 45% { transform: scale(1.45); } 100% { transform: scale(1); } }

.comments {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  padding: clamp(14px, 2.2vw, 18px);
}
.comments h2 { margin-bottom: 10px; font-size: clamp(18px, 2.4vw, 22px); }
.comment-form { margin-bottom: 14px; }
.content-community,
.content-next {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
/* TG panel hugs its single button instead of being a big empty card. */
.content-community { padding: clamp(12px, 2.2vw, 16px); }
.telegram-cta {
  width: 100%;
  min-height: 56px;
  border-radius: 14px;
  font-size: 15px;
  /* Telegram-blue identity so it reads distinctly from the pink premium CTAs. */
  background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%);
  box-shadow: 0 10px 26px rgba(34, 158, 217, .38);
}
.telegram-cta:hover { filter: brightness(1.06); box-shadow: 0 14px 32px rgba(34, 158, 217, .5); }
.telegram-cta .icon { width: 19px; height: 19px; }
.content-next .panel-head { margin-bottom: 16px; }
.content-next .panel-head h2 { margin: 0; font-size: clamp(18px, 2.4vw, 24px); }
.content-next-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr));
  gap: 14px;
}
.content-next-grid .content-card {
  min-width: 0;
}

/* Compact comment / reply field with an icon-only send button inside it,
   vertically centred against the right edge of the field. */
.comment-field { position: relative; }
.comment-field textarea {
  min-height: 44px;
  padding: 11px 48px 11px 14px;
  resize: none;
}
.comment-send {
  position: absolute; right: 7px; top: 50%;
  transform: translateY(-50%);
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  color: #fff;
  background: var(--pink-grad);
  box-shadow: 0 4px 12px rgba(255, 45, 149, .32);
  transition: transform var(--t-fast) var(--spring), filter var(--t-fast) var(--ease);
}
.comment-send:hover { transform: translateY(-50%) scale(1.06); filter: brightness(1.08); }
.comment-send:active { transform: translateY(-50%) scale(.94); }
.comment-send .icon { width: 17px; height: 17px; }
.comment-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 11px 13px;
  margin-bottom: 9px;
  font-size: 14px;
  transition: border-color var(--t-fast) var(--ease);
}
.comment-card:hover { border-color: var(--border-glass); }
.comment-card p { margin: 4px 0 0; color: var(--text-2); font-size: 14px; line-height: 1.45; }

/* Desktop: pulse + comments sit side by side so the page fills the width
   instead of one thin centered column with large empty gutters.
   The pair is wrapped in .content-grid so the sticky comments column is
   bounded to that wrapper and can't float over the full-width Telegram /
   New Uploads sections that follow it as you scroll. */
@media (min-width: 1000px) {
  body[data-page="content"] .content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(330px, 30vw, 420px);
    gap: 24px;
    align-items: start;
  }
  body[data-page="content"] .content-grid .content-view {
    max-width: none;
    margin: 0;
  }
  body[data-page="content"] .content-grid .comments {
    max-width: none;
    margin: 0;
    position: sticky;
    top: calc(var(--nav-h) + 24px);
    max-height: calc(100vh - var(--nav-h) - 48px);
    overflow-y: auto;
  }
  /* Telegram + New Uploads run full content width below the grid. */
  body[data-page="content"] .content-community,
  body[data-page="content"] .content-next {
    max-width: none;
  }
  body[data-page="content"] .content-next-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
  /* Locked pulses have no comments column — keep a comfortable reading width. */
  body[data-page="content"] .content-view { max-width: 1000px; }
}

/* ---------- 15. Forms ---------- */
textarea, input:not([type="radio"]):not([type="checkbox"]):not([type="file"]), select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 14px 16px;
  background: rgba(255, 255, 255, .05);
  color: var(--text);
  border: 1px solid var(--border-glass);
  border-radius: var(--r-sm);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
textarea:focus, input:focus, select:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255, 45, 149, .16);
  background: rgba(255, 255, 255, .07);
}
textarea { min-height: 120px; resize: vertical; }
select option { background: var(--bg-2); }
input[type="file"] { color: var(--text-2); }
input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 10px 16px;
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  background: var(--card-2);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease);
}
input[type="file"]::file-selector-button:hover { border-color: rgba(255, 94, 183, .5); }
label { display: grid; gap: 8px; color: var(--text-2); font-size: 14px; font-weight: 500; }
.stack { display: grid; gap: 16px; width: 100%; max-width: 100%; min-width: 0; }
.stack > *, label, fieldset { max-width: 100%; min-width: 0; }
.stack .primary { justify-self: start; }
fieldset {
  border: 1px solid var(--border-glass);
  border-radius: var(--r-md);
  padding: 16px;
  display: grid; gap: 10px;
  margin: 0;
}
legend { padding: 0 8px; color: var(--text-2); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
fieldset label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
input[type="radio"], input[type="checkbox"] { accent-color: var(--pink); width: 17px; height: 17px; cursor: pointer; }
.dropzone {
  border: 1.5px dashed rgba(255, 45, 149, .45);
  padding: 26px 20px;
  border-radius: var(--r-md);
  background: rgba(255, 45, 149, .05);
  text-align: center;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.dropzone:hover { border-color: var(--pink); background: rgba(255, 45, 149, .09); }

/* ---------- 16. Chat / conversation ---------- */
.chat-page { max-width: 780px; margin: 0 auto; display: grid; gap: 14px; }
.chat-bubble {
  max-width: 84%;
  padding: 15px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  line-height: 1.55;
  animation: fade-up .45s var(--ease) both;
}
.chat-bubble.system {
  justify-self: start;
  background: var(--card);
  border-bottom-left-radius: 6px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.chat-bubble.user {
  justify-self: end;
  background: linear-gradient(135deg, rgba(255, 45, 149, .22), rgba(255, 94, 183, .12));
  border-color: rgba(255, 45, 149, .35);
  border-bottom-right-radius: 6px;
}
.chat-bubble a { color: var(--pink-3); font-weight: 600; }
.choice-row { display: flex; flex-wrap: wrap; gap: 12px; }
.qr { width: min(280px, 100%); border-radius: var(--r-md); background: #fff; padding: 8px; }
/* ---------- 17. Download flow ---------- */
.narrow { max-width: 580px; margin-left: auto; margin-right: auto; text-align: center; }
.narrow .primary { margin-top: 6px; }
.download-thumb { width: 100%; max-height: 280px; object-fit: cover; border-radius: var(--r-md); background: var(--bg-2); margin-bottom: 18px; }
.sponsor-steps { display: grid; gap: 12px; margin: 20px 0; }
.sponsor-step {
  min-height: 50px;
  padding: 12px 18px;
  background: var(--card);
  border: 1px solid var(--border-glass);
  color: var(--text);
  font-weight: 700;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.sponsor-step:hover { transform: translateY(-2px); border-color: rgba(255, 94, 183, .5); box-shadow: 0 10px 24px rgba(0, 0, 0, .35); }
.sponsor-step.done {
  border-color: rgba(61, 220, 151, .55);
  color: var(--success);
  background: rgba(61, 220, 151, .07);
}
.sponsor-step.done::before { content: "✓"; margin-right: 8px; font-weight: 800; }
.progress {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  overflow: hidden;
  margin: 18px 0 10px;
}
.progress span {
  display: block; width: 0; height: 100%;
  border-radius: 999px;
  background: var(--pink-grad);
  box-shadow: 0 0 14px rgba(255, 45, 149, .6);
  transition: width 1s linear;
}

/* ---------- 18. Admin / stats / tables ---------- */
.admin-layout { display: grid; grid-template-columns: 230px 1fr; gap: 20px; align-items: start; }
.admin-login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 48px);
}
.admin-login-card {
  width: min(460px, 100%);
  padding: clamp(26px, 5vw, 44px);
  border: 1px solid var(--border-glass);
  border-radius: 28px;
  background:
    radial-gradient(520px 260px at 85% -10%, rgba(255, 45, 149, .18), transparent 60%),
    rgba(15, 15, 20, .78);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .6), var(--pink-glow);
  animation: gate-in .45s var(--spring) both;
}
.auth-logo {
  display: flex;
  justify-content: center;
  margin: 0 auto 40px;
  cursor: pointer;
}
.auth-logo img {
  width: clamp(180px, 42vw, 240px);
  height: auto;
  max-height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 0 28px rgba(255, 45, 149, .38));
  animation: float 5.4s ease-in-out infinite alternate, fade-up .5s var(--ease) both;
  transition: transform var(--t-med) var(--spring), filter var(--t-med) var(--ease);
}
.auth-logo:hover img {
  transform: scale(1.03);
  filter: drop-shadow(0 0 34px rgba(255, 45, 149, .5));
}
.admin-login-card .hero-eyebrow { margin-bottom: 14px; }
.admin-login-card h1 { font-size: clamp(34px, 7vw, 48px); }
.admin-login-error {
  color: var(--danger);
  padding: 11px 13px;
  border-radius: 14px;
  border: 1px solid rgba(255, 92, 122, .32);
  background: rgba(255, 92, 122, .08);
}
.admin-nav, .admin-main {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .045)),
    rgba(17, 17, 23, .78);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.admin-main { padding: clamp(18px, 3vw, 28px); overflow: hidden; }
.admin-nav { display: grid; gap: 4px; position: sticky; top: calc(var(--nav-h) + 18px); }
.admin-sidebar-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px 18px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.admin-sidebar-logo img {
  width: clamp(140px, 12vw, 180px);
  height: auto;
  max-height: 92px;
  object-fit: contain;
  opacity: .98;
  filter: drop-shadow(0 0 14px rgba(255, 45, 149, .22));
}
.admin-sidebar-logo:hover { background: transparent !important; transform: none !important; }
.admin-sidebar-logo:hover img { filter: drop-shadow(0 0 20px rgba(255, 45, 149, .34)); }
.admin-nav a {
  padding: 11px 14px;
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-weight: 500; font-size: 14.5px;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.admin-nav a:hover { background: var(--card-2); color: #fff; transform: translateX(3px); }
.admin-nav a.active { background: rgba(255, 45, 149, .14); color: var(--pink-3); font-weight: 700; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 14px; }
.stat {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px;
  overflow: hidden;
  transition: transform var(--t-med) var(--ease), border-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.stat:hover { transform: translateY(-4px); border-color: rgba(255, 94, 183, .35); box-shadow: var(--shadow-lift); }
.stat::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--pink-grad);
  opacity: .65;
}
.stat span { display: block; color: var(--text-3); margin-bottom: 8px; font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.stat strong {
  font-family: var(--font-display);
  font-size: 30px; font-weight: 800; letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { padding: 13px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th {
  position: sticky; top: 0;
  color: var(--text-3);
  font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  background: rgba(19, 19, 26, .95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
tbody tr, table tr { transition: background var(--t-fast) var(--ease); }
table tr:hover td { background: rgba(255, 255, 255, .025); }
table button {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-glass);
  background: var(--card);
  font-size: 13px; font-weight: 600;
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
table button:hover { border-color: rgba(255, 94, 183, .5); color: var(--pink-3); transform: translateY(-1px); }
table a { color: var(--pink-3); }
.admin-actions { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.admin-actions a,
.admin-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 10px;
  font-size: 12px;
}
.danger-btn {
  border-color: rgba(255, 92, 122, .38) !important;
  color: var(--danger) !important;
}
.danger-btn:hover {
  background: rgba(255, 92, 122, .08) !important;
}

/* Admin portal styling now lives in assets/css/admin.css (loaded on admin only). */

/* ---------- 19. Settings / legal / footer ---------- */
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.settings-grid a {
  display: flex; align-items: center; gap: 10px;
  padding: 18px;
  border-radius: var(--r-md);
  background: var(--card);
  border: 1px solid var(--border);
  font-weight: 600;
  transition: transform var(--t-med) var(--spring), border-color var(--t-fast) var(--ease), box-shadow var(--t-med) var(--ease);
}
.settings-grid a:hover { transform: translateY(-4px); border-color: rgba(255, 94, 183, .4); box-shadow: var(--shadow-lift); }
.privacy-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 12px;
  align-items: stretch;
}
.privacy-form .primary { justify-self: start; align-self: center; }
.privacy-toggle {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  margin: 0 !important;
  padding: 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--card);
}
.privacy-toggle input { width: auto !important; margin: 3px 0 0 !important; }
.privacy-toggle > span { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; }
.privacy-toggle .icon { width: 18px; height: 18px; color: var(--pink-3); grid-row: span 2; margin-top: 1px; }
.privacy-toggle b { line-height: 1.2; }
.privacy-toggle small { color: var(--text-3); line-height: 1.35; }

.legal { max-width: 920px; margin-left: auto; margin-right: auto; line-height: 1.75; }
.legal p, .legal li { color: var(--text-2); }
.legal h1 { font-size: clamp(26px, 4vw, 36px); }
.legal ol, .legal ul { padding-left: 22px; display: grid; gap: 8px; }

.legal-hub {
  position: relative;
  display: grid;
  gap: clamp(18px, 3vw, 30px);
  isolation: isolate;
}
.legal-hub::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(520px 340px at var(--mx, 72%) var(--my, 18%), rgba(255, 79, 163, .14), transparent 68%),
    radial-gradient(760px 420px at 12% 12%, rgba(168, 85, 247, .12), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.015), transparent 32%);
  transition: background-position .2s linear;
}
.legal-hero {
  position: relative;
  min-height: clamp(260px, 24vw, 360px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, .36fr);
  align-items: center;
  gap: clamp(18px, 4vw, 52px);
  padding: clamp(22px, 3vw, 38px) clamp(24px, 5vw, 56px);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  border-radius: 28px;
  background:
    radial-gradient(900px 480px at 82% 12%, rgba(255, 79, 163, .22), transparent 58%),
    radial-gradient(720px 520px at 0% 100%, rgba(168, 85, 247, .18), transparent 65%),
    rgba(15, 15, 19, .72);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
}
.legal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at 70% 35%, #000 8%, transparent 72%);
  pointer-events: none;
}
.legal-hero::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 120deg, transparent, rgba(255,128,199,.18), transparent, rgba(168,85,247,.14), transparent);
  animation: legal-aurora 18s linear infinite;
  opacity: .34;
  pointer-events: none;
}
.legal-hero > * { position: relative; z-index: 1; }
.legal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,79,163,.32);
  background: rgba(255,79,163,.09);
  color: var(--pink-3);
  font-size: 12.5px;
  font-weight: 700;
}
.legal-kicker .icon { width: 16px; height: 16px; }
.legal-hero h1 {
  max-width: 14ch;
  margin: 0 0 10px;
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.04;
  letter-spacing: 0;
  background: linear-gradient(135deg, #fff 10%, #ff80c7 48%, #a855f7 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: fade-up .7s var(--ease) both;
}
.legal-hero p {
  max-width: 56ch;
  margin: 0 0 16px;
  color: var(--text-2);
  font-size: clamp(14.5px, 1.6vw, 17px);
  line-height: 1.5;
  animation: fade-up .7s var(--ease) .1s both;
}
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  animation: fade-up .7s var(--ease) .2s both;
}
.trust-badges span,
.severity {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.07);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.legal-orbit {
  position: relative;
  min-height: clamp(180px, 18vw, 260px);
  display: grid;
  place-items: center;
}
.legal-orbit::before {
  content: "";
  grid-area: 1 / 1;
  width: min(220px, 56vw);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,.16);
  background:
    radial-gradient(circle at 50% 50%, rgba(255,128,199,.2), transparent 34%),
    radial-gradient(circle at 44% 28%, rgba(168,85,247,.28), transparent 22%),
    rgba(255,255,255,.035);
  box-shadow: 0 0 80px rgba(255,79,163,.22), inset 0 0 80px rgba(255,255,255,.04);
  animation: logo-breathe 4.5s ease-in-out infinite alternate;
}
.orbit-core {
  position: relative;
  z-index: 2;
  grid-area: 1 / 1;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(255,45,149,.3), rgba(168,85,247,.2)), rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 24px 60px rgba(0,0,0,.4), 0 0 54px rgba(255,45,149,.26), inset 0 1px 0 rgba(255,255,255,.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: float 7s ease-in-out infinite alternate;
}
.orbit-core .icon {
  width: 36px;
  height: 36px;
  color: #fff;
  filter: drop-shadow(0 0 16px rgba(255,45,149,.65));
}
.legal-orbit span {
  --tx: 0px;
  --ty: 0px;
  --rot: 0deg;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.13);
  box-shadow: 0 20px 45px rgba(0,0,0,.3);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform: translate(var(--tx), var(--ty)) rotate(var(--rot));
  animation: chip-float 6s ease-in-out infinite alternate;
}
.legal-orbit span .icon { width: 22px; height: 22px; color: var(--pink-3); filter: drop-shadow(0 0 10px rgba(255,45,149,.4)); }
.legal-orbit span:nth-of-type(1) { --tx: -94px; --ty: -70px; --rot: -8deg; }
.legal-orbit span:nth-of-type(2) { --tx: 82px; --ty: -30px; --rot: 10deg; animation-delay: -2s; }
.legal-orbit span:nth-of-type(2) .icon { color: #c084fc; filter: drop-shadow(0 0 10px rgba(168,85,247,.45)); }
.legal-orbit span:nth-of-type(3) { --tx: -14px; --ty: 90px; --rot: 4deg; animation-delay: -4s; }
.legal-orbit span:nth-of-type(3) .icon { color: #fff; filter: drop-shadow(0 0 10px rgba(255,255,255,.35)); }
@keyframes chip-float {
  from { transform: translate(var(--tx), calc(var(--ty) - 7px)) rotate(var(--rot)); }
  to   { transform: translate(var(--tx), calc(var(--ty) + 9px)) rotate(calc(var(--rot) + 3deg)); }
}
.legal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border-radius: 22px;
  background: rgba(255,255,255,.045);
  border: 1px solid var(--border-glass);
}
.legal-toolbar label {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-radius: 16px;
  background: rgba(0,0,0,.18);
}
.legal-toolbar input { border: 0 !important; background: transparent !important; }
.legal-toolbar span { color: var(--text-3); font-size: 13px; white-space: nowrap; }
.legal-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.legal-side {
  position: sticky;
  top: calc(var(--nav-h) + 30px);
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 22px;
  border: 1px solid var(--border-glass);
  background: rgba(255,255,255,.045);
  backdrop-filter: blur(18px);
}
.legal-side a {
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 700;
}
.legal-side a:hover { color: #fff; background: rgba(255,255,255,.07); }
.legal-content { display: grid; gap: 22px; }
.legal-bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.legal-card {
  position: relative;
  min-height: 170px;
  padding: clamp(18px, 2.5vw, 28px);
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--border-glass);
  background:
    linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025)),
    rgba(15,15,19,.64);
  box-shadow: 0 22px 70px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  transition: transform var(--t-med) var(--spring), border-color var(--t-fast), box-shadow var(--t-med);
}
.legal-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 8%, rgba(255,255,255,.12) 18%, transparent 30%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease);
  pointer-events: none;
}
.legal-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,79,163,.34);
  box-shadow: 0 28px 90px rgba(0,0,0,.44), 0 0 34px rgba(255,79,163,.14);
}
.legal-card:hover::after { transform: translateX(120%); }
.legal-card h2, .legal-card h3 { margin-top: 0; }
.legal-card p, .legal-card small { color: var(--text-2); line-height: 1.65; }
.legal-card.danger {
  grid-column: span 3;
  min-height: 220px;
  background:
    radial-gradient(500px 260px at 8% 0%, rgba(255,79,163,.18), transparent 70%),
    linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025)),
    rgba(15,15,19,.7);
}
.severity { color: #fff; background: rgba(255,79,163,.18); border-color: rgba(255,79,163,.34); }
.legal-accordion {
  display: grid;
  gap: 12px;
}
.legal-accordion details {
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  background: rgba(255,255,255,.045);
  overflow: hidden;
  backdrop-filter: blur(18px);
}
.legal-accordion summary {
  cursor: pointer;
  padding: 18px 20px;
  color: #fff;
  font-weight: 800;
  list-style: none;
}
.legal-accordion summary::-webkit-details-marker { display: none; }
.legal-accordion summary::after { content: "+"; float: right; color: var(--pink-3); }
.legal-accordion details[open] summary::after { content: "-"; }
.legal-accordion p { margin: 0; padding: 0 20px 20px; color: var(--text-2); line-height: 1.7; }
.legal-accordion ul, .legal-accordion ol { margin: 0; padding: 0 20px 20px 42px; color: var(--text-2); line-height: 1.7; display: grid; gap: 8px; }
.legal-accordion a, .legal-card a { color: var(--pink-3); font-weight: 600; }
.legal-accordion a:hover, .legal-card a:hover { text-decoration: underline; }
.legal-search-row { display: grid; }
.legal-search-row input { max-width: 580px; }
.legal-timeline,
.legal-document {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 3vw, 28px);
  border-radius: 26px;
  border: 1px solid var(--border-glass);
  background: rgba(255,255,255,.04);
}
.legal-timeline h2 { margin: 0 0 6px; }
.legal-timeline div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.045);
}
.legal-timeline b {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--pink-grad);
  color: #fff;
}
.legal-timeline span { color: var(--text-2); }
.legal-document { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.reading-progress {
  position: sticky;
  top: calc(var(--nav-h) + 12px);
  z-index: 19;
  height: 4px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.08);
}
.reading-progress span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: var(--pink-grad);
  box-shadow: 0 0 18px rgba(255,79,163,.55);
}
.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 16px rgba(61,220,151,.8);
}
@keyframes legal-aurora {
  from { transform: rotate(0deg) scale(1); }
  to { transform: rotate(360deg) scale(1.08); }
}

.footer {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 calc(96px + var(--safe-b));
  color: var(--text-3);
  font-size: 13.5px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 22px;
}
.footer-brand img {
  width: clamp(120px, 14vw, 180px);
  height: auto;
  max-height: 90px;
  object-fit: contain;
  opacity: .95;
  transition: transform var(--t-med) var(--spring), filter var(--t-med) var(--ease), opacity var(--t-fast) var(--ease);
}
.footer-brand a:hover img {
  transform: scale(1.03);
  opacity: 1;
  filter: drop-shadow(0 0 18px rgba(255, 45, 149, .32));
}
.footer-brand strong {
  display: block;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 18px;
}
.footer-brand span {
  display: block;
  color: var(--text-3);
  font-size: 13px;
}
.footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-bottom: 16px; }
.footer a { color: var(--text-2); font-weight: 500; transition: color var(--t-fast) var(--ease); }
.footer a:hover { color: var(--pink-3); }
.footer nav a.active { color: #fff; font-weight: 700; }
.footer nav a.active::after { content: ""; display: block; height: 2px; border-radius: 999px; background: var(--pink-grad); }
.footer p { margin: 0 auto 8px; max-width: 78ch; }

/* ---------- 20. Mobile bottom navigation ---------- */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 990;
  display: none;
  justify-content: space-around; align-items: center;
  height: calc(64px + var(--safe-b));
  padding: 0 8px var(--safe-b);
  background: rgba(15, 15, 20, .82);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(22px) saturate(1.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
}
.bottom-nav a, .bottom-nav button {
  display: grid; place-items: center; gap: 3px;
  min-width: 56px; min-height: 48px;
  padding: 6px 4px;
  border-radius: var(--r-sm);
  color: var(--text-3);
  font-size: 10.5px; font-weight: 600; letter-spacing: .03em;
  transition: color var(--t-fast) var(--ease), transform var(--t-fast) var(--spring);
  -webkit-tap-highlight-color: transparent;
}
.bottom-nav a:active, .bottom-nav button:active { transform: scale(.92); }
.bottom-nav .icon { width: 22px; height: 22px; }
.bottom-nav .active { color: var(--pink-2); }
.bottom-nav .nav-fab {
  width: 52px; height: 52px; min-width: 52px;
  margin-top: -22px;
  border-radius: 17px;
  background: var(--pink-grad);
  color: #fff;
  font-size: 0;
  box-shadow: 0 12px 28px rgba(255, 45, 149, .45);
  place-items: center;
}
.bottom-nav .nav-fab .icon { width: 24px; height: 24px; }

/* ---------- 21. Toast notifications ---------- */
.toast-stack {
  position: fixed; z-index: 1500;
  top: calc(var(--nav-h) + 12px); right: 18px;
  display: grid; gap: 10px;
  width: min(360px, calc(100% - 32px));
  pointer-events: none;
}
.toast {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-glass);
  border-left: 3px solid var(--pink);
  background: rgba(19, 19, 26, .92);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
  font-size: 14.5px; line-height: 1.45;
  pointer-events: auto;
  animation: toast-in var(--t-slow) var(--spring) both;
  will-change: transform, opacity;
}
.toast .icon { width: 19px; height: 19px; margin-top: 1px; }
.toast.success { border-left-color: var(--success); } .toast.success .icon { color: var(--success); }
.toast.error   { border-left-color: var(--danger); }  .toast.error .icon   { color: var(--danger); }
.toast.warning { border-left-color: var(--warning); } .toast.warning .icon { color: var(--warning); }
.toast.info    { border-left-color: var(--pink-2); }  .toast.info .icon    { color: var(--pink-2); }
.toast.out { animation: toast-out var(--t-med) var(--ease) both; }
@keyframes toast-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toast-out { to { transform: translateY(-8px); opacity: 0; } }

/* ---------- 22. Motion utilities ---------- */
@keyframes fade-up { from { transform: translateY(22px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes scale-in { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }

[data-reveal] { opacity: 0; transform: translateY(26px); }
[data-reveal].revealed {
  opacity: 1; transform: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.no-observer [data-reveal] { opacity: 1; transform: none; }

/* ---------- 23. Responsive ---------- */
@media (max-width: 980px) {
  /* .admin-layout responsiveness handled in admin.css */
  .float-chip { display: none; }
}
@media (max-width: 760px) {
  :root { --nav-h: 60px; }
  .topbar { gap: 8px; }
  .brand { gap: 9px; }
  .brand img { width: 38px; max-height: 38px; }
  .brand strong { font-size: 20px; }
  .nav-premium { width: 42px; height: 42px; padding: 0; justify-content: center; border-radius: 14px; }
  .nav-premium span { display: none; }
  .premium-mark { padding: 8px 10px; font-size: 12px; }
  .page {
    width: min(100% - 24px, 1200px);
    padding-top: calc(var(--nav-h) + 18px);
    padding-bottom: calc(112px + var(--safe-b));
  }
  .panel, .legal, .content-view, .comments {
    padding: 22px clamp(16px, 5vw, 22px);
    border-radius: 22px;
  }
  textarea, input:not([type="radio"]):not([type="checkbox"]):not([type="file"]), select {
    padding: 12px 13px;
    border-radius: 12px;
  }
  textarea { min-height: 96px; }
  .comment-form textarea, .comment-reply-form textarea { min-height: 64px; }
  .hero {
    height: clamp(174px, 38vw, 196px);
    min-height: 174px;
    max-height: 196px;
    padding: 13px 14px 12px;
    border-radius: 16px;
    align-items: center;
  }
  .hero-inner {
    max-width: calc(100% - 92px);
    width: calc(100% - 92px);
    z-index: 1;
  }
  .hero-logo-mark {
    display: block;
    right: 12px;
    top: 50%;
    width: clamp(64px, 20vw, 86px);
    max-height: 96px;
    transform: translateY(-50%);
    opacity: .98;
    filter: drop-shadow(0 0 16px rgba(255, 45, 149, .36));
  }
  .hero-eyebrow {
    margin-bottom: 6px;
    padding: 4px 7px;
    font-size: 9.5px;
    line-height: 1.1;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .hero-eyebrow .icon { width: 12px; height: 12px; }
  .hero-title {
    font-size: clamp(19px, 5.65vw, 25px);
    margin-bottom: 5px;
    line-height: 1.02;
    max-width: 13ch;
  }
  .hero-sub {
    font-size: 10.8px;
    line-height: 1.2;
    margin-bottom: 8px;
    max-width: 29ch;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hero-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
    margin-bottom: 0;
    gap: 7px;
  }
  .hero-cta .btn-lg {
    min-width: 0;
    min-height: 31px;
    padding: 6px 7px;
    font-size: 10px;
    border-radius: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .hero-cta .icon {
    width: 12px;
    height: 12px;
    flex: 0 0 auto;
  }
  .hero .float-chip { display: none !important; }
  .hero-stats, .hero-trust { display: none; }
  .hero-cta .primary, .hero-cta .ghost { flex: 1 1 auto; }
  .legal-hub { gap: 16px; }
  .legal-hero {
    height: clamp(174px, 38vw, 196px);
    min-height: 174px;
    max-height: 196px;
    grid-template-columns: minmax(0, 1fr) 78px;
    gap: 8px;
    padding: 13px 14px 12px;
    border-radius: 16px;
  }
  .legal-kicker {
    margin-bottom: 6px;
    padding: 4px 7px;
    font-size: 9.5px;
    line-height: 1.1;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .legal-kicker .icon { width: 12px; height: 12px; }
  .legal-hero h1 {
    max-width: 13ch;
    font-size: clamp(19px, 5.65vw, 25px);
    margin-bottom: 5px;
    line-height: 1.02;
  }
  .legal-hero p {
    max-width: 31ch;
    margin-bottom: 8px;
    font-size: 10.8px;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .trust-badges {
    gap: 5px;
    max-height: 28px;
    overflow: hidden;
  }
  .trust-badges span,
  .severity {
    min-height: 23px;
    padding: 4px 7px;
    font-size: 9.5px;
    line-height: 1;
  }
  .legal-orbit {
    min-height: 82px;
    opacity: .95;
  }
  .legal-orbit::before { width: 78px; }
  .orbit-core { width: 40px; height: 40px; border-radius: 13px; }
  .orbit-core .icon { width: 18px; height: 18px; }
  .legal-orbit span {
    width: 26px;
    height: 26px;
    margin: -13px 0 0 -13px;
    border-radius: 9px;
  }
  .legal-orbit span .icon { width: 12px; height: 12px; }
  .legal-orbit span:nth-of-type(1) { --tx: -34px; --ty: -27px; }
  .legal-orbit span:nth-of-type(2) { --tx: 32px; --ty: -11px; }
  .legal-orbit span:nth-of-type(3) { --tx: -4px; --ty: 34px; }
  .legal-toolbar {
    display: grid;
    gap: 8px;
  }
  .legal-toolbar span {
    white-space: normal;
    padding: 0 8px 4px;
  }
  .legal-layout {
    grid-template-columns: 1fr;
  }
  .legal-side {
    position: static;
    display: flex;
    overflow-x: auto;
    border-radius: 18px;
  }
  .legal-side a { flex: 0 0 auto; }
  .legal-bento {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .legal-card,
  .legal-card.danger {
    grid-column: auto;
    min-height: auto;
    border-radius: 20px;
  }
  .legal-timeline div {
    grid-template-columns: 34px 1fr;
    padding: 12px;
  }
  .legal-timeline b {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }
  .bottom-nav { display: flex; }
  .chat-bubble { max-width: 94%; }
  /* Admin mobile layout (stat cards, stacked tables) handled in admin.css */
  .admin-login-shell { align-items: start; padding-top: 42px; }
  .admin-login-card { border-radius: 24px; }
  .auth-logo { margin-bottom: 34px; }
  .auth-logo img { width: clamp(170px, 58vw, 220px); }
  .age-gate { padding: 12px; align-items: start; overflow-y: auto; }
  .age-gate section { margin-top: 12px; padding: 22px 18px; }
  .age-gate img { width: clamp(120px, 44vw, 170px); max-height: 82px; margin-bottom: 14px; }
  .age-gate h1 { font-size: 24px; margin: 8px 0; }
  .age-gate p { margin-bottom: 16px; font-size: 14px; line-height: 1.45; }
  .age-gate .primary, .age-gate .ghost { width: 100%; min-height: 44px; }
  .admin-sidebar-logo { display: none; }
  .footer-brand { align-items: center; flex-direction: column; gap: 10px; text-align: center; }
  .toast-stack { top: calc(var(--nav-h) + 10px); right: 50%; transform: translateX(50%); }
  .actions { position: relative; }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .content-card { border-radius: 14px; }
  .content-card .thumb { aspect-ratio: auto; }
  .content-card .card-body { padding: 5px 8px 7px; }
  .content-card .card-body h3 {
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.2;
    max-height: calc(1.2em * 2);
    margin: 0;
    -webkit-line-clamp: 2;
    overflow: hidden;
    overflow-wrap: anywhere;
  }
  .content-card .card-body p { display: none; }
  .content-card .card-user { margin-top: 3px; gap: 5px; }
  .content-card .card-user-pic { width: 16px; height: 16px; }
  .content-card .card-user-pic .icon { width: 10px; height: 10px; }
  .content-card .card-user-name { font-size: 10.5px; }
  .content-card .meta {
    right: 7px;
    bottom: 7px;
    gap: 6px;
    padding: 4px 6px;
    font-size: 10px;
  }
  .content-card .meta span { gap: 3px; }
  .content-card .meta .icon {
    width: 11px;
    height: 11px;
  }
  .content-card .badges { top: 6px; left: 6px; gap: 4px; }
  .content-card .badge {
    padding: 3px 5px;
    font-size: 8.5px;
    border-radius: 6px;
  }
  /* My Uploads: compact horizontal cards (thumb left, details right) */
  .manage-grid { grid-template-columns: 1fr; gap: 10px; }
  .upload-manage {
    display: grid;
    grid-template-columns: 104px 1fr;
    align-items: stretch;
  }
  .upload-manage-thumb { aspect-ratio: auto; height: 100%; min-height: 104px; }
  .upload-manage-body { padding: 9px 10px; gap: 6px; }
  .upload-manage-body h3 { font-size: 13.5px; }
  .meta-line { font-size: 11.5px; gap: 3px 8px; }
  .own-tools { gap: 6px; }
  .own-tools .btn-mini { padding: 6px 6px; font-size: 12px; }
  body { padding-bottom: 0; }
}
@media (min-width: 761px) {
  .footer { padding-bottom: 44px; }
}

/* ---------- Community rules layout refinement ---------- */
.legal-hub .legal-layout {
  grid-template-columns: minmax(130px, 170px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.legal-hub .legal-side {
  top: calc(var(--nav-h) + 18px);
  padding: 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
}

.legal-hub .legal-side a {
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.2;
}

.legal-hub .legal-content {
  min-width: 0;
  gap: 12px;
}

.legal-hub .legal-bento {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.legal-hub .legal-card {
  min-height: 0;
  padding: 14px 16px;
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.025)),
    rgba(15,15,19,.66);
  box-shadow: none;
}

.legal-hub .legal-card.danger {
  grid-column: 1 / -1;
  min-height: 0;
}

.legal-hub .legal-card:hover {
  transform: none;
  box-shadow: 0 18px 42px rgba(0,0,0,.22);
}

.legal-hub .legal-card h2 {
  font-size: clamp(19px, 1.7vw, 28px);
  line-height: 1.08;
  margin-bottom: 8px;
}

.legal-hub .legal-card h3 {
  font-size: 16px;
  line-height: 1.15;
  margin-bottom: 8px;
}

.legal-hub .legal-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}

.legal-hub .legal-timeline {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.legal-hub .legal-timeline h2 {
  grid-column: 1 / -1;
  margin: 0 0 2px;
}

.legal-hub .legal-timeline div {
  align-items: start;
  min-height: 0;
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  background: rgba(255,255,255,.04);
}

.legal-hub .severity {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

body[data-page="rules"] .legal-bento {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body[data-page="rules"] #posting,
body[data-page="rules"] #forbidden {
  grid-column: span 2;
  min-height: 0;
  padding: 16px 18px;
}

body[data-page="rules"] #forbidden {
  border-color: rgba(255, 79, 163, .34);
}

body[data-page="rules"] #forbidden h2 {
  font-size: clamp(22px, 2vw, 30px);
}

body[data-page="contact"] .support-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

/* FAQ answers read best as full-width rows, not cramped narrow columns. */
body[data-page="contact"] .legal-accordion {
  grid-template-columns: 1fr;
}

body[data-page="contact"] .support-grid .legal-card,
body[data-page="contact"] .legal-accordion details {
  min-height: 0;
}

.legal-hub .legal-accordion {
  gap: 10px;
}

.legal-hub .legal-accordion details {
  border-radius: 14px;
  background: rgba(255,255,255,.04);
}

.legal-hub .legal-accordion summary {
  padding: 14px 16px;
  font-size: 13px;
}

.legal-hub .legal-accordion p {
  padding: 0 16px 15px;
  font-size: 13px;
  line-height: 1.6;
}

@media (min-width: 1020px) {
  .legal-hub .legal-bento .legal-card:not(.danger) {
    max-width: none;
  }
}

@media (max-width: 1180px) {
  .legal-hub .legal-bento,
  .legal-hub .legal-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* In two columns the three feature cards leave an empty cell before the
     full-width banner. Stretch the last feature card so no space is wasted. */
  .legal-bento#overview .legal-card:nth-last-child(2) {
    grid-column: 1 / -1;
  }

  body[data-page="rules"] .legal-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="rules"] #posting,
  body[data-page="rules"] #forbidden {
    grid-column: span 1;
  }
}

/* Three short support cards stay in one row down to the mobile breakpoint,
   so two columns never leave a lone card with an empty cell beside it. */

@media (max-width: 760px) {
  .legal-hub .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-hub .legal-side {
    position: static;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px;
  }

  .legal-hub .legal-side a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .legal-hub .legal-bento,
  .legal-hub .legal-timeline {
    grid-template-columns: 1fr;
  }

  body[data-page="rules"] .legal-bento {
    grid-template-columns: 1fr;
  }

  .legal-hub .legal-card,
  body[data-page="rules"] #posting,
  body[data-page="rules"] #forbidden {
    grid-column: auto;
    min-height: 0;
    padding: 15px;
  }

  .legal-hub .legal-card h2,
  body[data-page="rules"] #forbidden h2 {
    font-size: 24px;
  }

  body[data-page="contact"] .support-grid,
  body[data-page="contact"] .legal-accordion {
    grid-template-columns: 1fr;
  }

  .legal-hub .legal-timeline h2 {
    grid-column: auto;
  }

  .legal-hub .legal-timeline div {
    min-height: 0;
  }
}

/* ---------- 24. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .bg-fx i, .bg-particles { display: none; }
}

/* ============================================================
   Rank badges & REP system
   8 rank tiers - badge effects upgrade per rank, user-themable
   via --bc (badge color). Effects: flat, outline, gradient,
   shine, glow, shimmer, aura, halo.
   ============================================================ */
@property --ha { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

.rank-badge {
  --bc: #FF2D95;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--bc) 45%, transparent);
  background: color-mix(in srgb, var(--bc) 12%, transparent);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .03em;
  white-space: nowrap;
  overflow: hidden;
  vertical-align: middle;
}
.rank-badge .icon { width: 14px; height: 14px; color: var(--bc); flex: 0 0 auto; }
.rank-badge b { font-weight: 800; }
.rank-badge.rb-sm { padding: 4px 10px; font-size: 11px; gap: 5px; }
.rank-badge.rb-sm .icon { width: 12px; height: 12px; }
.nav-rank { display: inline-flex; transition: transform var(--t-med) var(--spring); }
.nav-rank:hover { transform: translateY(-2px) scale(1.04); }
.byline .rank-badge, .comment-card .rank-badge, .profile-head .rank-badge { margin-left: 4px; }

/* Effect tiers (each rank unlocks the next) */
.rank-badge.fx-outline {
  border-color: color-mix(in srgb, var(--bc) 90%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bc) 40%, transparent);
}
.rank-badge.fx-gradient,
.rank-badge.fx-shine,
.rank-badge.fx-glow {
  background: linear-gradient(135deg, color-mix(in srgb, var(--bc) 42%, transparent), color-mix(in srgb, var(--bc) 12%, transparent));
  border-color: color-mix(in srgb, var(--bc) 65%, transparent);
}
.rank-badge.fx-shine::after,
.rank-badge.fx-aura::after,
.rank-badge.fx-halo::after {
  content: "";
  position: absolute; top: 0; bottom: 0; left: -60%;
  width: 45%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: skewX(-20deg);
  animation: badge-shine 3s var(--ease) infinite;
  pointer-events: none;
}
@keyframes badge-shine { 0% { left: -60%; } 55%, 100% { left: 135%; } }
.rank-badge.fx-glow { animation: badge-glow 2.4s ease-in-out infinite; }
@keyframes badge-glow {
  0%, 100% { box-shadow: 0 0 6px color-mix(in srgb, var(--bc) 35%, transparent); }
  50%      { box-shadow: 0 0 16px color-mix(in srgb, var(--bc) 75%, transparent); }
}
.rank-badge.fx-shimmer,
.rank-badge.fx-aura,
.rank-badge.fx-halo {
  border-color: color-mix(in srgb, var(--bc) 70%, transparent);
  background: linear-gradient(110deg,
    color-mix(in srgb, var(--bc) 16%, transparent) 0%,
    color-mix(in srgb, var(--bc) 50%, transparent) 25%,
    color-mix(in srgb, var(--bc) 16%, transparent) 50%);
  background-size: 220% 100%;
  animation: badge-shimmer 3s linear infinite;
}
@keyframes badge-shimmer { from { background-position: 0% center; } to { background-position: -220% center; } }
.rank-badge.fx-aura {
  animation: badge-shimmer 3s linear infinite, badge-glow 2.4s ease-in-out infinite;
}
.rank-badge.fx-halo {
  animation: badge-shimmer 3s linear infinite, badge-glow 2s ease-in-out infinite;
}
.rank-badge.fx-halo::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from var(--ha), var(--bc), rgba(255, 255, 255, .85), var(--bc));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: halo-spin 3.2s linear infinite;
  pointer-events: none;
}
@keyframes halo-spin { to { --ha: 360deg; } }

/* ---------- Feature additions: profile, storage, notifications, builder ---------- */
.compact { min-height: 38px; padding: 9px 14px; border-radius: 10px; font-size: 13px; }
.byline-user { color: #fff; font-weight: 800; }
.byline-user:hover { color: var(--pink-3); }

.profile-hero { overflow: visible; }
.profile-cover { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.profile-avatar-wrap { position: relative; width: clamp(88px, 12vw, 116px); height: clamp(88px, 12vw, 116px); }
.profile-avatar {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 2px solid rgba(255, 94, 183, .45);
  background: radial-gradient(circle at 35% 20%, rgba(255, 94, 183, .18), rgba(255,255,255,.05));
  overflow: hidden;
  box-shadow: 0 0 34px rgba(255, 45, 149, .18);
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar .icon { width: 42px; height: 42px; color: var(--pink-3); }
.profile-edit-fab {
  position: absolute; right: 1px; bottom: 4px;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--pink-grad);
  box-shadow: var(--pink-glow);
}
.profile-edit-fab .icon { width: 15px; height: 15px; }
.profile-copy { min-width: 0; }
.profile-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.profile-title-row h1 { margin: 0; overflow-wrap: anywhere; font-size: clamp(24px, 4vw, 38px); }
.profile-bio { max-width: 70ch; margin: 6px 0 12px; color: var(--text-2); font-size: 14.5px; line-height: 1.45; }
.profile-actions-row { display: flex; gap: 10px; flex-wrap: wrap; }
.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}
.profile-stat {
  min-height: 68px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.035);
  border: 1px solid var(--border);
  display: grid;
  align-content: center;
  gap: 2px;
  color: var(--text);
  text-align: left;
}
button.profile-stat {
  width: 100%;
  font: inherit;
  appearance: none;
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
button.profile-stat:hover {
  border-color: rgba(255, 94, 183, .45);
  background: rgba(255, 45, 149, .08);
  transform: translateY(-1px);
}
.profile-stat strong { display: block; font-size: clamp(17px, 2vw, 22px); line-height: 1; font-family: var(--font-display); }
.profile-stat span { color: var(--text-3); font-size: 10.5px; line-height: 1.1; text-transform: uppercase; letter-spacing: .04em; }
.profile-tab { display: none; }
.profile-tab.active { display: block; }
.onboarding-panel { margin-inline: auto; }
.profile-dialog { width: min(520px, 94vw); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dialog-head h3 { margin: 0; }
.profile-photo-picker { display: grid !important; justify-items: center; gap: 10px; cursor: pointer; }
.profile-photo-picker span {
  position: relative;
  width: 104px; height: 104px;
  display: grid; place-items: center;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 94, 183, .45);
  background: rgba(255,255,255,.05);
}
.profile-photo-picker img { width: 100%; height: 100%; object-fit: cover; }
.profile-photo-picker > b {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--pink-3);
}
.profile-photo-picker input { display: none; }
.profile-tab-row { width: auto; }
.follow-dialog { width: min(560px, 94vw); }
.follow-list { display: grid; gap: 9px; max-height: min(520px, 62vh); overflow-y: auto; padding-right: 2px; }
.follow-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.035);
}
.follow-row-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--text);
}
.follow-row-main strong { display: block; overflow-wrap: anywhere; }
.follow-row-main small { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-top: 3px; }
.follow-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 94, 183, .35);
  background: rgba(255,255,255,.05);
}
.follow-avatar img { width: 100%; height: 100%; object-fit: cover; }
.follow-avatar .icon { width: 21px; height: 21px; color: var(--pink-3); }
.follow-private,
.rep-modal-body {
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
  padding: 18px 8px 6px;
}
.follow-private .icon { width: 28px; height: 28px; color: var(--pink-3); }
.follow-private p, .follow-empty { margin: 0; }
.rep-modal-body > strong { font-family: var(--font-display); font-size: 28px; line-height: 1; }
.rep-modal-body .rank-progress { width: min(280px, 100%); }

.comment-reply {
  margin: 8px 0 0 12px;
  padding: 8px 11px;
  border-left: 2px solid rgba(255, 94, 183, .4);
  border-radius: 0 10px 10px 0;
  background: rgba(255,255,255,.035);
  font-size: 13.5px;
}
.comment-reply p { margin: 3px 0 0; font-size: 13.5px; line-height: 1.4; }
.comment-reply-form { margin-top: 9px; }
.comment-reply-form .comment-field textarea { min-height: 40px; padding: 9px 44px 9px 12px; font-size: 13.5px; }
.comment-reply-form .comment-send { width: 30px; height: 30px; }
.comment-reply-form .comment-send .icon { width: 15px; height: 15px; }

/* Report modal — choose a violation, Facebook-style */
.report-reasons { display: grid; gap: 8px; margin: 16px 0 12px; }
.report-reason {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .04);
  color: var(--text-2);
  font-size: 14px; font-weight: 600;
  text-align: left;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.report-reason::before {
  content: "";
  flex: 0 0 auto;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid var(--text-3);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.report-reason:hover { border-color: rgba(255, 94, 183, .45); color: #fff; }
.report-reason.active { border-color: var(--pink); background: rgba(255, 45, 149, .1); color: #fff; }
.report-reason.active::before { border-color: var(--pink); box-shadow: inset 0 0 0 4px var(--pink); }
.report-detail { min-height: 64px; margin-bottom: 12px; }
.report-modal .primary { width: 100%; }

.hashtag-suggest {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}
.hashtag-suggest button {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 94, 183, .28);
  background: rgba(255, 45, 149, .08);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
}
.hashtag-suggest span { color: var(--text-3); font-weight: 600; }
.hashtag-hit strong { color: var(--pink-3); }

.collage-shell { display: grid; gap: 10px; }
.collage-controls { display: flex; flex-wrap: wrap; gap: 6px; }
.collage-controls button {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 800;
}
.collage-controls button.active { color: #fff; background: var(--pink-grad); border-color: transparent; }
.b-collage {
  display: grid;
  grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
  gap: 8px;
}
.b-collage > .b-media-wrap,
.b-collage > .b-media {
  aspect-ratio: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.b-media-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background: var(--bg-2);
  border: 1px solid transparent;
}
.b-media-wrap.selected { border-color: rgba(255, 94, 183, .72); box-shadow: 0 0 0 2px rgba(255,45,149,.16); }
.b-media-wrap .b-media { width: 100%; height: 100%; object-fit: cover; max-height: none; border-radius: inherit; }
.bl[data-type="media"] .b-media-wrap .b-media { height: auto; max-height: 360px; object-fit: contain; }
.bl[data-type="collage"] .b-media-wrap .b-media { height: 100%; max-height: none; object-fit: cover; }
.b-overlay-btn {
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 50%);
  transform: translate(-50%, -50%);
  z-index: 3;
  cursor: grab;
  box-shadow: 0 10px 24px rgba(0,0,0,.32);
  white-space: nowrap;
  touch-action: none;
}
.b-overlay-btn:active { cursor: grabbing; }

.builder-view .b-collage {
  display: grid;
  grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0;
}
.builder-view .b-media-wrap {
  position: relative;
  margin: 8px 0;
  border-radius: var(--r-md);
  overflow: hidden;
}
.builder-view .b-collage .b-media-wrap,
.builder-view .b-collage .media-item {
  aspect-ratio: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
}
.builder-view .b-media-wrap > .media-item { width: 100%; display: block; margin: 0; }
.builder-view .b-overlay-btn.content-btn {
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 50%);
  transform: translate(-50%, -50%);
  z-index: 4;
  margin: 0;
}
.upload-steps { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--text-3); font-size: 12.5px; }
.upload-steps b { color: var(--pink-3); }
.upload-progress progress::-webkit-progress-value { background: var(--pink-grad); border-radius: 999px; }
.upload-progress progress::-webkit-progress-bar { background: rgba(255,255,255,.08); border-radius: 999px; }

.cloud-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(310px, 100%), 1fr)); gap: 14px; margin: 16px 0 22px; }
.cloud-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
}
.cloud-card.active { border-color: rgba(61, 220, 151, .5); box-shadow: 0 0 24px rgba(61,220,151,.08); }
.cloud-card h3 { margin: 0 0 4px; font-size: 16px; }
.cloud-card p { margin: 0 0 6px; }
.cloud-ring {
  width: 82px; height: 82px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: conic-gradient(var(--pink) calc(var(--p, 0) * 1%), rgba(255,255,255,.09) 0);
  position: relative;
}
.cloud-ring::after { content: ""; position: absolute; inset: 8px; border-radius: inherit; background: var(--bg-2); }
.cloud-ring strong { position: relative; z-index: 1; font-size: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.danger-zone { border-color: rgba(255, 92, 122, .26); }
.account-delete-trigger {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 92, 122, .09);
}
.delete-dialog p { margin-bottom: 0; }
.delete-countdown {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px;
  border-radius: 12px;
  background: rgba(255,255,255,.05);
  color: var(--warning);
  font-weight: 800;
}
.check-row { display: flex !important; align-items: center; gap: 8px; }
.check-row input { width: auto !important; margin: 0 !important; }

.notify-modal section { width: min(520px, calc(100% - 24px)); }
.notify-list { display: grid; gap: 9px; margin-top: 12px; max-height: 58vh; overflow-y: auto; }
.notify-item {
  display: grid;
  gap: 3px;
  padding: 12px 13px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
}
.notify-item strong { color: var(--pink-3); text-transform: capitalize; }
.notify-item span { color: var(--text-2); }
.notify-item small { color: var(--text-3); }

.media-lightbox {
  position: fixed; inset: 0; z-index: 1600;
  display: grid; place-items: center;
  padding: clamp(18px, 3vw, 36px) clamp(60px, 7vw, 104px);
  background: rgba(0,0,0,.94);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-med) var(--ease);
}
body.media-open { overflow: hidden; }
.media-lightbox.open { opacity: 1; pointer-events: auto; }
.media-lightbox .lb-close {
  position: fixed; top: 16px; right: 16px; z-index: 2;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 28px;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--spring);
}
.media-lightbox .lb-close:hover { background: rgba(255,255,255,.16); transform: scale(1.06); }
.media-lightbox .lb-nav {
  position: fixed; top: 50%; z-index: 2;
  transform: translateY(-50%);
  display: none; place-items: center;
  width: 50px; height: 50px;
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--spring);
}
.media-lightbox .lb-nav:hover { background: rgba(255,45,149,.55); transform: translateY(-50%) scale(1.08); }
.media-lightbox .lb-nav .icon { width: 26px; height: 26px; stroke-width: 2.2; }
.media-lightbox .lb-prev { left: 16px; }
.media-lightbox .lb-next { right: 16px; }
.media-lightbox.has-nav .lb-nav { display: grid; }
.media-lightbox .lb-stage { width: 100%; height: 100%; display: grid; place-items: center; }
.media-lightbox-item {
  display: block;
  width: auto;
  height: auto;
  max-width: calc(100vw - 208px);
  max-height: calc(100vh - 72px);
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .55);
  -webkit-user-drag: none;
  user-select: none;
}
.media-lightbox video.media-lightbox-item {
  width: min(100%, 1280px);
  height: auto;
}

@media (max-width: 760px) {
  .primary, .ghost, .action-btn {
    min-height: 36px;
    padding: 8px 11px;
    border-radius: 10px;
    font-size: 12.5px;
    gap: 6px;
  }
  .primary .icon, .ghost .icon, .action-btn .icon { width: 16px; height: 16px; }
  .btn-lg { min-height: 38px; padding: 9px 12px; font-size: 13px; border-radius: 10px; }
  .btn-mini { padding: 6px 9px; font-size: 12px; border-radius: 9px; }
  .tb { min-height: 30px; padding: 0 8px; font-size: 12px; border-radius: 8px; }
  .tab-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    padding: 4px;
    gap: 4px;
    border-radius: 14px;
  }
  .tab-row button {
    min-width: 0;
    padding: 7px 6px;
    border-radius: 10px;
    font-size: 11.5px;
    white-space: nowrap;
  }
  .profile-tab-row { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
  .content-view, .comments, .builder-view, .media-stack { max-width: 100%; overflow-x: hidden; }
  .content-view, .comments { padding: 13px 13px; border-radius: 16px; margin-bottom: 12px; }
  .content-view h1 { font-size: clamp(17px, 4.6vw, 21px); margin-bottom: 5px; }
  .post-meta { margin-bottom: 8px; font-size: 11.5px; }
  .comment-card { padding: 10px 12px; }
  /* All four actions on one row; icon-only to stay minimal (keep the like count) */
  .actions { display: flex; flex-wrap: nowrap; gap: 6px; }
  .actions .action-btn { flex: 1 1 0; min-width: 0; padding: 8px 4px; min-height: 38px; gap: 4px; }
  .actions .action-btn span { display: none; }
  .actions .action-btn[data-like] span { display: inline; }
  .uploader-card { padding: 7px 9px; gap: 8px; margin-top: 10px; }
  .uploader-avatar { width: 36px; height: 36px; border-radius: 11px; }
  .uploader-avatar .icon { width: 19px; height: 19px; }
  .uploader-name { font-size: 12.5px; }
  .uploader-followers { font-size: 10.5px; }
  .uf-inline { display: none; }   /* mobile stacks followers above the button instead */
  .uf-stacked { display: block; }
  .uploader-action .compact, .uploader-action .btn-mini { min-height: 30px; padding: 6px 10px; font-size: 12px; }
  .comment-field textarea { min-height: 42px; }
  .media-lightbox .lb-nav { width: 42px; height: 42px; }
  .media-lightbox .lb-prev { left: 8px; }
  .media-lightbox .lb-next { right: 8px; }
  .media-lightbox .lb-nav .icon { width: 22px; height: 22px; }
  .media-lightbox { padding: 14px 12px; }
  .media-lightbox-item {
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 34px);
    border-radius: 10px;
  }
  .profile-hero { padding: 18px 16px; border-radius: 18px; }
  .profile-cover { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 10px; }
  .profile-avatar-wrap { width: 84px; height: 84px; }
  .profile-edit-fab { width: 28px; height: 28px; }
  .profile-edit-fab .icon { width: 13px; height: 13px; }
  .profile-title-row, .profile-actions-row { justify-content: center; }
  .profile-title-row { gap: 6px; }
  .profile-title-row h1 { font-size: clamp(22px, 7vw, 30px); line-height: 1.05; }
  .profile-title-row .rank-badge { padding: 4px 8px; font-size: 10.5px; }
  .profile-bio { margin: 4px auto 10px; font-size: 13px; line-height: 1.35; max-width: 30ch; text-align: center; }
  .profile-actions-row .primary { min-height: 34px; padding: 8px 12px; font-size: 12px; border-radius: 10px; }
  .profile-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    margin-top: 12px;
    width: 100%;
  }
  .profile-stat {
    min-height: 48px;
    padding: 8px 7px;
    border-radius: 10px;
    text-align: center;
  }
  .profile-stat strong { font-size: 15px; }
  .profile-stat span {
    font-size: 8px;
    line-height: 1;
    letter-spacing: .02em;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .form-grid { grid-template-columns: 1fr; }
  .cloud-card { grid-template-columns: 74px 1fr; padding: 12px; }
  .cloud-ring { width: 66px; height: 66px; }
  .b-collage, .builder-view .b-collage { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-btn { padding: 8px 12px; font-size: 12px; border-radius: 9px; }
  .builder-toolbar { gap: 5px; padding: 7px; }
  .builder-blocks { min-height: 120px; padding: 10px; }
  .builder-blocks:empty::before { min-height: 100px; font-size: 12.5px; }
  .b-media { max-height: 280px; }
  .builder-toolbar .tb:nth-last-child(-n+3) { flex: 1 1 30%; justify-content: center; }
  .visibility-picker { grid-template-columns: 1fr; }
  .follow-row { grid-template-columns: 1fr; }
  .follow-row .primary { width: 100%; justify-content: center; }
  .rank-choice-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .rank-choice { min-height: 38px; padding: 7px 8px; }
  .bottom-nav { height: calc(58px + var(--safe-b)); padding-inline: 4px; }
  .bottom-nav a, .bottom-nav button { min-width: 48px; min-height: 44px; font-size: 9.5px; padding: 5px 2px; }
  .bottom-nav .icon { width: 19px; height: 19px; }
  .bottom-nav .nav-fab { width: 46px; height: 46px; min-width: 46px; border-radius: 14px; }
}

/* ---------- Badge studio (settings) ---------- */
.studio-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 22px; align-items: start; }
.studio-preview {
  display: grid; gap: 10px; justify-items: center;
  padding: 22px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-glass);
  background: radial-gradient(220px 130px at 50% 0%, rgba(255, 45, 149, .14), transparent 70%), rgba(255, 255, 255, .04);
  text-align: center;
  position: sticky; top: calc(var(--nav-h) + 18px);
}
.studio-label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); font-weight: 700; }
.studio-stage { min-height: 52px; display: grid; place-items: center; padding: 8px 0; }
.studio-stage .rank-badge { transform: scale(1.25); }
.studio-rep {
  font-family: var(--font-display); font-size: 22px; font-weight: 800;
  background: var(--pink-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.rank-progress { width: 100%; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.rank-progress span { display: block; height: 100%; border-radius: inherit; background: var(--pink-grad); box-shadow: 0 0 12px rgba(255, 45, 149, .5); transition: width .8s var(--ease); }
.studio-controls { display: grid; gap: 10px; }
.studio-controls h3 { margin: 10px 0 0; font-size: 15px; }
.studio-controls .primary { justify-self: start; margin-top: 8px; }
.swatch-row { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  width: 34px; height: 34px;
  border-radius: 11px;
  background: var(--sw);
  border: 2px solid transparent;
  cursor: pointer;
  display: grid; place-items: center;
  transition: transform var(--t-fast) var(--spring), border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.swatch:hover { transform: scale(1.12); }
.swatch.active { border-color: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--sw) 45%, transparent); }
.swatch.locked { opacity: .35; cursor: not-allowed; }
.swatch.locked .icon { width: 15px; height: 15px; color: #fff; }
.effect-row { display: flex; flex-wrap: wrap; gap: 9px; }
.effect-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--border-glass);
  background: var(--card);
  font-size: 12.5px; font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), background var(--t-med) var(--ease), transform var(--t-fast) var(--spring);
}
.effect-chip:hover { color: #fff; border-color: rgba(255, 94, 183, .45); transform: translateY(-1px); }
.effect-chip.active { background: var(--pink-grad); color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(255, 45, 149, .35); }
.effect-chip.locked { opacity: .4; cursor: not-allowed; }
.effect-chip .icon { width: 13px; height: 13px; }

/* ---------- Rank ladder page ---------- */
.my-rank-strip {
  display: flex; align-items: center; gap: 18px;
  margin-top: 20px; padding: 16px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, .045);
  max-width: 580px;
}
.my-rank-meta { flex: 1; display: grid; gap: 7px; min-width: 0; }
.my-rank-meta strong { font-family: var(--font-display); font-size: 20px; }
.my-rank-meta a { color: var(--pink-3); font-weight: 600; }
.rank-ladder { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(255px, 100%), 1fr)); gap: 16px; margin-top: 16px; }
.rank-tier {
  position: relative;
  display: grid; gap: 12px; justify-items: start; align-content: start;
  padding: 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--card);
  transition: transform var(--t-med) var(--ease), border-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.rank-tier:hover { transform: translateY(-4px); border-color: rgba(255, 94, 183, .35); box-shadow: var(--shadow-lift); }
.rank-tier.current { border-color: rgba(255, 45, 149, .55); box-shadow: 0 0 30px rgba(255, 45, 149, .14); }
.tier-req { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.tier-req strong { font-family: var(--font-display); font-size: 17px; }
.tier-mult { padding: 3px 10px; border-radius: 999px; background: rgba(255, 45, 149, .14); color: var(--pink-3); font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.tier-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.tier-perks li { display: flex; gap: 8px; align-items: flex-start; color: var(--text-2); font-size: 13.5px; line-height: 1.5; }
.tier-perks .icon { width: 14px; height: 14px; color: var(--success); margin-top: 2px; flex: 0 0 auto; }
.tier-you { position: absolute; top: 14px; right: 14px; padding: 4px 10px; border-radius: 999px; background: var(--pink-grad); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; }
.upload-rep-note { display: flex; align-items: flex-start; gap: 8px; }
.upload-rep-note .icon { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 2px; color: var(--pink-2, #ff6ab5); }
.upload-rep-note b { color: var(--pink-2, #ff6ab5); }
.rep-table { table-layout: fixed; }
.rep-table td .icon, .rep-table th .icon { width: 15px; height: 15px; vertical-align: -2px; color: var(--pink-3); }

/* Ranks page — compact, banner-style hero + minimal ladder on mobile only */
@media (max-width: 760px) {
  body[data-page="ranks"] .hero-strip { padding: 13px 14px; border-radius: 16px; margin-bottom: 12px; }
  body[data-page="ranks"] .hero-strip h1 { font-size: clamp(19px, 5.6vw, 24px); margin-bottom: 5px; }
  body[data-page="ranks"] .hero-strip p {
    font-size: 12px; line-height: 1.4; margin-bottom: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  body[data-page="ranks"] .my-rank-strip { margin-top: 12px; padding: 10px 12px; gap: 10px; max-width: none; }
  body[data-page="ranks"] .my-rank-meta strong { font-size: 16px; }
  body[data-page="ranks"] .my-rank-meta small { font-size: 11px; }
  body[data-page="ranks"] .rank-ladder { grid-template-columns: 1fr; gap: 10px; margin-top: 12px; }
  body[data-page="ranks"] .rank-tier { padding: 13px; gap: 8px; border-radius: 14px; }
  body[data-page="ranks"] .rank-tier:hover { transform: none; }
  body[data-page="ranks"] .tier-req strong { font-size: 15px; }
  body[data-page="ranks"] .tier-mult { font-size: 10.5px; padding: 2px 8px; }
  body[data-page="ranks"] .tier-perks li { font-size: 12.5px; line-height: 1.4; }
  body[data-page="ranks"] .tier-you { top: 11px; right: 11px; font-size: 9.5px; padding: 3px 8px; }
  body[data-page="ranks"] .rep-table,
  body[data-page="ranks"] .rep-table thead,
  body[data-page="ranks"] .rep-table tbody,
  body[data-page="ranks"] .rep-table tr,
  body[data-page="ranks"] .rep-table td {
    display: block;
  }
  body[data-page="ranks"] .rep-table {
    border-collapse: separate;
    border-spacing: 0;
  }
  body[data-page="ranks"] .rep-table thead {
    display: none;
  }
  body[data-page="ranks"] .rep-table tbody {
    display: grid;
    gap: 10px;
  }
  body[data-page="ranks"] .rep-table tr {
    padding: 12px 13px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, .035);
  }
  body[data-page="ranks"] .rep-table tr:hover td {
    background: transparent;
  }
  body[data-page="ranks"] .rep-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    text-align: right;
    font-size: 13.5px;
  }
  body[data-page="ranks"] .rep-table td:first-child {
    justify-content: flex-start;
    padding-top: 0;
    color: #fff;
    font-weight: 800;
    text-align: left;
  }
  body[data-page="ranks"] .rep-table td:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }
  body[data-page="ranks"] .rep-table td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    color: var(--text-3);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
    text-align: left;
    text-transform: uppercase;
  }
  body[data-page="ranks"] .rep-table td:first-child::before {
    display: none;
  }
  body[data-page="ranks"] .rep-table td .icon {
    flex: 0 0 auto;
  }
}

/* ---------- Upload type locks / rank prompts ---------- */
.type-locked { opacity: .5; cursor: not-allowed; }
.type-locked .icon:first-child { color: var(--pink-3); }
.action-btn.rank-locked { border-style: dashed; color: var(--text-3); }

/* ---------- Admin violation alert ---------- */
.violation-alert {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 18px; padding: 16px 18px;
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 92, 122, .45);
  background: rgba(255, 92, 122, .1);
  animation: fade-up .5s var(--ease) both;
}
.violation-alert > .icon { width: 26px; height: 26px; color: var(--danger); flex: 0 0 auto; }
.violation-alert div { flex: 1; display: grid; gap: 2px; min-width: 0; }
.violation-alert span { color: var(--text-2); font-size: 13.5px; }
.violation-alert .primary { padding: 10px 18px; min-height: 0; flex: 0 0 auto; }

@media (max-width: 860px) {
  .studio-grid { grid-template-columns: 1fr; }
  .my-rank-strip { flex-direction: column; align-items: flex-start; }
  .nav-rank .rank-badge b { display: none; }
  .nav-rank .rank-badge { padding: 6px 9px; }
}

/* ---------- Privacy policy polish ---------- */
.privacy-policy .legal-hero {
  align-items: center;
}

.privacy-policy .legal-content {
  gap: 16px;
}

.privacy-policy .legal-bento {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.privacy-policy .legal-card {
  min-height: 0;
}

.privacy-policy .legal-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.privacy-policy .legal-timeline h2 {
  grid-column: 1 / -1;
}

.privacy-policy .legal-timeline div {
  align-items: flex-start;
  min-height: 0;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  background: rgba(255,255,255,.045);
}

.privacy-policy .legal-accordion details {
  background: rgba(20, 20, 28, .74);
}

.privacy-policy .legal-accordion summary {
  font-size: .98rem;
}

@media (max-width: 1180px) {
  .privacy-policy .legal-bento,
  .privacy-policy .legal-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .privacy-policy .legal-hero {
    padding: 13px 14px 12px;
  }

  .privacy-policy .trust-badges {
    gap: 5px;
  }

  .privacy-policy .trust-badges span {
    padding: 4px 7px;
    font-size: 9.5px;
  }

  .privacy-policy .legal-bento,
  .privacy-policy .legal-timeline {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .privacy-policy .legal-card {
    min-height: 0;
    padding: 15px;
  }

  .privacy-policy .legal-timeline {
    padding: 14px;
  }

  .privacy-policy .legal-timeline div {
    min-height: 0;
  }

  .privacy-policy .legal-accordion summary {
    padding: 15px;
    font-size: .92rem;
  }

  .privacy-policy .legal-accordion p,
  .privacy-policy .legal-accordion ul,
  .privacy-policy .legal-accordion ol {
    font-size: .9rem;
    line-height: 1.6;
  }
}
