/* ============================================================
   DripBio.bond — Global Design System
   Dark Mode + Glassmorphism + Neon Accents + Space Grotesk
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* ── CSS Custom Properties ── */
:root {
  --bg-primary: #0f0f0f;
  --bg-secondary: #161616;
  --bg-card: rgba(255, 255, 255, 0.04);

  --neon-purple: #a855f7;
  --neon-cyan: #06b6d4;
  --neon-pink: #ec4899;

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #475569;

  --border-glass: rgba(255, 255, 255, 0.08);

  --gradient-neon: linear-gradient(135deg, #a855f7, #06b6d4);
  --gradient-warm: linear-gradient(135deg, #a855f7, #ec4899);

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-neon: 0 0 20px rgba(168, 85, 247, 0.3);
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.5);

  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;

  --font-primary: 'Space Grotesk', sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--neon-purple); border-radius: var(--radius-full); }

/* ── Glassmorphism ── */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
}
.glass-strong {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
}

/* ── Typography ── */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; }
.gradient-text {
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
a { color: inherit; text-decoration: none; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  border: none;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.btn:hover::after { opacity: 1; }
.btn-primary {
  background: var(--gradient-neon);
  color: white;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(168, 85, 247, 0.6); }
.btn-ghost {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
}
.btn-ghost:hover { border-color: var(--neon-purple); box-shadow: var(--shadow-neon); }
.btn-danger {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.btn-danger:hover { background: rgba(239, 68, 68, 0.22); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }

/* ── Icon Buttons ── */
.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}
.icon-btn:hover { background: rgba(255,255,255,0.08); color: var(--text-primary); }
.icon-btn.delete:hover { background: rgba(239,68,68,0.15); border-color: rgba(239,68,68,0.3); color: #ef4444; }

/* ── Forms ── */
.form-group { display: flex; flex-direction: column; gap: var(--space-xs); }
label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
input, textarea, select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--neon-purple);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }
textarea { resize: vertical; min-height: 80px; }

.input-group { position: relative; }
.input-prefix {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
  pointer-events: none;
}
.input-group input { padding-left: 2.5rem; }
.input-status {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
}
.status-available { color: #22c55e; }
.status-taken { color: #ef4444; }
.status-checking { color: var(--text-muted); }

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
}
.navbar-brand {
  font-size: 1.4rem;
  font-weight: 700;
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.navbar-links { display: flex; align-items: center; gap: var(--space-md); }

/* ── Toast ── */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.toast {
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  animation: slideInRight 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
  box-shadow: var(--shadow-glass);
  min-width: 220px;
}
.toast-success { background: rgba(34,197,94,0.15); border: 1px solid rgba(34,197,94,0.3); color: #4ade80; }
.toast-error   { background: rgba(239,68,68,0.15);  border: 1px solid rgba(239,68,68,0.3);  color: #f87171; }
.toast-info    { background: rgba(168,85,247,0.15);  border: 1px solid rgba(168,85,247,0.3);  color: #c084fc; }

/* ── Spinner ── */
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.15);
  border-top-color: var(--neon-purple);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  animation: fadeIn 0.2s ease;
}
.modal { width: 100%; max-width: 420px; padding: var(--space-xl); animation: slideInUp 0.3s ease; }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-lg); }
.modal-title { font-size: 1.1rem; font-weight: 700; }
.modal-form { display: flex; flex-direction: column; gap: var(--space-md); }
.modal-actions { display: flex; gap: var(--space-sm); margin-top: var(--space-sm); }
.modal-actions .btn { flex: 1; }

/* ── Empty State ── */
.empty-state { text-align: center; padding: var(--space-2xl) var(--space-xl); color: var(--text-muted); }
.empty-state-icon { font-size: 2.5rem; margin-bottom: var(--space-md); }
.empty-state p { font-size: 0.9rem; }

/* ── Utility ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-xl); }
.text-center { text-align: center; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.w-full { width: 100%; }

/* ══════════════════════════════════
   PAGE: LANDING
══════════════════════════════════ */
body.page-landing {
  background:
    radial-gradient(ellipse at 20% 40%, rgba(168,85,247,0.09) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 60%, rgba(6,182,212,0.07) 0%, transparent 55%),
    var(--bg-primary);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
}
.hero-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 0 var(--space-xl);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.4rem 1rem;
  background: rgba(168,85,247,0.12);
  border: 1px solid rgba(168,85,247,0.3);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--neon-purple);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xl);
  animation: fadeInDown 0.5s ease;
}
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.5s ease 0.1s both;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto var(--space-2xl);
  animation: fadeInUp 0.5s ease 0.2s both;
}
.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  animation: fadeInUp 0.5s ease 0.3s both;
}
.hero-phone-wrap {
  margin-top: var(--space-3xl);
  animation: fadeInUp 0.8s ease 0.4s both;
}

/* Phone Frame (Hero) */
.phone-frame {
  width: 260px;
  height: 520px;
  border-radius: 38px;
  border: 2px solid rgba(168,85,247,0.3);
  background: rgba(255,255,255,0.02);
  margin: 0 auto;
  overflow: hidden;
  box-shadow: var(--shadow-neon), var(--shadow-glass);
  animation: float 4s ease-in-out infinite;
}
.phone-notch {
  width: 80px;
  height: 22px;
  background: rgba(255,255,255,0.06);
  border-radius: 0 0 16px 16px;
  margin: 0 auto;
}
.phone-content {
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}
.phone-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--neon-purple);
  object-fit: cover;
}
.phone-name { font-size: 0.85rem; font-weight: 700; }
.phone-bio { font-size: 0.62rem; color: var(--text-secondary); text-align: center; }
.phone-link-btn {
  width: 100%;
  padding: 0.55rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Features */
.features { padding: var(--space-3xl) 0; }
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--neon-cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  text-align: center;
  margin-bottom: var(--space-2xl);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
}
.feature-card {
  padding: var(--space-xl);
  transition: transform var(--transition-normal);
  background: linear-gradient(135deg, rgba(168,85,247,0.07), rgba(6,182,212,0.04));
}
.feature-card:hover { transform: translateY(-5px); }
.feature-icon { font-size: 2rem; margin-bottom: var(--space-md); }
.feature-card h3 { margin-bottom: var(--space-sm); font-size: 1.05rem; }
.feature-card p { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.75; }

