/* ============================================
   URL Shortener — Modern Dark-Sidebar Theme
   Premium design inspired by Bitly
   ============================================ */

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

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

:root {
  /* Sidebar */
  --sidebar-bg: #0f172a;
  --sidebar-text: #94a3b8;
  --sidebar-text-hover: #e2e8f0;
  --sidebar-active-bg: rgba(99, 102, 241, 0.15);
  --sidebar-active-text: #818cf8;
  --sidebar-width: 260px;

  /* Primary */
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-light: rgba(99, 102, 241, 0.1);

  /* Accents */
  --success: #10b981;
  --success-light: rgba(16, 185, 129, 0.1);
  --danger: #ef4444;
  --danger-light: rgba(239, 68, 68, 0.1);
  --warning: #f59e0b;
  --warning-light: rgba(245, 158, 11, 0.1);
  --info: #3b82f6;
  --info-light: rgba(59, 130, 246, 0.1);

  /* Neutrals */
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-hover: #f1f5f9;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.04);

  /* Misc */
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-page);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

/* ============================================
   App Layout (Sidebar + Main)
   ============================================ */

.app-layout {
  display: flex;
  min-height: 100vh;
}

.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left 0.3s ease;
}

.content-area {
  flex: 1;
  padding: 2rem 2.5rem;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

/* ============================================
   Sidebar
   ============================================ */

.sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.sidebar-header {
  padding: 1.5rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.sidebar-close {
  display: none;
  background: none;
  border: none;
  color: var(--sidebar-text);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem;
}

.sidebar-create-btn {
  margin: 0 1rem 1rem;
  padding: 0.75rem 1rem;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  transition: var(--transition);
}

.sidebar-create-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.sidebar-nav {
  flex: 1;
  padding: 0 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--sidebar-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--sidebar-text-hover);
}

.sidebar-link.active {
  background: var(--sidebar-active-bg);
  color: var(--sidebar-active-text);
}

.sidebar-link.active svg { stroke: var(--sidebar-active-text); }

.sidebar-bottom {
  padding: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: auto;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  margin-top: 0.5rem;
}

.sidebar-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #a78bfa);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.sidebar-user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sidebar-user-name {
  font-weight: 600;
  color: #e2e8f0;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-email {
  font-size: 0.75rem;
  color: var(--sidebar-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================
   Top Header
   ============================================ */

.top-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2.5rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.35rem;
  border-radius: 6px;
}

.hamburger:hover { background: var(--bg-hover); }

.header-search {
  flex: 1;
  max-width: 400px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 1rem;
  transition: var(--transition);
}

.header-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.header-search svg { color: var(--text-muted); flex-shrink: 0; }

.header-search input {
  border: none;
  background: none;
  padding: 0.6rem 0;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-primary);
  width: 100%;
  outline: none;
}

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 1rem; }

.header-logout-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: var(--transition);
}

.header-logout-btn:hover { background: var(--danger-light); color: var(--danger); }

/* ============================================
   Page Header
   ============================================ */

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.page-header h1 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.page-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

/* ============================================
   Cards
   ============================================ */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
  overflow: hidden;
  transition: var(--transition);
}

.card:hover { box-shadow: var(--shadow-md); }

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.card-header h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.card-body { padding: 1.5rem; }
.card-body.no-padding { padding: 0; }

/* ============================================
   Stat Cards
   ============================================ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stats-grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  border-radius: 0 4px 4px 0;
}

.stat-card--primary::before { background: var(--primary); }
.stat-card--success::before { background: var(--success); }
.stat-card--info::before { background: var(--info); }
.stat-card--warning::before { background: var(--warning); }

.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.stat-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-card--primary .stat-icon-wrap { background: var(--primary-light); color: var(--primary); }
.stat-card--success .stat-icon-wrap { background: var(--success-light); color: var(--success); }
.stat-card--info .stat-icon-wrap { background: var(--info-light); color: var(--info); }
.stat-card--warning .stat-icon-wrap { background: var(--warning-light); color: var(--warning); }

.stat-info { display: flex; flex-direction: column; }

.stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.btn-xl {
  padding: 1rem 2rem;
  font-size: 1.05rem;
  border-radius: var(--radius);
}

.btn-icon {
  background: none;
  border: none;
  padding: 0.45rem;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:hover { background: var(--bg-hover); color: var(--primary); }
.btn-icon--danger:hover { background: var(--danger-light); color: var(--danger); }

/* ============================================
   Forms
   ============================================ */

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-card);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

