/* ============================================================
   cutt.al — Main Stylesheet
   Design: Dark-first, violet-blue gradient accent, Inter + Space Grotesk
   ============================================================ */

/* ── Variables ────────────────────────────────────────────── */
:root {
  --accent:       #7C3AED;
  --accent2:      #2563EB;
  --accent-glow:  rgba(124,58,237,.25);
  --grad:         linear-gradient(135deg, #7C3AED 0%, #2563EB 100%);
  --grad-subtle:  linear-gradient(135deg, rgba(124,58,237,.12) 0%, rgba(37,99,235,.08) 100%);

  /* Dark theme defaults */
  --bg:           #0A0A0F;
  --bg-card:      #111119;
  --bg-input:     #16161F;
  --bg-hover:     #1E1E2A;
  --border:       rgba(255,255,255,.07);
  --border-focus: rgba(124,58,237,.6);
  --text:         #E8E8F0;
  --text-muted:   #888897;
  --text-dim:     #555566;
  --shadow:       0 4px 24px rgba(0,0,0,.4);
  --shadow-card:  0 2px 16px rgba(0,0,0,.3);
  --radius:       12px;
  --radius-sm:    8px;
  --radius-lg:    18px;
}

[data-theme="light"] {
  --bg:          #F5F5FA;
  --bg-card:     #FFFFFF;
  --bg-input:    #F0F0F8;
  --bg-hover:    #EBEBF5;
  --border:      rgba(0,0,0,.08);
  --text:        #111120;
  --text-muted:  #55556A;
  --text-dim:    #AAAABC;
  --shadow:      0 4px 24px rgba(0,0,0,.08);
  --shadow-card: 0 2px 12px rgba(0,0,0,.06);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background .25s, color .25s;
}

main { flex: 1; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { cursor: pointer; font-family: inherit; }

/* ── Typography ───────────────────────────────────────────── */
h1,h2,h3,h4 {
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Layout ───────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.container-xs { max-width: 480px; margin: 0 auto; padding: 0 24px; }

/* ── Navbar ───────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,15,.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

[data-theme="light"] .navbar {
  background: rgba(245,245,250,.9);
}

.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 60px; display: flex; align-items: center; gap: 32px;
}

.logo {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem; font-weight: 700;
}
.logo-dot { color: var(--accent); }

.nav-links { display: flex; gap: 8px; flex: 1; }
.nav-links a {
  padding: 6px 14px; border-radius: var(--radius-sm);
  font-size: .875rem; font-weight: 500; color: var(--text-muted);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: var(--bg-hover); }

.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: var(--radius-sm);
  background: var(--grad); color: #fff;
  font-size: .875rem; font-weight: 600;
  border: none; transition: opacity .2s, transform .1s;
  box-shadow: 0 0 20px var(--accent-glow);
}
.btn-primary:hover { opacity: .9; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px; border-radius: var(--radius-sm);
  background: transparent; color: var(--text-muted);
  font-size: .875rem; font-weight: 500;
  border: 1px solid var(--border); transition: all .2s;
}
.btn-ghost:hover { color: var(--text); border-color: var(--border-focus); background: var(--bg-hover); }

.btn-icon { padding: 7px 10px; font-size: .8rem; }

.btn-danger {
  background: rgba(239,68,68,.1); color: #ef4444;
  border: 1px solid rgba(239,68,68,.2);
}
.btn-danger:hover { background: rgba(239,68,68,.2); }

.btn-sm { padding: 5px 12px; font-size: .8rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

/* User menu */
.user-menu { position: relative; cursor: pointer; }
.avatar-sm {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .875rem;
}
.dropdown {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 8px;
  min-width: 200px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all .2s;
}
.user-menu:focus-within .dropdown,
.user-menu:hover .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-header { padding: 8px 10px 12px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.dropdown-header strong { display: block; }
.dropdown a {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: var(--radius-sm);
  font-size: .875rem; transition: background .15s;
}
.dropdown a:hover { background: var(--bg-hover); }
.dropdown hr { border: none; border-top: 1px solid var(--border); margin: 4px 0; }
.dropdown .upgrade-link { color: var(--accent); font-weight: 600; }

.plan-badge {
  display: inline-block; padding: 2px 8px; border-radius: 20px;
  font-size: .7rem; font-weight: 700; letter-spacing: .05em;
}
.plan-free { background: var(--bg-hover); color: var(--text-muted); }
.plan-pro   { background: linear-gradient(135deg,rgba(124,58,237,.2),rgba(37,99,235,.2)); color: #a78bfa; border: 1px solid rgba(124,58,237,.3); }

/* ── Flash ────────────────────────────────────────────────── */
.flash {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; font-size: .9rem; font-weight: 500;
}
.flash-success { background: rgba(16,185,129,.12); color: #10b981; border-bottom: 1px solid rgba(16,185,129,.2); }
.flash-error   { background: rgba(239,68,68,.12);  color: #ef4444;  border-bottom: 1px solid rgba(239,68,68,.2);  }
.flash-info    { background: rgba(37,99,235,.12);   color: #60a5fa;  border-bottom: 1px solid rgba(37,99,235,.2);  }
.flash button  { background: none; border: none; color: inherit; font-size: 1rem; opacity: .7; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  padding: 100px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(124,58,237,.2), transparent);
}
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); margin-bottom: 20px; }
.hero p   { font-size: 1.2rem; color: var(--text-muted); max-width: 560px; margin: 0 auto 40px; }

.hero-box {
  max-width: 660px; margin: 0 auto 60px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 8px;
  box-shadow: var(--shadow);
  display: flex; gap: 8px;
}
.hero-input {
  flex: 1; background: transparent; border: none;
  padding: 12px 16px; font-size: 1rem; color: var(--text);
  outline: none;
}
.hero-input::placeholder { color: var(--text-dim); }

.hero-stats { display: flex; gap: 48px; justify-content: center; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-num { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; font-weight: 700; }
.stat-label { font-size: .875rem; color: var(--text-muted); }

/* ── Short Result Card ─────────────────────────────────────── */
.result-card {
  max-width: 660px; margin: 0 auto 24px;
  background: var(--grad-subtle);
  border: 1px solid rgba(124,58,237,.25);
  border-radius: var(--radius-lg); padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  animation: slideIn .3s ease;
}
@keyframes slideIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }
.result-url { font-family: 'Space Grotesk',sans-serif; font-size: 1.2rem; font-weight: 600; color: var(--accent); }
.result-original { font-size: .8rem; color: var(--text-muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 340px; }
.result-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow-card); transition: border-color .2s;
}
.card:hover { border-color: rgba(124,58,237,.3); }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.card-title { font-family: 'Space Grotesk',sans-serif; font-size: 1rem; font-weight: 600; }

/* ── Features grid ────────────────────────────────────────── */
.features { padding: 80px 24px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; max-width: 1100px; margin: 40px auto 0; }
.feat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  transition: all .25s;
}
.feat-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 8px 32px var(--accent-glow); }
.feat-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--grad-subtle); border: 1px solid rgba(124,58,237,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 16px;
}
.feat-card h3 { font-size: 1rem; margin-bottom: 8px; }
.feat-card p  { font-size: .875rem; color: var(--text-muted); }

/* ── Section header ───────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 12px; }
.section-header h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.section-header p  { color: var(--text-muted); margin-top: 10px; }
.eyebrow {
  display: inline-block; padding: 4px 14px; border-radius: 20px;
  background: var(--grad-subtle); border: 1px solid rgba(124,58,237,.25);
  font-size: .75rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: #a78bfa; margin-bottom: 14px;
}

/* ── Pricing ──────────────────────────────────────────────── */
.pricing-section { padding: 80px 24px; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; max-width: 760px; margin: 0 auto; }
.price-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px 32px;
}
.price-card.featured {
  border-color: var(--accent); position: relative;
  box-shadow: 0 0 40px var(--accent-glow);
}
.price-card.featured::before {
  content: 'POPULAR'; position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff;
  font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  padding: 4px 16px; border-radius: 20px;
}
.price-name { font-size: .9rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.price-amount { font-family: 'Space Grotesk',sans-serif; font-size: 3rem; font-weight: 700; }
.price-amount span { font-size: 1rem; color: var(--text-muted); font-weight: 400; }
.price-features { list-style: none; margin: 28px 0; display: flex; flex-direction: column; gap: 12px; }
.price-features li { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.price-features li .check { color: #10b981; font-size: 1rem; }
.price-features li .cross { color: var(--text-dim); }

/* ── Forms / Inputs ───────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: .875rem; font-weight: 500; margin-bottom: 6px; color: var(--text-muted); }
.form-control {
  width: 100%; padding: 11px 14px;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-size: .95rem; font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus { outline: none; border-color: var(--border-focus); box-shadow: 0 0 0 3px var(--accent-glow); }
.form-control::placeholder { color: var(--text-dim); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-hint { font-size: .8rem; color: var(--text-dim); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.input-group { display: flex; }
.input-group .form-control { border-radius: var(--radius-sm) 0 0 var(--radius-sm); border-right: none; }
.input-group .btn-primary { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; white-space: nowrap; }
.input-addon {
  padding: 11px 14px; background: var(--bg-hover); border: 1px solid var(--border);
  border-right: none; color: var(--text-muted); font-size: .875rem;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  display: flex; align-items: center;
}
.input-group .form-control.mid { border-radius: 0; border-left: none; }

/* Toggle switch */
.toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; }
.toggle-label { font-size: .875rem; color: var(--text-muted); }
.toggle { position: relative; width: 44px; height: 24px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-track {
  position: absolute; inset: 0; border-radius: 12px;
  background: var(--border); cursor: pointer; transition: background .2s;
}
.toggle-track::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; transition: transform .2s;
}
.toggle input:checked ~ .toggle-track { background: var(--accent); }
.toggle input:checked ~ .toggle-track::after { transform: translateX(20px); }

/* ── Table ────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 16px; text-align: left; font-size: .875rem; }
th { color: var(--text-muted); font-weight: 500; border-bottom: 1px solid var(--border); white-space: nowrap; }
td { border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:hover td { background: var(--bg-hover); }
tr:last-child td { border-bottom: none; }

.code-cell { font-family: monospace; font-size: .85rem; }
.url-cell { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge { padding: 3px 10px; border-radius: 20px; font-size: .75rem; font-weight: 600; }
.badge-success { background: rgba(16,185,129,.12); color: #10b981; }
.badge-danger  { background: rgba(239,68,68,.12);  color: #ef4444;  }
.badge-warning { background: rgba(245,158,11,.12); color: #f59e0b; }
.badge-info    { background: rgba(37,99,235,.12);  color: #60a5fa;  }

/* ── Dashboard layout ─────────────────────────────────────── */
.dash-layout { display: flex; min-height: calc(100vh - 60px); }
.dash-sidebar {
  width: 240px; flex-shrink: 0;
  background: var(--bg-card); border-right: 1px solid var(--border);
  padding: 24px 12px; display: flex; flex-direction: column; gap: 4px;
}
.dash-sidebar a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--radius-sm);
  font-size: .875rem; font-weight: 500; color: var(--text-muted);
  transition: all .15s;
}
.dash-sidebar a:hover, .dash-sidebar a.active {
  color: var(--text); background: var(--bg-hover);
}
.dash-sidebar a.active { color: #a78bfa; background: rgba(124,58,237,.1); }
.dash-sidebar .sidebar-label { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); padding: 14px 14px 4px; }
.dash-content { flex: 1; padding: 32px; overflow-x: hidden; }