/* Steps */
.steps { padding: var(--space-3xl) 0; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}
.step { text-align: center; }
.step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gradient-neon);
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
}
.step h3 { margin-bottom: var(--space-sm); font-size: 1rem; }
.step p { color: var(--text-secondary); font-size: 0.88rem; }

/* CTA Banner */
.cta-section { padding: var(--space-3xl) 0 var(--space-2xl); }
.cta-card {
  padding: var(--space-3xl);
  background: linear-gradient(135deg, rgba(168,85,247,0.1), rgba(6,182,212,0.06));
  border: 1px solid rgba(168,85,247,0.25);
  border-radius: var(--radius-xl);
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.cta-card h2 { font-size: 2rem; margin-bottom: var(--space-md); }
.cta-card p { color: var(--text-secondary); margin-bottom: var(--space-xl); }

/* Footer */
.footer {
  border-top: 1px solid var(--border-glass);
  padding: var(--space-xl) 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}
.footer a { color: var(--neon-purple); }

/* ══════════════════════════════════
   PAGE: AUTH (Login / Sign Up)
══════════════════════════════════ */
body.page-auth {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: var(--space-xl);
  background:
    radial-gradient(ellipse at 50% 30%, rgba(168,85,247,0.12) 0%, transparent 60%),
    var(--bg-primary);
}
.auth-card { width: 100%; max-width: 420px; padding: var(--space-2xl); animation: fadeInUp 0.45s ease; }
.auth-logo { text-align: center; font-size: 1.6rem; font-weight: 700; margin-bottom: var(--space-xl); }
.auth-title { font-size: 1.7rem; text-align: center; margin-bottom: var(--space-xs); }
.auth-subtitle { text-align: center; color: var(--text-secondary); font-size: 0.88rem; margin-bottom: var(--space-xl); }
.auth-form { display: flex; flex-direction: column; gap: var(--space-lg); }
.auth-footer { text-align: center; margin-top: var(--space-lg); font-size: 0.88rem; color: var(--text-secondary); }
.auth-footer a { color: var(--neon-purple); font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

/* ══════════════════════════════════
   PAGE: DASHBOARD
══════════════════════════════════ */
body.page-dashboard { display: flex; flex-direction: column; min-height: 100vh; }

.dash-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  background: rgba(15,15,15,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
}
.dash-brand {
  font-size: 1.3rem; font-weight: 700;
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.dash-nav-right { display: flex; align-items: center; gap: var(--space-md); }
.user-pill {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.user-pill img { width: 22px; height: 22px; border-radius: 50%; }

.dash-layout {
  display: grid;
  grid-template-columns: 320px 1fr 280px;
  gap: var(--space-lg);
  padding: var(--space-lg);
  flex: 1;
  max-width: 1380px;
  margin: 0 auto;
  width: 100%;
}
.panel { padding: 18px; height: fit-content; position: sticky; top: calc(3.8rem + var(--space-lg)); }
.panel-title {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.panel-title span { color: var(--text-primary); font-size: 1rem; }

/* Profile Panel */
.avatar-section { display: flex; flex-direction: column; align-items: center; gap: var(--space-md); margin-bottom: var(--space-lg); }
.avatar-img {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 2px solid var(--neon-purple);
  box-shadow: 0 0 20px rgba(168,85,247,0.3);
  display: block;
}
.avatar-styles { display: flex; gap: var(--space-sm); flex-wrap: wrap; justify-content: center; }
.avatar-style-btn {
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glass);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-primary);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.avatar-style-btn.active, .avatar-style-btn:hover {
  border-color: var(--neon-purple);
  color: var(--neon-purple);
  background: rgba(168,85,247,0.1);
}

/* Links Panel */
.links-panel { position: static; }
.add-link-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border-glass);
  margin-bottom: var(--space-lg);
}
.add-link-row { display: flex; gap: var(--space-sm); }
.links-list { display: flex; flex-direction: column; gap: var(--space-sm); }
.link-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.8rem var(--space-md);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-glass);
  transition: border-color var(--transition-fast);
  animation: slideIn 0.3s ease;
}
.link-item:hover { border-color: rgba(168,85,247,0.3); }
.link-item-info { flex: 1; min-width: 0; }
.link-item-title { font-size: 0.88rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link-item-url { font-size: 0.72rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link-item-clicks { font-size: 0.72rem; color: var(--neon-cyan); white-space: nowrap; margin-right: var(--space-sm); }
.link-item-actions { display: flex; gap: 4px; }

/* Preview Panel */
.preview-wrap { display: flex; flex-direction: column; align-items: center; gap: var(--space-md); }
.preview-phone {
  width: 210px; min-height: 430px;
  border-radius: 30px;
  border: 2px solid rgba(168,85,247,0.25);
  background: var(--bg-secondary);
  overflow-y: auto; overflow-x: hidden;
  box-shadow: var(--shadow-glass), 0 0 40px rgba(168,85,247,0.08);
}
.preview-phone::-webkit-scrollbar { display: none; }
.preview-content { padding: 1.2rem 0.9rem; display: flex; flex-direction: column; align-items: center; gap: 0.65rem; }
.preview-avatar { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--neon-purple); }
.preview-name { font-size: 0.82rem; font-weight: 700; text-align: center; }
.preview-bio { font-size: 0.6rem; color: var(--text-secondary); text-align: center; line-height: 1.5; }
.preview-link {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border-radius: 9px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.09);
  text-align: center;
  font-size: 0.65rem;
  font-weight: 600;
}
.share-url-box {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.55rem 0.85rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  width: 100%;
}
.share-url-text { flex: 1; font-size: 0.75rem; color: var(--neon-cyan); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ══════════════════════════════════
   PAGE: PUBLIC PROFILE
══════════════════════════════════ */
body.page-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: var(--space-2xl) var(--space-xl) var(--space-3xl);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(168,85,247,0.14) 0%, transparent 55%),
    var(--bg-primary);
}
.profile-wrapper {
  width: 100%; max-width: 480px;
  display: flex; flex-direction: column; align-items: center;
  gap: var(--space-md);
  animation: fadeInUp 0.5s ease;
}
.profile-avatar { width: 96px; height: 96px; border-radius: 50%; border: 3px solid var(--neon-purple); box-shadow: 0 0 30px rgba(168,85,247,0.4); }
.profile-name { font-size: 1.5rem; font-weight: 700; text-align: center; }
.profile-bio { color: var(--text-secondary); text-align: center; font-size: 0.92rem; line-height: 1.7; }
.profile-links { width: 100%; display: flex; flex-direction: column; gap: var(--space-sm); margin-top: var(--space-sm); }
.profile-link-btn {
  width: 100%;
  padding: 1rem var(--space-lg);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-family: var(--font-primary);
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-normal);
  display: block;
  position: relative;
}
.profile-link-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--gradient-neon);
  opacity: 0;
  transition: opacity var(--transition-normal);
  border-radius: inherit;
}
.profile-link-btn span { position: relative; z-index: 1; }
.profile-link-btn:hover {
  border-color: rgba(168,85,247,0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3), 0 0 20px rgba(168,85,247,0.2);
}
.profile-link-btn:hover::before { opacity: 0.1; }
.profile-share-btn {
  display: flex; align-items: center; gap: var(--space-sm);
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-full);
  background: rgba(168,85,247,0.1);
  border: 1px solid rgba(168,85,247,0.3);
  color: var(--neon-purple);
  font-family: var(--font-primary);
  font-size: 0.88rem; font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  margin-top: var(--space-sm);
}
.profile-share-btn:hover { background: rgba(168,85,247,0.2); box-shadow: var(--shadow-neon); }
.profile-powered { font-size: 0.78rem; color: var(--text-muted); margin-top: var(--space-xl); }
.profile-powered a { color: var(--neon-purple); font-weight: 600; }
.profile-not-found { text-align: center; padding: var(--space-3xl); }
.profile-not-found h2 { font-size: 1.4rem; margin-bottom: var(--space-md); color: var(--text-secondary); }
.profile-loading { display: flex; align-items: center; gap: var(--space-sm); color: var(--text-muted); margin-top: 20vh; }