.form-group input:disabled {
  background: var(--bg-page);
  cursor: not-allowed;
  opacity: 0.7;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.flex-1 { flex: 1; }
.flex-2 { flex: 2; }

.form-actions { margin-top: 1.5rem; }

.form-message {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  animation: slideUp 0.3s ease;
}

.form-message.success { background: var(--success-light); color: #065f46; border-left: 3px solid var(--success); }
.form-message.error { background: var(--danger-light); color: #991b1b; border-left: 3px solid var(--danger); }

.input-prefix-group {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition);
}

.input-prefix-group:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.input-prefix {
  padding: 0.7rem 0.75rem;
  background: var(--bg-page);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  border-right: 1px solid var(--border);
  white-space: nowrap;
}

.input-prefix-group input {
  border: none !important;
  box-shadow: none !important;
  border-radius: 0;
}

/* Quick Create Form */
.quick-create-form { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; }
.quick-create-form .form-group { margin-bottom: 0; }

/* ============================================
   Link List Items
   ============================================ */

.link-list { display: flex; flex-direction: column; }

.link-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.link-item:last-child { border-bottom: none; }
.link-item:hover { background: var(--bg-hover); }

.link-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}

.link-item-content {
  flex: 1;
  min-width: 0;
}

.link-item-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-item-short {
  margin-top: 0.15rem;
}

.link-item-short a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
}

.link-item-short a:hover { text-decoration: underline; }

.link-item-dest {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-item-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  flex-shrink: 0;
  min-width: 80px;
}

.link-clicks {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.link-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.link-item-actions {
  display: flex;
  gap: 0.25rem;
  flex-shrink: 0;
}

/* ============================================
   Link Analytics Modal
   ============================================ */

.link-analytics-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s;
}

.link-analytics-modal {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  max-width: 420px;
  width: 90%;
  overflow: hidden;
  animation: slideUp 0.25s ease-out;
}

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

.link-analytics-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.link-analytics-header h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

.link-analytics-body {
  padding: 1.25rem;
}

.link-analytics-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.link-analytics-stat {
  background: var(--primary-light);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
}

.link-analytics-stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.link-analytics-stat-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.link-analytics-url {
  background: var(--bg-secondary);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
}

.link-analytics-url span {
  color: var(--text-muted);
  font-weight: 500;
}

.link-analytics-url a {
  color: var(--primary);
  word-break: break-all;
  margin-left: 0.25rem;
}

.link-analytics-actions {
  display: flex;
  gap: 0.5rem;
}

.link-analytics-actions .btn {
  flex: 1;
  justify-content: center;
  text-decoration: none;
}

/* ============================================
   Filters
   ============================================ */

.filters-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-search {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 1rem;
}

.filter-search:focus-within { border-color: var(--primary); }

.filter-search svg { color: var(--text-muted); flex-shrink: 0; }

.filter-search input {
  border: none;
  background: none;
  padding: 0.6rem 0;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-primary);
  width: 100%;
  outline: none;
}

.filter-select {
  padding: 0.6rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-card);
  cursor: pointer;
}

/* ============================================
   Charts
   ============================================ */

.charts-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.chart-square { max-height: 300px; display: flex; justify-content: center; }

/* ============================================
   QR Code Page
   ============================================ */

.qr-generator {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}

.qr-preview-side { text-align: center; }

.qr-preview-box {
  width: 250px;
  height: 250px;
  margin: 0 auto 1rem;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
}

.qr-preview-box canvas { max-width: 100%; max-height: 100%; }

.qr-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.qr-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: var(--transition);
}

.qr-card:hover { box-shadow: var(--shadow-md); }

.qr-card-preview {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
}

.qr-card-preview canvas { max-width: 100%; max-height: 100%; }

.qr-card-info h3 {
  font-size: 0.95rem;
  font-weight: 600;
}

.qr-card-url {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.qr-card-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.qr-card-actions { display: flex; gap: 0.25rem; }

.color-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.color-input-wrap input[type="color"] {
  width: 40px;
  height: 40px;
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  padding: 2px;
}

.color-input-wrap span {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: monospace;
}

/* QR Style Selector */
.qr-style-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.qr-style-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: var(--transition);
  min-width: 60px;
}

