/* =====================================================
   DynaPic - Haupt-CSS
   ===================================================== */

:root {
  --primary:    #2563EB;
  --primary-dk: #1E3A5F;
  --primary-lt: #EFF6FF;
  --accent:     #10B981;
  --danger:     #DC2626;
  --warn:       #F59E0B;
  --gray-50:    #F9FAFB;
  --gray-100:   #F3F4F6;
  --gray-200:   #E5E7EB;
  --gray-400:   #9CA3AF;
  --gray-600:   #4B5563;
  --gray-800:   #1F2937;
  --radius:     10px;
  --shadow:     0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg:  0 12px 48px rgba(0,0,0,0.13);
  --font:       -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

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

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

body {
  font-family: var(--font);
  color: var(--gray-800);
  background: #fff;
  line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

/* =====================================================
   LAYOUT
   ===================================================== */

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 680px; margin: 0 auto; padding: 0 24px; }

/* =====================================================
   NAVIGATION
   ===================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-200);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 32px;
}

.nav-logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-dk);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo span { color: var(--primary); }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin-left: auto;
}

.nav-links a {
  color: var(--gray-600);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color .15s;
}

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

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
}

/* =====================================================
   BUTTONS
   ===================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  transition: all .15s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: #1D4ED8; color: #fff; text-decoration: none; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(37,99,235,0.35); }

.btn-dark {
  background: var(--primary-dk);
  color: #fff;
}
.btn-dark:hover { background: #162e45; color: #fff; text-decoration: none; }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary-lt); text-decoration: none; }

.btn-ghost {
  background: transparent;
  color: var(--gray-600);
}
.btn-ghost:hover { background: var(--gray-100); color: var(--gray-800); text-decoration: none; }

.btn-success { background: var(--accent); color: #fff; }
.btn-success:hover { background: #059669; color: #fff; text-decoration: none; }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #B91C1C; color: #fff; text-decoration: none; }

.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 17px; }
.btn-xl { padding: 18px 40px; font-size: 18px; border-radius: 12px; }

.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; }

/* =====================================================
   HERO SECTION
   ===================================================== */

.hero {
  padding: 100px 0 80px;
  background: linear-gradient(135deg, #F0F7FF 0%, #E8F4FF 50%, #F0FFF4 100%);
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-lt);
  color: var(--primary);
  border: 1px solid rgba(37,99,235,0.2);
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--primary-dk);
  margin-bottom: 20px;
}

.hero h1 span { color: var(--primary); }

.hero p {
  font-size: 18px;
  color: var(--gray-600);
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

.hero-img {
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero-email-mock {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.email-mock-header {
  background: var(--gray-100);
  padding: 12px 16px;
  display: flex;
  gap: 6px;
}

.email-mock-header span {
  width: 12px; height: 12px;
  border-radius: 50%;
  display: block;
}

.email-mock-body { padding: 24px; }

.email-mock-line {
  height: 10px;
  background: var(--gray-200);
  border-radius: 4px;
  margin-bottom: 10px;
}

.email-mock-line.short { width: 60%; }
.email-mock-line.medium { width: 80%; }

.email-mock-img {
  border-radius: 10px;
  overflow: hidden;
  margin: 16px 0;
  background: linear-gradient(135deg, #2563EB, #10B981);
  padding: 24px;
  text-align: center;
  color: white;
}

.email-mock-img .greeting {
  font-size: 22px;
  font-weight: 700;
}

.email-mock-img .name {
  font-size: 28px;
  font-weight: 800;
  background: rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 4px 16px;
  display: inline-block;
  margin-top: 8px;
}

/* =====================================================
   FEATURES
   ===================================================== */

.section { padding: 80px 0; }
.section-alt { background: var(--gray-50); }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary-dk);
  margin-bottom: 14px;
}

.section-header p {
  font-size: 17px;
  color: var(--gray-600);
  max-width: 560px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 28px;
  transition: all .2s;
}

.feature-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 32px rgba(37,99,235,0.1);
  transform: translateY(-3px);
}

.feature-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--primary-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 24px;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary-dk);
  margin-bottom: 8px;
}

.feature-card p { font-size: 14px; color: var(--gray-600); line-height: 1.6; }

/* =====================================================
   PRICING
   ===================================================== */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: #fff;
  border: 2px solid var(--gray-200);
  border-radius: 20px;
  padding: 32px 28px;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.08);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 999px;
  white-space: nowrap;
}