/* Stat cards in dashboard (legacy alt naming) */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 22px;
}
.stat-card-num { font-family: 'Space Grotesk',sans-serif; font-size: 1.8rem; font-weight: 700; }
.stat-card-label { font-size: .8rem; color: var(--text-muted); margin-top: 2px; }
.stat-card-sub { font-size: .75rem; color: var(--accent); margin-top: 6px; }

/* Stat cards (admin panel + most dashboard pages) */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.stats-grid .stat-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.stat-icon { font-size: 1.5rem; margin-bottom: 4px; }
.stat-value { font-family: 'Space Grotesk',sans-serif; font-size: 1.6rem; font-weight: 700; line-height: 1.2; }
.stat-label { font-size: .8rem; color: var(--text-muted); }

/* ── Progress bar ─────────────────────────────────────────── */
.progress { height: 6px; background: var(--bg-hover); border-radius: 3px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--grad); border-radius: 3px; transition: width .4s; }

/* ── Modal ────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.6); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; visibility: hidden; transition: all .2s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  max-width: 540px; width: 100%;
  transform: scale(.95); transition: transform .2s;
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.modal-header h3 { font-family: 'Space Grotesk',sans-serif; font-size: 1.1rem; }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 1.3rem; }
.modal-footer { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; }

/* ── Tabs ─────────────────────────────────────────────────── */
.tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 24px; gap: 4px; }
.tab {
  padding: 10px 18px; font-size: .875rem; font-weight: 500;
  color: var(--text-muted); border: none; background: none;
  border-bottom: 2px solid transparent; cursor: pointer;
  transition: all .2s; margin-bottom: -1px;
}
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ── QR canvas wrap ───────────────────────────────────────── */
.qr-preview {
  width: 200px; height: 200px; margin: 0 auto 16px;
  border-radius: var(--radius); overflow: hidden;
  background: #fff; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
}
.qr-preview canvas { display: block; }

