:root {
  --bg: #07100C;
  --surface: #0D1F16;
  --surface-2: #122a1d;
  --accent: #39FF88;
  --accent-dim: rgba(57, 255, 136, 0.12);
  --text: #F4F7F5;
  --muted: #B7C4BC;
  --border: #1E3A2A;
  --radius: 18px;
  --radius-sm: 14px;
  --shadow: 0 12px 40px rgba(0,0,0,0.35);
  --glow: 0 0 40px rgba(57,255,136,0.08);
}

[data-theme="light"] {
  --bg: #F4F7F5;
  --surface: #FFFFFF;
  --surface-2: #EEF2EF;
  --accent: #00a85b;
  --accent-dim: rgba(0, 168, 91, 0.10);
  --text: #07100C;
  --muted: #3D5246;
  --border: #D2DDD6;
  --shadow: 0 12px 40px rgba(0,0,0,0.08);
  --glow: 0 0 40px rgba(0,168,91,0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.55;
  transition: background 0.3s, color 0.3s;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% -10%, rgba(57,255,136,0.06), transparent 30%),
    radial-gradient(circle at 90% 120%, rgba(57,255,136,0.04), transparent 25%);
  pointer-events: none;
  z-index: -1;
}

a {
  color: var(--accent);
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 24px;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: rgba(13,31,22,0.85);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

[data-theme="light"] .navbar {
  background: rgba(255,255,255,0.9);
}

.navbar .logo {
  height: 38px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-actions a {
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
  transition: color 0.2s;
}

.nav-actions a:hover {
  color: var(--accent);
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.theme-toggle:hover {
  transform: scale(1.08);
  box-shadow: var(--glow);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
  transition: background 0.3s, border 0.3s, box-shadow 0.3s;
}

h1, h2, h3 {
  margin-top: 0;
  font-family: 'Barlow Condensed', sans-serif;
}

h1 { font-size: 42px; line-height: 1; letter-spacing: -0.02em; }
h2 { font-size: 26px; line-height: 1.1; }
h3 { font-size: 20px; }

p, label, input, textarea, select, button {
  font-family: 'Inter', sans-serif;
}

p { color: var(--muted); }

label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

input, textarea, select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 16px;
  color: var(--text);
  font-size: 15px;
  margin-bottom: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-dim);
}

textarea { resize: vertical; min-height: 90px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 999px;
  padding: 14px 28px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.15s;
  box-shadow: 0 4px 20px rgba(57,255,136,0.20);
}

.btn:hover {
  transform: translateY(-2px);
  opacity: 0.95;
  box-shadow: 0 8px 28px rgba(57,255,136,0.30);
}

.btn-block { width: 100%; }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  box-shadow: none;
}

.btn-outline:hover { background: var(--accent-dim); }

.btn-sm { padding: 10px 20px; font-size: 13px; }

.alert {
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 500;
}

.alert-success {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(57,255,136,0.20);
}

.alert-error {
  background: rgba(239,68,68,0.10);
  color: #ef4444;
  border: 1px solid rgba(239,68,68,0.20);
}

.hero {
  text-align: center;
  padding: 90px 24px 70px;
  animation: fadeInUp 0.7s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero img { height: 64px; margin: 0 auto 28px; }
.hero p { font-size: 19px; max-width: 560px; margin: 0 auto 36px; line-height: 1.6; }
.hero .btn { margin: 0 6px 12px; }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.step {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.step:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.15); }
.step h3 { color: var(--accent); margin-bottom: 10px; font-size: 18px; }

.url-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-family: 'SF Mono', monospace, sans-serif;
  font-size: 16px;
  word-break: break-all;
  margin-bottom: 18px;
  color: var(--text);
}

/* Página pública */
.profile-body {
  min-height: 100vh;
  padding: 0 0 60px;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

.profile-wrap {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 20px;
}

.profile-hero {
  text-align: center;
  padding: 56px 0 36px;
  animation: fadeInUp 0.7s ease;
}

.profile-avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 22px;
  border: 4px solid var(--surface);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35), 0 0 0 4px var(--accent-dim);
}

.profile-avatar-initial {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--muted);
  font-size: 56px;
  font-weight: 800;
  margin: 0 auto 22px;
  border: 4px solid var(--surface);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}

.profile-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 42px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.profile-bio {
  color: var(--muted);
  font-size: 16px;
  max-width: 400px;
  margin: 0 auto 28px;
  line-height: 1.5;
}

