@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;600;700&family=Playfair+Display:ital,wght@0,600;1,600&family=JetBrains+Mono:wght@400;500;700&family=Space+Mono:wght@400;700&family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700&family=Outfit:wght@400;500;600;700&family=Raleway:wght@400;500;600;700&family=Lora:wght@400;500;600;700&family=Bebas+Neue&display=swap');

:root {
  --bg: #050505;
  --bg-card: rgba(18, 18, 20, 0.62);
  --bg-input: rgba(255, 255, 255, 0.035);
  --border: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(255, 255, 255, 0.22);
  --text: #ffffff;
  --text-dim: #a1a1aa;
  --text-muted: #71717a;
  --accent: #ffffff;
  --accent-rgb: 255, 255, 255;
  --danger: #fb7185;
  --success: #4ade80;
  --radius: 16px;
  --card-radius: 28px;
  --transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --anim-speed: 1;
  --font-main: 'Inter', sans-serif;
}

/* ---------------------------------------------------------------- BASE */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
}

button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
::selection { background: rgba(var(--accent-rgb), 0.28); color: #fff; }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.24); background-clip: padding-box; }

/* Ambient light for app pages (login / studio / admin) */
body.app-page { position: relative; isolation: isolate; }
body.app-page::before {
  content: '';
  position: fixed;
  inset: -35%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(35% 35% at 18% 15%, rgba(129, 140, 248, 0.16), transparent 72%),
    radial-gradient(30% 30% at 82% 12%, rgba(var(--accent-rgb), 0.10), transparent 72%),
    radial-gradient(42% 42% at 55% 92%, rgba(56, 189, 248, 0.11), transparent 72%);
  filter: blur(24px);
  animation: ambientDrift 24s ease-in-out infinite alternate;
}
body.app-page::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 78%);
}

/* ------------------------------------------------------------- CONTAINER */
.container {
  width: 100%;
  max-width: 440px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 46px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
}
.profile-page .container {
  max-width: 480px;
  justify-content: flex-start;
  padding-top: 68px;
  padding-bottom: 80px;
}

/* ----------------------------------------------------------------- BRAND */
.brand { text-align: center; animation: fadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; }
.logo {
  display: inline-block;
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 1;
  background: linear-gradient(135deg, #ffffff 5%, #a1a1aa 48%, #ffffff 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 8px 30px rgba(255, 255, 255, 0.12));
}
.tagline { margin-top: 12px; font-size: 14px; color: var(--text-dim); letter-spacing: 0.01em; }
.feature-pills { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.feature-pill {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 6px 11px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(8px);
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.feature-pill:nth-child(1) { animation-delay: 0.12s; }
.feature-pill:nth-child(2) { animation-delay: 0.2s; }
.feature-pill:nth-child(3) { animation-delay: 0.28s; }

/* ------------------------------------------------------------------ CARD */
.card {
  position: relative;
  background:
    linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
    linear-gradient(140deg, rgba(255, 255, 255, 0.20), rgba(255, 255, 255, 0.02) 38%, rgba(255, 255, 255, 0.10)) border-box;
  border: 1px solid transparent;
  border-radius: var(--card-radius);
  padding: 36px 30px;
  backdrop-filter: blur(34px) saturate(140%);
  -webkit-backdrop-filter: blur(34px) saturate(140%);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: cardIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.1s;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 28%);
}
.card > * { position: relative; }

/* ------------------------------------------------------------------ TABS */
.tabs {
  display: flex;
  gap: 6px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 28px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative;
  flex: 1;
  padding: 11px 14px;
  background: transparent;
  color: var(--text-dim);
  border-radius: 11px;
  font-weight: 600;
  font-size: 13px;
  border: none;
  white-space: nowrap;
  box-shadow: none;
  transition: color 0.25s, background 0.25s, transform 0.25s;
}
.tab::after { display: none; }
.tab:hover { color: #fff; background: rgba(255, 255, 255, 0.045); transform: none; box-shadow: none; }
.tab:hover::after { display: none; }
.tab.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.06));
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  animation: tabPop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.tab.active::after {
  display: block;
  content: '';
  position: absolute;
  left: 22%; right: 22%; bottom: -8px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
  animation: tabLine 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ----------------------------------------------------------------- FORMS */
input, textarea, select {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  margin-bottom: 14px;
  outline: none;
  font-size: 14px;
  transition: var(--transition);
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }
input:hover, textarea:hover, select:hover { border-color: rgba(255, 255, 255, 0.15); background: rgba(255, 255, 255, 0.05); }
input:focus, textarea:focus, select:focus {
  border-color: rgba(var(--accent-rgb), 0.5);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.08), 0 12px 30px rgba(0, 0, 0, 0.22);
}
textarea { resize: vertical; min-height: 86px; line-height: 1.6; }
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
}
option { background: #111114; color: #fff; }
input[type='color'] {
  height: 56px;
  padding: 5px;
  cursor: pointer;
  border-radius: 14px;
}
input[type='color']::-webkit-color-swatch-wrapper { padding: 0; }
input[type='color']::-webkit-color-swatch { border: none; border-radius: 9px; }
input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  padding: 0;
  margin: 8px 0 16px;
  border: none;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), rgba(255, 255, 255, 0.14));
  cursor: pointer;
}
input[type='range']:focus { box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.08); }
input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid #111;
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.6), 0 4px 14px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s;
}
input[type='range']::-webkit-slider-thumb:hover { transform: scale(1.18); }
input[type='range']::-moz-range-thumb {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid #111;
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.6);
}

label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-dim);
  margin: 0 0 8px 2px;
}