/* ── Poll result bars ─────────────────────────────────────── */
.poll-option { margin-bottom: 14px; }
.poll-option-header { display: flex; justify-content: space-between; margin-bottom: 5px; font-size: .875rem; }
.poll-option-pct { font-weight: 600; }

/* ── Form builder ─────────────────────────────────────────── */
.field-builder-item {
  background: var(--bg-hover); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px; margin-bottom: 10px;
  display: flex; gap: 12px; align-items: flex-start;
}
.drag-handle { color: var(--text-dim); cursor: grab; padding-top: 2px; }
.field-builder-item .inner { flex: 1; display: grid; grid-template-columns: 1fr 1fr auto auto; gap: 10px; align-items: center; }

/* ── Pagination ───────────────────────────────────────────── */
.pagination { display: flex; gap: 6px; align-items: center; justify-content: center; margin-top: 24px; }
.page-btn {
  padding: 6px 14px; border-radius: var(--radius-sm);
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-muted); font-size: .875rem; cursor: pointer;
  transition: all .15s;
}
.page-btn:hover, .page-btn.active { border-color: var(--accent); color: var(--accent); background: rgba(124,58,237,.08); }
.page-btn.active { font-weight: 600; }

/* ── Chart wrap ───────────────────────────────────────────── */
.chart-wrap { position: relative; height: 220px; }