.qr-style-option span {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.qr-style-option svg {
  color: var(--text-secondary);
  transition: var(--transition);
}

.qr-style-option:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: scale(1.05);
}

.qr-style-option:hover svg {
  color: var(--primary);
}

.qr-style-option.active {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.qr-style-option.active svg {
  color: var(--primary);
}

.qr-style-option.active span {
  color: var(--primary);
}

/* Logo Selector */
.logo-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.logo-option {
  width: 44px;
  height: 44px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  transition: var(--transition);
}

.logo-option:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: scale(1.08);
}

.logo-option.active {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.logo-option img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.logo-option svg {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
}

.logo-upload-area {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-upload-name {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.btn-sm {
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  gap: 0.35rem;
}

/* Logo Gallery - previously uploaded logos */
.logo-gallery {
  margin-top: 0.5rem;
}
.logo-gallery-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  font-weight: 500;
}
.logo-gallery-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.logo-gallery-thumb {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
  background: #fff;
  padding: 3px;
}
.logo-gallery-thumb:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
  transform: scale(1.1);
}

/* ============================================
   Template Grid (Pages)
   ============================================ */

/* Category Tabs */
.cat-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.cat-tab {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.cat-tab:hover { border-color: var(--primary); color: var(--primary); }
.cat-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 1rem;
}

@keyframes tplFadeUp {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.template-card {
  text-decoration: none;
  color: var(--text-primary);
  text-align: center;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  animation: tplFadeUp 0.5s ease both;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Staggered animation */
.template-card:nth-child(1)  { animation-delay: 0s; }
.template-card:nth-child(2)  { animation-delay: 0.04s; }
.template-card:nth-child(3)  { animation-delay: 0.08s; }
.template-card:nth-child(4)  { animation-delay: 0.12s; }
.template-card:nth-child(5)  { animation-delay: 0.16s; }
.template-card:nth-child(6)  { animation-delay: 0.2s; }
.template-card:nth-child(7)  { animation-delay: 0.24s; }
.template-card:nth-child(8)  { animation-delay: 0.28s; }
.template-card:nth-child(9)  { animation-delay: 0.32s; }
.template-card:nth-child(10) { animation-delay: 0.36s; }
.template-card:nth-child(n+11) { animation-delay: 0.4s; }

/* Shimmer overlay on hover */
.template-card::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transition: left 0.5s ease;
  pointer-events: none;
}

.template-card:hover::after {
  left: 100%;
}

.template-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 25px rgba(99,102,241,0.2);
  transform: translateY(-5px) scale(1.02);
}

.template-card:active {
  transform: translateY(-2px) scale(0.98);
}

.template-card span {
  display: block;
  margin-top: 0.6rem;
  font-weight: 600;
  font-size: 0.82rem;
}

.tp-cat-label {
  display: block;
  font-size: 0.7rem !important;
  font-weight: 500 !important;
  color: var(--text-muted);
  margin-top: 0.15rem !important;
}

.template-preview {
  width: 100%;
  aspect-ratio: 9/16;
  max-height: 180px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 1rem 0.75rem;
  overflow: hidden;
}

/* Template Backgrounds */
.tp-bg-white { background: #f8fafc; }
.tp-bg-indigo { background: #6366f1; }
.tp-bg-dark { background: #0f172a; }
.tp-bg-cream { background: #faf9f6; }
.tp-bg-slate { background: #0f172a; }
.tp-bg-black-neon { background: #000; }
.tp-bg-rose { background: linear-gradient(160deg, #fdf2f8, #fce7f3, #fff1f2); }
.tp-bg-gradient-purple { background: linear-gradient(135deg, #667eea, #764ba2); }
.tp-bg-gradient-blue { background: linear-gradient(135deg, #1e3a5f, #1e40af); }
.tp-bg-gradient-teal { background: linear-gradient(135deg, #065f46, #0d9488, #06b6d4); }
.tp-bg-gradient-sunset { background: linear-gradient(135deg, #f97316, #ef4444, #ec4899); }
.tp-bg-gradient-fire { background: linear-gradient(135deg, #dc2626, #991b1b); }
.tp-bg-gradient-green { background: linear-gradient(135deg, #065f46, #047857); }
.tp-bg-gradient-party { background: linear-gradient(135deg, #fbbf24, #f472b6, #818cf8, #34d399); }
.tp-bg-gradient-baby { background: linear-gradient(135deg, #fdf4ff, #fce7f3, #e0f2fe); }
.tp-bg-gradient-warm { background: linear-gradient(160deg, #fffbeb, #fef3c7, #ffedd5); }
.tp-bg-dark-purple { background: linear-gradient(180deg, #1a1035, #0c0a1a); }
.tp-bg-dark-indigo { background: linear-gradient(135deg, #1e1b4b, #312e81); }
.tp-bg-dark-burgundy { background: linear-gradient(160deg, #1a0a0a, #3b1010); }
.tp-bg-dark-navy { background: linear-gradient(180deg, #0a0a1a, #0c1a3a); }
.tp-bg-gradient-pink { background: linear-gradient(135deg, #ec4899, #8b5cf6, #6366f1); }
.tp-bg-gradient-coral { background: linear-gradient(135deg, #fb923c, #f43f5e, #a855f7); }

/* Template Elements */
.tp-avatar { width: 24px; height: 24px; border-radius: 50%; background: rgba(128,128,128,0.3); }
.tp-line { height: 6px; border-radius: 3px; background: rgba(128,128,128,0.2); }
.tp-w30 { width: 30%; } .tp-w40 { width: 40%; } .tp-w50 { width: 50%; }
.tp-w60 { width: 60%; } .tp-w70 { width: 70%; } .tp-w80 { width: 80%; } .tp-w90 { width: 90%; }
.tp-btn { width: 85%; height: 14px; border-radius: 7px; background: rgba(128,128,128,0.15); }
.tp-thick { height: 8px; }
.tp-muted { opacity: 0.5; }

/* Light elements (for dark/colored backgrounds) */
.tp-light { background: rgba(255,255,255,0.25) !important; }
.tp-avatar.tp-light { background: rgba(255,255,255,0.3) !important; }

/* Glow elements (for dark backgrounds) */
.tp-glow { background: rgba(255,255,255,0.12) !important; }
.tp-avatar.tp-glow { background: rgba(255,255,255,0.15) !important; }

/* Neon elements */
.tp-neon { background: rgba(0,255,136,0.25) !important; }
.tp-neon-border {
  background: transparent !important;
  border: 1px solid rgba(0,255,136,0.5);
  height: 14px; width: 85%; border-radius: 7px;
}

/* Special elements */
.tp-icon { font-size: 20px; margin-bottom: 2px; }

.tp-divider {
  width: 40%;
  height: 1px;
  background: rgba(128,128,128,0.2);
  margin: 2px 0;
}

.tp-contact-row {
  width: 75%;
  height: 5px;
  border-radius: 3px;
  background: rgba(128,128,128,0.15);
}

.tp-social-row {
  width: 50%;
  height: 10px;
  border-radius: 5px;
  background: rgba(128,128,128,0.12);
}

.tp-btn-row {
  display: flex;
  gap: 6px;
  width: 85%;
}

.tp-btn-sm {
  flex: 1;
  height: 12px;
  border-radius: 6px;
  background: rgba(128,128,128,0.15);
}

.tp-cta {
  height: 16px !important;
  border-radius: 8px !important;
}

.tp-input {
  width: 85%;
  height: 12px;
  border-radius: 6px;
  border: 1px dashed rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.08);
}

.tp-grid-preview {
  width: 80%;
  height: 30px;
  background: rgba(128,128,128,0.1);
  border-radius: 4px;
  background-image: repeating-linear-gradient(
    90deg, rgba(128,128,128,0.15) 0px, rgba(128,128,128,0.15) 30%, transparent 30%, transparent 33%
  );
}

.tp-countdown {
  width: 70%;
  height: 14px;
  border-radius: 4px;
  display: flex;
  gap: 3px;
  background: transparent !important;
}
.tp-countdown::before, .tp-countdown::after {
  content: '';
  flex: 1;
  border-radius: 3px;
  background: rgba(255,255,255,0.2);
}

.tp-badge {
  font-size: 7px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

.tp-coupon {
  font-size: 7px;
  font-weight: 800;
  padding: 3px 10px;
  border: 1px dashed rgba(255,255,255,0.5);
  border-radius: 4px;
  letter-spacing: 1px;
}

.tp-row {
  width: 85%;
  height: 20px;
  border-radius: 4px;
  display: flex;
  gap: 4px;
}
.tp-row::before, .tp-row::after {
  content: '';
  flex: 1;
  border-radius: 3px;
  background: rgba(255,255,255,0.15);
}

.tp-vcard {
  gap: 5px;
  padding: 0.75rem;
}

/* ============================================
   Image Upload Areas
   ============================================ */

.img-upload-area {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.img-upload-preview {
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  border: 2px dashed var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  transition: border-color 0.3s ease, background 0.3s ease;
  cursor: pointer;
  flex-shrink: 0;
}

.img-upload-preview:hover {
  border-color: var(--primary);
  background: var(--bg-secondary);
}

.img-upload-preview--wide {
  width: 100%;
  height: 100px;
}

.img-upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  pointer-events: none;
}

.img-upload-placeholder small {
  font-size: 0.68rem;
  font-weight: 500;
}

.img-upload-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Image gallery — previously uploaded images */
.img-gallery {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.img-gallery:empty { display: none; }
.gallery-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}
.gallery-thumb:hover {
  border-color: var(--primary);
  transform: scale(1.1);
}
.gallery-thumb--wide {
  width: 80px;
  height: 48px;
}

/* ============================================
   Page Editor
   ============================================ */

.editor-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 1.5rem;
  align-items: start;
}

/* Category Badge */
.category-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  background: var(--bg-page);
  border: 1px solid var(--border);
  color: var(--text);
}
.cat-invitation { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.cat-landing { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.cat-promotion { background: #fff7ed; border-color: #fed7aa; color: #c2410c; }
.cat-visiting-card { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
.cat-link-in-bio { background: #f5f3ff; border-color: #ddd6fe; color: #6d28d9; }

/* Extra Fields Section */
.extra-fields-section {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.extra-fields-section .section-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

/* Form Row (side-by-side inputs) */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

.theme-selector {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.theme-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
}

.theme-option input { display: none; }

.theme-swatch {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  border: 2px solid var(--border);
  transition: var(--transition);
}

.theme-option input:checked + .theme-swatch {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary);
}

.theme-swatch--minimal { background: #f8fafc; }
.theme-swatch--bold { background: #6366f1; }
.theme-swatch--gradient { background: linear-gradient(135deg, #667eea, #764ba2); }
.theme-swatch--dark { background: #0f172a; }

/* Link Builder */
.link-builder-item {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.link-builder-item input {
  flex: 1;
  padding: 0.6rem 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-family: inherit;
}

.link-builder-item input:focus {
  outline: none;
  border-color: var(--primary);
}

.link-builder-remove {
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  padding: 0.3rem;
  font-size: 1.2rem;
}

/* Phone Frame Preview */
.phone-frame {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  border: 3px solid #1e293b;
  border-radius: 32px;
  overflow: hidden;
  background: #fff;
  aspect-ratio: 9/16;
  position: relative;
}

.phone-notch {
  width: 50%;
  height: 24px;
  background: #1e293b;
  margin: 0 auto;
  border-radius: 0 0 16px 16px;
}

.phone-content {
  padding: 1.5rem 1rem;
  text-align: center;
  height: calc(100% - 24px);
  overflow-y: auto;
}

.preview-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #a78bfa);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0 auto 0.75rem;
}

.preview-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.preview-bio {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.preview-extras {
  width: 100%;
  padding: 0 0.25rem;
  margin-bottom: 0.75rem;
}

.preview-links { display: flex; flex-direction: column; gap: 0.5rem; }

.preview-link-btn {
  padding: 0.7rem;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
}

/* Preview Toggle Buttons */
.preview-toggle {
  display: flex;
  gap: 2px;
  background: var(--bg-page);
  border-radius: 8px;
  padding: 3px;
  border: 1px solid var(--border);
}
.preview-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 30px;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
}
.preview-toggle-btn:hover { color: var(--text); }
.preview-toggle-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 1px 3px rgba(99,102,241,0.3);
}

/* Preview Container */
.preview-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 400px;
}

/* Desktop Frame */
.desktop-frame {
  width: 100%;
  border: 2px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.desktop-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #f1f3f5;
  border-bottom: 1px solid var(--border);
}
.desktop-dots {
  display: flex;
  gap: 5px;
}
.desktop-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}
.desktop-dots span:nth-child(1) { background: #ff5f56; }
.desktop-dots span:nth-child(2) { background: #ffbd2e; }
.desktop-dots span:nth-child(3) { background: #27c93f; }
.desktop-url {
  flex: 1;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: monospace;
}
.desktop-content {
  padding: 2rem;
  text-align: center;
  min-height: 300px;
  max-height: 500px;
  overflow-y: auto;
}
.desktop-content .preview-avatar {
  width: 80px;
  height: 80px;
  font-size: 2rem;
}
.desktop-content .preview-links {
  max-width: 400px;
  margin: 0 auto;
}

/* ============================================
   Table
   ============================================ */

.table-wrapper { overflow-x: auto; }

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table thead { background: var(--bg-page); }

.data-table th {
  padding: 0.85rem 1.25rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 0.85rem 1.25rem;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
}

.data-table tbody tr:hover { background: var(--bg-hover); }

.no-data {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
}

/* ============================================
   Badges
   ============================================ */

.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge--success { background: var(--success-light); color: #065f46; }
.badge--muted { background: var(--bg-hover); color: var(--text-muted); }

/* ============================================
   Empty State
   ============================================ */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 3rem 2rem;
  text-align: center;
  color: var(--text-muted);
}

/* ============================================
   Info Grid (Settings)
   ============================================ */

.info-grid { display: flex; flex-wrap: wrap; gap: 2rem; }

.info-item { display: flex; flex-direction: column; gap: 0.25rem; }

.info-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.info-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ============================================
   Footer
   ============================================ */

.app-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 0;
}

.footer-inner {
  padding: 2rem 0 1.25rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.footer-logo {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-logo strong {
  color: var(--primary);
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-tagline a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.footer-tagline a:hover {
  text-decoration: underline;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.footer-nav a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transition: width 0.25s ease;
}

.footer-nav a:hover {
  color: var(--primary);
}

.footer-nav a:hover::after {
  width: 100%;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-bottom strong {
  color: var(--primary);
}

.app-footer .footer-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.app-footer .footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.78rem;
  transition: var(--transition);
}

.app-footer .footer-links a:hover { color: var(--primary); }
.app-footer .footer-links span { opacity: 0.3; font-size: 0.7rem; }

/* ============================================
   Center Popup Notification
   ============================================ */

.center-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  color: white;
  padding: 1.5rem 2.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  text-align: center;
}

.center-popup.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.popup-icon { font-size: 2.5rem; font-weight: bold; margin-bottom: 0.5rem; }
.popup-message { font-size: 1.05rem; font-weight: 600; }

/* ============================================
   Auth Pages (Login / Register)
   ============================================ */

.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2rem;
  background: var(--bg-page);
}

.auth-form {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 440px;
  animation: slideUp 0.5s ease-out;
}

.auth-form h2 {
  margin-bottom: 0.5rem;
  text-align: center;
  font-size: 1.75rem;
  font-weight: 800;
}

.auth-form > p {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.error-box {
  background: var(--danger-light);
  border-left: 3px solid var(--danger);
  color: #991b1b;
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
}

.success-box {
  background: var(--success-light);
  border-left: 3px solid var(--success);
  color: #065f46;
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
}

.auth-link {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

.auth-link a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.auth-link a:hover { text-decoration: underline; }

/* Google Sign-In Button */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: #3c4043;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.btn-google:hover {
  background: #f8f9fa;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  border-color: #d0d5dd;
}

.btn-google svg {
  flex-shrink: 0;
}

/* Auth Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-divider span {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  font-weight: 500;
}

.full-width { width: 100%; }

button[type="submit"] {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  background: var(--primary);
  color: #fff;
  transition: var(--transition);
}

button[type="submit"]:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

/* ============================================
   Landing / Index Page
   ============================================ */

.landing-body {
  background: #0f172a;
  color: #e2e8f0;
}

.landing-navbar {
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.landing-navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.landing-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
}

.landing-logo svg { color: #818cf8; }

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

.landing-nav .btn-ghost {
  color: #94a3b8;
  border-color: rgba(255,255,255,0.1);
}

.landing-nav .btn-ghost:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}

.hero-section {
  padding: 8rem 0 6rem;
  text-align: center;
}

.hero-section .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2rem;
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.15rem;
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

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

.hero-cta .btn-primary { box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4); }

.hero-cta .btn-ghost {
  color: #94a3b8;
  border-color: rgba(255,255,255,0.15);
}

.hero-cta .btn-ghost:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}

.features-section {
  padding: 4rem 0 6rem;
}

.features-section .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

.feature-card-new {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2rem;
  transition: var(--transition);
}

.feature-card-new:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.12);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-icon--links { background: var(--primary-light); color: #818cf8; }
.feature-icon--qr { background: var(--success-light); color: #34d399; }
.feature-icon--pages { background: rgba(249, 115, 22, 0.15); color: #fb923c; }
.feature-icon--analytics { background: rgba(236, 72, 153, 0.15); color: #f472b6; }

.feature-card-new h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 0.5rem;
}

.feature-card-new p {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.6;
}

.landing-footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #64748b;
  font-size: 0.85rem;
}

.landing-footer strong { color: #818cf8; }

.landing-footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.landing-footer .footer-links a {
  color: #64748b;
  text-decoration: none;
  font-size: 0.8rem;
}

.landing-footer .footer-links a:hover { color: #818cf8; }
.landing-footer .footer-links span { opacity: 0.4; }

/* ============================================
   404 Page
   ============================================ */

/* Keep existing navbar styles for auth pages */
.navbar {
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 1rem;
}

.logo h1 {
  font-size: 1.3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* ============================================
   Animations
   ============================================ */

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

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* ============================================
   Scrollbar
   ============================================ */

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1024px) {
  .editor-layout { grid-template-columns: 1fr; }
  .qr-generator { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open { transform: translateX(0); }

  .sidebar-close { display: block; }

  .main-content { margin-left: 0; }

  .hamburger { display: block; }

  .top-header { padding: 1rem 1.25rem; }

  .content-area { padding: 1.5rem 1.25rem; }

  .page-header { flex-direction: column; }

  .page-header h1 { font-size: 1.4rem; }

  .stats-grid { grid-template-columns: 1fr 1fr; }

  .charts-row { grid-template-columns: 1fr; }

  .link-item { flex-direction: column; align-items: flex-start; gap: 0.75rem; }

  .link-item-stats { flex-direction: row; align-items: center; gap: 1rem; }

  .link-item-actions { align-self: flex-end; }

  .template-grid { grid-template-columns: repeat(2, 1fr); }

  .quick-create-form { flex-direction: column; }
  .quick-create-form .form-group { width: 100%; }

  .features-grid { grid-template-columns: 1fr; }

  .hero-section { padding: 4rem 0 3rem; }

  /* Overlay */
  .sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 199;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .sidebar-overlay.active {
    opacity: 1;
    pointer-events: all;
  }
}

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

  .stat-card { padding: 1rem; }

  .stat-number { font-size: 1.5rem; }

  .content-area { padding: 1rem; }

  .card-body { padding: 1rem; }

  .card-header { padding: 1rem; }

  .template-grid { grid-template-columns: 1fr 1fr; }

  .qr-grid { grid-template-columns: 1fr; }

  .auth-form { padding: 1.5rem; }

  .landing-navbar .container { padding: 0 1rem; }

  .hero-section .container { padding: 0 1rem; }
}

/* ============================================
   Create Popup
   ============================================ */

.create-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
}

.create-popup {
  background: var(--card-bg, #fff);
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.25);
  animation: slideUp 0.3s ease;
  overflow: hidden;
}

.create-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.create-popup-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
}

.create-popup-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1.5rem;
}

.create-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-secondary, #f8fafc);
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.2s ease;
  cursor: pointer;
}

.create-option:hover {
  border-color: var(--primary);
  background: rgba(99,102,241,0.04);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.create-option-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.create-option-title {
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.create-option-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.3;
}

@media (max-width: 480px) {
  .create-popup-options { grid-template-columns: 1fr; }
}

/* ============================================
   Inline Link Creation Form
   ============================================ */

.inline-create-form {
  border-left: 3px solid var(--primary);
  animation: slideUp 0.3s ease;
}

.inline-link-form .form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.inline-link-form .form-group {
  display: flex;
  flex-direction: column;
}

.inline-link-form label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.inline-link-form input {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  background: var(--bg-secondary, #f8fafc);
  color: var(--text-primary);
  transition: border 0.2s;
}

.inline-link-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

.shorten-result {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 10px;
  animation: fadeIn 0.3s ease;
}

.shorten-result-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.shorten-result-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.shorten-result-url {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.shorten-result-url:hover { text-decoration: underline; }

.btn-sm {
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card-bg, #fff);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-sm:hover { background: var(--bg-secondary); }

@media (max-width: 640px) {
  .inline-link-form .form-row { flex-direction: column; }
}

/* ============================================
   Analytics Tabs
   ============================================ */

.analytics-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  background: var(--bg-secondary, #f1f5f9);
  padding: 0.35rem;
  border-radius: 12px;
  width: fit-content;
}

.analytics-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: none;
  padding: 0.6rem 1.25rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.analytics-tab:hover { color: var(--text-primary); }

.analytics-tab.active {
  background: var(--card-bg, #fff);
  color: var(--primary);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.analytics-panel { animation: fadeIn 0.3s ease; }

.stats-grid--3 { grid-template-columns: repeat(3, 1fr); }

.stat-card--info .stat-icon-wrap { background: rgba(59,130,246,0.1); color: #3b82f6; }

.form-select-inline {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-secondary, #f8fafc);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 500;
  min-width: 250px;
  cursor: pointer;
}

.form-select-inline:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

@media (max-width: 768px) {
  .stats-grid--3 { grid-template-columns: 1fr; }
  .form-select-inline { min-width: 100%; }
}

/* ============================================
   Page Analytics — Stat Pills & Modal
   ============================================ */

.page-stats-inline {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.35rem;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
  white-space: nowrap;
}

.stat-pill svg { flex-shrink: 0; }

.stat-pill--today {
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
}

.modal-box {
  background: var(--card-bg, #fff);
  border-radius: 16px;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0,0,0,0.3);
  animation: slideUp 0.3s ease;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--card-bg, #fff);
  z-index: 1;
}

.modal-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
}

.modal-body { padding: 1.5rem; }

.modal-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-box {
  background: var(--bg-secondary, #f8fafc);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
}

.stat-box-value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-box-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-chart-row {
  margin-bottom: 1.25rem;
}

.modal-chart-row--two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.modal-chart-card {
  background: var(--bg-secondary, #f8fafc);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.modal-chart-card h3 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

/* Mini Table */
.mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.mini-table th {
  text-align: left;
  padding: 0.5rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.mini-table td {
  padding: 0.45rem 0.5rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

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

.text-muted { color: var(--text-muted); font-size: 0.85rem; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 640px) {
  .modal-stats-row { grid-template-columns: 1fr; }
  .modal-chart-row--two { grid-template-columns: 1fr; }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
  .sidebar, .top-header, .app-footer { display: none; }
  .main-content { margin-left: 0; }
}

/* ============================================
   SEO: Homepage New Sections
   ============================================ */

/* Section Titles */
.section-title {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

/* Feature card as links */
.feature-card-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.feature-card-link:hover {
  border-color: var(--primary);
}

/* How It Works */
.how-it-works-section {
  padding: 4rem 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.step-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #a78bfa);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.step-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.step-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* FAQ Section */
.faq-section {
  padding: 4rem 0;
  background: var(--bg-page);
}

.faq-list {
  max-width: 720px;
  margin: 2rem auto 0;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item[open] {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.faq-question {
  padding: 1.15rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-question::after {
  content: '−';
  color: var(--primary);
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}

.breadcrumb a:hover { text-decoration: underline; }

.breadcrumb span { color: var(--text-muted); }

/* Landing Footer Grid */
.landing-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  text-align: left;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 1.5rem;
}

.landing-footer-brand .footer-tagline-text {
  color: #64748b;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.landing-footer-brand .footer-tagline-text a {
  color: #818cf8;
  text-decoration: none;
}

.landing-footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.landing-footer-nav h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.landing-footer-nav a {
  color: #64748b;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.landing-footer-nav a:hover { color: #818cf8; }

.landing-footer-bottom {
  text-align: center;
  color: #64748b;
  font-size: 0.8rem;
}

.landing-footer-bottom strong { color: #818cf8; }

/* Nav links in landing navbar */
.nav-link {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: color 0.2s;
}

.nav-link:hover { color: #e2e8f0; }

/* Auth page logo fix (span instead of h1) */
.logo .logo-text {
  font-size: 1.3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Feature hero variant */
.feature-hero { padding-top: 6rem; }

/* ─── Responsive: new sections ─── */

@media (max-width: 768px) {
  .steps-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .landing-footer-grid { grid-template-columns: 1fr 1fr; }
  .section-title { font-size: 1.5rem; }
  .landing-nav .nav-link { display: none; }
}

@media (max-width: 480px) {
  .landing-footer-grid { grid-template-columns: 1fr; }
  .faq-question { font-size: 0.9rem; padding: 1rem 1.25rem; }
}