.profile-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: fadeInUp 0.8s ease;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 18px 12px 12px;
  min-height: 76px;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform 0.18s;
  position: relative;
  overflow: hidden;
}

.link-card:hover {
  transform: translateY(-3px);
}

.link-thumb {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface-2);
}

.link-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}

.link-icon-wrap svg { width: 22px; height: 22px; }

.link-info {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.link-title {
  display: block;
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1.3;
  margin-bottom: 2px;
}

.link-desc {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.35;
}

.link-arrow {
  color: var(--muted);
  flex-shrink: 0;
  width: 52px;
  display: flex;
  justify-content: center;
  transition: color 0.18s, transform 0.18s;
}

.link-arrow svg { width: 15px; height: 15px; }

.link-card:hover .link-arrow {
  color: var(--accent);
  transform: translateX(3px);
}

/* Topbar da página pública */
.profile-topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(7,16,12,0.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

[data-theme="light"] .profile-topbar {
  background: rgba(255,255,255,0.85);
}

.topbar-id {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.topbar-avatar,
.topbar-initial {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
}

.topbar-avatar {
  object-fit: cover;
}

.topbar-initial {
  background: var(--surface-2);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}

.topbar-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #052e16;
  font-weight: 800;
  font-size: 13px;
  padding: 9px 18px;
  border-radius: 100px;
  transition: transform 0.15s, box-shadow 0.2s;
}

.wa-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37,211,102,0.30);
}

/* Navegação por categoria da vitrine */
.store-nav {
  position: sticky;
  top: 62px;
  z-index: 50;
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 8px -20px 4px;
  padding: 8px 20px;
  background: rgba(7,16,12,0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.store-nav::-webkit-scrollbar { display: none; }

[data-theme="light"] .store-nav { background: rgba(255,255,255,0.88); }

.store-nav a {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 100px;
  transition: color 0.15s;
}

.store-nav a:hover {
  color: var(--accent);
}

.store-nav a.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.cat-count {
  font-size: 10px;
  font-weight: 800;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 100px;
  padding: 2px 7px;
}

.store-nav a.active .cat-count {
  background: rgba(7,16,12,0.18);
  color: var(--bg);
}

@media (min-width: 640px) {
  .store-nav {
    flex-wrap: wrap;
    justify-content: center;
    margin: 10px auto 6px;
    padding: 6px;
    max-width: fit-content;
    border: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    border-radius: 100px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }
  .store-nav a { background: transparent; border-color: transparent; }
  .store-nav a:hover { background: var(--accent-dim); border-color: transparent; }
  .store-nav a.active { background: var(--accent); border-color: var(--accent); }
}

/* Balão flutuante "Fulano indica" — aparece após rolar metade da página */
.reco-bubble-wrap {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(90px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s ease, opacity 0.35s ease;
  z-index: 55;
  margin: 0;
}

.reco-bubble-wrap.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.reco-bubble {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 9px 14px 9px 9px;
  box-shadow: var(--shadow);
  pointer-events: auto;
}

.reco-close {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.reco-close:hover { color: var(--text); }

.reco-avatar,
.reco-initial {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.reco-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  color: var(--accent);
  font-weight: 800;
  font-size: 18px;
}

.reco-text {
  font-size: 15px;
  line-height: 1.25;
  text-align: left;
}

.reco-text strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
}

.reco-text span {
  color: var(--muted);
  font-size: 13px;
}

.reco-arrow {
  color: var(--accent);
  font-size: 16px;
  margin-left: 4px;
}

/* Vitrine de produtos (loja) */
.store-wrap {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px 8px;
}

.store-grid {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 -20px;
  padding: 4px 20px 14px;
}

.store-grid::-webkit-scrollbar { display: none; }

.store-grid .product-card {
  flex: 0 0 76%;
  max-width: 280px;
  scroll-snap-align: start;
}

@media (min-width: 640px) {
  .store-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    overflow-x: visible;
    margin: 0;
    padding: 0;
  }
  .store-grid .product-card { flex: initial; max-width: none; }
}

@media (min-width: 900px) {
  .store-grid { grid-template-columns: repeat(3, 1fr); }
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform 0.15s;
}

.product-card:hover {
  transform: translateY(-3px);
}

.product-media {
  aspect-ratio: 1/1;
  background: #FFFFFF;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}

.product-actions .product-cta {
  margin-top: 0;
  flex: 1;
}

.share-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.15s;
}

.share-btn svg { width: 16px; height: 16px; }

.share-btn:hover {
  transform: scale(1.08);
}

.share-btn:active { transform: scale(0.95); }

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}

.product-card:hover .product-media img {
  transform: scale(1.04);
}

.product-noimg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00a85b;
}