.pricing-name { font-size: 15px; font-weight: 700; color: var(--gray-600); margin-bottom: 8px; }
.pricing-price { font-size: 40px; font-weight: 800; color: var(--primary-dk); line-height: 1; }
.pricing-price sup { font-size: 20px; vertical-align: top; margin-top: 8px; }
.pricing-period { font-size: 13px; color: var(--gray-400); margin-bottom: 24px; }

.pricing-features { list-style: none; margin-bottom: 28px; }
.pricing-features li {
  padding: 7px 0;
  font-size: 14px;
  color: var(--gray-600);
  display: flex;
  gap: 8px;
  align-items: flex-start;
  border-bottom: 1px solid var(--gray-100);
}
.pricing-features li:last-child { border: none; }
.pricing-features li::before { content: '✓'; color: var(--accent); font-weight: 700; flex-shrink: 0; }

/* =====================================================
   FORMS
   ===================================================== */

.form-group { margin-bottom: 18px; }

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

input[type=text], input[type=email], input[type=password],
input[type=number], select, textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: var(--font);
  color: var(--gray-800);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

input::placeholder { color: var(--gray-400); }

.input-hint { font-size: 12px; color: var(--gray-400); margin-top: 4px; }

/* =====================================================
   CARDS & ALERTS
   ===================================================== */

.card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 24px;
}

.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 16px;
}

.alert-success { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.alert-error   { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.alert-info    { background: var(--primary-lt); color: #1E3A5F; border: 1px solid rgba(37,99,235,0.2); }
.alert-warn    { background: #FFFBEB; color: #92400E; border: 1px solid #FDE68A; }

/* =====================================================
   AUTH PAGES
   ===================================================== */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #EFF6FF 0%, #F0FFF4 100%);
  padding: 40px 20px;
}

.auth-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 48px 40px;
  width: 100%;
  max-width: 440px;
}

.auth-logo {
  text-align: center;
  margin-bottom: 32px;
  font-size: 26px;
  font-weight: 800;
  color: var(--primary-dk);
}

.auth-logo span { color: var(--primary); }
.auth-card h2 { font-size: 24px; font-weight: 700; margin-bottom: 6px; color: var(--primary-dk); }
.auth-card .subtitle { color: var(--gray-400); font-size: 14px; margin-bottom: 28px; }
.auth-footer { text-align: center; margin-top: 24px; font-size: 14px; color: var(--gray-400); }

/* =====================================================
   APP LAYOUT (Dashboard, Editor etc.)
   ===================================================== */

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

/* Sidebar */
.app-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--primary-dk);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 50;
}

.sidebar-logo {
  padding: 20px 20px 16px;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-logo span { color: #60A5FA; }

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius);
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all .15s;
  margin-bottom: 4px;
}

.sidebar-nav a:hover { background: rgba(255,255,255,0.1); color: #fff; }
.sidebar-nav a.active { background: var(--primary); color: #fff; }
.sidebar-nav .nav-icon { font-size: 18px; width: 24px; text-align: center; }

.sidebar-section {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.35);
  padding: 16px 14px 6px;
}

.sidebar-bottom {
  padding: 16px 12px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: var(--radius);
  color: rgba(255,255,255,0.8);
  font-size: 13px;
}

.sidebar-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

/* App Main */
.app-main {
  flex: 1;
  margin-left: 220px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--gray-50);
}

.app-topbar {
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  padding: 0 28px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
}

.app-topbar h1 { font-size: 18px; font-weight: 700; color: var(--primary-dk); }

.app-content { padding: 28px; flex: 1; }

/* =====================================================
   DASHBOARD SNIPPET CARDS
   ===================================================== */

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

.snippet-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  overflow: hidden;
  transition: all .2s;
  cursor: pointer;
}

.snippet-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 28px rgba(37,99,235,0.1);
  transform: translateY(-2px);
}

.snippet-thumb {
  width: 100%;
  aspect-ratio: 3/2;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
  position: relative;
  overflow: hidden;
}

.snippet-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.snippet-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 40px;
  color: var(--gray-400);
}

.snippet-type-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}

.snippet-info {
  padding: 16px;
}

.snippet-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-dk);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.snippet-meta {
  font-size: 12px;
  color: var(--gray-400);
  margin-bottom: 12px;
}

.snippet-actions {
  display: flex;
  gap: 8px;
}

/* =====================================================
   EDITOR
   ===================================================== */

.editor-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.editor-sidebar {
  width: 72px;
  background: var(--primary-dk);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  gap: 4px;
  flex-shrink: 0;
}