/* ══════════════════════════════════
   PAGE: 404
══════════════════════════════════ */
body.page-404 {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 100vh; text-align: center; padding: var(--space-xl);
}
.error-code {
  font-size: clamp(4rem, 14vw, 8rem);
  font-weight: 700; line-height: 1;
  background: var(--gradient-neon);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: var(--space-md);
}

/* ══════════════════════════════════
   ANIMATIONS
══════════════════════════════════ */
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp   { from { opacity: 0; transform: translateY(20px);  } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn     { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut    { from { opacity: 1; } to { opacity: 0; pointer-events: none; } }
@keyframes slideInRight { from { transform: translateX(110%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideInUp  { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideIn    { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin       { to { transform: rotate(360deg); } }
@keyframes float      { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width: 1100px) {
  .dash-layout { grid-template-columns: 270px 1fr; }
  .preview-panel { display: none; }
}

/* ── Mobile Bottom Nav (hidden on desktop) ── */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  /* ── Navbar Mobile ── */
  .dash-nav {
    padding: 0.65rem 0.8rem;
  }
  .dash-brand {
    font-size: 1.1rem;
  }
  .dash-nav-right {
    gap: var(--space-sm);
  }
  .user-pill {
    padding: 0.3rem 0.6rem;
    font-size: 0.72rem;
  }
  .user-pill img {
    width: 18px;
    height: 18px;
  }
  .user-pill span {
    display: none;
  }
  #admin-panel-btn {
    padding: 0.35rem 0.65rem;
    font-size: 0.72rem;
  }
  #logout-btn {
    padding: 0.35rem 0.65rem;
    font-size: 0.72rem;
  }

  /* ── Dashboard Layout ── */
  .dash-layout {
    grid-template-columns: 1fr;
    gap: 0;
    padding: var(--space-sm);
    padding-bottom: 5.5rem; /* space for bottom nav */
  }

  /* ── Panels: hide/show with mobile nav ── */
  .panel {
    position: static;
    max-height: none;
    border-radius: var(--radius-md);
  }
  .left-panel {
    max-height: none;
    overflow-y: visible;
    position: static;
  }
  .left-panel,
  .links-panel,
  .preview-panel {
    display: none;
    animation: fadeInMobile 0.3s ease;
  }
  .left-panel.mobile-active,
  .links-panel.mobile-active,
  .preview-panel.mobile-active {
    display: block;
  }

  /* ── Mobile Bottom Nav ── */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid var(--border-glass);
    padding: 0.45rem 0.5rem;
    padding-bottom: calc(0.45rem + env(safe-area-inset-bottom, 0px));
    justify-content: space-around;
    align-items: center;
    gap: 4px;
  }
  .mobile-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-md);
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-primary);
    font-size: 0.62rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    flex: 1;
    max-width: 90px;
    letter-spacing: 0.02em;
  }
  .mobile-nav-btn .nav-icon {
    font-size: 1.15rem;
    line-height: 1;
    transition: transform var(--transition-fast);
  }
  .mobile-nav-btn.active {
    color: var(--neon-purple);
    background: rgba(168, 85, 247, 0.12);
  }
  .mobile-nav-btn.active .nav-icon {
    transform: scale(1.15);
  }
  .mobile-nav-btn:not(.active):active {
    background: rgba(255, 255, 255, 0.05);
    transform: scale(0.95);
  }

  /* ── Preview Panel Mobile ── */
  .preview-panel {
    border: none;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .preview-wrap {
    padding: var(--space-sm) 0;
  }
  .preview-phone {
    width: 100%;
    max-width: 320px;
    border-radius: var(--radius-xl);
    min-height: 420px;
    margin: 0 auto;
  }

  /* ── Forms on Mobile ── */
  .add-link-form {
    padding: var(--space-sm);
  }
  input, textarea, select {
    font-size: 16px; /* prevents iOS zoom */
    padding: 0.65rem 0.85rem;
  }

  /* ── Link Items Mobile ── */
  .link-item {
    padding: 0.65rem var(--space-sm);
    gap: 6px;
  }
  .link-item-title {
    font-size: 0.82rem;
  }
  .link-item-url {
    font-size: 0.65rem;
  }
  .link-item-clicks {
    font-size: 0.65rem;
    margin-right: 4px;
  }
  .link-item-actions {
    gap: 2px;
  }
  .icon-btn {
    width: 28px;
    height: 28px;
    font-size: 0.78rem;
  }

  /* ── Panel Tab Mobile ── */
  .panel-tabs {
    margin-bottom: var(--space-md);
  }

  /* ── Avatar Section Mobile ── */
  .avatar-styles {
    gap: 4px;
  }
  .avatar-style-btn {
    padding: 0.25rem 0.55rem;
    font-size: 0.65rem;
  }
  .avatar-img {
    width: 65px;
    height: 65px;
  }

  /* ── Share URL Box ── */
  .share-url-box {
    padding: 0.45rem 0.7rem;
  }
  .share-url-text {
    font-size: 0.68rem;
  }

  /* ── Theme Grid Mobile ── */
  .theme-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
  }
  .theme-swatch {
    height: 34px;
  }
  .theme-swatch-name {
    font-size: 0.52rem;
  }

  /* ── Font Picker Mobile ── */
  .font-opt {
    padding: 0.5rem var(--space-sm);
    font-size: 0.82rem;
  }

  /* ── Social Row Mobile ── */
  .social-row input {
    font-size: 0.75rem;
    padding: 0.45rem 0.65rem;
  }

  /* ── Button Pickers Mobile ── */
  .pick-opt {
    padding: 0.4rem 0.2rem;
    font-size: 0.68rem;
  }

  /* ── Customize Section Mobile ── */
  .customize-section {
    gap: var(--space-md);
  }

  /* ── Panel Title Mobile ── */
  .panel-title {
    font-size: 0.85rem;
    margin-bottom: var(--space-md);
  }
  .panel-title span {
    font-size: 0.92rem;
  }

  /* ── Modal Mobile ── */
  .modal-overlay {
    padding: var(--space-md);
    align-items: flex-end;
  }
  .modal {
    max-width: 100%;
    padding: var(--space-lg);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    animation: slideInUpModal 0.35s ease;
  }

  /* ── Toast Mobile ── */
  .toast-container {
    bottom: 5.5rem; /* above bottom nav */
    right: var(--space-sm);
    left: var(--space-sm);
  }
  .toast {
    min-width: auto;
    font-size: 0.82rem;
  }

  /* ── General Landing Mobile ── */
  .navbar { padding: 0.9rem 1rem; }
  .hero-title { font-size: 2.2rem; }
  .cta-card { padding: var(--space-xl); }
}

