@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

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

:root {
  --primary:      #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light:#eff6ff;
  --accent:       #f59e0b;
  --bg:           #f1f5f9;
  --white:        #ffffff;
  --text:         #0f172a;
  --muted:        #64748b;
  --border:       #e2e8f0;

  /* Radius scale: 4 / 8 / 12 / 16 / 24 px */
  --radius-xs:    4px;
  --radius-sm:    8px;
  --radius:       12px;
  --radius-lg:    16px;
  --radius-xl:    24px;
  --radius-full:  999px;

  /* Spacing scale: 4 / 8 / 12 / 16 / 24 / 32 px */
  --space-1:      4px;
  --space-2:      8px;
  --space-3:      12px;
  --space-4:      16px;
  --space-5:      24px;
  --space-6:      32px;

  /* Shadow tokens */
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.05);
  --shadow:       0 4px 20px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-lg:    0 12px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-blue:  0 4px 16px rgba(37,99,235,0.30);

  --gradient:     linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #0ea5e9 100%);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
}

h1, h2, h3, h4 { line-height: 1.3; }

a { color: inherit; text-decoration: none; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.72rem 1.6rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  box-shadow: 0 2px 8px rgba(37,99,235,0.25);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-1px);
  box-shadow: var(--shadow-blue);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid #bfdbfe;
  background: var(--primary-light);
}
.btn-outline:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-1px);
}

.btn-lg { padding: 0.85rem 2.2rem; font-size: 1rem; border-radius: var(--radius); }

/* ── LANDING NAV ── */
.landing-nav {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226,232,240,0.8);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 12px rgba(0,0,0,0.05);
}

.logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}
.logo span { color: var(--accent); }

.nav-actions { display: flex; gap: 0.75rem; align-items: center; }

/* ── HERO ── */
.hero {
  background: var(--gradient);
  color: white;
  padding: 6rem 2rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(14,165,233,0.35) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(99,102,241,0.25) 0%, transparent 50%);
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 1.2rem;
  letter-spacing: -1px;
  position: relative;
}

.hero h1 span {
  color: var(--accent);
  position: relative;
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  position: relative;
  line-height: 1.7;
}

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; }

.btn-white {
  background: white;
  color: var(--primary);
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.btn-white:hover {
  background: #f0f6ff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
}

.btn-ghost {
  background: rgba(255,255,255,0.1);
  color: white;
  border: 1.5px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.2); transform: translateY(-1px); }

/* DEMO CARD PREVIEW */
.hero-preview { margin-top: 4rem; display: flex; justify-content: center; position: relative; }

.mock-card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 64px rgba(0,0,0,0.28), 0 8px 24px rgba(0,0,0,0.12);
  width: 260px;
  overflow: hidden;
  transform: perspective(900px) rotateX(4deg);
}

.mock-card-header {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  padding: 1.5rem 1rem 1rem;
  text-align: center;
  color: white;
}

.mock-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  margin: 0 auto 0.5rem;
  border: 2px solid rgba(255,255,255,0.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
}

.mock-card-header h4 { font-size: 0.9rem; margin-bottom: 0.2rem; }
.mock-card-header p  { font-size: 0.72rem; opacity: 0.8; }

.mock-actions {
  display: flex;
  justify-content: space-around;
  padding: 0.9rem 0.5rem;
  border-bottom: 1px solid var(--border);
}

.mock-action {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.25rem; font-size: 0.6rem; color: var(--muted);
}

.mock-action span:first-child {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #eff6ff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}

.mock-links { padding: 0.7rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; }

.mock-link {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.65rem; color: var(--muted);
}
.mock-link span:first-child { font-size: 1rem; }

.mock-nav {
  background: white;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-around;
  padding: 0.5rem 0;
}
.mock-nav span { font-size: 0.55rem; color: var(--muted); text-align: center; display: flex; flex-direction: column; gap: 2px; }
.mock-nav span i { font-size: 0.9rem; display: block; }
.mock-nav span:first-child { color: var(--primary); }

/* ── FEATURES ── */
.features { padding: 5.5rem 2rem; background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%); border-bottom: 1px solid var(--border); }

.section-head { text-align: center; margin-bottom: 3rem; }
.section-head h2 { font-size: 2rem; font-weight: 800; color: var(--text); margin-bottom: 0.5rem; letter-spacing: -0.5px; }
.section-head p  { color: var(--muted); font-size: 1rem; }