.editor-tool-btn {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  color: rgba(255,255,255,0.6);
  font-size: 10px;
  transition: all .15s;
  border: none;
  background: transparent;
}

.editor-tool-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }
.editor-tool-btn.active { background: var(--primary); color: #fff; }
.editor-tool-btn .icon { font-size: 22px; }

.editor-panel {
  width: 280px;
  background: #fff;
  border-right: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-shrink: 0;
}

.editor-panel-header {
  padding: 16px 18px;
  border-bottom: 1px solid var(--gray-200);
  font-weight: 700;
  font-size: 15px;
  color: var(--primary-dk);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.editor-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.editor-canvas-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #E8EAED;
}

.editor-topbar {
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  padding: 0 16px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.editor-topbar select,
.editor-topbar input[type=number] {
  width: auto;
  padding: 6px 10px;
  font-size: 13px;
}

.editor-canvas-area {
  flex: 1;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.editor-canvas-container {
  position: relative;
  box-shadow: 0 8px 40px rgba(0,0,0,0.2);
}

#editorCanvas {
  display: block;
  cursor: crosshair;
}

/* =====================================================
   SNIPPET LAYER ITEMS
   ===================================================== */

.layer-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 8px;
  cursor: pointer;
  transition: all .15s;
  background: #fff;
}

.layer-item:hover { border-color: var(--primary); }
.layer-item.active { border-color: var(--primary); background: var(--primary-lt); }

.layer-item-icon { font-size: 18px; color: var(--primary); }
.layer-item-info { flex: 1; min-width: 0; }
.layer-item-name { font-size: 13px; font-weight: 600; color: var(--primary-dk); truncate: true; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.layer-item-sub { font-size: 11px; color: var(--gray-400); }
.layer-item-del { color: var(--gray-400); cursor: pointer; font-size: 18px; padding: 4px; }
.layer-item-del:hover { color: var(--danger); }

/* =====================================================
   COLOR PICKER
   ===================================================== */

.color-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.color-swatch {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 2px solid var(--gray-200);
  cursor: pointer;
  flex-shrink: 0;
}

/* =====================================================
   MODAL
   ===================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}

.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform .2s;
}

.modal-overlay.open .modal { transform: translateY(0); }

.modal-header {
  padding: 24px 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 { font-size: 18px; font-weight: 700; color: var(--primary-dk); }
.modal-close { font-size: 24px; cursor: pointer; color: var(--gray-400); line-height: 1; }
.modal-close:hover { color: var(--gray-800); }
.modal-body { padding: 20px 28px 28px; }

/* =====================================================
   EXPORT CODE BOX
   ===================================================== */

.code-box {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 14px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: var(--gray-600);
  word-break: break-all;
  line-height: 1.6;
  position: relative;
  margin-bottom: 8px;
}

.copy-btn {
  position: absolute;
  top: 8px; right: 8px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
}

.copy-btn:hover { background: #1D4ED8; }

/* =====================================================
   PLATFORM TABS
   ===================================================== */

.platform-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.platform-tab {
  padding: 5px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  transition: all .15s;
  background: #fff;
  color: var(--gray-600);
}

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

/* =====================================================
   STATS
   ===================================================== */

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 22px 20px;
}

.stat-label { font-size: 13px; color: var(--gray-400); margin-bottom: 6px; }
.stat-value { font-size: 32px; font-weight: 800; color: var(--primary-dk); line-height: 1; }
.stat-sub   { font-size: 12px; color: var(--gray-400); margin-top: 4px; }

/* =====================================================
   FOOTER
   ===================================================== */

.footer {
  border-top: 1px solid var(--gray-200);
  padding: 48px 0 32px;
  background: var(--gray-50);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p { font-size: 14px; color: var(--gray-400); margin-top: 10px; max-width: 280px; }

.footer-col h4 { font-size: 13px; font-weight: 700; color: var(--primary-dk); margin-bottom: 14px; }

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--gray-400);
  margin-bottom: 8px;
  text-decoration: none;
}

.footer-col a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--gray-200); padding-top: 20px; font-size: 13px; color: var(--gray-400); text-align: center; }

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-img { display: none; }
  .hero h1 { font-size: 36px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .features-grid, .pricing-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .app-sidebar { width: 60px; }
  .app-main { margin-left: 60px; }
  .sidebar-logo, .sidebar-nav a span, .sidebar-section { display: none; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .auth-card { padding: 32px 24px; }
}

/* =====================================================
   UTILITIES
   ===================================================== */

.text-center { text-align: center; }
.text-right  { text-align: right; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-2 { gap: 16px; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.spinner-sm { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