/* ── Auth pages ───────────────────────────────────────────── */
.auth-page {
  min-height: calc(100vh - 60px);
  display: flex; align-items: center; justify-content: center; padding: 40px 24px;
}
.auth-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px;
  width: 100%; max-width: 420px;
}
.auth-card h1 { font-size: 1.6rem; margin-bottom: 6px; }
.auth-card .sub { color: var(--text-muted); font-size: .9rem; margin-bottom: 28px; }
.auth-divider { text-align: center; color: var(--text-dim); font-size: .875rem; margin: 20px 0; }

/* ── Redirect page ────────────────────────────────────────── */
.redirect-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.redirect-box { text-align: center; padding: 40px; }
.redirect-spinner {
  width: 48px; height: 48px; border-radius: 50%;
  border: 3px solid var(--border); border-top-color: var(--accent);
  animation: spin 1s linear infinite; margin: 0 auto 24px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── 404 ──────────────────────────────────────────────────── */
.error-page { min-height: calc(100vh - 60px); display: flex; align-items: center; justify-content: center; text-align: center; padding: 40px; }
.error-code { font-size: 6rem; font-weight: 800; line-height: 1; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* ── Copy tooltip ─────────────────────────────────────────── */
.copy-btn { position: relative; }
.copy-tip {
  position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  font-size: .75rem; padding: 3px 10px; border-radius: 4px;
  white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity .2s;
}
.copy-btn.copied .copy-tip { opacity: 1; }

/* ── Upgrade CTA ──────────────────────────────────────────── */
.upgrade-banner {
  background: var(--grad-subtle); border: 1px solid rgba(124,58,237,.25);
  border-radius: var(--radius); padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 20px;
}
.upgrade-banner p { font-size: .875rem; color: var(--text-muted); }
.upgrade-banner strong { color: var(--text); }

/* ── Admin layout ─────────────────────────────────────────── */
.admin-layout { display: flex; min-height: calc(100vh - 60px); }
.admin-sidebar { width: 220px; flex-shrink: 0; background: #0D0D15; border-right: 1px solid var(--border); padding: 20px 10px; }
.admin-sidebar a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius-sm); font-size: .875rem; color: var(--text-muted); transition: all .15s; }
.admin-sidebar a:hover, .admin-sidebar a.active { color: var(--text); background: var(--bg-hover); }
.admin-content { flex: 1; padding: 28px; }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--bg-card); border-top: 1px solid var(--border);
  margin-top: 80px;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto; padding: 56px 24px 40px;
  display: flex; gap: 48px; flex-wrap: wrap;
}
.footer-brand { max-width: 220px; }
.footer-brand p { font-size: .875rem; color: var(--text-muted); margin-top: 10px; }
.footer-links { display: flex; gap: 48px; flex: 1; flex-wrap: wrap; }
.footer-col h4 { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); margin-bottom: 14px; }
.footer-col a { display: block; font-size: .875rem; color: var(--text-muted); margin-bottom: 10px; transition: color .15s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 20px 24px;
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  font-size: .8rem; color: var(--text-dim);
}
.footer-langs { display: flex; gap: 12px; }
.footer-langs a { color: var(--text-dim); transition: color .15s; }
.footer-langs a.active, .footer-langs a:hover { color: var(--text); }