.section-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid #bfdbfe;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.section-eyebrow.eyebrow-purple {
  color: #7c3aed;
  background: #f5f3ff;
  border-color: #ddd6fe;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-card {
  padding: 2rem 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: white;
  box-shadow: 0 4px 14px rgba(15,23,42,0.05);
  transition: all 0.22s ease;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.22s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #bfdbfe;
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  background: var(--primary-light);
  border-radius: var(--radius);
}
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.feature-card p  { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }

/* ── HOW IT WORKS ── */
.how-it-works {
  padding: 5.5rem 2rem;
  background: linear-gradient(160deg, #eef2ff 0%, #f5f3ff 60%, #fdf2f8 100%);
  position: relative;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 920px;
  margin: 0 auto;
}

.step {
  text-align: center;
  background: white;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: 0 8px 24px rgba(15,23,42,0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.step:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(15,23,42,0.1);
}
.step-num {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--gradient);
  color: white;
  font-weight: 800; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: var(--shadow-blue);
}
.step h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.3rem; }
.step p   { font-size: 0.85rem; color: var(--muted); }

/* ── CTA BAND ── */
.cta-band {
  background: var(--gradient);
  color: white;
  text-align: center;
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(255,255,255,0.08) 0%, transparent 70%);
}
.cta-band h2 { font-size: 2rem; font-weight: 800; margin-bottom: 0.75rem; letter-spacing: -0.5px; position: relative; }
.cta-band p  { color: rgba(255,255,255,0.8); margin-bottom: 2rem; position: relative; }

/* ── FOOTER ── */
.landing-footer {
  background: #0f172a;
  color: rgba(255,255,255,0.45);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.82rem;
}
.landing-footer a { color: var(--accent); }

/* ── CREATE PAGE ── */
.create-page { min-height: 100vh; background: var(--bg); }

.create-header {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226,232,240,0.8);
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 12px rgba(0,0,0,0.05);
}

.create-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 1rem 8rem;
}

.create-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  letter-spacing: -0.5px;
}

.create-sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 2rem; }

.form-section {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.form-section:hover { box-shadow: var(--shadow); }

.form-section-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 0.88rem;
  background: #fafbfc;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}
.form-section-header:hover { background: #f1f5f9; }
.form-section-header .section-icon { font-size: 1.1rem; }
.form-section-header .toggle-arrow { margin-left: auto; transition: transform 0.2s; font-size: 0.7rem; color: var(--muted); }
.form-section-header.collapsed .toggle-arrow { transform: rotate(-90deg); }

.form-section-body { padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem; }
.form-section-body.hidden { display: none; }

.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.72rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text);
  background: #fafbfc;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.form-group textarea { resize: vertical; min-height: 90px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hint { font-size: 0.78rem; color: var(--muted); }

/* Links builder */
.link-builder { display: flex; flex-direction: column; gap: 0.75rem; }

.link-row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 0.6rem;
  align-items: center;
}