.product-noimg svg { width: 34px; height: 34px; }

.product-info {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.product-title {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  text-align: left;
}

.product-desc {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.4;
  flex: 1;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--accent);
  margin-top: 4px;
  text-align: left;
}

.product-cta {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 10px;
  padding: 10px;
  font-weight: 800;
  font-size: 13px;
}

.product-cta svg { width: 14px; height: 14px; }

.wa-btn svg { width: 16px; height: 16px; }

.profile-section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 32px 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  scroll-margin-top: 118px;
}

.profile-section-title::before,
.profile-section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.profile-footer {
  text-align: center;
  margin-top: 56px;
  padding: 24px 0;
}

.profile-disclaimer {
  color: var(--muted);
  opacity: 0.7;
  font-size: 12px;
  line-height: 1.6;
  max-width: 420px;
  margin: 0 auto 28px;
}

.brand-link img {
  height: 34px;
  background: #07100C;
  padding: 8px 12px;
  border-radius: 10px;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7,16,12,0.75);
  z-index: 0;
  pointer-events: none;
}

[data-theme="light"] .bg-overlay {
  background: rgba(244,247,245,0.80);
}

/* Dashboard */
.dashboard { padding: 32px 0; }

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.dash-header h1 {
  font-size: 36px;
  margin: 0 0 4px;
  font-family: 'Barlow Condensed', sans-serif;
}

.dash-header p { margin: 0; color: var(--muted); font-size: 15px; }

.dash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.stat-value {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 38px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}

.dash-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
}

.dash-main { display: flex; flex-direction: column; gap: 24px; }

.dash-form h2, .dash-links h2 {
  margin-bottom: 20px;
  font-size: 24px;
  font-family: 'Barlow Condensed', sans-serif;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-col { display: flex; flex-direction: column; }

.add-link-form { display: flex; flex-direction: column; gap: 4px; }

.add-link-form input,
.add-link-form select,
.add-link-form textarea { margin-bottom: 14px; }

.dash-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dash-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 10px;
}

.dash-list-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
}

.badge-produto {
  background: var(--accent);
  color: var(--bg);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  margin-left: 6px;
}

.prod-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.prod-toolbar input[type="search"] { flex: 1; min-width: 180px; }
.prod-toolbar select { width: auto; }

.prod-count {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

.prod-item { flex-wrap: wrap; }

.prod-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin: 0;
  align-items: center;
}

.prod-move {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prod-move:hover { color: var(--accent); border-color: var(--accent); }

.prod-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.prod-thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.prod-edit {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
}

.prod-edit-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 14px;
}

.prod-edit-thumb {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .prod-actions { width: 100%; justify-content: flex-start; }
}

.dash-preview { position: sticky; top: 100px; }

.phone-preview {
  background: #000;
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow);
  margin: 0 auto;
  max-width: 280px;
}

.preview-bar {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 12px;
}

.preview-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--surface);
}

.preview-screen {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  min-height: 420px;
  padding: 24px 16px;
  color: var(--text);
  background: var(--bg);
}

.preview-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.4;
}

.preview-content { position: relative; z-index: 1; text-align: center; }

.preview-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  border: 3px solid var(--surface);
}

.preview-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 20px;
  margin: 0 0 6px;
}

.preview-bio {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 18px;
  line-height: 1.4;
}

.preview-link {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Admin */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.admin-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-table code {
  background: var(--surface-2);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12px;
}

.badge-role {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  background: var(--surface-2);
  color: var(--muted);
}

.badge-role.badge-pro { background: var(--accent-dim); color: var(--accent); }
.badge-role.badge-admin { background: var(--accent); color: var(--bg); }
.badge-role.badge-approved { background: rgba(240,180,41,0.15); color: #f0b429; }

.admin-edit-row > td {
  background: var(--surface-2);
  border-radius: 0;
}

@media (max-width: 960px) {
  .dash-grid { grid-template-columns: 1fr; }
  .dash-preview { position: static; order: -1; }
  .phone-preview { max-width: 320px; }
}

@media (max-width: 640px) {
  h1 { font-size: 34px; }
  .form-row { grid-template-columns: 1fr; }
  .navbar { padding: 14px 18px; }
  .profile-name { font-size: 34px; }
  .profile-avatar, .profile-avatar-initial { width: 110px; height: 110px; }
}