/* ── Hamburger ────────────────────────────────────────────── */
.nav-hamburger { display: none; flex-direction: column; gap: 5px; padding: 6px; background: none; border: none; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--text-muted); border-radius: 2px; transition: all .25s; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; inset: 60px 0 0;
    background: var(--bg-card); padding: 20px;
    border-top: 1px solid var(--border);
    z-index: 99;
  }
  .dash-layout { flex-direction: column; }
  .dash-sidebar { width: 100%; flex-direction: row; overflow-x: auto; padding: 12px; border-right: none; border-bottom: 1px solid var(--border); }
  .dash-sidebar .sidebar-label { display: none; }
  .dash-content { padding: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .hero { padding: 60px 24px 50px; }
  .hero-box { flex-direction: column; }
  .footer-inner { flex-direction: column; gap: 32px; }
  .modal { padding: 24px; }
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; }
}

/* ── Animations ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

.fade-in, .reveal-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1);
}
.fade-in.revealed, .reveal-up.revealed {
  opacity: 1;
  transform: translateY(0);
}
/* Fallback: if JS never runs (disabled/blocked), force visible after a short CSS-only delay */
.no-js .fade-in, .no-js .reveal-up { opacity: 1; transform: none; }
@keyframes fadeIn { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }

/* ── Admin Panel ────────────────────────────────────────────── */
.admin-body { background: var(--bg); }
.admin-login-body { background: var(--bg); display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.admin-login-wrap { width: 100%; max-width: 420px; padding: 24px; }
.admin-login-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 40px; }
.admin-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.admin-login-title { font-size: 22px; font-weight: 700; margin-bottom: 24px; }
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar { width: 240px; background: var(--bg-card); border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 24px 0; flex-shrink: 0; }
.admin-sidebar-logo { padding: 0 20px 24px; font-size: 20px; font-weight: 800; color: var(--text); border-bottom: 1px solid var(--border); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.admin-sidebar-logo a { background: linear-gradient(135deg,var(--accent),var(--accent2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-decoration: none; font-size: 20px; font-weight: 800; }
.admin-nav { display: flex; flex-direction: column; gap: 2px; padding: 0 12px; }
.admin-nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; color: var(--text-muted); font-size: .875rem; text-decoration: none; transition: all .15s; }
.admin-nav-item:hover { background: var(--bg-hover); color: var(--text); }
.admin-nav-logout { margin-top: auto; color: var(--text-dim); }
.admin-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.admin-topbar { padding: 16px 28px; border-bottom: 1px solid var(--border); background: var(--bg-card); }
.admin-topbar h2 { font-size: 18px; font-weight: 600; }
.admin-content { padding: 28px; flex: 1; overflow-y: auto; }
.admin-card-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.admin-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.admin-badge { background: linear-gradient(135deg,var(--accent),var(--accent2)); color: white; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px; text-transform: uppercase; letter-spacing: .05em; }
.inline-actions { display: flex; gap: 4px; }
.search-form { display: flex; gap: 8px; }
.url-cell { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8rem; color: var(--text-muted); }

/* ── Analytics ──────────────────────────────────────────────── */
.analytics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.bar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.bar-label { width: 110px; font-size: .8rem; color: var(--text-muted); flex-shrink: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { flex: 1; height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg,var(--accent),var(--accent2)); transition: width .5s; }
.bar-fill-green { background: linear-gradient(90deg,#10B981,#059669); }
.bar-fill-purple { background: linear-gradient(90deg,#7C3AED,#A855F7); }
.bar-count { font-size: .8rem; color: var(--text-muted); min-width: 28px; text-align: right; }
.days-filter { display: flex; gap: 6px; }
.stats-grid-4 { grid-template-columns: repeat(4,1fr); }

/* ── Error/Password pages ───────────────────────────────────── */
.error-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg); padding: 24px; }
.error-content { text-align: center; max-width: 420px; }
.error-code { font-size: 96px; font-weight: 900; line-height: 1; background: linear-gradient(135deg,var(--accent),var(--accent2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 16px; }
.error-title { font-size: 28px; font-weight: 700; margin-bottom: 12px; }
.error-desc { color: var(--text-muted); margin-bottom: 28px; }
.lock-icon { font-size: 64px; margin-bottom: 16px; }
.password-form { max-width: 300px; margin: 0 auto; }
.error-page-inline { padding: 32px; text-align: center; }

/* ── Pricing ────────────────────────────────────────────────── */
.pricing-hero { padding: 80px 24px 40px; text-align: center; background: radial-gradient(ellipse at top,rgba(124,58,237,.1) 0%,transparent 65%); }
.pricing-section { padding: 40px 24px 80px; }
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 800px; margin: 0 auto 60px; }
.pricing-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 36px; position: relative; }
.pricing-card-featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 20px 60px rgba(124,58,237,.2); }
.pricing-popular { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg,var(--accent),var(--accent2)); color: white; font-size: 11px; font-weight: 700; padding: 4px 14px; border-radius: 20px; white-space: nowrap; }
.pricing-badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 20px; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .05em; }
.badge-free { background: var(--bg); border: 1px solid var(--border); color: var(--text-muted); }
.badge-pro { background: linear-gradient(135deg,var(--accent),var(--accent2)); color: white; }
.pricing-price { font-size: 52px; font-weight: 900; line-height: 1; margin-bottom: 8px; }
.pricing-price span { font-size: 18px; font-weight: 400; color: var(--text-muted); }
.pricing-desc { color: var(--text-muted); font-size: .9rem; margin-bottom: 24px; }
.pricing-features { list-style: none; margin-bottom: 28px; }
.pricing-features li { font-size: .9rem; color: var(--text-muted); padding: 7px 0; border-bottom: 1px solid var(--border); }
.pricing-features li:last-child { border: none; }
.faq-section { max-width: 800px; margin: 0 auto; }
.faq-title { font-size: 28px; font-weight: 700; text-align: center; margin-bottom: 32px; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.faq-item h3 { font-size: .95rem; font-weight: 600; margin-bottom: 8px; }
.faq-item p { font-size: .875rem; color: var(--text-muted); line-height: 1.6; }

/* ── Extra utility ─────────────────────────────────────────── */
.btn-xs { padding: 4px 10px; font-size: .75rem; }
.btn-block { width: 100%; }
.btn-outline { border: 1px solid var(--border); background: transparent; }
.btn-outline:hover { background: var(--bg-hover); }
.badge-success { background: rgba(16,185,129,.15); color: #34D399; border: 1px solid rgba(16,185,129,.3); font-size: 11px; padding: 2px 8px; border-radius: 4px; }
.badge-danger  { background: rgba(239,68,68,.15);  color: #F87171; border: 1px solid rgba(239,68,68,.3);  font-size: 11px; padding: 2px 8px; border-radius: 4px; }
.mb-6 { margin-bottom: 24px; }
.mt-6 { margin-top: 24px; }
.link-accent { color: var(--accent); text-decoration: none; }
.link-accent:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; padding: 12px; }
  .admin-nav { flex-direction: row; overflow-x: auto; }
  .admin-two-col { grid-template-columns: 1fr; }
  .analytics-grid { grid-template-columns: 1fr; }
  .stats-grid-4 { grid-template-columns: repeat(2,1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
}

/* ── PayPal / Pricing toggle ───────────────────────────────── */
.pricing-toggle { display: flex; gap: 4px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 4px; margin-bottom: 20px; }
.toggle-btn { flex: 1; padding: 8px 12px; border: none; background: transparent; color: var(--text-muted); font-size: .85rem; font-weight: 600; border-radius: 7px; cursor: pointer; transition: all .15s; }
.toggle-btn.active { background: linear-gradient(135deg,var(--accent),var(--accent2)); color: white; }
.save-badge { font-size: .65rem; background: rgba(16,185,129,.2); color: #34D399; padding: 1px 6px; border-radius: 10px; margin-left: 4px; }
.paypal-btn-wrap { margin-top: 8px; min-height: 45px; }
.price-monthly span, .price-yearly span { font-size: 16px; font-weight: 400; color: var(--text-muted); }

/* ── Landing pages: hero actions, steps, CTA ─────────────────── */
.hero-sub { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; margin: 16px auto 28px; line-height: 1.6; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }

.how-section { padding: 70px 24px; background: var(--bg-card); }
.steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; max-width: 900px; margin: 40px auto 0; }
.step-card { text-align: center; padding: 24px; }
.step-num { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg,var(--accent),var(--accent2)); color: white; font-size: 1.25rem; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.step-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.step-card p { color: var(--text-muted); font-size: .9rem; line-height: 1.6; }

.cta-section { padding: 80px 24px; text-align: center; background: radial-gradient(ellipse at center,rgba(124,58,237,.12) 0%,transparent 65%); }
.cta-section h2 { font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.cta-section p { color: var(--text-muted); margin-bottom: 28px; font-size: 1.05rem; }

@media (max-width: 768px) {
  .steps-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
}

/* ── Legal pages (Terms, Privacy, Contact, Abuse) ─────────────── */
.container-narrow { max-width: 760px; margin: 0 auto; }
.legal-section { padding: 60px 24px 100px; }
.legal-title { font-size: 2.25rem; font-weight: 800; margin-bottom: 8px; }
.legal-updated { color: var(--text-muted); font-size: .9rem; margin-bottom: 36px; }
.legal-content h2 { font-size: 1.25rem; font-weight: 700; margin: 32px 0 12px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { color: var(--text-muted); line-height: 1.75; margin-bottom: 14px; }
.legal-content ul { margin: 0 0 16px 20px; color: var(--text-muted); line-height: 1.8; }
.legal-content li { margin-bottom: 4px; }
.legal-content strong { color: var(--text); }

.contact-form { margin-top: 32px; max-width: 600px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form textarea.form-control { resize: vertical; font-family: inherit; }

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .legal-title { font-size: 1.75rem; }
}

/* ── Admin Settings Tabs ───────────────────────────────────── */
.settings-tabs { display: flex; gap: 4px; margin-bottom: 24px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.settings-tab { padding: 10px 16px; border: none; background: transparent; color: var(--text-muted); font-size: .875rem; font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; transition: all .15s; }
.settings-tab:hover { color: var(--text); }
.settings-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.settings-panel { animation: fadeIn .2s ease; }
.form-check { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.form-check input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); }
.form-check label { font-size: .875rem; color: var(--text); cursor: pointer; }
.mt-3 { margin-top: 12px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ── Bio Link Dashboard Builder ────────────────────────────── */
.bio-builder-grid { display: grid; grid-template-columns: 1fr 380px; gap: 24px; margin-top: 24px; align-items: start; }
.bio-editor { min-width: 0; }

.avatar-upload-row { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.avatar-preview { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 2px solid var(--border); }
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.avatar-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg,var(--accent),var(--accent2)); display: flex; align-items: center; justify-content: center; color: white; font-weight: 800; font-size: 1.4rem; }

.theme-picker { display: flex; gap: 10px; flex-wrap: wrap; }
.theme-option { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; }
.theme-option input { display: none; }
.theme-swatch { width: 36px; height: 36px; border-radius: 10px; border: 2px solid transparent; transition: border-color .15s; }
.theme-option input:checked + .theme-swatch { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 30%, transparent); }
.theme-label { font-size: .7rem; color: var(--text-muted); }
.form-control-color { width: 60px; height: 36px; padding: 2px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); cursor: pointer; }

.add-link-form .form-row { display: grid; grid-template-columns: 1fr 1.5fr; gap: 8px; }
.bio-links-list { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.bio-link-row { display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; cursor: grab; }
.bio-link-row:active { cursor: grabbing; }
.drag-handle { color: var(--text-dim); font-size: 1.1rem; flex-shrink: 0; }
.bio-link-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bio-link-info strong { font-size: .85rem; }
.bio-link-info .url-cell { font-size: .75rem; }

.bio-socials-list { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.bio-social-row { display: flex; align-items: center; justify-content: space-between; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; font-size: .85rem; }

.bio-preview-wrap { position: sticky; top: 24px; }
.bio-preview-frame { width: 100%; height: 640px; border-radius: 24px; overflow: hidden; border: 8px solid var(--bg-card); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.bio-preview-frame iframe { width: 100%; height: 100%; border: none; }

@media (max-width: 1000px) {
  .bio-builder-grid { grid-template-columns: 1fr; }
  .bio-preview-wrap { position: static; order: -1; }
  .bio-preview-frame { height: 500px; max-width: 360px; margin: 0 auto; }
  .add-link-form .form-row { grid-template-columns: 1fr; }
}

/* ── Testimonials ───────────────────────────────────────────── */
.testimonials-section { padding: 80px 24px; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1100px; margin: 48px auto 0; }
.testimonial-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.testimonial-stars { color: #FBBF24; font-size: 1rem; letter-spacing: 2px; }
.testimonial-text { color: var(--text); font-size: .9rem; line-height: 1.7; flex: 1; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg,var(--accent),var(--accent2)); color: white; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1rem; flex-shrink: 0; }
.testimonial-author strong { display: block; font-size: .85rem; }
.testimonial-author span { font-size: .75rem; color: var(--text-muted); }

@media (max-width: 900px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* ── Custom Domains DNS instructions ──────────────────────────── */
.dns-instructions { background: var(--bg); border: 1px dashed var(--border); border-radius: 10px; padding: 16px 20px; font-size: .85rem; }
.dns-instructions ol { margin: 10px 0 0 20px; color: var(--text-muted); line-height: 1.8; }
.dns-instructions code { background: var(--bg-card); padding: 2px 6px; border-radius: 4px; font-size: .8rem; color: var(--accent); }

/* ── Bio Link Spotlight ─────────────────────────────────────── */
.bio-spotlight { padding: 80px 24px; background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.bio-spotlight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; max-width: 1000px; margin: 0 auto; }
.bio-spotlight-text h2 { font-size: 2rem; font-weight: 800; margin: 12px 0 14px; }
.bio-spotlight-text p { color: var(--text-muted); font-size: 1rem; line-height: 1.7; margin-bottom: 18px; }
.bio-spotlight-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.bio-spotlight-list li { font-size: .9rem; color: var(--text); }

.bio-spotlight-visual { display: flex; justify-content: center; }
.bio-mock-phone {
  width: 220px; padding: 28px 20px; border-radius: 28px;
  background: linear-gradient(160deg, #15151f, #0a0a0f);
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(124,58,237,.15);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.bio-mock-avatar { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg,var(--accent),var(--accent2)); margin-bottom: 4px; }
.bio-mock-name { width: 90px; height: 10px; border-radius: 4px; background: rgba(255,255,255,.5); }
.bio-mock-bio { width: 130px; height: 7px; border-radius: 4px; background: rgba(255,255,255,.2); margin-bottom: 6px; }
.bio-mock-socials { display: flex; gap: 8px; margin-bottom: 8px; }
.bio-mock-socials span { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.15); }
.bio-mock-link { width: 100%; height: 32px; border-radius: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.08); }

@media (max-width: 800px) {
  .bio-spotlight-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { justify-content: center !important; }
}

/* ── Powerful Tools section ───────────────────────────────────── */
.powerful-tools-section { padding: 80px 24px; }
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1100px; margin: 40px auto 0; }
.tool-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 24px; transition: border-color .2s, transform .2s; }
.tool-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.tool-icon { font-size: 1.8rem; margin-bottom: 12px; }
.tool-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.tool-card p { color: var(--text-muted); font-size: .85rem; line-height: 1.6; }
.tool-pro-tag { display: inline-block; background: linear-gradient(135deg,var(--accent),var(--accent2)); color: white; font-size: .6rem; font-weight: 800; padding: 1px 6px; border-radius: 8px; vertical-align: middle; margin-left: 4px; }

@media (max-width: 900px) { .tools-grid { grid-template-columns: 1fr; } }

/* ── PayPal trust badge ───────────────────────────────────────── */
.payment-trust-badge {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  max-width: 480px; margin: 32px auto 0; padding: 12px 20px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 50px;
  color: var(--text-muted); font-size: .8rem;
}
.payment-trust-badge svg { color: #34D399; flex-shrink: 0; }
.payment-trust-badge strong { color: var(--text); }

/* ── Related Tools cross-link section ─────────────────────────── */
.related-tools-section { padding: 60px 24px; background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.related-tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 900px; margin: 32px auto 0; }
.related-tool-card { display: block; background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 22px; text-decoration: none; color: inherit; transition: all .2s; }
.related-tool-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(124,58,237,.12); }
.related-tool-icon { font-size: 1.6rem; margin-bottom: 10px; }
.related-tool-card h3 { font-size: .95rem; font-weight: 700; margin-bottom: 4px; }
.related-tool-card p { color: var(--text-muted); font-size: .8rem; line-height: 1.5; }

@media (max-width: 800px) { .related-tools-grid { grid-template-columns: 1fr; } }

/* ── Hero badge line (e.g. QR logo highlight) ─────────────────── */
.hero-badge-line {
  display: inline-block; margin: 4px auto 0; padding: 6px 16px;
  background: var(--grad-subtle); border: 1px solid rgba(124,58,237,.25);
  border-radius: 50px; font-size: .8rem; color: var(--text);
}

/* ── SEO settings field hints ──────────────────────────────────── */
.field-hint { font-size: .75rem; color: var(--text-muted); margin-top: 4px; line-height: 1.5; }

/* ── Email verification banner (dashboard) ─────────────────────── */
.verify-banner {
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(90deg, rgba(251,191,36,.1), rgba(251,191,36,.04));
  border: 1px solid rgba(251,191,36,.3);
  border-radius: 12px; padding: 16px 20px; margin-bottom: 24px;
}
.verify-banner-icon { font-size: 1.6rem; flex-shrink: 0; }
.verify-banner-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.verify-banner-text strong { font-size: .9rem; color: #FBBF24; }
.verify-banner-text span { font-size: .8rem; color: var(--text-muted); line-height: 1.5; }
.verify-banner-btn {
  background: #FBBF24; color: #1a1a0a; font-weight: 700; font-size: .8rem;
  padding: 8px 18px; border-radius: 8px; text-decoration: none; white-space: nowrap; flex-shrink: 0;
  transition: opacity .15s;
}
.verify-banner-btn:hover { opacity: .85; }

@media (max-width: 640px) {
  .verify-banner { flex-direction: column; align-items: flex-start; }
  .verify-banner-btn { width: 100%; text-align: center; }
}