.row-actions {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.move-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.55rem;
  cursor: pointer;
  font-size: 0.8rem;
  line-height: 1;
  transition: background 0.15s, color 0.15s;
}
.move-btn:hover { background: #eff6ff; color: var(--primary); border-color: #bfdbfe; }

.remove-link-btn {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #e11d48;
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  font-size: 0.8rem;
  transition: background 0.15s;
}
.remove-link-btn:hover { background: #fee2e2; }

.add-link-btn {
  background: none;
  border: 1.5px dashed #bfdbfe;
  color: var(--primary);
  border-radius: var(--radius-sm);
  padding: 0.65rem;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  width: 100%;
  transition: all 0.15s;
}
.add-link-btn:hover { border-color: var(--primary); background: var(--primary-light); }

/* Specialities / Videos builder */
.spec-list { display: flex; flex-direction: column; gap: 0.5rem; }
.spec-row  { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem; align-items: center; }
.video-id-list { display: flex; flex-direction: column; gap: 0.5rem; }
.video-row { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem; }

/* ── TOASTS ── */
.toast {
  position: fixed;
  top: 80px; right: 1.5rem;
  padding: 0.75rem 1.2rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 999;
  animation: slideIn 0.25s ease;
  box-shadow: var(--shadow-lg);
}
.toast-success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.toast-error   { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; }

@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

/* ── CARD PAGE ── */
.card-wrap {
  max-width: 460px;
  margin: 0 auto;
  padding-bottom: 70px;
  min-height: 100vh;
  background: var(--bg);
}

/* All sections visible — nav scrolls to them */
[id^="section-"] { scroll-margin-top: 8px; }

/* Profile card */
.profile-card {
  background: var(--gradient);
  color: white;
  padding: 2.5rem 1.5rem 1.5rem;
  text-align: center;
  position: relative;
}
.profile-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.profile-card .views-badge {
  position: absolute;
  top: 1rem; right: 1rem;
  font-size: 0.72rem;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-lg);
  display: flex; align-items: center; gap: 0.3rem;
  border: 1px solid rgba(255,255,255,0.2);
}

.profile-avatar {
  width: 100px; height: 100px;
  border-radius: var(--radius);
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.5);
  margin-bottom: 0.75rem;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
img.profile-avatar { display: block; }

.profile-name    { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.2rem; letter-spacing: -0.3px; }
.profile-title   { font-size: 0.85rem; opacity: 0.85; margin-bottom: 0.1rem; }
.profile-company { font-size: 0.82rem; opacity: 0.7; margin-bottom: 1.2rem; }

.action-row {
  display: flex; justify-content: center;
  gap: 1.5rem; margin-bottom: 1.25rem;
}

.action-btn {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.3rem; font-size: 0.68rem;
  color: rgba(255,255,255,0.9);
  text-decoration: none; font-weight: 500;
}

.action-btn .icon-circle {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  transition: all 0.18s;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
}
.action-btn .icon-circle img {
  width: 24px; height: 24px;
  filter: brightness(0) invert(1);
}
.action-btn:hover .icon-circle {
  background: rgba(255,255,255,0.28);
  transform: translateY(-2px);
}

.save-card-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 0.5rem; width: 100%;
  padding: 0.75rem;
  background: rgba(255,255,255,0.15);
  color: white;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: var(--radius);
  font-size: 0.9rem; font-weight: 600;
  cursor: pointer; text-decoration: none;
  backdrop-filter: blur(8px);
  transition: all 0.18s;
}
.save-card-btn:hover { background: rgba(255,255,255,0.25); transform: translateY(-1px); }

/* Info strip */
.info-strip { background: white; }

.info-row {
  display: flex; align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.92rem;
  line-height: 1.55;
}
.info-row:last-child { border-bottom: none; }

.info-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius);
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}

.info-row a { color: var(--primary); word-break: break-all; }

/* LINKS */
.card-section-title {
  padding: 1rem 1.5rem 0.75rem 1.25rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  font-weight: 700;
  background: var(--bg);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.card-section-title::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--primary), #0ea5e9);
  flex-shrink: 0;
}

.links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--border);
}

.link-card-view {
  background: white;
  padding: 1.25rem 1.1rem;
  display: flex; align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s;
}
.link-card-view:hover { background: #f8fafc; }

.link-icon-view {
  width: 42px; height: 42px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}

.link-label-view    { font-size: 0.88rem; font-weight: 600; }
.link-sublabel-view { font-size: 0.72rem; color: var(--muted); }

/* ABOUT */
.about-block { background: white; margin-bottom: 2px; padding: 1.5rem; }

.about-field-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 700; margin-bottom: 0.4rem; }
.about-field-value { font-size: 0.92rem; color: var(--text); line-height: 1.55; }