@media (max-width: 480px) {
  .auth-card { padding: var(--space-xl) var(--space-lg); }
  .container { padding: 0 var(--space-md); }
  .hero-inner { padding: 0 var(--space-md); }

  /* Even smaller adjustments */
  .dash-layout {
    padding: var(--space-xs);
    padding-bottom: 5.5rem;
  }
  .panel {
    padding: var(--space-md);
  }
  .preview-phone {
    max-width: 280px;
    min-height: 380px;
  }
}

@keyframes fadeInMobile {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideInUpModal {
  from { opacity: 0; transform: translateY(100%); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Left Panel scrollable */
.left-panel {
  max-height: calc(100vh - 6rem);
  overflow-y: auto;
  position: sticky;
  top: calc(3.8rem + var(--space-lg));
}
.left-panel::-webkit-scrollbar { width: 3px; }
.left-panel::-webkit-scrollbar-thumb { background: rgba(168,85,247,0.3); border-radius: 2px; }

/* Panel Tabs */
.panel-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  padding: 4px;
}
.panel-tab {
  flex: 1;
  padding: 0.5rem;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-primary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.panel-tab.active {
  background: rgba(168,85,247,0.18);
  color: var(--neon-purple);
  box-shadow: 0 0 0 1px rgba(168,85,247,0.2) inset;
}
.panel-tab:hover:not(.active) {
  color: var(--text-secondary);
  background: rgba(255,255,255,0.05);
}

/* ══════════════════════════════════════
   DESIGN TAB — Full Polish
══════════════════════════════════════ */

/* Outer container */
.customize-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Each section card */
.cust-block {
  background: rgba(255,255,255,0.028);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s;
}
.cust-block:hover { border-color: rgba(168,85,247,0.2); }

/* Section header label */
.cust-label {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Cyan badge inside label */
.cust-hint {
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--neon-cyan);
  background: rgba(6,182,212,0.12);
  border: 1px solid rgba(6,182,212,0.3);
  border-radius: 4px;
  padding: 1px 6px;
  letter-spacing: 0.06em;
  margin-left: auto;
}

/* ── Theme Grid ──────────────────── */
/* 5-col grid, each cell ~42px wide in 280px usable space */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  max-height: 210px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 1px;
}
.theme-grid::-webkit-scrollbar { width: 2px; }
.theme-grid::-webkit-scrollbar-thumb { background: rgba(168,85,247,0.5); border-radius: 2px; }
.theme-grid::-webkit-scrollbar-track { background: transparent; }

.theme-swatch-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.theme-swatch {
  width: 100%;
  aspect-ratio: 1 / 0.8;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.theme-swatch:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 14px rgba(0,0,0,0.6);
  z-index: 2;
}
.theme-swatch.active {
  border-color: rgba(255,255,255,0.85);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.2), 0 4px 12px rgba(0,0,0,0.5);
}
.theme-emoji {
  font-size: 0.8rem;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.95));
  line-height: 1;
  position: relative;
  z-index: 1;
}
.theme-anim-dot {
  position: absolute; top: 2px; right: 2px;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 4px var(--neon-cyan);
  animation: blink-dot 1.5s ease-in-out infinite;
}
@keyframes blink-dot { 0%,100%{opacity:1} 50%{opacity:0.1} }
.theme-swatch-name {
  font-size: 0.42rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Color Pickers ───────────────── */
.color-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.color-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
  min-width: 46px;
  margin: 0;
  letter-spacing: 0.02em;
}
.color-input {
  flex: 1;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  padding: 2px 4px;
  outline: none;
  transition: border-color 0.2s;
}
.color-input:hover { border-color: rgba(168,85,247,0.4); }