/* --------------------------------------------------------------- BUTTONS */
button {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 14px 18px;
  background: linear-gradient(135deg, #ffffff, #dcdce1);
  border: none;
  border-radius: 14px;
  color: #09090b;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(255, 255, 255, 0.09);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s, filter 0.25s;
}
button::after {
  content: '';
  position: absolute;
  top: 0; left: -130%;
  width: 55%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  transform: skewX(-22deg);
  transition: left 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
button:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(255, 255, 255, 0.16); filter: brightness(1.03); }
button:hover::after { left: 135%; }
button:active { transform: translateY(0) scale(0.985); }
button:disabled { opacity: 0.6; cursor: wait; transform: none; box-shadow: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.btn-secondary {
  background: var(--bg-input);
  color: var(--text);
  border: 1px solid var(--border);
  font-weight: 600;
  box-shadow: none;
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.08); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25); }
.btn-danger { background: rgba(251, 113, 133, 0.10); color: #fda4af; border: 1px solid rgba(251, 113, 133, 0.22); box-shadow: none; font-weight: 600; }
.btn-danger:hover { background: rgba(251, 113, 133, 0.18); box-shadow: 0 8px 24px rgba(251, 113, 133, 0.12); }
.btn-ghost { background: transparent; color: var(--text-dim); border: 1px solid var(--border); box-shadow: none; }

/* ----------------------------------------------------------- MISC LAYOUT */
.header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.045em; line-height: 1.15; }
h2 { font-size: 18px; letter-spacing: -0.03em; }
h3 { font-size: 14px; letter-spacing: -0.01em; }
.sub { color: var(--text-muted); font-size: 12px; margin-top: 5px; word-break: break-all; }
.divider { display: flex; align-items: center; gap: 14px; color: var(--text-muted); font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin: 34px 0 20px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); }
.hidden { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.error, .success {
  display: none;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.45;
}
.error { background: rgba(251, 113, 133, 0.08); border: 1px solid rgba(251, 113, 133, 0.22); color: #fda4af; }
.success { background: rgba(74, 222, 128, 0.08); border: 1px solid rgba(74, 222, 128, 0.2); color: #86efac; }
.error.show, .success.show { display: block; animation: msgIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both; }
.error a { color: inherit; text-decoration: underline; }

.telegram-cta { text-align: center; font-size: 12px; color: var(--text-muted); padding-top: 22px; margin-top: 4px; border-top: 1px solid var(--border); }
.telegram-cta a { color: #fff; text-decoration: none; border-bottom: 1px dashed rgba(255, 255, 255, 0.35); transition: color 0.2s, border-color 0.2s; }
.telegram-cta a:hover { color: var(--accent); border-color: var(--accent); }

.fade-in { animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
.slide-up { animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; }
.tab-panel-enter { animation: tabPanelIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) both; }

/* ------------------------------------------------------------------ TOAST */
.toast {
  position: fixed;
  left: 50%; bottom: 28px;
  z-index: 10000;
  transform: translate(-50%, 24px);
  opacity: 0;
  pointer-events: none;
  padding: 12px 20px;
  border-radius: 14px;
  background: rgba(20, 20, 24, 0.92);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  font-size: 13px;
  font-weight: 500;
  transition: opacity 0.3s, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error-toast { border-color: rgba(251, 113, 133, 0.35); color: #fda4af; }

/* --------------------------------------------------------------- DASHBOARD */
.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 28px;
  max-width: 1340px;
  margin: 0 auto;
  padding: 38px 24px 70px;
  align-items: start;
}
.dashboard-layout > .card { padding: 34px; }
@media (max-width: 1080px) {
  .dashboard-layout { grid-template-columns: 1fr; max-width: 760px; }
  .live-preview-panel { display: none; }
}

.live-preview-panel {
  position: sticky;
  top: 38px;
  height: calc(100vh - 76px);
  background: #000;
  border-radius: var(--card-radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  animation: cardIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both;
}
.preview-header {
  padding: 12px 14px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-shrink: 0;
}
.preview-title { display: inline-flex; align-items: center; gap: 8px; }
.preview-title::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px var(--success); animation: pulseDot 2s infinite; }
.device-switch { display: flex; gap: 3px; padding: 3px; border: 1px solid var(--border); border-radius: 9px; background: rgba(255, 255, 255, 0.035); }
.device-btn { width: 28px; height: 22px; padding: 0; border-radius: 6px; background: transparent; color: var(--text-muted); font-size: 12px; box-shadow: none; display: grid; place-items: center; }
.device-btn::after { display: none; }
.device-btn:hover { transform: none; box-shadow: none; color: #fff; }
.device-btn.active { background: rgba(255, 255, 255, 0.13); color: #fff; }
.preview-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 16px; overflow: hidden; background: radial-gradient(circle at 50% -10%, rgba(var(--accent-rgb), 0.09), transparent 62%); }
.preview-frame-wrap { width: 100%; height: 100%; border-radius: 14px; overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6); transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1), height 0.45s cubic-bezier(0.16, 1, 0.3, 1), border-radius 0.45s, border-color 0.3s; border: 1px solid transparent; }
.preview-stage.mobile .preview-frame-wrap { width: 375px; max-width: 100%; height: min(760px, 100%); border-radius: 30px; border: 6px solid #1b1b20; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.06); }
.preview-iframe { width: 100%; height: 100%; border: none; background: var(--bg); display: block; }

.control-group { margin-bottom: 24px; }
.control-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin-bottom: 16px; }
.control-grid > div { min-width: 0; }
.control-grid input, .control-grid select, .control-grid textarea { margin-bottom: 0; }
.check-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; background: var(--bg-input); border: 1px solid var(--border); border-radius: 14px; margin-bottom: 10px; }
.check-row span { font-size: 13px; color: var(--text-dim); }
.check-row select { width: auto; min-width: 116px; margin: 0; padding: 9px 34px 9px 12px; }

.preset-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 10px; margin-bottom: 8px; }
.preset {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 10px; border-radius: 14px;
  background: var(--bg-input); border: 1px solid var(--border);
  color: var(--text-dim); font-size: 11px; font-weight: 600;
  text-align: center;
}
.preset::after { display: none; }
.preset:hover { transform: translateY(-2px); color: #fff; background: rgba(255, 255, 255, 0.07); }
.preset.active { border-color: rgba(var(--accent-rgb), 0.55); color: #fff; box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.08), 0 10px 24px rgba(0, 0, 0, 0.25); }
.preset-swatch { width: 100%; height: 28px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.09); }

.effect-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(94px, 1fr)); gap: 10px; }
.effect-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 9px 6px; border-radius: 14px;
  background: var(--bg-input); border: 1px solid var(--border);
  color: var(--text-dim); font-size: 10px; font-weight: 600;
  text-align: center;
}
.effect-card::after { display: none; }
.effect-card:hover { transform: translateY(-2px); color: #fff; background: rgba(255, 255, 255, 0.07); }
.effect-card.active { border-color: rgba(var(--accent-rgb), 0.5); color: #fff; box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.07), 0 8px 20px rgba(0, 0, 0, 0.25); }
.fx-mini { position: relative; width: 100%; height: 32px; border-radius: 8px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.07); background: #0a0a0d; }
.fx-mini::before, .fx-mini::after { content: ''; position: absolute; }
.fx-mini.none { background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.10), #0a0a0d 70%); }
.fx-mini.grad, .fx-mini.gradient { background: linear-gradient(120deg, #6d28d9, #0ea5e9, #6d28d9); background-size: 200% 200%; animation: gradientBG 3s linear infinite; }
.fx-mini.aurora { background: linear-gradient(120deg, #050505, #22d3ee, #a855f7, #050505); background-size: 250% 250%; filter: blur(1px); animation: gradientBG 3.5s ease infinite; }
.fx-mini.matrix { background-image: repeating-linear-gradient(90deg, transparent 0 8px, rgba(74, 222, 128, 0.35) 8px 9px), repeating-linear-gradient(0deg, transparent 0 7px, rgba(74, 222, 128, 0.22) 7px 8px); animation: miniScroll 1.2s linear infinite; }
.fx-mini.snow { background: radial-gradient(circle at 20% 30%, #fff 0 1px, transparent 1.5px), radial-gradient(circle at 70% 65%, #fff 0 1px, transparent 1.5px), radial-gradient(circle at 45% 85%, #fff 0 1px, transparent 1.5px); background-size: 24px 24px; animation: miniScroll 2s linear infinite; }
.fx-mini.particles { background: radial-gradient(circle at 25% 40%, #fff 0 1px, transparent 1.5px), radial-gradient(circle at 72% 30%, #fff 0 1px, transparent 1.5px), radial-gradient(circle at 55% 75%, #fff 0 1px, transparent 1.5px); background-size: 30px 22px; animation: miniFloat 3s ease-in-out infinite alternate; }
.fx-mini.stars::before { inset: 0; background: radial-gradient(circle at 15% 25%, #fff 0 1px, transparent 1.5px), radial-gradient(circle at 80% 60%, #fff 0 1px, transparent 1.5px), radial-gradient(circle at 50% 15%, #fff 0 1px, transparent 1.5px); animation: twinkleMini 1.6s ease-in-out infinite alternate; }
.fx-mini.bubbles::before { width: 8px; height: 8px; border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 50%; left: 12px; bottom: -8px; animation: miniRise 2.4s linear infinite; }
.fx-mini.bubbles::after { width: 5px; height: 5px; border: 1px solid rgba(255, 255, 255, 0.45); border-radius: 50%; right: 14px; bottom: -8px; animation: miniRise 3s linear infinite 0.8s; }
.fx-mini.rain::before { inset: 0; background: repeating-linear-gradient(105deg, transparent 0 9px, rgba(125, 211, 252, 0.45) 9px 10px); animation: miniScroll 0.7s linear infinite; }
.fx-mini.fireflies::before { width: 5px; height: 5px; border-radius: 50%; background: #fde047; box-shadow: 0 0 10px 3px rgba(253, 224, 71, 0.5); left: 18px; top: 10px; animation: twinkleMini 1.4s ease-in-out infinite alternate, miniFloat 3s ease-in-out infinite alternate; }
.fx-mini.meteors::before { width: 18px; height: 1px; background: linear-gradient(90deg, transparent, #fff); transform: rotate(-25deg); top: 8px; animation: miniMeteor 2.4s linear infinite; }
.fx-mini.rings::before { inset: 6px; border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 50%; animation: miniRing 2s ease-out infinite; }
.fx-mini.waves::before { left: -10%; bottom: -16px; width: 120%; height: 26px; border-radius: 50% 50% 0 0; background: rgba(56, 189, 248, 0.3); animation: miniWave 2.5s ease-in-out infinite alternate; }
.fx-mini.grid::before { left: -30%; right: -30%; bottom: -14px; height: 32px; background: repeating-linear-gradient(90deg, transparent 0 12px, rgba(168, 85, 247, 0.4) 12px 13px), repeating-linear-gradient(0deg, transparent 0 7px, rgba(168, 85, 247, 0.35) 7px 8px); transform: perspective(40px) rotateX(45deg); animation: miniScroll 0.9s linear infinite; }
.fx-mini.blobs::before { width: 22px; height: 22px; border-radius: 50%; background: #a855f7; filter: blur(7px); left: 10px; top: 2px; animation: miniFloat 2.6s ease-in-out infinite alternate; }
.fx-mini.blobs::after { width: 18px; height: 18px; border-radius: 50%; background: #22d3ee; filter: blur(7px); right: 10px; bottom: 2px; animation: miniFloat 3.2s ease-in-out infinite alternate-reverse; }

.range-row { display: flex; align-items: center; gap: 14px; }
.range-row input[type='range'] { flex: 1; margin: 0; }
.range-value { min-width: 46px; text-align: right; font-size: 12px; font-family: 'JetBrains Mono', monospace; color: var(--text-dim); }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat-card { position: relative; overflow: hidden; padding: 26px 16px; text-align: center; background: var(--bg-input); border: 1px solid var(--border); border-radius: 18px; }
.stat-card::before { content: ''; position: absolute; width: 130px; height: 130px; border-radius: 50%; top: -64px; right: -34px; background: radial-gradient(circle, rgba(var(--accent-rgb), 0.16), transparent 70%); pointer-events: none; }
.stat-icon { font-size: 20px; margin-bottom: 10px; filter: grayscale(0.3); }
.stat-num { font-size: 38px; font-weight: 800; letter-spacing: -0.06em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.12em; margin-top: 10px; }

.link-editor { display: flex; gap: 8px; margin-bottom: 10px; animation: msgIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both; }
.link-editor input { margin: 0; }
.link-editor input:first-child { flex: 1; }
.link-editor input:nth-child(2) { flex: 1.6; }
.link-editor button { width: auto; padding: 0 15px; flex: 0 0 auto; }
.gallery-editor { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.gallery-thumb { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb button { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; padding: 0; border-radius: 50%; background: rgba(0, 0, 0, 0.7); color: #fff; font-size: 14px; box-shadow: none; }
.gallery-thumb button::after { display: none; }
.gallery-thumb img.thumb-failed { opacity: 0.25; filter: grayscale(1); }
.gallery-thumb::after { content: '🖼️'; position: absolute; inset: 0; display: none; place-items: center; font-size: 20px; pointer-events: none; }
.gallery-thumb:has(img.thumb-failed)::after { display: grid; }
.thumb-index { position: absolute; left: 7px; top: 7px; min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; border-radius: 6px; background: rgba(0, 0, 0, 0.65); color: #fff; font-family: 'JetBrains Mono', monospace; font-size: 9px; }
.thumb-actions { position: absolute; right: 5px; bottom: 5px; display: flex; gap: 4px; opacity: 0; transform: translateY(5px); transition: 0.25s; }
.gallery-thumb:hover .thumb-actions, .gallery-thumb:focus-within .thumb-actions { opacity: 1; transform: translateY(0); }
.thumb-actions button { width: 24px; height: 24px; font-size: 13px; display: grid; place-items: center; padding: 0; }
.thumb-actions button:disabled { opacity: 0.35; cursor: not-allowed; }
.thumb-actions .thumb-remove { background: rgba(190, 40, 55, 0.85); }
.gallery-editor .gallery-empty { grid-column: 1 / -1; }
.count-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 6px; background: rgba(var(--accent-rgb), 0.14); color: var(--accent); font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0; vertical-align: middle; }
.copy-row { display: flex; gap: 8px; align-items: stretch; }
.copy-row input { flex: 1; min-width: 0; }
.admin-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.admin-toolbar input { margin: 0; }
kbd { display: inline-block; padding: 1px 5px; border-radius: 5px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.05); font-family: 'JetBrains Mono', monospace; font-size: 10px; color: #fff; }
.dirty-dot { display: inline-block; margin-top: 8px; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: #fbbf24; opacity: 0; transform: translateY(-3px); transition: 0.25s; pointer-events: none; }
.dirty-dot.show { opacity: 1; transform: translateY(0); }

.save-btn { margin-top: 32px; padding: 18px; font-size: 15px; }
.profile-link { display: block; text-align: center; color: var(--text-dim); font-size: 13px; margin-top: 22px; text-decoration: none; transition: color 0.2s; }
.profile-link:hover { color: #fff; }

/* ------------------------------------------------------------------ ADMIN */
.admin-section { margin-top: 26px; animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both; }
.admin-section h3 { margin-bottom: 12px; color: var(--text-dim); text-transform: uppercase; font-size: 11px; letter-spacing: 0.11em; }
.admin-actions { display: flex; gap: 8px; }
.admin-actions select { flex: 1; margin: 0; }
.admin-actions button { width: auto; padding: 0 20px; }
.key-display {
  margin-top: 16px;
  padding: 18px;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.12em;
  word-break: break-all;
  color: #fff;
  border: 1px dashed rgba(var(--accent-rgb), 0.4);
  border-radius: 16px;
  background: rgba(var(--accent-rgb), 0.055);
  box-shadow: inset 0 0 30px rgba(var(--accent-rgb), 0.04);
  animation: keyPop 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.key-display:hover { background: rgba(var(--accent-rgb), 0.1); border-color: var(--accent); }
.key-hint { text-align: center; font-size: 11px; color: var(--text-muted); margin-top: 10px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; background: rgba(255, 255, 255, 0.015); }
.table { width: 100%; min-width: 470px; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; padding: 12px 15px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.11em; color: var(--text-muted); border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, 0.025); white-space: nowrap; }
.table td { padding: 13px 15px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background 0.2s; }
.table tbody tr:hover { background: rgba(255, 255, 255, 0.028); }
.table .mono { font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.badge { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 99px; font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; border: 1px solid transparent; white-space: nowrap; }
.badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; margin-right: 6px; }
.badge.ok { color: #86efac; background: rgba(74, 222, 128, 0.09); border-color: rgba(74, 222, 128, 0.2); }
.badge.bad { color: #fda4af; background: rgba(251, 113, 133, 0.09); border-color: rgba(251, 113, 133, 0.2); }
.badge.pending { color: #fcd34d; background: rgba(251, 191, 36, 0.09); border-color: rgba(251, 191, 36, 0.2); }

/* --------------------------------------------------------------- PROFILE */
#fx-layer { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
body.profile-page.has-grain::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}
.fx-gradient { position: absolute; inset: 0; background-size: 400% 400%; animation: gradientBG 15s ease infinite; }
.fx-aurora {
  position: absolute; inset: -25%;
  background:
    radial-gradient(45% 35% at 25% 30%, var(--accent) 0%, transparent 70%),
    radial-gradient(40% 40% at 75% 45%, #22d3ee 0%, transparent 70%),
    radial-gradient(45% 35% at 50% 80%, #a855f7 0%, transparent 70%);
  opacity: 0.28;
  filter: blur(70px);
  animation: auroraBG 13s ease-in-out infinite alternate;
}
.fx-blobs .fx-blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.32; animation: blobFloat 18s ease-in-out infinite alternate; }
.fx-grid { position: absolute; left: -60%; right: -60%; bottom: -24%; height: 78%; background-image: repeating-linear-gradient(90deg, transparent 0 46px, rgba(var(--accent-rgb), 0.28) 46px 47px), repeating-linear-gradient(0deg, transparent 0 34px, rgba(var(--accent-rgb), 0.22) 34px 35px); transform: perspective(420px) rotateX(66deg); transform-origin: bottom center; -webkit-mask-image: linear-gradient(to top, #000 5%, transparent 88%); mask-image: linear-gradient(to top, #000 5%, transparent 88%); animation: gridMove 5s linear infinite; }
.fx-waves .fx-wave { position: absolute; left: -18%; bottom: -14%; width: 136%; height: 42%; border-radius: 46% 54% 0 0 / 62% 58% 0 0; background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.14), transparent); border-top: 1px solid rgba(var(--accent-rgb), 0.18); animation: waveMove 9s ease-in-out infinite alternate; }
.fx-waves .fx-wave:nth-child(2) { bottom: -20%; opacity: 0.7; animation-duration: 12s; animation-direction: alternate-reverse; }
.fx-waves .fx-wave:nth-child(3) { bottom: -26%; opacity: 0.45; animation-duration: 15s; }

#profile-card { text-align: center; overflow: hidden; }
.profile-avatar-wrap { position: relative; display: inline-block; margin-bottom: 18px; }
.profile-avatar { display: block; width: 104px; height: 104px; object-fit: cover; box-shadow: 0 16px 44px rgba(0, 0, 0, 0.55); transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
.profile-avatar-wrap:hover .profile-avatar { transform: scale(1.05) rotate(-2deg); }
.avatar-glow .profile-avatar-wrap::before { content: ''; position: absolute; inset: -7px; border-radius: inherit; background: conic-gradient(from 0deg, transparent, var(--accent), transparent 62%); filter: blur(13px); opacity: 0.75; animation: spin 4.5s linear infinite; z-index: -1; }
.avatar-float .profile-avatar { animation: float 4s ease-in-out infinite; }
.profile-name { font-size: 28px; font-weight: 700; letter-spacing: -0.045em; line-height: 1.2; }
.profile-handle { color: var(--text-dim); font-size: 13px; margin-top: 5px; }
.profile-bio { margin-top: 18px; color: var(--text-dim); font-size: 14px; line-height: 1.65; white-space: pre-wrap; }
.profile-views { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 30px; font-size: 11px; letter-spacing: 0.08em; color: var(--text-muted); text-transform: uppercase; }

.bio-typing { display: inline-block; max-width: 100%; overflow: hidden; white-space: nowrap; border-right: 2px solid var(--accent); vertical-align: top; animation: typing 3.5s steps(46, end) both, blink 0.75s step-end infinite; }
.bio-glitch { position: relative; display: inline-block; color: #fff; animation: glitch 3.2s infinite; }
.bio-glitch::before, .bio-glitch::after { content: attr(data-text); position: absolute; inset: 0; white-space: pre-wrap; overflow: hidden; }
.bio-glitch::before { color: #22d3ee; animation: glitchTop 2.6s infinite linear alternate-reverse; clip-path: inset(0 0 55% 0); }
.bio-glitch::after { color: #f472b6; animation: glitchBottom 3.4s infinite linear alternate-reverse; clip-path: inset(55% 0 0 0); }
.bio-wave span { display: inline-block; white-space: pre; animation: wave 1.5s ease-in-out infinite; animation-delay: calc(var(--c) * 0.045s * var(--anim-speed)); }
.bio-shimmer { background: linear-gradient(100deg, var(--text-dim) 18%, var(--accent) 48%, var(--text-dim) 78%); background-size: 220% auto; color: transparent; -webkit-background-clip: text; background-clip: text; animation: shimmer 3.2s linear infinite; }

.enter-item { opacity: 0; }
.enter-fade .enter-item { animation: enterFade 0.75s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: calc(0.1s + var(--i, 0) * 0.075s * var(--anim-speed)); }
.enter-slide .enter-item { animation: enterSlide 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: calc(0.1s + var(--i, 0) * 0.075s * var(--anim-speed)); }
.enter-pop .enter-item { animation: enterPop 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) both; animation-delay: calc(0.08s + var(--i, 0) * 0.07s * var(--anim-speed)); }
.enter-left .enter-item { animation: enterLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: calc(0.1s + var(--i, 0) * 0.075s * var(--anim-speed)); }
.enter-right .enter-item { animation: enterRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: calc(0.1s + var(--i, 0) * 0.075s * var(--anim-speed)); }
.enter-flip .enter-item { animation: enterFlip 0.85s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: calc(0.1s + var(--i, 0) * 0.075s * var(--anim-speed)); }
.enter-bounce .enter-item { animation: enterBounce 1s both; animation-delay: calc(0.08s + var(--i, 0) * 0.08s * var(--anim-speed)); }

a.link-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 18px; margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px;
  position: relative; overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s, border-color 0.3s, box-shadow 0.3s, color 0.3s;
}
a.link-btn > span { position: relative; z-index: 2; }
a.link-btn .link-fill { position: absolute; inset: 0; background: var(--accent); opacity: 0; transform: scaleX(0); transform-origin: left center; transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s; z-index: 1; }
a.link-btn::after { content: '↗'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%) translateX(6px); opacity: 0; font-size: 15px; transition: 0.3s; z-index: 2; }
a.link-btn:hover { background: rgba(255, 255, 255, 0.075); border-color: rgba(var(--accent-rgb), 0.4); }
a.link-btn:hover::after { opacity: 0.8; transform: translateY(-50%) translateX(0); }
.hover-lift .link-btn:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35); }
.hover-shine .link-btn:hover { transform: translateY(-2px); }
.hover-shine .link-btn:hover .link-fill { opacity: 0.12; transform: scaleX(1); }
.hover-glow .link-btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.45), 0 10px 34px rgba(var(--accent-rgb), 0.20); }
.hover-scale .link-btn:hover { transform: scale(1.035); }
.hover-tilt .link-btn:hover { transform: perspective(600px) rotateX(8deg) translateY(-4px); box-shadow: 0 18px 34px rgba(0, 0, 0, 0.45); }
.hover-fill .link-btn:hover { color: #09090b; transform: translateY(-2px); }
.hover-fill .link-btn:hover .link-fill { opacity: 1; transform: scaleX(1); }

.music-float-btn {
  position: fixed; bottom: 28px; right: 28px; width: 58px; height: 58px;
  background: linear-gradient(135deg, #fff, #d4d4d8);
  color: #09090b; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  font-size: 22px; cursor: pointer; z-index: 100;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
}
.music-float-btn::after { display: none; }
.music-float-btn:hover { transform: scale(1.1) rotate(6deg); }
.music-float-btn.playing { animation: pulse 2.2s infinite; }
#profile-share { position: fixed; right: 28px; bottom: 28px; width: 46px; height: 46px; border-radius: 50%; z-index: 99; background: rgba(20, 20, 24, 0.86); border: 1px solid var(--border); color: #fff; font-size: 20px; display: grid; place-items: center; backdrop-filter: blur(16px); box-shadow: 0 12px 34px rgba(0, 0, 0, 0.55); transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
#profile-share::after { display: none; }
#profile-share:hover { transform: translateY(-3px) scale(1.06); background: rgba(255, 255, 255, 0.13); }
#profile-share.done { background: var(--accent); color: #09090b; border-color: transparent; }
#profile-music ~ #profile-share { bottom: 98px; }
.eq { display: flex; align-items: flex-end; gap: 3px; height: 18px; }
.eq i { display: block; width: 3px; height: 6px; background: currentColor; border-radius: 2px; }
.playing .eq i { animation: eq 0.9s ease-in-out infinite alternate; }
.playing .eq i:nth-child(2) { animation-delay: 0.25s; }
.playing .eq i:nth-child(3) { animation-delay: 0.5s; }

.discord-widget { display: flex; align-items: center; gap: 15px; padding: 16px; margin-top: 22px; text-align: left; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--border); border-radius: var(--radius); animation: msgIn 0.6s both; }
.discord-avatar { width: 48px; height: 48px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.16); }
.discord-info { flex: 1; min-width: 0; }
.discord-name { font-size: 14px; font-weight: 700; }
.discord-activity { font-size: 12px; color: var(--text-dim); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cinematic-content { max-height: 0; opacity: 0; overflow: hidden; transition: max-height 1s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease 0.15s; }
.cinematic-content.revealed { max-height: 4000px; opacity: 1; }
.scroll-indicator { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 40px; color: var(--text-muted); font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; animation: bounce 2s infinite; cursor: pointer; background: none; box-shadow: none; padding: 8px; }
.scroll-indicator::after { display: none; }
.scroll-indicator:hover { transform: none; color: #fff; box-shadow: none; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; }
.gallery-grid a.gallery-item { position: relative; display: block; aspect-ratio: 1; min-width: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.03); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s, border-color 0.3s; }
.gallery-grid a.gallery-item:hover { transform: translateY(-4px) scale(1.025); box-shadow: 0 18px 38px rgba(0, 0, 0, 0.55); border-color: rgba(var(--accent-rgb), 0.45); z-index: 2; }
.gallery-grid a.gallery-item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s; }
.gallery-grid a.gallery-item:hover img { transform: scale(1.12); }
.gallery-grid a.gallery-item::after { content: '⤢'; position: absolute; right: 10px; bottom: 9px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(8px); color: #fff; font-size: 13px; opacity: 0; transform: translateY(6px); transition: 0.3s; }
.gallery-grid a.gallery-item:hover::after { opacity: 1; transform: translateY(0); }
.gallery-grid a.gallery-item.img-failed::before { content: '🖼️'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 26px; opacity: 0.45; }
.gallery-grid a.gallery-item.img-failed img { opacity: 0; }
.gallery-empty { padding: 26px; border: 1px dashed var(--border); border-radius: var(--radius); color: var(--text-muted); font-size: 12px; }

/* Lightbox */
#gallery-lightbox { position: fixed; inset: 0; z-index: 10001; display: flex; align-items: center; justify-content: center; background: rgba(3, 3, 5, 0.88); backdrop-filter: blur(18px); opacity: 0; pointer-events: none; transition: opacity 0.3s; }
#gallery-lightbox.open { opacity: 1; pointer-events: auto; }
#gallery-lightbox img { max-width: min(88vw, 1100px); max-height: 82vh; object-fit: contain; border-radius: 16px; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.8); transform: scale(0.94); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
#gallery-lightbox.open img { transform: scale(1); }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, 0.09); border: 1px solid rgba(255, 255, 255, 0.16); color: #fff; font-size: 20px; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(10px); }
.lb-btn::after { display: none; }
.lb-btn:hover { background: rgba(255, 255, 255, 0.18); transform: scale(1.08); }
.lb-close { top: 26px; right: 26px; }
.lb-prev { left: 26px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 26px; top: 50%; transform: translateY(-50%); }
.lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.08); }
.lb-count { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); font-size: 11px; letter-spacing: 0.12em; color: var(--text-muted); }

#custom-cursor {
  position: fixed; top: 0; left: 0; width: var(--cursor-size); height: var(--cursor-size);
  background: rgba(255, 255, 255, 0.85); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.25s, height 0.25s, background 0.25s, opacity 0.25s;
  mix-blend-mode: difference;
  box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.7);
}
#custom-cursor.hover { width: var(--cursor-hover-size); height: var(--cursor-hover-size); background: rgba(255, 255, 255, 0.35); }
#custom-cursor-dot { position: fixed; top: 0; left: 0; width: calc(var(--cursor-size) * 0.2); height: calc(var(--cursor-size) * 0.2); border-radius: 50%; background: #fff; pointer-events: none; z-index: 10000; transform: translate(-50%, -50%); mix-blend-mode: difference; }
.custom-cursor-active, .custom-cursor-active * { cursor: none !important; }

/* --------------------------------------------------------------- KEYFRAMES */
@keyframes ambientDrift { from { transform: translate3d(-2%, -1%, 0) scale(1); } to { transform: translate3d(3%, 2%, 0) scale(1.08); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(28px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes tabPanelIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes tabPop { 0% { transform: scale(0.96); } 60% { transform: scale(1.03); } 100% { transform: scale(1); } }
@keyframes tabLine { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes keyPop { from { opacity: 0; transform: scale(0.94); letter-spacing: 0.02em; } to { opacity: 1; transform: scale(1); letter-spacing: 0.12em; } }
@keyframes slideUp { to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.22); } 70% { box-shadow: 0 0 0 16px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }
@keyframes pulseDot { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-9px); } 60% { transform: translateY(-4px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-9px) rotate(1.5deg); } }
@keyframes gradientBG { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes auroraBG { 0% { transform: translate3d(-4%, -2%, 0) rotate(-4deg) scale(1); } 100% { transform: translate3d(5%, 3%, 0) rotate(5deg) scale(1.12); } }
@keyframes blobFloat { 0% { transform: translate3d(-8%, -6%, 0) scale(1); } 100% { transform: translate3d(12%, 10%, 0) scale(1.25); } }
@keyframes gridMove { from { background-position: 0 0, 0 0; } to { background-position: 0 35px, 0 35px; } }
@keyframes waveMove { from { transform: translateX(-3%) rotate(-2deg) scaleY(0.9); } to { transform: translateX(4%) rotate(2deg) scaleY(1.12); } }
@keyframes typing { from { width: 0; } to { width: 100%; } }
@keyframes blink { from, to { border-color: transparent; } 50% { border-color: var(--accent); } }
@keyframes glitch { 0%, 92%, 100% { transform: translate(0); } 94% { transform: translate(-2px, 1px); } 96% { transform: translate(2px, -1px); } 98% { transform: translate(-1px, -1px); } }
@keyframes glitchTop { 0%, 90%, 100% { transform: translate(0); } 92% { transform: translate(-3px, -1px); } 96% { transform: translate(3px, 1px); } }
@keyframes glitchBottom { 0%, 88%, 100% { transform: translate(0); } 90% { transform: translate(3px, 1px); } 95% { transform: translate(-3px, -1px); } }
@keyframes wave { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-7px); } }
@keyframes shimmer { to { background-position: 220% center; } }
@keyframes eq { from { height: 5px; } to { height: 17px; } }
@keyframes enterFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes enterSlide { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes enterPop { from { opacity: 0; transform: scale(0.86); } to { opacity: 1; transform: scale(1); } }
@keyframes enterLeft { from { opacity: 0; transform: translateX(-36px); } to { opacity: 1; transform: translateX(0); } }
@keyframes enterRight { from { opacity: 0; transform: translateX(36px); } to { opacity: 1; transform: translateX(0); } }
@keyframes enterFlip { from { opacity: 0; transform: perspective(600px) rotateX(-70deg); } to { opacity: 1; transform: perspective(600px) rotateX(0); } }
@keyframes enterBounce { 0% { opacity: 0; transform: translateY(-24px) scale(0.9); } 55% { opacity: 1; transform: translateY(6px) scale(1.02); } 75% { transform: translateY(-3px) scale(0.99); } 100% { transform: translateY(0) scale(1); } }
@keyframes miniScroll { from { background-position: 0 0; } to { background-position: 0 24px; } }
@keyframes miniFloat { from { transform: translate(0, 0); } to { transform: translate(5px, -5px); } }
@keyframes miniRise { from { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } to { transform: translateY(-42px); opacity: 0; } }
@keyframes miniMeteor { 0% { left: -10%; opacity: 0; } 20% { opacity: 1; } 70%, 100% { left: 110%; opacity: 0; } }
@keyframes miniRing { from { transform: scale(0.2); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
@keyframes miniWave { from { transform: translateX(-4%) rotate(-3deg); } to { transform: translateX(5%) rotate(3deg); } }
@keyframes twinkleMini { from { opacity: 0.25; } to { opacity: 1; } }

/* ------------------------------------------------------------ RESPONSIVE */
@media (max-width: 640px) {
  .container { padding: 30px 16px; }
  .card { padding: 28px 20px; border-radius: 22px; }
  .logo { font-size: 38px; }
  .control-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .effect-grid { grid-template-columns: repeat(3, 1fr); }
  .dashboard-layout { padding: 20px 14px 50px; }
  .dashboard-layout > .card { padding: 24px 18px; }
  .header { flex-direction: column; }
  .header > button { width: 100%; }
  .music-float-btn { bottom: 20px; right: 20px; }
  #profile-share { right: 20px; bottom: 20px; width: 42px; height: 42px; }
  #profile-music ~ #profile-share { bottom: 82px; }
  .profile-avatar { width: 92px; height: 92px; }
  .profile-name { font-size: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .enter-item { opacity: 1; }
}

/* ================================================================ STUDIO 2 */
:root {
  --accent-2: #a78bfa;
  --name-size: 28px;
  --bio-size: 14px;
  --text-spacing: -0.045em;
  --bio-spacing: 0em;
  --bio-transform: none;
  --cursor-size: 20px;
  --cursor-hover-size: 44px;
}

/* Sub navigation inside Studio tabs */
.sub-tabs { display: flex; gap: 4px; padding: 4px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.sub-tabs::-webkit-scrollbar { display: none; }
.sub-tab { flex: 1; padding: 8px 6px; border-radius: 9px; background: transparent; color: var(--text-muted); font-size: 11px; font-weight: 600; white-space: nowrap; box-shadow: none; transition: 0.22s; }
.sub-tab::after { display: none; }
.sub-tab:hover { color: #fff; background: rgba(255, 255, 255, 0.05); transform: none; box-shadow: none; }
.sub-tab.active { color: #fff; background: linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.05)); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25); }
.sub-panel { animation: tabPanelIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both; }

.fx-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.fx-filter { width: auto; padding: 6px 11px; border-radius: 99px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--border); color: var(--text-muted); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; box-shadow: none; }
.fx-filter::after { display: none; }
.fx-filter:hover { color: #fff; background: rgba(255, 255, 255, 0.07); transform: none; box-shadow: none; }
.fx-filter.active { color: #09090b; background: var(--accent); border-color: var(--accent); box-shadow: 0 6px 18px rgba(var(--accent-rgb), 0.2); }

/* Mini previews for the 11 new effects */
.fx-mini.confetti { background: repeating-linear-gradient(45deg, rgba(244, 114, 182, 0.5) 0 3px, transparent 3px 9px), repeating-linear-gradient(-45deg, rgba(250, 204, 21, 0.45) 0 3px, transparent 3px 11px); background-size: 26px 26px; animation: miniScroll 1.6s linear infinite; }
.fx-mini.petals::before { inset: 0; background: radial-gradient(ellipse 4px 2px at 20% 20%, #f9a8d4 98%, transparent), radial-gradient(ellipse 3px 2px at 70% 60%, #f9a8d4 98%, transparent), radial-gradient(ellipse 4px 2px at 45% 85%, #f472b6 98%, transparent); animation: miniScroll 2.6s linear infinite; }
.fx-mini.embers::before, .fx-mini.embers::after { width: 4px; height: 4px; border-radius: 50%; background: #fb923c; box-shadow: 0 0 9px 3px rgba(251, 146, 60, 0.45); left: 22px; bottom: -6px; animation: miniRise 2.2s linear infinite; }
.fx-mini.embers::after { left: 58px; animation-duration: 2.9s; animation-delay: 0.7s; }
.fx-mini.fire::before { left: 20%; right: 20%; bottom: -10px; height: 22px; border-radius: 50% 50% 0 0; background: linear-gradient(0deg, #f97316, #fde047); filter: blur(3px); animation: flame 1.4s ease-in-out infinite alternate; }
.fx-mini.orbit::before { width: 16px; height: 16px; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 50%; inset: 7px; animation: spin 2.5s linear infinite; }
.fx-mini.orbit::after { width: 4px; height: 4px; background: #fff; border-radius: 50%; left: 45%; top: 5px; box-shadow: 0 22px 0 -1px rgba(255, 255, 255, 0.6); animation: spin 2.5s linear infinite; transform-origin: 7px 11px; }
.fx-mini.spiral::before { inset: 2px; border-radius: 50%; background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.5), transparent 30%, rgba(255, 255, 255, 0.25), transparent 70%); animation: spin 3s linear infinite; mask-image: radial-gradient(circle, transparent 30%, #000 32%, #000 60%, transparent 62%); }
.fx-mini.sparkles::before { inset: 0; background: radial-gradient(circle at 25% 35%, #fff 0 1px, transparent 2px), radial-gradient(circle at 75% 65%, #fff 0 1px, transparent 2px); animation: twinkleMini 1s ease-in-out infinite alternate; }
.fx-mini.hex::before { inset: 0; background: repeating-linear-gradient(30deg, transparent 0 9px, rgba(255, 255, 255, 0.22) 9px 10px), repeating-linear-gradient(-30deg, transparent 0 9px, rgba(255, 255, 255, 0.22) 9px 10px), repeating-linear-gradient(90deg, transparent 0 9px, rgba(255, 255, 255, 0.16) 9px 10px); animation: miniScroll 2s linear infinite; }
.fx-mini.plasma { background: radial-gradient(circle at 25% 30%, #a855f7, transparent 60%), radial-gradient(circle at 75% 70%, #22d3ee, transparent 60%), #0a0a0d; animation: miniFloat 3s ease-in-out infinite alternate; }
.fx-mini.sunset::before { left: 20%; bottom: -12px; width: 60%; height: 30px; border-radius: 50% 50% 0 0; background: linear-gradient(#fde047, #f97316); }
.fx-mini.sunset::after { left: 0; right: 0; bottom: 0; height: 10px; background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(0, 0, 0, 0.5) 3px 4px); }
.fx-mini.noise::before { inset: 0; opacity: 0.45; background-image: repeating-conic-gradient(#fff 0% 25%, #000 0% 50%); background-size: 4px 4px; animation: noiseShift 0.25s steps(3) infinite; }

.fx-mini.nebula { background: radial-gradient(ellipse at 30% 30%, var(--accent, #a78bfa), transparent 60%), radial-gradient(ellipse at 75% 70%, var(--accent-2, #22d3ee), transparent 60%), #0a0a12; filter: blur(1px); animation: miniFloat 4s ease-in-out infinite alternate; }
.fx-mini.kaleido::before { inset: 0; background: conic-gradient(from 0deg at 50% 50%, rgba(255,255,255,.45), transparent 12deg, rgba(167,139,250,.5) 24deg, transparent 36deg, rgba(34,211,238,.45) 48deg, transparent 60deg); mask-image: radial-gradient(circle, transparent 12%, #000 22%, transparent 72%); animation: spin 4s linear infinite; }
.fx-mini.constellation { background: radial-gradient(circle at 20% 30%, #fff 0 1px, transparent 2px), radial-gradient(circle at 70% 60%, var(--accent, #a78bfa) 0 1px, transparent 2px), radial-gradient(circle at 45% 80%, #fff 0 1px, transparent 2px), #080812; background-size: 100% 100%; animation: miniPulse 2.5s ease-in-out infinite alternate; }
.fx-mini.glitch { background: repeating-linear-gradient(0deg, rgba(255,255,255,.08) 0 1px, transparent 1px 4px), linear-gradient(90deg, rgba(255,0,80,.35), transparent 40%, rgba(0,200,255,.35)); animation: glitchShift 1.6s steps(2) infinite; }

.fx-glitch { position: absolute; inset: -10%; background: repeating-linear-gradient(0deg, rgba(var(--accent-rgb), .06) 0 2px, transparent 2px 6px), linear-gradient(100deg, transparent 20%, var(--accent) 22%, transparent 24%, transparent 52%, var(--accent2) 54%, transparent 56%), var(--bg); opacity: 0.3; mix-blend-mode: screen; animation: glitchShift 4s steps(3) infinite; }
@keyframes glitchShift { 0%, 92%, 100% { transform: translate(0, 0); filter: hue-rotate(0deg); } 93% { transform: translate(-6px, 2px); filter: hue-rotate(90deg); } 95% { transform: translate(7px, -3px); filter: hue-rotate(-60deg); } 97% { transform: translate(-3px, 5px); } }

.fx-plasma { position: absolute; inset: -25%; background: radial-gradient(40% 40% at 30% 35%, var(--accent), transparent 70%), radial-gradient(38% 38% at 72% 60%, #22d3ee, transparent 70%), radial-gradient(45% 45% at 50% 85%, #a855f7, transparent 70%), var(--bg); filter: blur(70px) saturate(150%); opacity: 0.42; animation: plasmaMove 16s ease-in-out infinite alternate; }
.fx-nebula { position: absolute; inset: -30%; background: radial-gradient(36% 44% at 28% 32%, var(--accent), transparent 72%), radial-gradient(42% 38% at 74% 58%, var(--accent2), transparent 72%), radial-gradient(30% 30% at 52% 88%, #f472b6, transparent 72%), var(--bg); filter: blur(64px) saturate(140%); opacity: 0.4; animation: nebulaDrift 18s ease-in-out infinite alternate, nebulaSpin 40s linear infinite; }
.fx-sunset { position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, rgba(244, 114, 182, 0.22) 48%, rgba(251, 146, 60, 0.28) 72%, var(--bg) 100%); }
.fx-sunset::before { content: ''; position: absolute; left: 50%; bottom: 22%; width: 240px; height: 240px; border-radius: 50%; transform: translateX(-50%); background: radial-gradient(circle, var(--accent), transparent 70%); filter: blur(6px); opacity: 0.5; animation: sunRise 12s ease-in-out infinite alternate; }
.fx-sunset::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 32%; background: repeating-linear-gradient(0deg, transparent 0 14px, rgba(255, 255, 255, 0.06) 14px 15px); mask-image: linear-gradient(to top, #000, transparent); animation: gridMove 9s linear infinite; }

/* --------------------------------------------------------- PROFILE LAYOUTS */
.profile-header { text-align: center; }
.profile-content { width: 100%; }
.profile-footer { width: 100%; }

.layout-split { display: grid; grid-template-columns: 250px minmax(0, 1fr); column-gap: 34px; align-items: start; text-align: left; }
.layout-split .profile-header { grid-column: 1; position: sticky; top: 46px; text-align: left; margin-bottom: 0; }
.layout-split .profile-content { grid-column: 2; }
.layout-split .profile-footer { grid-column: 1 / -1; }
.layout-split .profile-avatar { width: 118px; height: 118px; }
.layout-split .profile-name { font-size: 26px; }
.layout-split .link-btn { justify-content: flex-start; padding-left: 22px; }

.layout-minimal { background: rgba(0, 0, 0, 0.06) !important; box-shadow: none !important; border-color: transparent !important; }
.layout-minimal .link-btn { background: transparent; border: none; border-bottom: 1px solid var(--border); border-radius: 0; padding: 20px 6px; font-weight: 500; }
.layout-minimal .link-btn:hover { background: transparent; }
.layout-minimal .link-btn .link-fill { background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.12), transparent); }

.layout-magazine .profile-content { counter-reset: ln; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.layout-magazine .link-btn { margin: 0; min-height: 96px; flex-direction: column; gap: 10px; text-align: center; padding: 18px 10px; }
.layout-magazine .link-btn::before { counter-increment: ln; content: '0' counter(ln); position: relative; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--accent); opacity: 0.55; letter-spacing: 0.1em; }
.layout-magazine .link-btn::after { display: none; }
.layout-magazine .divider, .layout-magazine .discord-widget, .layout-magazine .gallery-grid { grid-column: 1 / -1; }

.layout-timeline .profile-content { position: relative; padding-left: 30px; text-align: left; }
.layout-timeline .profile-content::before { content: ''; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--accent), transparent); opacity: 0.35; }
.layout-timeline .link-btn { justify-content: flex-start; padding-left: 20px; margin-bottom: 18px; }
.layout-timeline .link-btn::before { content: ''; position: absolute; left: -28px; top: 50%; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(var(--accent-rgb), 0.12), 0 0 14px var(--accent); transform: translateY(-50%); z-index: 3; }
.layout-timeline .link-btn::after { right: 14px; }

.layout-bento .profile-content { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.layout-bento .link-btn { margin: 0; min-height: 88px; }
.layout-bento .link-btn:first-child { grid-column: 1 / -1; min-height: 132px; font-size: 18px; background: linear-gradient(120deg, rgba(var(--accent-rgb), 0.14), rgba(255, 255, 255, 0.03)); }
.layout-bento .divider, .layout-bento .discord-widget, .layout-bento .gallery-grid { grid-column: 1 / -1; }

.layout-terminal { font-family: 'JetBrains Mono', monospace !important; text-align: left; }
.layout-terminal .profile-header { text-align: left; }
.layout-terminal .profile-name::before { content: '~/'; color: var(--accent); opacity: 0.7; }
.layout-terminal .link-btn { justify-content: flex-start; border-radius: 6px; border-left: 2px solid var(--accent); background: rgba(255, 255, 255, 0.02); font-size: 13px; }
.layout-terminal .link-btn::before { content: '$'; color: var(--accent); margin-right: 10px; font-weight: 700; opacity: 0.8; }
.layout-terminal .link-btn::after { display: none; }

.layout-glass .link-btn { background: rgba(255, 255, 255, 0.075); backdrop-filter: blur(20px) saturate(140%); border-color: rgba(255, 255, 255, 0.16); padding: 20px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 10px 30px rgba(0, 0, 0, 0.25); }

.layout-spotlight { padding-top: 54px; }
.layout-spotlight .profile-header { position: relative; padding-bottom: 26px; margin-bottom: 34px !important; }
.layout-spotlight .profile-header::before { content: ''; position: absolute; left: 50%; top: -54px; width: 320px; height: 260px; transform: translateX(-50%); background: radial-gradient(circle, rgba(var(--accent-rgb), 0.24), transparent 68%); filter: blur(20px); z-index: -1; pointer-events: none; }
.layout-spotlight .profile-avatar { width: 132px; height: 132px; box-shadow: 0 0 0 6px rgba(var(--accent-rgb), 0.1), 0 24px 60px rgba(0, 0, 0, 0.7); }
.layout-spotlight .profile-name { font-size: 34px; }

.layout-carousel .profile-content { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 20px; scrollbar-width: none; }
.layout-carousel .profile-content::-webkit-scrollbar { display: none; }
.layout-carousel .link-btn { min-width: 220px; margin: 0; scroll-snap-align: center; }
.layout-carousel .discord-widget { min-width: 280px; scroll-snap-align: center; }
.layout-carousel .gallery-grid { display: flex; min-width: max-content; scroll-snap-align: center; }
.layout-carousel .gallery-grid a { width: 130px; }

.layout-deck .profile-content { padding: 14px 0 64px; }
.layout-deck .link-btn { transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), margin 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s; }
.layout-deck .link-btn + .link-btn { margin-top: -48px; }
.layout-deck .link-btn:nth-child(1) { z-index: 12; }
.layout-deck .link-btn:nth-child(2) { z-index: 11; }
.layout-deck .link-btn:nth-child(3) { z-index: 10; }
.layout-deck .link-btn:nth-child(4) { z-index: 9; }
.layout-deck .link-btn:nth-child(5) { z-index: 8; }
.layout-deck .link-btn:hover { margin-top: 8px; z-index: 20; box-shadow: 0 22px 50px rgba(0, 0, 0, 0.6); }

/* Link look & feel */
.link-style-solid .link-btn { background: linear-gradient(135deg, #fff, #d4d4d8); color: #09090b; border-color: transparent; }
.link-style-outline .link-btn { background: transparent; border: 1px solid var(--accent); color: var(--accent); }
.link-style-glass .link-btn { background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(18px); border-color: rgba(255, 255, 255, 0.18); }
.link-style-gradient .link-btn { background: linear-gradient(100deg, var(--accent), var(--accent-2), var(--accent)); background-size: 200% 100%; color: #09090b; border-color: transparent; animation: gradientBG 6s linear infinite; }
.link-style-ghost .link-btn { background: transparent; border: none; border-bottom: 1px solid var(--border); border-radius: 0; font-weight: 500; }
.link-style-pill .link-btn { border-radius: 99px; }
.link-style-square .link-btn { border-radius: 4px; }
.link-style-neon .link-btn { background: rgba(var(--accent-rgb), 0.04); border: 1px solid var(--accent); color: var(--accent); box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.22), inset 0 0 16px rgba(var(--accent-rgb), 0.06); }

.link-size-compact .link-btn { padding: 12px 16px; font-size: 13px; margin-bottom: 8px; }
.link-size-large .link-btn { padding: 24px; font-size: 17px; margin-bottom: 14px; }
.links-left .link-btn { justify-content: flex-start; padding-left: 24px; text-align: left; }
.links-right .link-btn { justify-content: flex-end; padding-right: 44px; text-align: right; }
.link-icon { display: inline-grid; place-items: center; min-width: 24px; font-size: 17px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4)); }

/* Avatar effects */
.avatar-effect-pulse .profile-avatar { animation: avatarPulse 2.8s ease-in-out infinite; }
.avatar-effect-spin .profile-avatar { animation: spinSlow 14s linear infinite; }
.avatar-effect-tilt .profile-avatar-wrap { perspective: 500px; }
.avatar-effect-tilt .profile-avatar { animation: avatarTilt 6s ease-in-out infinite; }
.avatar-effect-shine .profile-avatar-wrap::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(120deg, transparent 32%, rgba(255, 255, 255, 0.55) 50%, transparent 68%); background-size: 220% 220%; animation: avatarShine 3.6s linear infinite; }

/* Typography controls */
.profile-name { font-size: var(--name-size); letter-spacing: var(--text-spacing); text-transform: var(--bio-transform); }
.profile-bio { font-size: var(--bio-size); letter-spacing: var(--bio-spacing); text-transform: var(--bio-transform); }
.text-gradient .profile-name { background: linear-gradient(100deg, var(--accent), var(--accent-2), var(--accent)); background-size: 200% auto; color: transparent; -webkit-background-clip: text; background-clip: text; animation: shimmer 5s linear infinite; }
.text-uppercase .profile-name, .text-uppercase .link-btn { text-transform: uppercase; letter-spacing: 0.08em; }
.text-capitalize .profile-name, .text-capitalize .profile-bio, .text-capitalize .link-btn { text-transform: capitalize; }
.accent-gradient .link-fill { background: linear-gradient(100deg, var(--accent), var(--accent-2)) !important; }
.accent-gradient .scroll-indicator::before { background: var(--accent-2); }

/* Page intro */
.intro-zoom .card { animation: introZoom 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; }
.intro-slide .card { animation: introSlide 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; }
.intro-blur .card { animation: introBlur 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; }
.intro-glitch .card { animation: introGlitch 0.8s steps(2, end) both; }
.intro-curtain .card { animation: introCurtain 1s cubic-bezier(0.16, 1, 0.3, 1) both; }

/* New bio animations */
.bio-flicker { animation: textFlicker 3.4s infinite; }
.bio-rise span { display: inline-block; white-space: pre; animation: wordRise 1.2s cubic-bezier(0.16, 1, 0.3, 1) infinite; animation-delay: calc(var(--c) * 0.08s * var(--anim-speed)); }
.bio-letterdrop span { display: inline-block; white-space: pre; animation: letterDrop 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) both; animation-delay: calc(var(--c) * 0.035s * var(--anim-speed)); }

/* New entrance animations */
.enter-blur .enter-item { animation: enterBlur 0.85s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: calc(0.1s + var(--i, 0) * 0.07s * var(--anim-speed)); }
.enter-zoom .enter-item { animation: enterZoom 0.85s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: calc(0.1s + var(--i, 0) * 0.07s * var(--anim-speed)); }
.enter-diagonal .enter-item { animation: enterDiagonal 0.85s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: calc(0.1s + var(--i, 0) * 0.07s * var(--anim-speed)); }
.enter-reveal .enter-item { animation: enterReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: calc(0.1s + var(--i, 0) * 0.08s * var(--anim-speed)); }
.enter-drop .enter-item { animation: enterDrop 1s cubic-bezier(0.34, 1.56, 0.64, 1) both; animation-delay: calc(0.08s + var(--i, 0) * 0.07s * var(--anim-speed)); }

/* New hover animations */
.hover-border .link-btn:hover .link-fill { opacity: 1; transform: scaleX(1); background: transparent; box-shadow: inset 0 0 0 1px var(--accent), inset 0 0 18px rgba(var(--accent-rgb), 0.12); }
.hover-liftglow .link-btn:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(var(--accent-rgb), 0.35), 0 0 26px rgba(var(--accent-rgb), 0.22); }
.hover-blur .link-btn:hover { backdrop-filter: blur(22px) saturate(160%); background: rgba(255, 255, 255, 0.015); border-color: rgba(var(--accent-rgb), 0.4); }
.hover-swipe .link-btn .link-fill { opacity: 0.12; transform: scaleX(1); transform-origin: right; }
.hover-swipe .link-btn:hover .link-fill { transform: scaleX(0); }
.hover-ripple .link-btn { overflow: hidden; }
.ripple { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.35); transform: translate(-50%, -50%) scale(0); animation: ripple 0.65s ease-out forwards; pointer-events: none; z-index: 3; }

/* Gallery variations */
.gallery-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.gallery-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.gallery-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
.gallery-grid.gallery-style-masonry { display: block !important; column-count: 3; column-gap: 10px; }
.gallery-grid.gallery-style-masonry .gallery-item { display: block; width: 100%; aspect-ratio: auto; margin-bottom: 10px; break-inside: avoid; }
.gallery-grid.gallery-style-masonry .gallery-item img { height: auto; aspect-ratio: auto; }
.gallery-grid.gallery-style-carousel { display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 16px; scrollbar-width: none; }
.gallery-grid.gallery-style-carousel::-webkit-scrollbar { display: none; }
.gallery-grid.gallery-style-carousel .gallery-item { flex: 0 0 150px; width: 150px; scroll-snap-align: center; }
.gallery-grid.gallery-style-rounded .gallery-item { border-radius: 50%; }
.gallery-grid.gallery-style-polaroid .gallery-item { padding: 6px 6px 22px; background: #f4f4f5; border-color: transparent; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35); }
.gallery-grid.gallery-style-polaroid .gallery-item img { border-radius: 8px; }
.gallery-grid.gallery-style-polaroid .gallery-item::after { color: #18181b; background: rgba(255, 255, 255, 0.75); }
#gallery-lightbox .lb-error { color: var(--text-muted); font-size: 13px; padding: 40px; text-align: center; }

.reveal-on-scroll { opacity: 0; transform: translateY(22px); transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-on-scroll.visible { opacity: 1; transform: translateY(0); }
.border-glow { box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.45), 0 0 38px rgba(var(--accent-rgb), 0.20), 0 34px 80px rgba(0, 0, 0, 0.55) !important; }

/* ================================================================ STORY LAYOUT */
/* Card becomes a scroll-driven narrative: each chapter appears as you scroll. */
body.story-active .container { max-width: 680px; padding-top: 0; padding-bottom: 0; }
.layout-story {
  padding: 0 !important;
  overflow: visible !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.layout-story .profile-header {
  position: relative;
  min-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 40px 18px 70px;
  text-align: center;
  opacity: clamp(0, calc(1 - var(--story-progress) * 2.2), 1);
  transform: translateY(calc(var(--story-progress) * -70px)) scale(calc(1 - var(--story-progress) * 0.06));
  will-change: transform, opacity;
}
.layout-story .profile-header::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 12%;
  width: 1px; height: 74px;
  background: linear-gradient(var(--accent), transparent);
  opacity: 0.45;
  animation: storyLine 2.4s ease-in-out infinite;
}
.layout-story .profile-avatar { width: 130px; height: 130px; box-shadow: 0 0 0 7px rgba(var(--accent-rgb), 0.1), 0 30px 70px rgba(0, 0, 0, 0.65); }
.layout-story .profile-name { font-size: 38px; }
.layout-story .profile-bio { max-width: 460px; }
.layout-story .profile-content { display: flex; flex-direction: column; gap: 0; padding: 0 4px; }
.layout-story .story-chapter {
  position: relative;
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 46px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}
.layout-story .story-chapter-head { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.layout-story .story-num { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--accent); opacity: 0.8; letter-spacing: 0.12em; }
.layout-story .story-rule { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.45), transparent); }
.layout-story .story-title { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); }
.layout-story .chapter-body { display: flex; flex-direction: column; gap: 12px; }
.layout-story .chapter-body .link-btn { margin: 0; }
.layout-story .story-chapter-gallery .gallery-grid { margin-top: 2px; }
.layout-story .story-chapter-end { min-height: 48vh; text-align: center; }
.layout-story .story-chapter-end .story-chapter-head { max-width: 480px; margin-left: auto; margin-right: auto; }
.layout-story .story-end-note { margin: 6px 0 26px; color: var(--text-muted); font-size: 12px; letter-spacing: 0.08em; }
.layout-story .link-btn { backdrop-filter: blur(18px); }
.layout-story .discord-widget { max-width: 460px; }
.layout-story .profile-views { padding: 48px 0 80px; margin-top: 0; border-top: 1px solid rgba(255, 255, 255, 0.055); }
.story-reveal {
  opacity: 0;
  transform: translateY(56px) scale(0.975);
  filter: blur(7px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), filter 0.85s ease;
}
.story-reveal.visible { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
.story-reveal .gallery-item { opacity: 0; transform: translateY(26px); transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); transition-delay: calc(var(--g, 0) * 70ms); }
.story-reveal.visible .gallery-item { opacity: 1; transform: translateY(0); }
.story-hint {
  position: fixed;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  z-index: 90;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  border-radius: 99px;
  background: rgba(18, 18, 22, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  pointer-events: none;
  animation: hintBob 2.2s ease-in-out infinite;
  transition: opacity 0.4s;
}
.story-hint.hidden { opacity: 0; }
@keyframes storyLine { 0%, 100% { transform: scaleY(0.7); opacity: 0.2; } 50% { transform: scaleY(1); opacity: 0.6; } }
@keyframes hintBob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }

/* Loading skeleton */
.skeleton-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 30px 0; }
.sk { border-radius: 10px; background: linear-gradient(100deg, rgba(255,255,255,0.035) 20%, rgba(255,255,255,0.10) 40%, rgba(255,255,255,0.035) 60%); background-size: 220% 100%; animation: shimmer 1.4s linear infinite; }
.sk-avatar { width: 104px; height: 104px; border-radius: 50%; margin-bottom: 8px; }
.sk-line { height: 13px; }
.sk-btn { width: min(100%, 340px); height: 58px; border-radius: var(--radius); }

/* Extra polish */
.card > * { position: relative; z-index: 1; }
.divider { letter-spacing: 0.22em; }
.link-btn:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Scroll UI */
#scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 9998; pointer-events: none; background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 14px var(--accent); transition: width 0.12s linear; }
#back-to-top { position: fixed; left: 24px; bottom: 24px; width: 44px; height: 44px; border-radius: 50%; padding: 0; z-index: 99; background: rgba(20, 20, 24, 0.85); border: 1px solid var(--border); color: #fff; backdrop-filter: blur(14px); opacity: 0; transform: translateY(14px); pointer-events: none; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5); transition: 0.3s; }
#back-to-top::after { display: none; }
#back-to-top:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.12); }
#back-to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* Cursor variants */
#custom-cursor.cursor-ring { background: transparent; border: 1px solid rgba(255, 255, 255, 0.8); box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.55), inset 0 0 12px rgba(var(--accent-rgb), 0.25); }
#custom-cursor.cursor-cross { width: calc(var(--cursor-size) * 1.3); height: calc(var(--cursor-size) * 1.3); background: transparent; border: 1px solid rgba(255, 255, 255, 0.55); border-radius: 4px; transform: translate(-50%, -50%) rotate(45deg); box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.4); }
#custom-cursor.cursor-star { background: #fff; clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); border-radius: 0; box-shadow: none; }
#custom-cursor.cursor-star.hover { width: calc(var(--cursor-hover-size) * 0.82); height: calc(var(--cursor-hover-size) * 0.82); }

/* Keyframes for the new stuff */
@keyframes plasmaMove { 0% { transform: translate(-3%, -2%) rotate(-5deg) scale(1); } 100% { transform: translate(4%, 3%) rotate(6deg) scale(1.15); } }
@keyframes sunRise { from { transform: translate(-50%, 18px); opacity: 0.35; } to { transform: translate(-50%, -12px); opacity: 0.6; } }
@keyframes noiseShift { 0% { transform: translate(0, 0); } 33% { transform: translate(2px, -2px); } 66% { transform: translate(-2px, 1px); } 100% { transform: translate(1px, 2px); } }
@keyframes flame { from { transform: scaleY(0.8) translateY(3px); opacity: 0.7; } to { transform: scaleY(1.25) translateY(-3px); opacity: 1; } }
@keyframes spinSlow { to { transform: rotate(360deg); } }
@keyframes avatarPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes avatarTilt { 0%, 100% { transform: rotateY(0) rotateX(0); } 50% { transform: rotateY(16deg) rotateX(-8deg); } }
@keyframes avatarShine { from { background-position: 200% 200%; } to { background-position: -100% -100%; } }
@keyframes textFlicker { 0%, 19%, 21%, 55%, 57%, 100% { opacity: 1; } 20%, 56% { opacity: 0.35; } }
@keyframes wordRise { 0%, 100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(-6px); opacity: 0.65; } }
@keyframes letterDrop { from { transform: translateY(-26px) rotate(-14deg); opacity: 0; } to { transform: translateY(0) rotate(0); opacity: 1; } }
@keyframes enterBlur { from { opacity: 0; filter: blur(12px); transform: scale(0.96); } to { opacity: 1; filter: blur(0); transform: scale(1); } }
@keyframes enterZoom { from { opacity: 0; transform: scale(0.5); } to { opacity: 1; transform: scale(1); } }
@keyframes enterDiagonal { from { opacity: 0; transform: translate(-28px, 28px) rotate(-4deg); } to { opacity: 1; transform: translate(0, 0) rotate(0); } }
@keyframes enterReveal { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes enterDrop { 0% { opacity: 0; transform: translateY(-40px) rotate(-6deg); } 65% { opacity: 1; transform: translateY(6px) rotate(1deg); } 100% { transform: translateY(0) rotate(0); } }
@keyframes ripple { from { transform: translate(-50%, -50%) scale(0); opacity: 0.6; } to { transform: translate(-50%, -50%) scale(1); opacity: 0; } }
@keyframes introZoom { from { opacity: 0; transform: scale(0.88); } to { opacity: 1; transform: scale(1); } }
@keyframes introSlide { from { opacity: 0; transform: translateX(-60px) rotate(-3deg); } to { opacity: 1; transform: translateX(0) rotate(0); } }
@keyframes introBlur { from { opacity: 0; filter: blur(24px); } to { opacity: 1; filter: blur(0); } }
@keyframes introGlitch { 0% { opacity: 0; transform: translateX(-20px); clip-path: inset(0 0 70% 0); } 50% { opacity: 1; transform: translateX(12px); clip-path: inset(40% 0 20% 0); } 100% { opacity: 1; transform: translateX(0); clip-path: inset(0 0 0 0); } }
@keyframes introCurtain { from { opacity: 0; clip-path: inset(100% 0 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }

/* Layout responsiveness */
@media (max-width: 760px) {
  .layout-split { display: block; text-align: center; }
  .layout-split .profile-header { position: static; text-align: center; margin-bottom: 30px !important; }
  .layout-split .link-btn { justify-content: center; padding-left: 18px; }
  .layout-magazine .profile-content, .layout-bento .profile-content { grid-template-columns: 1fr; }
  .layout-terminal { text-align: center; }
  .layout-terminal .profile-header { text-align: center; }
  .layout-terminal .link-btn { justify-content: center; }
  .gallery-grid.gallery-style-masonry { column-count: 2; }
  .layout-story .profile-header { min-height: 74vh; }
  .layout-story .profile-name { font-size: 30px; }
  .layout-story .profile-avatar { width: 104px; height: 104px; }
  .layout-story .story-chapter { min-height: 52vh; padding: 40px 0; }
  .story-hint { bottom: 18px; font-size: 9px; }
  .gallery-cols-4, .gallery-cols-5 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* ================================================================ V2 POLISH */

/* ------------------------------------------------------------ AUTH SCREEN */
.auth-shell { width: 100%; max-width: 1180px; min-height: 100vh; margin: 0 auto; padding: 40px 30px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr); align-items: center; gap: clamp(30px, 6vw, 90px); }
.auth-hero { position: relative; overflow: hidden; }
.hero-orb { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(60px); opacity: .35; z-index: 0; }
.hero-orb.one { width: 300px; height: 300px; left: -90px; top: 8%; background: var(--accent); animation: orbDrift 12s ease-in-out infinite alternate; }
.hero-orb.two { width: 260px; height: 260px; right: -70px; top: 38%; background: var(--accent2); animation: orbDrift 15s ease-in-out infinite alternate-reverse; }
.hero-orb.three { width: 200px; height: 200px; left: 30%; bottom: -60px; background: #f472b6; animation: orbDrift 10s ease-in-out infinite alternate; }
@keyframes orbDrift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(28px,-34px,0) scale(1.2); } }
.auth-hero .brand { text-align: left; }
.auth-hero .logo { font-size: clamp(44px, 5.5vw, 68px); }
.auth-hero .tagline { font-size: 16px; max-width: 420px; line-height: 1.7; }
.auth-hero .feature-pills { justify-content: flex-start; max-width: 430px; }
.auth-hero .feature-pill:nth-child(4) { animation-delay: 0.36s; }
.hero-headline { margin-top: 34px; font-size: clamp(24px, 2.8vw, 38px); font-weight: 700; line-height: 1.15; letter-spacing: -0.04em; }
.hero-headline em { font-style: normal; background: linear-gradient(100deg, #fff, var(--accent), #a78bfa); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 5s linear infinite; }
.hero-copy { margin-top: 14px; max-width: 420px; color: var(--text-dim); font-size: 14px; line-height: 1.8; }
.hero-checks { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 24px; }
.hero-check { display: flex; align-items: center; gap: 8px; color: var(--text-dim); font-size: 12px; }
.hero-check b { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: rgba(var(--accent-rgb), .14); border: 1px solid rgba(var(--accent-rgb), .35); color: var(--accent); font-size: 10px; }

.showcase-stage { position: relative; height: 330px; margin-top: 30px; display: grid; place-items: center; }
.showcase-glow { position: absolute; width: 340px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--accent-rgb), .22), transparent 68%); filter: blur(28px); animation: heroGlow 7s ease-in-out infinite alternate; }
.showcase-ring { position: absolute; width: 290px; height: 290px; border: 1px solid rgba(255,255,255,.07); border-radius: 50%; animation: spinSlow 26s linear infinite; }
.showcase-ring::before { content: ''; position: absolute; top: -4px; left: calc(50% - 4px); width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 16px 4px rgba(var(--accent-rgb), .45); }
.showcase-ring.two { width: 370px; height: 370px; border-style: dashed; animation-duration: 38s; animation-direction: reverse; opacity: .6; }
.mock-phone { position: relative; width: 212px; height: 306px; padding: 26px 16px 18px; border-radius: 30px; background: linear-gradient(150deg, rgba(30,30,36,.94), rgba(12,12,16,.96)); border: 1px solid rgba(255,255,255,.16); box-shadow: 0 32px 70px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.1); animation: mockFloat 6s ease-in-out infinite; overflow: hidden; }
.mock-phone::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 40% at 50% 0%, rgba(var(--accent-rgb), .18), transparent 75%); pointer-events: none; }
.mock-notch { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 52px; height: 6px; border-radius: 99px; background: rgba(255,255,255,.16); }
.mock-avatar { width: 52px; height: 52px; margin: 4px auto 8px; border-radius: 50%; background: conic-gradient(from 30deg, var(--accent), #22d3ee, #a855f7, var(--accent)); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .12), 0 10px 24px rgba(0,0,0,.5); position: relative; }
.mock-avatar::after { content: '✦'; position: absolute; inset: 4px; border-radius: 50%; display: grid; place-items: center; background: #101014; color: #fff; font-size: 18px; }
.mock-name { text-align: center; font-size: 13px; font-weight: 700; }
.mock-name span { color: var(--accent); font-size: 10px; }
.mock-handle { text-align: center; color: var(--text-muted); font-size: 9px; margin-top: 2px; }
.mock-bio { text-align: center; color: var(--text-dim); font-size: 8px; margin: 8px 0 14px; }
.mock-link { height: 26px; margin-bottom: 7px; border-radius: 8px; display: flex; align-items: center; gap: 7px; padding: 0 9px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.82); font-size: 8px; animation: mockLinkIn .6s cubic-bezier(.16,1,.3,1) both; }
.mock-link:nth-of-type(2) { animation-delay: .12s; }
.mock-link:nth-of-type(3) { animation-delay: .24s; }
.mock-link:nth-of-type(4) { animation-delay: .36s; }
.mock-link i { width: 10px; height: 10px; border-radius: 3px; background: var(--accent); opacity: .8; }
.mock-link:nth-of-type(3) i { background: #22d3ee; }
.mock-link:nth-of-type(4) i { background: #f472b6; }
.float-chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: 99px; background: rgba(20,20,26,.8); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(16px); box-shadow: 0 14px 34px rgba(0,0,0,.5); color: #fff; font-size: 10px; font-weight: 600; letter-spacing: .02em; animation: chipFloat 5s ease-in-out infinite; }
.float-chip.one { left: 2%; top: 22%; animation-delay: -.4s; }
.float-chip.two { right: 1%; top: 38%; animation-delay: -1.8s; }
.float-chip.three { left: 8%; bottom: 14%; animation-delay: -3s; }
.float-chip em { font-style: normal; color: var(--accent); }

.auth-container { width: 100%; max-width: 440px; min-height: 0; margin: 0; padding: 0; }
.auth-card { padding: 34px 30px; }
.auth-card::after { content: ''; position: absolute; right: -1px; top: -1px; width: 120px; height: 120px; border-radius: 0 0 0 100%; background: radial-gradient(circle at 100% 0, rgba(var(--accent-rgb), .12), transparent 70%); pointer-events: none; }
.auth-kicker { display: inline-flex; align-items: center; gap: 7px; font-size: 10px; text-transform: uppercase; letter-spacing: .16em; color: var(--text-muted); margin-bottom: 10px; }
.auth-kicker::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px var(--success); animation: pulseDot 2s infinite; }
.auth-card h2 { font-size: 24px; letter-spacing: -.035em; margin-bottom: 6px; }
.auth-sub { color: var(--text-dim); font-size: 12px; margin-bottom: 22px; line-height: 1.6; }
.field-wrap { position: relative; }
.field-wrap input { padding-right: 46px; }
.field-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 32px; height: 30px; border: none; background: transparent; color: var(--text-muted); font-size: 13px; cursor: pointer; border-radius: 8px; box-shadow: none !important; }
.field-toggle::after { display: none !important; }
.field-toggle:hover { color: #fff; background: rgba(255,255,255,.06); }
.form-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0 2px; }
.text-link { background: none; border: none; padding: 0; color: var(--accent); font-size: 11px; cursor: pointer; box-shadow: none !important; }
.text-link::after { display: none !important; }
.text-link:hover { text-decoration: underline; }
.remember { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 11px; cursor: pointer; }
.remember input { width: 14px; height: 14px; accent-color: var(--accent); }
.password-meter { margin-top: 8px; }
.password-meter i { display: block; height: 3px; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--danger), #facc15, var(--success)); transition: width .3s cubic-bezier(.16,1,.3,1); }
.password-meter span { display: block; margin-top: 5px; color: var(--text-muted); font-size: 9px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0 18px; color: var(--text-muted); font-size: 10px; text-transform: uppercase; letter-spacing: .14em; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-foot { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); text-align: center; color: var(--text-muted); font-size: 11px; line-height: 1.8; }
.auth-foot a { color: var(--accent); text-decoration: none; }
.session-note { display: none; align-items: center; gap: 8px; padding: 10px 12px; margin-bottom: 18px; border-radius: 10px; background: rgba(var(--accent-rgb), .08); border: 1px solid rgba(var(--accent-rgb), .2); color: var(--text-dim); font-size: 11px; }
.session-note.show { display: flex; }
.session-note a { margin-left: auto; color: var(--accent); text-decoration: none; font-weight: 600; }
.shake { animation: shake .4s ease; }

/* ------------------------------------------------------------ STUDIO TOP */
.studio-topbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 0 0 18px; margin-bottom: 4px; border-bottom: 1px solid var(--border); }
.topbar-brand { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: -.02em; }
.topbar-brand i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #09090b; font-style: normal; font-size: 14px; box-shadow: 0 6px 18px rgba(var(--accent-rgb), .25); }
.topbar-brand span { color: var(--text-muted); font-weight: 500; }
.topbar-actions { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.topbar-btn { width: auto; padding: 8px 11px; border-radius: 10px; background: rgba(255,255,255,.035); border: 1px solid var(--border); color: var(--text-dim); font-size: 11px; font-weight: 600; box-shadow: none; white-space: nowrap; }
.topbar-btn::after { display: none; }
.topbar-btn:hover { color: #fff; background: rgba(255,255,255,.09); transform: none; box-shadow: none; }
.topbar-btn kbd { margin-left: 5px; padding: 1px 5px; border-radius: 5px; background: rgba(255,255,255,.08); border: 1px solid var(--border); font-size: 9px; font-family: 'JetBrains Mono', monospace; color: var(--text-muted); }
.topbar-btn.primary { color: #09090b; background: linear-gradient(120deg, var(--accent), var(--accent-2)); border-color: transparent; }
.topbar-btn.primary:hover { color: #09090b; filter: brightness(1.12); }

.draft-banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 11px 14px; margin-bottom: 18px; border-radius: 12px; background: rgba(250,204,21,.07); border: 1px solid rgba(250,204,21,.22); color: #fde68a; font-size: 11px; animation: tabPanelIn .35s both; }
.draft-banner button { width: auto; padding: 5px 10px; border-radius: 8px; font-size: 10px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: #fff; box-shadow: none; }
.draft-banner button::after { display: none; }
.draft-banner .spacer { flex: 1; }

/* ------------------------------------------------------- COMMAND PALETTE */
.cmd-backdrop { position: fixed; inset: 0; z-index: 10010; background: rgba(4,4,7,.72); backdrop-filter: blur(8px); display: flex; align-items: flex-start; justify-content: center; padding: 12vh 18px 18px; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s, visibility .2s; }
.cmd-backdrop.open { opacity: 1; visibility: visible; pointer-events: auto; }
.cmd-panel { width: min(560px, 100%); max-height: 70vh; overflow: hidden; display: flex; flex-direction: column; border-radius: 18px; background: rgba(20,20,26,.96); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 40px 100px rgba(0,0,0,.8); transform: translateY(-14px) scale(.98); transition: transform .25s cubic-bezier(.16,1,.3,1); }
.cmd-backdrop.open .cmd-panel { transform: translateY(0) scale(1); }
.cmd-search { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.cmd-search span { color: var(--text-muted); font-size: 18px; }
.cmd-search input { border: none; background: transparent; padding: 0; font-size: 15px; box-shadow: none !important; }
.cmd-search input:focus { border: none; box-shadow: none !important; }
.cmd-results { overflow-y: auto; padding: 8px; }
.cmd-group-title { padding: 10px 10px 6px; font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); }
.cmd-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 10px; background: transparent; border: none; color: var(--text-dim); text-align: left; cursor: pointer; box-shadow: none; }
.cmd-item::after { display: none; }
.cmd-item i { width: 26px; height: 26px; flex: 0 0 26px; display: grid; place-items: center; border-radius: 8px; background: rgba(255,255,255,.06); color: var(--accent); font-style: normal; font-size: 13px; }
.cmd-item b { display: block; color: #fff; font-size: 12px; font-weight: 600; }
.cmd-item small { display: block; font-size: 10px; color: var(--text-muted); }
.cmd-item:hover, .cmd-item.selected { background: rgba(var(--accent-rgb), .12); color: #fff; }
.cmd-empty { padding: 30px; text-align: center; color: var(--text-muted); font-size: 12px; }
.cmd-foot { padding: 10px 18px; border-top: 1px solid var(--border); display: flex; gap: 14px; color: var(--text-muted); font-size: 10px; }
.cmd-foot kbd { font-family: 'JetBrains Mono', monospace; padding: 1px 5px; border-radius: 4px; background: rgba(255,255,255,.07); border: 1px solid var(--border); }

@keyframes heroGlow { from { transform: translate(-8px, 6px) scale(.92); opacity: .7; } to { transform: translate(8px, -6px) scale(1.08); opacity: 1; } }
@keyframes mockFloat { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-12px) rotate(1deg); } }
@keyframes mockLinkIn { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes chipFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }

/* --------------------------------------------------------- STUDIO EXTRAS */
.section-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.section-head h3 { font-size: 13px; font-weight: 700; letter-spacing: -.01em; }
.section-head small { color: var(--text-muted); font-size: 10px; }
.section-head .spacer { flex: 1; }
.mini-btn { width: auto; padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,.05); border: 1px solid var(--border); color: var(--text-dim); font-size: 10px; font-weight: 600; box-shadow: none; }
.mini-btn::after { display: none; }
.mini-btn:hover { color: #fff; background: rgba(255,255,255,.1); transform: none; box-shadow: none; }
.mini-btn.danger { color: var(--danger); border-color: rgba(251,113,133,.24); }
.mini-btn.on { color: #09090b; background: var(--accent); border-color: transparent; }
.hint-line { color: var(--text-muted); font-size: 10px; line-height: 1.7; margin: 8px 0 14px; }

.link-editor { padding: 10px; border-radius: 12px; background: rgba(255,255,255,.028); border: 1px solid var(--border); margin-bottom: 8px; transition: border-color .2s, background .2s; }
.link-editor:focus-within { border-color: rgba(var(--accent-rgb), .35); background: rgba(255,255,255,.045); }
.link-main-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.link-grip { width: 22px; flex: 0 0 22px; background: none; border: none; color: var(--text-muted); cursor: grab; font-size: 13px; box-shadow: none; padding: 0; }
.link-grip::after { display: none; }
.link-main-row input { min-width: 0; }
.link-main-row input.link-icon-input { flex: 0 0 46px; width: 46px; text-align: center; padding-left: 6px; padding-right: 6px; }
.link-main-row input.link-title-input { flex: 1 1 130px; }
.link-main-row input.link-url-input { flex: 1 1 180px; }
.link-tools { display: flex; gap: 4px; margin-left: auto; }
.link-tools button { width: 28px; height: 30px; padding: 0; border-radius: 8px; background: rgba(255,255,255,.05); border: 1px solid var(--border); color: var(--text-muted); font-size: 12px; box-shadow: none; }
.link-tools button::after { display: none; }
.link-tools button:hover { color: #fff; background: rgba(255,255,255,.12); }
.link-tools button.on { color: #09090b; background: var(--accent); border-color: transparent; }
.link-tools button.remove:hover { color: var(--danger); border-color: rgba(251,113,133,.3); }
.link-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); }
.link-details label { font-size: 9px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin-bottom: 4px; display: block; }
.link-editor.dragging { opacity: .4; transform: scale(.99); }
.link-editor.drag-over { border-color: var(--accent); }

.gallery-thumb.dragging { opacity: .4; }
.gallery-thumb.drag-over { outline: 2px solid var(--accent); outline-offset: 2px; }
.gallery-editor { margin-bottom: 10px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 10020; display: grid; place-items: center; padding: 18px; background: rgba(4,4,7,.74); backdrop-filter: blur(8px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s, visibility .2s; }
.modal-backdrop.open { opacity: 1; visibility: visible; pointer-events: auto; }
.modal { width: min(520px, 100%); max-height: 86vh; overflow-y: auto; padding: 24px; border-radius: 20px; background: rgba(18,18,24,.97); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 40px 100px rgba(0,0,0,.8); transform: translateY(12px) scale(.98); transition: transform .24s cubic-bezier(.16,1,.3,1); }
.modal-backdrop.open .modal { transform: none; }
.modal h3 { font-size: 17px; margin-bottom: 6px; }
.modal p { color: var(--text-dim); font-size: 11px; line-height: 1.7; margin-bottom: 16px; }
.modal .modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.modal .modal-actions button { width: auto; padding: 10px 16px; font-size: 11px; }

.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tool-card { padding: 14px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--border); }
.tool-card h4 { font-size: 11px; margin-bottom: 5px; display: flex; align-items: center; gap: 7px; }
.tool-card p { color: var(--text-muted); font-size: 10px; line-height: 1.65; margin-bottom: 12px; }
.tool-card .mini-btn { width: 100%; }
.code-area { width: 100%; min-height: 120px; font-family: 'JetBrains Mono', monospace !important; font-size: 10px !important; line-height: 1.65; word-break: break-all; }
.qr-row { display: flex; gap: 16px; align-items: center; }
.qr-box { width: 126px; height: 126px; flex: 0 0 126px; padding: 8px; border-radius: 12px; background: #0b0b0f; border: 1px solid var(--border); display: grid; place-items: center; }
.qr-box img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }
.qr-box .qr-fallback { color: var(--text-muted); font-size: 9px; text-align: center; }
.share-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.share-btn { display: grid; place-items: center; gap: 2px; padding: 10px 4px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid var(--border); color: var(--text-dim); font-size: 15px; box-shadow: none; text-decoration: none; }
.share-btn::after { display: none; }
.share-btn small { font-size: 8px; }
.share-btn:hover { color: #fff; background: rgba(255,255,255,.1); transform: translateY(-2px); box-shadow: none; }
.chip-list { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 5px 9px; border-radius: 99px; background: rgba(var(--accent-rgb), .08); border: 1px solid rgba(var(--accent-rgb), .2); color: var(--text-dim); font-size: 10px; }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.swatch { width: 30px; height: 30px; border-radius: 9px; border: 1px solid rgba(255,255,255,.18); cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.35); }
.swatch:hover { transform: translateY(-2px); }

.stat-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-card { position: relative; overflow: hidden; }
.stat-card.accent { background: linear-gradient(140deg, rgba(var(--accent-rgb), .16), rgba(255,255,255,.03)); border-color: rgba(var(--accent-rgb), .26); }
.stat-trend { font-size: 9px; color: var(--success); margin-top: 4px; }
.breakdown { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; align-items: center; margin: 18px 0; }
.donut { width: 140px; height: 140px; border-radius: 50%; position: relative; background: conic-gradient(var(--accent) 0 25%, var(--accent-2) 25% 50%, #38bdf8 50% 70%, rgba(255,255,255,.08) 70% 100%); display: grid; place-items: center; box-shadow: 0 12px 34px rgba(0,0,0,.4); }
.donut::before { content: ''; position: absolute; inset: 18px; border-radius: 50%; background: #111115; border: 1px solid var(--border); }
.donut-center { position: relative; z-index: 1; text-align: center; }
.donut-center b { display: block; font-size: 24px; letter-spacing: -.04em; }
.donut-center small { color: var(--text-muted); font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }
.legend { display: grid; gap: 9px; }
.legend-row { display: flex; align-items: center; gap: 9px; font-size: 11px; color: var(--text-dim); }
.legend-row i { width: 9px; height: 9px; border-radius: 3px; flex: 0 0 9px; }
.legend-row b { margin-left: auto; color: #fff; font-family: 'JetBrains Mono', monospace; font-size: 10px; }
.bar-chart { display: flex; align-items: flex-end; gap: 5px; height: 76px; padding: 8px 0 0; }
.bar { flex: 1; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, var(--accent), rgba(var(--accent-rgb), .16)); min-height: 3px; opacity: .85; transition: height .5s cubic-bezier(.16,1,.3,1); }
.bar:hover { opacity: 1; }
.progress-line { height: 5px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; margin-top: 8px; }
.progress-line i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .5s cubic-bezier(.16,1,.3,1); }
.toast-action { margin-left: 12px; padding: 3px 9px; border-radius: 7px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.16); color: #fff; font-size: 10px; font-weight: 700; cursor: pointer; box-shadow: none; }
.toast-action::after { display: none; }

/* ------------------------------------------------------------ PROFILE V2 */
.profile-name-row { display: flex; align-items: center; justify-content: center; gap: 8px; }
.verified { display: inline-grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: var(--accent); color: #09090b; font-size: 11px; font-weight: 800; box-shadow: 0 0 18px rgba(var(--accent-rgb), .45); }
.profile-status { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; padding: 6px 13px; border-radius: 99px; background: rgba(255,255,255,.055); border: 1px solid var(--border); color: var(--text-dim); font-size: 11px; backdrop-filter: blur(10px); }
.profile-status i { font-style: normal; font-size: 13px; }
.profile-location { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; color: var(--text-muted); font-size: 10px; letter-spacing: .06em; }
.link-favicon { width: 19px; height: 19px; border-radius: 5px; flex: 0 0 19px; object-fit: contain; z-index: 2; }
.link-body { display: flex; flex-direction: column; align-items: inherit; gap: 2px; min-width: 0; z-index: 2; }
.link-body small { font-size: 10px; font-weight: 400; color: var(--text-muted); letter-spacing: 0; }
.link-badge { margin-left: auto; padding: 3px 8px; border-radius: 99px; background: rgba(var(--accent-rgb), .14); border: 1px solid rgba(var(--accent-rgb), .28); color: var(--accent); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; z-index: 2; }
.links-left .link-body, .links-right .link-body { align-items: inherit; }
.link-count { font-size: 9px; letter-spacing: .06em; color: var(--text-muted); white-space: nowrap; z-index: 2; }
.link-btn[style*="--link-color"] { color: var(--link-color); border-color: var(--link-color); }
.link-btn[style*="--link-color"] .link-badge { color: var(--link-color); border-color: var(--link-color); }
.link-btn.link-featured { border-color: rgba(var(--accent-rgb), .45); box-shadow: 0 0 0 1px rgba(var(--accent-rgb), .15), 0 12px 34px rgba(var(--accent-rgb), .14); }
.link-btn.link-featured::before { content: '✦'; position: absolute; left: 8px; top: 5px; font-size: 8px; color: var(--accent); opacity: .7; z-index: 2; }
.link-btn.link-disabled { opacity: .45; pointer-events: none; filter: grayscale(.7); }
.link-btn.link-disabled::after { content: 'soon'; font-size: 9px; letter-spacing: .1em; }
.card-tilt { transform-style: preserve-3d; transition: transform .18s ease-out; }
.card-tilt:hover { transform: none; }

.layout-orbit .profile-content { position: relative; display: flex; flex-direction: column; gap: 12px; padding-left: 24px; }
.layout-orbit .profile-content::before { content: ''; position: absolute; left: 5px; top: 10px; bottom: 10px; width: 1px; background: linear-gradient(var(--accent), transparent); opacity: .35; }
.layout-orbit .link-btn::before { content: ''; position: absolute; left: -23px; top: 50%; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .13); transform: translateY(-50%); z-index: 3; }
.layout-orbit .link-btn:nth-child(odd) { margin-left: 10px; }
.layout-orbit .link-btn:nth-child(even) { margin-left: 0; }
.layout-cards .profile-content { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.layout-cards .link-btn { margin: 0; min-height: 88px; flex-direction: column; gap: 6px; text-align: center; padding: 14px 10px; background: linear-gradient(150deg, rgba(255,255,255,.09), rgba(255,255,255,.025)); }
.layout-cards .link-btn:first-child { grid-column: 1 / -1; min-height: 120px; }
.layout-cards .divider, .layout-cards .discord-widget, .layout-cards .gallery-grid { grid-column: 1 / -1; }
.layout-wave .link-btn:nth-child(3n+1) { margin-left: 0; }
.layout-wave .link-btn:nth-child(3n+2) { margin-left: 14px; }
.layout-wave .link-btn:nth-child(3n+3) { margin-left: 28px; }
.layout-wave .link-btn:nth-child(4n)::after { content: '✦'; }

.layout-comet .profile-content { position: relative; display: flex; flex-direction: column; gap: 11px; padding-left: 18px; }
.layout-comet .profile-content::before { content: ''; position: absolute; left: 2px; top: 4px; width: 2px; height: 82%; border-radius: 99px; background: linear-gradient(var(--accent), var(--accent-2), transparent); opacity: .42; }
.layout-comet .link-btn { margin-left: 0; }
.layout-comet .link-btn:nth-child(3n+2) { margin-left: 12px; }
.layout-comet .link-btn:nth-child(3n+3) { margin-left: 24px; }
.layout-comet .link-btn::before { content: '›'; position: absolute; left: -19px; top: 50%; transform: translateY(-50%); color: var(--accent); font-size: 16px; opacity: .65; z-index: 3; }

.layout-stack .profile-content { display: flex; flex-direction: column; gap: 8px; perspective: 900px; }
.layout-stack .link-btn { margin: 0; transform: translateZ(0) scale(.97); transform-origin: center top; opacity: .92; transition: transform .3s cubic-bezier(.16,1,.3,1), opacity .3s; }
.layout-stack .link-btn:nth-child(2) { transform: translateZ(-14px) scale(.95); opacity: .8; }
.layout-stack .link-btn:nth-child(3) { transform: translateZ(-28px) scale(.93); opacity: .68; }
.layout-stack .link-btn:nth-child(n+4) { transform: translateZ(-42px) scale(.91); opacity: .55; }
.layout-stack .link-btn:hover { transform: translateZ(24px) scale(1.02) !important; opacity: 1 !important; z-index: 4; }

.link-section { display: flex; align-items: center; gap: 10px; margin: 16px 0 4px; color: var(--text-muted); font-size: 9px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.link-section::before { content: ''; width: 18px; height: 1px; background: var(--accent); opacity: .5; }
.link-section::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.link-spotlight { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .25s; background: radial-gradient(180px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--accent-rgb), .18), transparent 65%); }
.link-btn:hover .link-spotlight { opacity: 1; }

#profile-share.has-menu { border-radius: 14px; }
.share-popover { position: fixed; right: 24px; bottom: 84px; z-index: 100; width: 208px; padding: 10px; border-radius: 16px; background: rgba(18,18,24,.95); border: 1px solid rgba(255,255,255,.15); backdrop-filter: blur(18px); box-shadow: 0 22px 60px rgba(0,0,0,.7); animation: tabPanelIn .25s both; }
.share-popover .pop-title { padding: 4px 8px 9px; font-size: 9px; text-transform: uppercase; letter-spacing: .14em; color: var(--text-muted); }
.share-popover button, .share-popover a { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px; border: none; border-radius: 9px; background: transparent; color: var(--text-dim); font-size: 11px; text-decoration: none; box-shadow: none; cursor: pointer; }
.share-popover button::after, .share-popover a::after { display: none; }
.share-popover button:hover, .share-popover a:hover { background: rgba(255,255,255,.09); color: #fff; }
.share-popover i { width: 18px; text-align: center; font-style: normal; color: var(--accent); }
#profile-music ~ #profile-share.has-menu + .share-popover { bottom: 154px; }

/* Mini previews for the new effects */
.fx-mini.fireworks::before { inset: 0; background: radial-gradient(circle at 50% 50%, #fff 0 2px, transparent 3px), conic-gradient(from 0deg at 50% 50%, transparent, rgba(250,204,21,.6) 3deg, transparent 12deg, rgba(244,114,182,.5) 20deg, transparent 30deg); animation: spin 3s linear infinite; }
.fx-mini.bokeh::before { inset: 0; background: radial-gradient(circle at 25% 30%, rgba(255,255,255,.55) 0 6px, transparent 8px), radial-gradient(circle at 70% 65%, rgba(167,139,250,.6) 0 9px, transparent 11px); animation: miniFloat 3s ease-in-out infinite alternate; }
.fx-mini.lava::before { inset: 0; background: radial-gradient(circle at 30% 70%, #f97316, transparent 55%), radial-gradient(circle at 75% 30%, #fbbf24, transparent 50%); filter: blur(4px); animation: plasmaMove 4s ease-in-out infinite alternate; }
.fx-mini.leaves::before { inset: 0; background: radial-gradient(ellipse 3px 2px at 25% 20%, #86efac 98%, transparent), radial-gradient(ellipse 3px 2px at 70% 65%, #fb923c 98%, transparent); animation: miniScroll 2.4s linear infinite; }
.fx-mini.dna::before { inset: 4px 0; background: repeating-linear-gradient(0deg, transparent 0 6px, rgba(167,139,250,.55) 6px 7px); mask-image: linear-gradient(90deg, transparent, #000 25%, transparent 50%, #000 75%, transparent); animation: miniScroll 2s linear infinite; }
.fx-mini.waveform::before { inset: 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,.5) 0 2px, transparent 2px 7px); mask-image: linear-gradient(180deg, transparent 20%, #000 50%, transparent 80%); animation: miniPulse 1.1s ease-in-out infinite alternate; }
@keyframes miniPulse { from { transform: scaleY(.45); } to { transform: scaleY(1); } }
@keyframes nebulaDrift { from { transform: translate3d(-3%, 2%, 0) scale(1); opacity: .3; } to { transform: translate3d(4%, -3%, 0) scale(1.14); opacity: .48; } }
@keyframes nebulaSpin { from { rotate: 0deg; } to { rotate: 360deg; } }

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; gap: 36px; padding: 40px 22px; }
  .auth-hero .brand, .auth-hero .feature-pills { text-align: center; justify-content: center; }
  .auth-hero .tagline, .hero-copy { margin-left: auto; margin-right: auto; }
  .hero-checks { justify-content: center; }
  .showcase-stage { height: 300px; }
  .auth-container { margin: 0 auto; }
  .stat-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .breakdown { grid-template-columns: 140px minmax(0, 1fr); gap: 14px; }
}
@media (max-width: 640px) {
  .auth-shell { padding: 28px 16px 40px; }
  .auth-hero .logo { font-size: 40px; }
  .showcase-stage { height: 260px; transform: scale(.86); }
  .float-chip.one { left: -4%; }
  .float-chip.two { right: -4%; }
  .topbar-actions { width: 100%; }
  .topbar-btn { flex: 1; text-align: center; justify-content: center; }
  .topbar-btn kbd { display: none; }
  .link-details { grid-template-columns: 1fr 1fr; }
  .link-main-row input.link-url-input { flex-basis: 100%; order: 3; }
  .link-tools { order: 4; }
  .tool-grid { grid-template-columns: 1fr; }
  .qr-row { flex-direction: column; align-items: flex-start; }
  .breakdown { grid-template-columns: 1fr; justify-items: center; }
  .legend { width: 100%; }
  .layout-cards .profile-content { grid-template-columns: 1fr; }
  .layout-wave .link-btn { margin-left: 0 !important; }
  .share-popover { right: 16px; }
}

/* ================================================================ V3 WOW */

/* --------------------------------------------------------- STUDIO TOOLS */
.fx-toolbar { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.fx-search { flex: 1; min-width: 0; padding: 8px 11px; font-size: 11px; }
.fx-search::placeholder { color: var(--text-muted); }
.fx-toolbar .mini-btn { white-space: nowrap; }
.fx-toolbar .mini-btn.active { color: #09090b; background: #fbbf24; border-color: transparent; }
.effect-card { position: relative; }
.fx-fav { position: absolute; right: 5px; top: 5px; z-index: 2; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; background: rgba(0,0,0,.35); color: rgba(255,255,255,.35); font-size: 10px; line-height: 1; cursor: pointer; transition: color .2s, transform .2s; }
.fx-fav:hover { color: #fbbf24; transform: scale(1.15); }
.fx-fav.on { color: #fbbf24; }

.upload-zone { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-top: 8px; border: 1px dashed rgba(var(--accent-rgb), .28); border-radius: 12px; background: rgba(var(--accent-rgb), .04); cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.upload-zone:hover { border-color: var(--accent); background: rgba(var(--accent-rgb), .09); transform: translateY(-1px); }
.upload-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; background: rgba(var(--accent-rgb), .12); color: var(--accent); font-size: 15px; }
.upload-zone b { display: block; font-size: 11px; color: #fff; }
.upload-zone small { display: block; font-size: 9px; color: var(--text-muted); margin-top: 2px; }

.topbar-btn:disabled { opacity: .35; cursor: not-allowed; transform: none; }
.topbar-btn:disabled:hover { background: rgba(255,255,255,.035); color: var(--text-dim); }
.topbar-btn.on { color: #09090b; background: var(--accent); border-color: var(--accent); }
.topbar-btn.on kbd { border-color: rgba(0,0,0,.2); color: rgba(0,0,0,.6); }
.studio-focus .dashboard-layout { grid-template-columns: minmax(0, 1fr) !important; }
.studio-focus .live-preview-panel { display: none; }
.studio-focus .topbar-brand { display: none; }

.preview-tools { display: flex; align-items: center; gap: 8px; }
.preview-expand { width: 28px; height: 28px; padding: 0; border-radius: 8px; background: rgba(255,255,255,.05); border: 1px solid var(--border); color: var(--text-dim); font-size: 13px; box-shadow: none; }
.preview-expand::after { display: none; }
.preview-expand:hover { color: #fff; background: rgba(255,255,255,.11); transform: none; box-shadow: none; }
.preview-stage.preview-fullscreen { position: fixed; inset: 0; z-index: 10030; width: 100vw; height: 100vh; background: #07070a; padding: 22px; display: grid; place-items: center; }
.preview-stage.preview-fullscreen .preview-frame-wrap { max-width: 520px; height: 100%; }
.preview-stage.preview-fullscreen::after { content: 'Press Esc to exit'; position: fixed; bottom: 8px; left: 50%; transform: translateX(-50%); color: var(--text-muted); font-size: 10px; letter-spacing: .1em; }

.icon-modal { width: min(600px, 100%); }
.shortcuts-modal { width: min(440px, 100%); }
.shortcut-list { display: grid; gap: 6px; margin: 14px 0; }
.shortcut-list > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid var(--border); font-size: 11px; color: var(--text-dim); }
.shortcut-list kbd { padding: 3px 7px; border-radius: 6px; border: 1px solid var(--border); background: rgba(255,255,255,.05); color: #fff; font-size: 10px; font-family: ui-monospace, monospace; }
.icon-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.icon-choice { width: 100%; aspect-ratio: 1; padding: 0; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid var(--border); color: #fff; font-size: 18px; box-shadow: none; }
.icon-choice::after { display: none; }
.icon-choice:hover { background: rgba(var(--accent-rgb), .16); border-color: var(--accent); transform: translateY(-2px); box-shadow: none; }

.checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 22px; }
.check-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; border-radius: 11px; background: rgba(255,255,255,.03); border: 1px solid var(--border); color: var(--text-dim); text-align: left; font-size: 11px; box-shadow: none; }
.check-item::after { display: none; }
.check-item i { display: grid; place-items: center; width: 22px; height: 22px; flex: 0 0 22px; border-radius: 7px; background: rgba(255,255,255,.06); color: var(--text-muted); font-style: normal; font-size: 11px; }
.check-item.done { color: var(--success); border-color: rgba(74,222,128,.2); background: rgba(74,222,128,.05); }
.check-item.done i { background: rgba(74,222,128,.14); color: var(--success); }
.check-item:hover { transform: none; background: rgba(255,255,255,.07); box-shadow: none; }

/* ----------------------------------------------------------- PROFILE WOW */
.link-spotlight { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .25s; background: radial-gradient(170px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--accent-rgb), .2), transparent 66%); }
.link-btn:hover .link-spotlight { opacity: 1; }

.profile-name-row { position: relative; padding-bottom: 10px; }
.profile-name-row::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 44px; height: 2px; border-radius: 99px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .55; }
.profile-status i { animation: statusPulse 2.4s ease-in-out infinite; }
.card { transition: box-shadow .5s cubic-bezier(.16,1,.3,1), border-color .5s; }
.card:hover { box-shadow: 0 30px 90px rgba(0,0,0,.55), 0 0 0 1px rgba(var(--accent-rgb), .12); }
.link-btn { transition: transform .28s cubic-bezier(.16,1,.3,1), box-shadow .28s, border-color .28s, background .28s; }
.link-btn > span:not(.link-fill):not(.link-spotlight) { position: relative; z-index: 2; }

@keyframes statusPulse { 0%, 100% { transform: scale(1); filter: brightness(1); } 50% { transform: scale(1.18); filter: brightness(1.4); } }

@media (max-width: 700px) {
  .icon-grid { grid-template-columns: repeat(6, 1fr); }
  .checklist { grid-template-columns: 1fr; }
  .fx-toolbar { flex-wrap: wrap; }
  .fx-search { flex-basis: 100%; }
  .topbar-btn kbd { display: none; }
}

/* ================================================================ V4 BADGES */
.tone-violet { --tone: 167, 139, 250; }
.tone-red    { --tone: 248, 113, 113; }
.tone-green  { --tone: 74, 222, 128; }
.tone-amber  { --tone: 251, 191, 36; }
.tone-cyan   { --tone: 34, 211, 238; }
.tone-blue   { --tone: 96, 165, 250; }
.tone-slate  { --tone: 148, 163, 184; }
.tone-pink   { --tone: 244, 114, 182; }

.link-badge[class*="tone-"] {
  background: rgba(var(--tone), .14);
  border-color: rgba(var(--tone), .42);
  color: rgb(var(--tone));
  box-shadow: 0 0 16px rgba(var(--tone), .12);
}

.profile-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px; }
.profile-badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 99px; background: rgba(var(--tone), .12); border: 1px solid rgba(var(--tone), .35); color: rgb(var(--tone)); font-size: 9px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; backdrop-filter: blur(8px); animation: badgeIn .5s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(var(--i, 2) * 60ms); }
.profile-badge:hover { background: rgba(var(--tone), .22); transform: translateY(-2px); }
@keyframes badgeIn { from { opacity: 0; transform: translateY(8px) scale(.9); } to { opacity: 1; transform: none; } }

.badge-field { display: flex; gap: 6px; }
.badge-field input { flex: 1; min-width: 0; }
.badge-switches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.badge-switches label { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 9px; background: rgba(255,255,255,.03); border: 1px solid var(--border); color: var(--text-dim); font-size: 10px; cursor: pointer; }
.badge-switches label:hover { background: rgba(255,255,255,.07); color: #fff; }
.badge-switches input { accent-color: var(--accent); }

.badge-modal { width: min(620px, 100%); }
.badge-tones { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0; }
.tone-dot { width: 22px; height: 22px; padding: 0; border-radius: 50%; border: 2px solid transparent; background: rgb(var(--tone)); box-shadow: 0 0 0 1px rgba(255,255,255,.15); cursor: pointer; transition: transform .2s, box-shadow .2s; }
.tone-dot::after { display: none; }
.tone-dot:hover { transform: scale(1.15); }
.tone-dot.active { box-shadow: 0 0 0 2px #fff, 0 0 14px rgba(var(--tone), .6); }
.badge-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; max-height: 46vh; overflow-y: auto; padding-right: 3px; }
.badge-choice { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 6px; border-radius: 10px; background: rgba(var(--tone), .08); border: 1px solid rgba(var(--tone), .28); color: rgb(var(--tone)); font-size: 10px; box-shadow: none; }
.badge-choice::after { display: none; }
.badge-choice b { font-size: 9px; letter-spacing: .06em; }
.badge-choice:hover { background: rgba(var(--tone), .2); border-color: rgb(var(--tone)); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(var(--tone), .15); }

.username-status { min-height: 14px; margin-top: 5px; font-size: 10px; color: var(--text-muted); }
.username-status.good { color: var(--success); }
.username-status.bad { color: #f87171; }
.username-status.warn { color: #fbbf24; }
.username-status.checking { color: var(--text-dim); }

@media (max-width: 700px) {
  .badge-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .badge-switches { grid-template-columns: 1fr; }
}

/* ================================================================ V5 ADMIN */
.admin-shell { max-width: 1180px; justify-content: flex-start; padding-top: 44px; }
.admin-card { padding: 26px 28px; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; margin-bottom: 22px; border-radius: 13px; background: rgba(255,255,255,.03); border: 1px solid var(--border); }
.admin-tab { flex: 1; min-width: 120px; padding: 10px 12px; border-radius: 9px; background: transparent; border: 0; color: var(--text-muted); font-size: 11px; font-weight: 700; cursor: pointer; transition: color .2s, background .2s, transform .2s; }
.admin-tab::after { display: none; }
.admin-tab:hover { color: #fff; background: rgba(255,255,255,.06); transform: none; box-shadow: none; }
.admin-tab.active { color: #09090b; background: var(--accent); box-shadow: 0 6px 18px rgba(var(--accent-rgb), .2); }
.admin-panel { animation: tabPanelIn .35s cubic-bezier(.16,1,.3,1) both; }
.admin-panel .admin-section:first-child { margin-top: 0; }
.stat-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.quick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.quick-grid button { display: grid; grid-template-columns: 32px 1fr; grid-template-rows: auto auto; align-items: center; gap: 1px 11px; padding: 13px; border-radius: 13px; background: rgba(255,255,255,.03); border: 1px solid var(--border); color: #fff; text-align: left; box-shadow: none; }
.quick-grid button::after { display: none; }
.quick-grid button:hover { background: rgba(var(--accent-rgb), .08); border-color: rgba(var(--accent-rgb), .4); transform: translateY(-2px); box-shadow: none; }
.quick-grid button > span { grid-row: 1 / 3; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: rgba(var(--accent-rgb), .12); color: var(--accent); font-size: 15px; }
.quick-grid b { font-size: 11px; }
.quick-grid small { font-size: 9px; color: var(--text-muted); }

.activity-list { display: grid; gap: 6px; }
.activity-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: rgba(255,255,255,.025); border: 1px solid var(--border); font-size: 11px; color: var(--text-dim); }
.activity-item i { color: var(--accent); font-style: normal; }
.activity-item small { margin-left: auto; color: var(--text-muted); font-size: 9px; white-space: nowrap; }
.danger-zone { display: flex; align-items: center; gap: 14px; margin-top: 24px; padding: 14px 16px; border-radius: 13px; border: 1px solid rgba(248,113,113,.25); background: rgba(248,113,113,.05); }
.danger-zone b { display: block; font-size: 11px; color: #fca5a5; }
.danger-zone small { display: block; font-size: 9px; color: var(--text-muted); margin-top: 2px; }
.danger-zone button { margin-left: auto; }

.bulk-bar { display: none; align-items: center; gap: 7px; flex-wrap: wrap; padding: 10px 13px; margin-bottom: 12px; border-radius: 11px; border: 1px solid rgba(var(--accent-rgb), .3); background: rgba(var(--accent-rgb), .07); font-size: 11px; color: var(--text-dim); }
.bulk-bar.show { display: flex; }
.user-cell a { color: var(--accent); text-decoration: none; font-size: 12px; font-weight: 600; }
.user-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.admin-badge { display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 99px; background: rgba(var(--tone), .13); border: 1px solid rgba(var(--tone), .34); color: rgb(var(--tone)); font-size: 8px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }

.insight-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.insight-card { padding: 18px; border-radius: 16px; background: rgba(255,255,255,.025); border: 1px solid var(--border); }
.insight-card.wide { grid-column: 1 / -1; }
.insight-card .section-head { margin-top: 0; }
.leaderboard { display: grid; gap: 8px; }
.leader-row { display: grid; grid-template-columns: 22px 110px 1fr 38px; align-items: center; gap: 9px; font-size: 11px; }
.leader-medal { font-size: 13px; }
.leader-row a { color: #fff; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leader-row b { text-align: right; color: var(--accent); font-family: 'JetBrains Mono', monospace; }
.leader-bar { height: 5px; border-radius: 99px; background: rgba(255,255,255,.06); overflow: hidden; }
.leader-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent2)); }
.plan-breakdown { display: flex; align-items: center; gap: 22px; }
.plan-legend { display: grid; gap: 10px; font-size: 11px; }
.plan-legend div { display: flex; align-items: center; gap: 8px; }
.plan-legend i { width: 9px; height: 9px; border-radius: 3px; }
.plan-legend b { margin-left: auto; color: #fff; }
.signup-chart { display: flex; align-items: flex-end; gap: 7px; height: 150px; }
.signup-bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; height: 100%; }
.signup-bar i { width: 100%; max-width: 34px; min-height: 3px; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--accent), rgba(var(--accent-rgb), .18)); transition: height .4s cubic-bezier(.16,1,.3,1); }
.signup-bar small { font-size: 8px; color: var(--text-muted); }
.timeline { display: grid; gap: 8px; }
.timeline-item { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 10px; background: rgba(255,255,255,.025); border: 1px solid var(--border); }
.timeline-item i { display: grid; place-items: center; width: 26px; height: 26px; flex: 0 0 26px; border-radius: 8px; background: rgba(var(--accent-rgb), .1); font-style: normal; font-size: 12px; }
.timeline-item a { color: #fff; font-size: 11px; text-decoration: none; font-weight: 600; }
.timeline-item small { display: block; color: var(--text-muted); font-size: 9px; }
.timeline-item > span { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }

@media (max-width: 900px) {
  .insight-grid { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid.three { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .quick-grid { grid-template-columns: 1fr; }
  .leader-row { grid-template-columns: 20px 1fr 36px; }
  .leader-bar { display: none; }
  .admin-card { padding: 18px; }
}

/* ============================================================ V6 PROFESSIONAL */
.badge-groups { display: flex; flex-wrap: wrap; gap: 5px; margin: 10px 0; }
.badge-groups .fx-filter { padding: 5px 10px; font-size: 9px; }
.badge-choice { position: relative; flex-direction: column; gap: 2px; min-height: 56px; }
.badge-choice small { position: absolute; top: 4px; right: 5px; font-size: 7px; opacity: .45; letter-spacing: .04em; }
.badge-choice span { font-size: 14px; line-height: 1; }
.badge-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.badge-custom { display: grid; grid-template-columns: 1fr 130px auto; gap: 7px; margin-top: 12px; }
.badge-modal { width: min(720px, 100%); }

.link-badge.badge-style-outline { background: transparent; border-width: 1.5px; }
.link-badge.badge-style-solid { background: rgb(var(--tone)); border-color: rgb(var(--tone)); color: #09090b; box-shadow: 0 4px 16px rgba(var(--tone), .28); }
.link-badge.badge-style-glass { background: rgba(var(--tone), .1); border-color: rgba(255,255,255,.16); backdrop-filter: blur(12px); color: #fff; }
.link-badge.anim-pulse { animation: badgePulse 1.8s ease-in-out infinite; }
.link-badge.anim-shine { position: relative; overflow: hidden; }
.link-badge.anim-shine::after { content: ''; position: absolute; inset: 0; transform: translateX(-110%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); animation: badgeShine 2.6s ease-in-out infinite; }
.link-badge.anim-float { animation: badgeFloat 2.4s ease-in-out infinite; }
@keyframes badgePulse { 50% { box-shadow: 0 0 0 5px rgba(var(--tone), .12), 0 0 20px rgba(var(--tone), .35); } }
@keyframes badgeShine { 55%, 100% { transform: translateX(110%); } }
@keyframes badgeFloat { 50% { transform: translateY(-3px); } }

.social-proof { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px auto 0; padding: 8px 16px; width: fit-content; max-width: 100%; border-radius: 99px; background: rgba(var(--accent-rgb), .08); border: 1px solid rgba(var(--accent-rgb), .22); color: var(--text-dim); font-size: 11px; box-shadow: 0 6px 22px rgba(0,0,0,.18); }
.social-proof span { color: var(--accent); }

.chart-wrap { margin: 16px 0; padding: 14px 12px 6px; border-radius: 14px; background: rgba(255,255,255,.02); border: 1px solid var(--border); }
.chart-head { display: flex; align-items: baseline; gap: 10px; padding: 0 6px 8px; }
.chart-head b { font-size: 11px; color: #fff; }
.chart-head small { font-size: 9px; color: var(--text-muted); }
.pro-line-chart { display: block; width: 100%; height: 150px; }
.pro-line-chart circle { fill: var(--accent); }
.spark-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.spark-card { position: relative; overflow: hidden; padding: 12px 13px; border-radius: 12px; background: rgba(255,255,255,.025); border: 1px solid var(--border); }
.spark-card small { display: block; font-size: 9px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; }
.spark-card b { display: block; margin-top: 4px; font-size: 20px; color: #fff; }
.spark-card > span { position: absolute; right: 8px; bottom: 8px; width: 62px; height: 24px; opacity: .8; }
.sparkline { width: 100%; height: 100%; }
.sharecard-row { display: flex; align-items: flex-start; gap: 14px; }
.sharecard-row img { width: min(360px, 45%); border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 14px 34px rgba(0,0,0,.4); }
.utm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 7px; }
.utm-grid input { margin: 0; }

@media (max-width: 800px) {
  .badge-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .badge-custom { grid-template-columns: 1fr; }
  .spark-row { grid-template-columns: 1fr; }
  .utm-grid { grid-template-columns: 1fr; }
  .sharecard-row { flex-direction: column; }
  .sharecard-row img { width: 100%; }
}

/* ============================================================ V7 ADMIN PRO */
.tone-info { --tone: 167, 139, 250; }
.tone-success { --tone: 74, 222, 128; }
.tone-warn { --tone: 251, 191, 36; }
.tone-danger { --tone: 248, 113, 113; }
.site-banner { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 16px; background: rgba(var(--tone), .12); border-bottom: 1px solid rgba(var(--tone), .35); color: rgb(var(--tone)); font-size: 12px; font-weight: 600; position: relative; z-index: 3; }
.site-banner b { font-weight: 600; }
.admin-banner { display: flex; align-items: center; gap: 11px; padding: 12px 15px; margin-bottom: 16px; border-radius: 12px; background: rgba(var(--tone), .1); border: 1px solid rgba(var(--tone), .32); color: rgb(var(--tone)); font-size: 12px; }
.admin-banner span { font-size: 15px; }
.admin-banner small { margin-left: auto; opacity: .6; font-size: 9px; }
.health-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-bottom: 12px; }
.health-card { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 12px; background: rgba(255,255,255,.025); border: 1px solid var(--border); }
.health-card i { font-style: normal; font-size: 16px; }
.health-card small { display: block; font-size: 8px; letter-spacing: .07em; text-transform: uppercase; color: var(--text-muted); }
.health-card b { display: block; font-size: 13px; color: #fff; margin-top: 2px; }
.health-card span { display: block; font-size: 8px; color: var(--text-muted); }
.quick-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.settings-preview { max-height: 230px; overflow: auto; margin-top: 12px; padding: 13px; border-radius: 10px; background: #08080b; border: 1px solid var(--border); color: var(--accent); font-family: 'JetBrains Mono', monospace; font-size: 10px; line-height: 1.6; }
.shortcut-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.shortcut-grid > div { display: flex; align-items: center; gap: 6px; padding: 9px 11px; border-radius: 9px; background: rgba(255,255,255,.025); border: 1px solid var(--border); font-size: 10px; color: var(--text-dim); }
.shortcut-grid span { margin-left: auto; color: #fff; }
.shortcut-grid kbd { padding: 2px 5px; border-radius: 4px; background: rgba(255,255,255,.07); border: 1px solid var(--border); font-size: 9px; }

.drawer-backdrop { position: fixed; inset: 0; z-index: 400; display: flex; justify-content: flex-end; background: rgba(0,0,0,.6); backdrop-filter: blur(5px); opacity: 0; pointer-events: none; transition: opacity .25s; }
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer { width: min(520px, 100%); height: 100%; overflow-y: auto; padding: 24px; background: #101014; border-left: 1px solid var(--border); box-shadow: -20px 0 60px rgba(0,0,0,.5); transform: translateX(100%); transition: transform .32s cubic-bezier(.16,1,.3,1); }
.drawer-backdrop.open .drawer { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.drawer-head h3 { font-size: 18px; }
.drawer-hero { display: flex; align-items: center; gap: 13px; padding: 16px; border-radius: 14px; background: rgba(var(--accent-rgb), .07); border: 1px solid rgba(var(--accent-rgb), .2); }
.drawer-avatar { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 48px; border-radius: 14px; background: var(--accent); color: #09090b; font-size: 20px; font-weight: 800; }
.drawer-hero b { display: block; font-size: 14px; }
.drawer-hero small { display: block; font-size: 10px; color: var(--text-muted); }
.drawer-stats { display: flex; gap: 12px; margin-left: auto; }
.drawer-stats span { text-align: center; font-size: 8px; color: var(--text-muted); text-transform: uppercase; }
.drawer-stats b { font-size: 13px; color: var(--accent); }
.drawer-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.drawer-meta > div { padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.025); border: 1px solid var(--border); }
.drawer-meta small { display: block; font-size: 8px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); }
.drawer-meta b { display: block; margin-top: 4px; font-size: 11px; color: #fff; word-break: break-all; }
.drawer-body .section-head { margin: 22px 0 10px; }
.drawer-links { display: grid; gap: 6px; }
.drawer-link { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 9px; background: rgba(255,255,255,.025); border: 1px solid var(--border); font-size: 11px; }
.drawer-link b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer-link small { grid-column: 2 / -1; font-size: 9px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer-actions { margin-top: 20px; }

.cmd-row { display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px 12px; border: 0; border-radius: 9px; background: transparent; color: var(--text-dim); text-align: left; cursor: pointer; }
.cmd-row.active, .cmd-row:hover { background: rgba(var(--accent-rgb), .12); color: #fff; }
.cmd-row span { font-size: 14px; }
.cmd-row b { font-size: 11px; font-weight: 600; }
.cmd-row small { margin-left: auto; font-size: 9px; opacity: .6; }

@media (max-width: 900px) {
  .health-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shortcut-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .health-grid, .shortcut-grid, .quick-grid.compact { grid-template-columns: 1fr; }
  .drawer { padding: 18px; }
}