.spec-list-view { list-style: none; margin-top: 0.5rem; }
.spec-list-view li { padding: 0.6rem 0; font-size: 0.92rem; display: flex; gap: 0.6rem; border-bottom: 1px solid #f1f5f9; line-height: 1.55; }
.spec-list-view li:last-child { border-bottom: none; }
.spec-list-view li::before { content: "✔"; color: var(--primary); flex-shrink: 0; }

.bio-view { font-size: 0.88rem; color: var(--muted); line-height: 1.75; white-space: pre-line; }

/* VIDEOS */
.video-item { background: white; margin-bottom: 2px; }
.video-item iframe { width: 100%; aspect-ratio: 16/9; display: block; border: none; }

.no-videos { background: white; padding: 2.5rem 1.5rem; text-align: center; color: var(--muted); font-size: 0.9rem; }
.no-videos .big-icon { font-size: 2.5rem; display: block; margin-bottom: 0.75rem; }
.yt-btn { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1rem; background: #FF0000; color: white; padding: 0.55rem 1.2rem; border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 600; text-decoration: none; }

/* ENQUIRY */
.enquiry-block { background: white; margin-bottom: 2px; padding: 1.75rem 1.5rem; }
.enquiry-block h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.enq-form { display: flex; flex-direction: column; gap: 0.8rem; }
.enq-form input,
.enq-form textarea,
.enq-form select {
  width: 100%; padding: 0.72rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem; font-family: inherit;
  color: var(--text); background: #fafbfc;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.enq-form input:focus,
.enq-form textarea:focus,
.enq-form select:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.enq-form textarea { resize: vertical; min-height: 90px; }
.enq-submit { background: linear-gradient(135deg, #2563eb, #1d4ed8); color: white; border: none; padding: 0.8rem; border-radius: var(--radius-sm); font-size: 0.93rem; font-weight: 700; cursor: pointer; transition: all 0.18s; box-shadow: var(--shadow-blue); }
.enq-submit:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,99,235,0.35); }
.enq-success { display: none; background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; padding: 0.9rem; border-radius: var(--radius-sm); text-align: center; font-size: 0.88rem; font-weight: 600; }

/* SHARE */
.share-block { background: white; padding: 2.25rem 1.75rem; text-align: center; margin-bottom: 2px; }
.share-block h3 { font-weight: 700; margin-bottom: 0.3rem; }
.share-block p  { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.5rem; }
#qr-canvas { border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 1.25rem; }
.share-url-row { display: flex; border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 1rem; }
.share-url-row input { flex: 1; border: none; padding: 0.65rem 0.9rem; font-size: 0.82rem; background: #fafbfc; color: var(--muted); min-width: 0; }
.share-url-row input:focus { outline: none; }
.copy-btn { background: linear-gradient(135deg, #2563eb, #1d4ed8); color: white; border: none; padding: 0.65rem 1rem; font-size: 0.82rem; font-weight: 700; cursor: pointer; white-space: nowrap; transition: opacity 0.15s; }
.copy-btn:hover { opacity: 0.9; }
.soc-btns { display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap; }
.soc-btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 1.1rem; border-radius: var(--radius); color: white; font-size: 0.82rem; font-weight: 600; text-decoration: none; border: none; cursor: pointer; transition: all 0.18s; }
.soc-btn:hover { transform: translateY(-1px); filter: brightness(1.1); }
.soc-wa { background: #25D366; }
.soc-tw { background: #1DA1F2; }
.soc-cp { background: #64748b; }

/* ── BOTTOM NAV ── */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 460px;
  height: 62px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(226,232,240,0.8);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 100;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}

.nav-tab {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.15rem;
  font-size: 0.58rem;
  color: var(--muted);
  cursor: pointer;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  -webkit-tap-highlight-color: transparent;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 600;
  user-select: none;
  transition: color 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.nav-tab .tab-icon { font-size: 1.2rem; }
.nav-tab.active {
  color: var(--primary);
  background: rgba(37,99,235,0.1);
  border-color: rgba(37,99,235,0.18);
  box-shadow: 0 2px 10px rgba(37,99,235,0.12), inset 0 1px 0 rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Card footer */
.card-footer { text-align: center; padding: 1rem; font-size: 0.75rem; color: var(--muted); }
.card-footer a { color: var(--primary); }

/* NOT FOUND */
.not-found { text-align: center; padding: 5rem 2rem; }
.not-found h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.not-found p  { color: var(--muted); margin-bottom: 2rem; }

/* Avatar upload widget */
.avatar-upload-wrap {
  display: flex; align-items: center; gap: 0.75rem;
}

.avatar-preview {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--primary-light);
  border: 2px dashed #bfdbfe;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0; overflow: hidden;
  transition: border-color 0.18s;
}
.avatar-preview img {
  width: 100%; height: 100%;
  object-fit: cover; border-radius: 50%;
}

.avatar-upload-actions { display: flex; flex-direction: column; gap: 0.4rem; }

.btn-upload {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: var(--primary-light);
  color: var(--primary);
  border: 1.5px solid #bfdbfe;
  border-radius: var(--radius-sm);
  padding: 0.38rem 0.8rem;
  font-size: 0.8rem; font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-upload:hover { background: var(--primary); color: white; border-color: var(--primary); }

.avatar-upload-status { font-size: 0.74rem; color: var(--muted); }

.avatar-url-row {
  display: flex; align-items: center; gap: 0.5rem;
  margin-top: 0.5rem;
}
.avatar-or { font-size: 0.74rem; color: var(--muted); white-space: nowrap; }
.avatar-url-row input {
  flex: 1;
  padding: 0.45rem 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-family: inherit;
  background: #fafbfc;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.avatar-url-row input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

/* Theme grid */
.theme-grid {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
}
.theme-swatch {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  cursor: pointer;
  border: 2.5px solid transparent;
  transition: all 0.18s;
  position: relative;
}
.theme-swatch:hover { transform: scale(1.1); }
.theme-swatch.selected {
  border-color: var(--text);
  box-shadow: 0 0 0 2px white inset;
}

/* ── RESPONSIVE ── */
@media (max-width: 460px) {
  .bottom-nav { left: 0; transform: none; }
  .form-row   { grid-template-columns: 1fr; }
  .link-row   { grid-template-columns: 110px 1fr auto; }
}

@media (max-width: 360px) {
  .link-row { grid-template-columns: 1fr; }
}

/* ────────────────────────────────────────────────────────────────
   Mobile landscape — phones in landscape have very short heights
   (~360–500px). Tighten paddings, compact navs, prevent modals
   from getting clipped, allow 2-column grids where it makes sense.
   ──────────────────────────────────────────────────────────────── */
@media (orientation: landscape) and (max-height: 700px) {
  /* Compact top navs */
  .landing-nav { height: 52px; }
  .dash-nav    { height: 52px; }
  .create-header { padding: 0.5rem 1rem; }

  /* Hero — much tighter vertical rhythm */
  .hero { padding: 2.2rem 1.25rem 1.75rem !important; min-height: auto; }
  .hero h1 { font-size: clamp(1.35rem, 3.2vw, 2rem) !important; line-height: 1.2; margin-bottom: 0.6rem; letter-spacing: -0.4px; }
  .hero p  { font-size: 0.88rem; margin-bottom: 1rem; line-height: 1.5; }
  .hero-actions { gap: 0.5rem; }
  .hero-actions .btn-lg { padding: 0.6rem 1.2rem !important; font-size: 0.88rem !important; }
  .hero-inner { gap: 1.5rem !important; }
  .hero-orb { filter: blur(50px); }

  /* Section paddings tightened */
  .features, .how-it-works, .testimonials, .cta-band { padding: 2.75rem 1rem !important; }
  .section-head { margin-bottom: 1.5rem; }
  .section-head h2 { font-size: 1.4rem !important; }
  .section-head p  { font-size: 0.85rem; }

  /* Feature/step/testimonial grids — push to 2 cols */
  .features-grid       { grid-template-columns: 1fr 1fr !important; gap: 0.85rem !important; }
  .steps               { grid-template-columns: 1fr 1fr 1fr !important; gap: 1rem !important; }
  .testimonial-grid    { grid-template-columns: 1fr 1fr !important; gap: 0.85rem !important; }
  .feature-card        { padding: 1.1rem !important; }
  .step                { padding: 1.25rem 1rem !important; }
  .testimonial-card    { padding: 1rem !important; }
  .testimonial-quote   { font-size: 0.85rem !important; }

  /* Dashboard card grid — 2 cols on landscape phones */
  .cards-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 0.85rem !important; }
  .dash-card-header { padding: 1rem 0.85rem 0.85rem !important; }
  .dash-avatar { width: 44px; height: 44px; }
  .dash-card-body { padding: 0.85rem !important; }
  .dash-wrap { padding: 1rem 0.75rem 3rem !important; }

  /* Create form — shrink section paddings */
  .form-section-body { padding: 1rem 1rem 1.25rem !important; }
  .form-section-header { padding: 0.85rem 1rem !important; }
  #create-footer { padding: 0.5rem 1rem !important; }

  /* Modals — never let them clip vertically; let them scroll */
  .modal-overlay { align-items: flex-start !important; padding: 0.5rem !important; }
  .modal {
    max-height: calc(100vh - 1rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .modal-body { padding: 1rem !important; }
  .modal-header { padding: 1rem 1rem 0 !important; }
  .modal-form { gap: 0.6rem !important; }
  .modal-form input { padding: 0.6rem 0.85rem !important; font-size: 0.88rem !important; }

  /* Crop modal */
  .crop-modal { max-height: 95vh; overflow-y: auto; }
  .crop-image-wrap { max-height: 220px !important; }

  /* CTA band */
  .cta-band h2 { font-size: 1.4rem !important; }
  .cta-band p  { margin-bottom: 1.25rem !important; }

  /* Hide tall decorations that take vertical space */
  .grain { opacity: 0.025; }
}