/* ── Font Picker ─────────────────── */
.font-opt {
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.02);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}
.font-opt .tick {
  color: var(--neon-purple);
  font-size: 0.8rem;
  margin-left: auto;
  flex-shrink: 0;
}
.font-opt.active {
  border-color: rgba(168,85,247,0.5);
  background: rgba(168,85,247,0.1);
  color: white;
  box-shadow: 0 0 0 1px rgba(168,85,247,0.15) inset;
}
.font-opt:hover:not(.active) {
  border-color: rgba(168,85,247,0.3);
  background: rgba(255,255,255,0.04);
}

/* Font Category Tag */
.font-cat {
  font-size: 0.54rem;
  color: var(--neon-cyan);
  background: rgba(6,182,212,0.1);
  border: 1px solid rgba(6,182,212,0.25);
  border-radius: 4px;
  padding: 1px 5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  margin-left: auto;
  margin-right: 2px;
}

/* ── Generic Pick Buttons ────────── */
.pick-row {
  display: flex;
  gap: 5px;
  flex-wrap: nowrap;
}
.pick-opt {
  flex: 1;
  height: 34px;
  padding: 0 6px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.025);
  color: var(--text-muted);
  font-family: var(--font-primary);
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  letter-spacing: 0.01em;
}
.pick-opt.active {
  border-color: rgba(168,85,247,0.6);
  color: var(--neon-purple);
  background: rgba(168,85,247,0.12);
  box-shadow: 0 0 0 1px rgba(168,85,247,0.18) inset;
}
.pick-opt:hover:not(.active) {
  border-color: rgba(168,85,247,0.3);
  color: var(--text-secondary);
  background: rgba(255,255,255,0.05);
}

/* Layout picker — 2-column card style */
.pick-2x2 {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}
.pick-2x2 .pick-opt {
  flex-direction: column;
  height: auto;
  min-height: 50px;
  padding: 8px 4px 6px;
  gap: 5px;
  font-size: 0.62rem;
  border-radius: 10px;
}
.pick-2x2 .pick-opt span:first-child {
  font-size: 1.1rem;
  line-height: 1;
}

/* Effect picker — wraps to multiple rows */
.pick-wrap {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 5px;
}
.pick-wrap .pick-opt {
  flex: 1 1 calc(33.33% - 5px);
  min-width: 68px;
  height: 32px;
  font-size: 0.64rem;
}

/* ── Social Inputs ───────────────── */
.social-row { display: flex; align-items: center; gap: 8px; }
.social-row .soc-ico {
  width: 28px; height: 28px; flex-shrink: 0; border-radius: 6px;
  display: flex; align-items: center; justify-content: center; font-size: 0.9rem;
  background: rgba(255,255,255,0.06);
}
.social-row input { font-size: 0.8rem; padding: 0.5rem 0.75rem; }

/* ── Drag Handle ─────────────────── */
.drag-handle {
  cursor: grab; color: var(--text-muted); font-size: 1rem;
  padding: 0 2px; user-select: none; flex-shrink: 0; line-height: 1;
}
.drag-handle:active { cursor: grabbing; }
.sortable-ghost { opacity: 0.35; }
.sortable-chosen { background: rgba(168,85,247,0.1) !important; border-color: rgba(168,85,247,0.4) !important; }



/* ══════════════════════════════════
   PUBLIC PROFILE: SOCIAL BAR
══════════════════════════════════ */
.social-bar {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; flex-wrap: wrap;
}
.soc-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-primary); text-decoration: none;
  transition: all var(--transition-normal);
}
.soc-btn:hover { transform: translateY(-3px) scale(1.12); box-shadow: 0 8px 20px rgba(0,0,0,0.35); background: rgba(255,255,255,0.12); }
.soc-btn svg { width: 18px; height: 18px; fill: currentColor; }

/* Preview Social Bar */
.prev-soc-bar { display: flex; gap: 5px; justify-content: center; flex-wrap: wrap; }
.prev-soc-btn {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
}
.prev-soc-btn svg { width: 9px; height: 9px; fill: currentColor; }

/* ══════════════════════════════════
   PROFILE: THEME + BUTTON OVERRIDES
══════════════════════════════════ */
/* Custom profile font via CSS variable */
body.page-profile { font-family: var(--profile-font, var(--font-primary)); }

/* Button shapes */
[data-btn-shape="pill"]  .profile-link-btn { border-radius: 9999px !important; }
[data-btn-shape="sharp"] .profile-link-btn { border-radius: 4px !important; }
[data-btn-shape="soft"]  .profile-link-btn { border-radius: 12px !important; }

/* Button fill: solid */
[data-btn-fill="solid"] .profile-link-btn {
  background: var(--p-accent, #a855f7) !important;
  border-color: transparent !important; color: white !important;
}
[data-btn-fill="solid"] .profile-link-btn::before { display: none; }
[data-btn-fill="solid"] .profile-link-btn:hover { opacity: 0.88; }

/* Button fill: outline */
[data-btn-fill="outline"] .profile-link-btn {
  background: transparent !important;
  border: 2px solid var(--p-accent, #a855f7) !important;
  color: var(--p-accent, #a855f7) !important;
}
[data-btn-fill="outline"] .profile-link-btn::before { display: none; }
[data-btn-fill="outline"] .profile-link-btn:hover {
  background: var(--p-accent, #a855f7) !important; color: white !important;
}

/* Preview link variants */
.prev-link-pill  { border-radius: 9999px !important; }
.prev-link-sharp { border-radius: 3px !important; }
.prev-link-solid { background: var(--p-accent,#a855f7) !important; border-color: transparent !important; color: white !important; }
.prev-link-outline { background: transparent !important; border: 1px solid var(--p-accent,#a855f7) !important; color: var(--p-accent,#a855f7) !important; }

/* ══════════════════════════════════
   FEATURE: HIGHLIGHT LINKS
══════════════════════════════════ */
/* Public profile highlighted link */
.profile-link-btn.link-highlighted {
  border-color: var(--p-accent, #a855f7) !important;
  animation: link-pulse 2.2s ease-in-out infinite;
  position: relative;
}
.profile-link-btn.link-highlighted .link-hot-badge {
  position: absolute;
  top: -9px; right: 14px;
  font-size: 0.6rem; font-weight: 800;
  color: var(--p-accent, #a855f7);
  background: rgba(168,85,247,0.15);
  border: 1px solid rgba(168,85,247,0.4);
  border-radius: 9999px;
  padding: 1px 7px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  pointer-events: none;
  z-index: 10;
}
@keyframes link-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(168,85,247,0.45), 0 0 12px rgba(168,85,247,0.15); }
  50%      { box-shadow: 0 0 0 7px rgba(168,85,247,0), 0 0 28px rgba(168,85,247,0.4); }
}

/* Dashboard: highlight dot indicator */
.link-hot-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--neon-purple);
  box-shadow: 0 0 6px var(--neon-purple);
  flex-shrink: 0;
}

/* Toggle switch for "Highlight" */
.highlight-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem; color: var(--text-secondary);
}
.toggle-sw { position: relative; width: 38px; height: 21px; flex-shrink: 0; }
.toggle-sw input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-sl {
  position: absolute; inset: 0; cursor: pointer;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border-glass);
  border-radius: 9999px;
  transition: all 0.22s;
}
.toggle-sl::before {
  content: ''; position: absolute;
  width: 15px; height: 15px; left: 2px; top: 2px;
  background: var(--text-muted); border-radius: 50%;
  transition: all 0.22s;
}
.toggle-sw input:checked + .toggle-sl { background: rgba(168,85,247,0.3); border-color: var(--neon-purple); }
.toggle-sw input:checked + .toggle-sl::before {
  transform: translateX(17px);
  background: var(--neon-purple);
  box-shadow: 0 0 8px rgba(168,85,247,0.7);
}

/* Preview highlighted link */
.prev-link-hot { border-color: rgba(168,85,247,0.7) !important; animation: link-pulse 2.2s ease-in-out infinite; }

/* ══════════════════════════════════
   FEATURE: VERIFIED BADGE
══════════════════════════════════ */
.profile-name-row {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; flex-wrap: wrap;
}
.verified-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  box-shadow: 0 0 12px rgba(59,130,246,0.5);
  font-size: 0.72rem; color: white;
  animation: badge-glow 2.4s ease-in-out infinite;
}
@keyframes badge-glow {
  0%,100% { box-shadow: 0 0 8px rgba(59,130,246,0.45); }
  50%      { box-shadow: 0 0 20px rgba(59,130,246,0.9), 0 0 6px rgba(6,182,212,0.5); }
}
.prev-verified {
  display: inline-flex; align-items: center; justify-content: center;
  width: 13px; height: 13px; border-radius: 50%;
  background: linear-gradient(135deg,#3b82f6,#06b6d4);
  font-size: 0.45rem; color: white; flex-shrink: 0;
  box-shadow: 0 0 6px rgba(59,130,246,0.5);
}


/* ══════════════════════════════════
   PUBLIC PROFILE: LAYOUT SYSTEM
══════════════════════════════════ */

/* Centered (default) */
.profile-wrapper[data-layout="centered"] {
  align-items: center;
  text-align: center;
}
.profile-wrapper[data-layout="centered"] .profile-links {
  align-items: center;
}

/* Left-aligned */
.profile-wrapper[data-layout="left"] {
  align-items: flex-start;
  text-align: left;
}
.profile-wrapper[data-layout="left"] .profile-name-row { justify-content: flex-start; }
.profile-wrapper[data-layout="left"] .social-bar { justify-content: flex-start; }
.profile-wrapper[data-layout="left"] .profile-links { align-items: flex-start; }

/* Card layout */
.profile-wrapper[data-layout="card"] {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 2rem;
  align-items: center;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

/* Minimal layout */
.profile-wrapper[data-layout="minimal"] {
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}
.profile-wrapper[data-layout="minimal"] .profile-avatar { width: 64px; height: 64px; }
.profile-wrapper[data-layout="minimal"] .profile-name { font-size: 1.1rem; }
.profile-wrapper[data-layout="minimal"] .profile-bio { font-size: 0.78rem; }

/* ══════════════════════════════════
   AVATAR SHAPE SYSTEM
══════════════════════════════════ */
.profile-avatar[data-shape="square"],
.preview-avatar[data-shape="square"] {
  border-radius: 16px !important;
}
.profile-avatar[data-shape="rounded"],
.preview-avatar[data-shape="rounded"] {
  border-radius: 32px !important;
}
.profile-avatar[data-shape="hexagon"],
.preview-avatar[data-shape="hexagon"] {
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%) !important;
  border-radius: 0 !important;
  border: none !important;
}
.profile-avatar[data-shape="circle"],
.preview-avatar[data-shape="circle"] {
  border-radius: 50% !important;
}

/* ══════════════════════════════════
   SPACING SYSTEM
══════════════════════════════════ */
.profile-wrapper[data-spacing="compact"] { gap: 0.4rem; }
.profile-wrapper[data-spacing="compact"] .profile-links { gap: 0.35rem; }

.profile-wrapper[data-spacing="spacious"] { gap: 1.6rem; }
.profile-wrapper[data-spacing="spacious"] .profile-links { gap: 1rem; }

/* ══════════════════════════════════
   CARD WIDTH SYSTEM
══════════════════════════════════ */
.profile-wrapper[data-card-width="narrow"] { max-width: 340px; }
.profile-wrapper[data-card-width="medium"]  { max-width: 480px; }
.profile-wrapper[data-card-width="wide"]    { max-width: 640px; }

/* ══════════════════════════════════
   BUTTON SIZE SYSTEM
══════════════════════════════════ */
[data-btn-size="small"]  .profile-link-btn { padding: 0.65rem 1rem; font-size: 0.85rem; }
[data-btn-size="large"]  .profile-link-btn { padding: 1.35rem 2rem; font-size: 1.05rem; }

/* Preview link sizes */
.prev-link-small  { padding: 0.3rem 0.5rem !important; font-size: 0.55rem !important; }
.prev-link-large  { padding: 0.7rem 0.85rem !important; font-size: 0.75rem !important; }

/* ── Neon Button Fill ── */
[data-btn-fill="neon"] .profile-link-btn {
  background: transparent !important;
  border: 2px solid var(--p-accent, #a855f7) !important;
  color: var(--p-accent, #a855f7) !important;
  box-shadow: 0 0 12px rgba(168,85,247,0.3), inset 0 0 12px rgba(168,85,247,0.05) !important;
  text-shadow: 0 0 8px var(--p-accent, #a855f7);
}
[data-btn-fill="neon"] .profile-link-btn:hover {
  box-shadow: 0 0 25px rgba(168,85,247,0.6), 0 0 60px rgba(168,85,247,0.2) !important;
  transform: translateY(-2px);
}
.prev-link-neon {
  background: transparent !important;
  border: 1px solid var(--p-accent, #a855f7) !important;
  color: var(--p-accent, #a855f7) !important;
  box-shadow: 0 0 6px rgba(168,85,247,0.3) !important;
}

/* ══════════════════════════════════
   PAGE EFFECTS
══════════════════════════════════ */

/* Aurora Effect */
body.page-profile[data-effect="aurora"]::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(34,197,94,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(124,58,237,0.1) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 80%, rgba(6,182,212,0.08) 0%, transparent 60%);
  animation: aurora-move 8s ease-in-out infinite alternate;
}
@keyframes aurora-move {
  0%   { transform: translate(0,0) scale(1); }
  50%  { transform: translate(3%,2%) scale(1.05); }
  100% { transform: translate(-2%,3%) scale(0.98); }
}

/* Grid Effect */
body.page-profile[data-effect="grid"]::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(168,85,247,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168,85,247,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Stars Effect */
body.page-profile[data-effect="stars"]::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 10% 15%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 45%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 25%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 60%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 85%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 20% 75%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 45% 90%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 65% 10%, rgba(255,255,255,0.8) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 35%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 5% 50%, rgba(255,255,255,0.4) 0%, transparent 100%);
  animation: twinkle-stars 4s ease-in-out infinite alternate;
}
@keyframes twinkle-stars {
  0%   { opacity: 0.6; }
  100% { opacity: 1; }
}

/* Particles — CSS-only dots */
body.page-profile[data-effect="particles"]::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 15% 20%, var(--p-accent, #a855f7) 0%, transparent 100%),
    radial-gradient(2px 2px at 40% 70%, var(--p-accent, #a855f7) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 30%, rgba(168,85,247,0.5) 0%, transparent 100%),
    radial-gradient(2px 2px at 80% 60%, var(--p-accent, #a855f7) 0%, transparent 100%),
    radial-gradient(1px 1px at 25% 85%, rgba(168,85,247,0.4) 0%, transparent 100%),
    radial-gradient(2px 2px at 90% 15%, var(--p-accent, #a855f7) 0%, transparent 100%);
  animation: float-particles 6s ease-in-out infinite alternate;
}
@keyframes float-particles {
  0%   { transform: translateY(0) translateX(0); opacity: 0.7; }
  100% { transform: translateY(-15px) translateX(5px); opacity: 1; }
}

/* Holographic animated background */
body.page-profile[data-theme="holographic"] {
  animation: holo-bg 6s ease-in-out infinite;
}
@keyframes holo-bg {
  0%   { filter: hue-rotate(0deg); }
  50%  { filter: hue-rotate(180deg); }
  100% { filter: hue-rotate(360deg); }
}

/* Aurora theme animated background */
body.page-profile[data-theme="aurora"] {
  background: linear-gradient(160deg,#020b18 0%,#051f1a 35%,#0e1a2e 65%,#120520 100%) !important;
}
body.page-profile[data-theme="aurora"]::after {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(34,197,94,0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 30%, rgba(124,58,237,0.14) 0%, transparent 55%),
    radial-gradient(ellipse at 60% 70%, rgba(6,182,212,0.12) 0%, transparent 55%);
  animation: aurora-move 10s ease-in-out infinite alternate;
}

/* Retrowave scanlines */
body.page-profile[data-theme="retrowave"]::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255,0,255,0.02) 2px,
    rgba(255,0,255,0.02) 4px
  );
}

/* Matrix rain effect for matrix theme */
body.page-profile[data-theme="matrix"] {
  background: #000100 !important;
}

/* ══════════════════════════════════
   PREVIEW PHONE — Layout Updates
══════════════════════════════════ */
.preview-phone[data-layout="card"] .preview-content {
  background: rgba(255,255,255,0.06);
  border-radius: 16px;
  margin: 8px;
  border: 1px solid rgba(255,255,255,0.1);
}
.preview-phone[data-layout="left"] .preview-content {
  align-items: flex-start;
  text-align: left;
}
.preview-phone[data-layout="left"] .preview-name,
.preview-phone[data-layout="left"] .preview-bio {
  text-align: left;
}
.preview-phone[data-layout="left"] .prev-soc-bar {
  justify-content: flex-start;
}
.preview-phone[data-layout="minimal"] .preview-avatar { width: 40px; height: 40px; }
.preview-phone[data-layout="minimal"] .preview-name { font-size: 0.7rem; }

.preview-phone[data-spacing="compact"] .preview-content { gap: 0.3rem; }
.preview-phone[data-spacing="spacious"] .preview-content { gap: 1rem; }

/* Preview avatar shapes */
.preview-avatar[data-shape="square"] { border-radius: 12px !important; }
.preview-avatar[data-shape="rounded"] { border-radius: 24px !important; }
.preview-avatar[data-shape="hexagon"] { clip-path: polygon(50% 0%,93% 25%,93% 75%,50% 100%,7% 75%,7% 25%) !important; border-radius: 0 !important; border: none !important; }

/* Preview card width */
.preview-phone[data-card-width="narrow"] .preview-content { padding: 0.8rem 0.5rem; }
.preview-phone[data-card-width="wide"] .preview-content { padding: 1.4rem 1.2rem; }

/* ══════════════════════════════════
   PROFILE: CUSTOM TEXT COLOR
══════════════════════════════════ */
body.page-profile { color: var(--p-text, var(--text-primary)); }
.profile-name { color: var(--p-text, var(--text-primary)); }
.profile-bio  { color: var(--p-text, var(--text-primary)); opacity: 0.8; }

/* Profile wrapper z-index above effects */
.profile-wrapper { position: relative; z-index: 1; }

/* ============================================================ */
/* RESUME BUILDER SPECIFIC STYLES                               */
/* ============================================================ */

/* Public Resume Base */
.res-pub { margin-bottom: 3.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
.res-pub:last-child { border-bottom: none; }

/* Typography */
.res-h1 { font-size: 3rem; font-weight: 800; margin-bottom: 0.5rem; letter-spacing: -0.03em; color: #ffffff; }
.res-h2 { font-size: 1.25rem; font-weight: 500; color: #a855f7; margin-bottom: 1.5rem; }
.res-bio { font-size: 1.1rem; line-height: 1.7; color: rgba(255,255,255,0.75); }
.res-h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; color: rgba(255,255,255,0.4); margin-bottom: 2rem; }

/* Experience & Education */
.exp-item, .edu-item { margin-bottom: 2.5rem; position: relative; padding-left: 1.25rem; border-left: 2px solid rgba(255,255,255,0.08); transition: border-color 0.3s ease; }
.exp-item:hover, .edu-item:hover { border-color: rgba(168,85,247,0.5); }
.exp-item::before, .edu-item::before { content: ''; position: absolute; left: -6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: #a855f7; box-shadow: 0 0 10px rgba(168,85,247,0.6); opacity: 0; transition: opacity 0.3s ease; }
.exp-item:hover::before, .edu-item:hover::before { opacity: 1; }
.exp-header, .edu-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.5rem; }
@media (max-width: 600px) { .exp-header, .edu-header { flex-direction: column; gap: 0.3rem; } }
.exp-role, .edu-degree { font-size: 1.2rem; font-weight: 600; color: #ffffff; }
.exp-date, .edu-date { font-size: 0.85rem; color: #a855f7; font-family: 'Roboto Mono', monospace; font-weight: 500; }
.exp-desc, .edu-school { font-size: 1rem; line-height: 1.6; color: rgba(255,255,255,0.65); }

/* Skills */
.skills-grid { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.skill-tag { background: rgba(255,255,255,0.03); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.08); padding: 0.5rem 1rem; border-radius: 8px; font-size: 0.85rem; font-weight: 500; color: rgba(255,255,255,0.85); transition: all 0.3s ease; box-shadow: 0 4px 6px rgba(0,0,0,0.1); cursor: default; }
.skill-tag:hover { transform: translateY(-4px); background: rgba(168,85,247,0.1); border-color: rgba(168,85,247,0.3); color: #fff; box-shadow: 0 8px 20px rgba(168,85,247,0.25); }

/* Projects */
.proj-link { display: block; text-decoration: none; color: inherit; outline: none; }
.proj-link:hover .proj-card { transform: translateY(-6px); border-color: rgba(168,85,247,0.4); box-shadow: 0 12px 30px rgba(168,85,247,0.2); }
.proj-card { display: flex; flex-direction: column; background: rgba(255,255,255,0.025); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,0.07); border-radius: 16px; overflow: hidden; transition: all 0.3s ease; margin-bottom: 2rem; box-shadow: 0 8px 30px rgba(0,0,0,0.3); }
.proj-img { width: 100%; height: 220px; object-fit: cover; border-bottom: 1px solid rgba(255,255,255,0.05); }
.proj-info { padding: 1.75rem; }
.proj-title { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.75rem; color: #ffffff; display: flex; align-items: center; justify-content: space-between; }
.proj-tech { font-size: 0.85rem; color: rgba(255,255,255,0.5); font-family: 'Roboto Mono', monospace; }

/* Contact Form */
.res-input { width: 100%; padding: 1rem; margin-bottom: 1.25rem; background: rgba(255,255,255,0.02); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; color: #ffffff; font-family: inherit; font-size: 0.95rem; transition: all 0.3s ease; }
.res-input:focus { outline: none; border-color: #a855f7; box-shadow: 0 0 15px rgba(168,85,247,0.2); background: rgba(255,255,255,0.04); }
.res-btn { width: 100%; padding: 1rem; background: #a855f7; color: #fff; border: none; border-radius: 12px; font-weight: 600; font-size: 1rem; cursor: pointer; transition: all 0.3s ease; }
.res-btn:hover { background: #9333ea; box-shadow: 0 8px 20px rgba(168,85,247,0.3); transform: translateY(-2px); }
.res-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

/* Dashboard Resume Preview */
.resume-preview-root { font-family: 'Inter', sans-serif; color: #f1f1f1; text-align: left; }
.resume-preview-root.theme-modern-dark { background: #09090b; color: #f4f4f5; --p-accent: #a855f7; }
.resume-preview-root.theme-minimal-light { background: #fafafa; color: #09090b; --p-accent: #000000; }
.resume-preview-root.theme-glassmorphism { background: radial-gradient(circle at top right, rgba(168,85,247,0.15) 0%, transparent 60%), #0f0f0f; color: #f1f1f1; --p-accent: #a855f7; }

