/* ═══════════════════════════════════════════════════════════════════════════
   ZeroPhantom v3.1 - Main Stylesheet
   Complete CSS for public pages, buttons, forms, and components
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── CSS Variables ────────────────────────────────────────────────────── */
:root {
  /* Colors - Dark + Violet theme */
  --primary:    #818cf8;
  --primary-d:  #6366f1;
  --primary-l:  #a5b4fc;
  --primary-bg: rgba(129,140,248,.08);
  --accent:     #818cf8;
  --accent-bg:  rgba(129,140,248,.08);
  --success:    #818cf8;
  --success-l:  #a5b4fc;
  --success-bg: rgba(129,140,248,.08);
  --success-bd: rgba(129,140,248,.25);
  --warning:    #818cf8;
  --warning-bg: rgba(129,140,248,.08);
  --warning-bd: rgba(129,140,248,.25);
  --danger:     #f87171;
  --danger-bg:  rgba(248,113,113,.08);
  --danger-bd:  rgba(248,113,113,.25);
  --orange:     #818cf8;
  --orange-bg:  rgba(129,140,248,.08);
  --orange-bd:  rgba(129,140,248,.25);
  --info:       #818cf8;
  --info-bg:    rgba(129,140,248,.08);
  --info-bd:    rgba(129,140,248,.25);
  
  /* Background colors */
  --bg:         #050508;
  --bg2:        #0a0b10;
  --surface:    #0f1016;
  --surface2:   #13141b;
  
  /* Borders */
  --border:     rgba(255,255,255,.07);
  --border2:    rgba(255,255,255,.12);
  
  /* Text colors */
  --text1:      #f1f5f9;
  --text2:      #94a3b8;
  --text3:      #475569;
  
  /* Navigation */
  --nav-bg:     rgba(5,5,8,.88);
  
  /* Borders & Radii */
  --radius:     10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  
  /* Shadows */
  --shadow:     0 1px 3px rgba(0,0,0,.08),0 1px 2px rgba(0,0,0,.05);
  --shadow-md:  0 4px 12px rgba(0,0,0,.08);
  --shadow-lg:  0 10px 30px rgba(0,0,0,.1);
  --shadow-xl:  0 20px 50px rgba(0,0,0,.12);
  --glow:       0 0 30px rgba(129,140,248,.15);
  
  /* Typography */
  --font-head:  'Bricolage Grotesque', sans-serif;
  --font-ui:    'Figtree', sans-serif;
  --font-mono:  'JetBrains Mono', 'Fira Code', monospace;
  
  /* Transitions */
  --transition: all 0.2s cubic-bezier(.4,0,.2,1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text1);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  background-size: 200px;
  opacity: .4;
}

main, section, div, nav, footer {
  position: relative;
  z-index: 1;
}

/* Prevent iOS zoom on input tap globally (must be ≥16px) */
input, select, textarea {
  font-size: max(16px, 1em);
}

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

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

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

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--primary-l));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Navbar ───────────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: 64px;
  display: flex;
  align-items: center;
  transition: box-shadow .2s;
}

.navbar.scrolled {
  box-shadow: 0 4px 32px rgba(0,0,0,.6);
  border-bottom-color: var(--border2);
}

.navbar > .container {
  width: 100%;
  display: flex;
  align-items: center;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--text1);
  font-family: var(--font-head);
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-d));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #050508;
  font-size: 17px;
  box-shadow: 0 0 18px rgba(129,140,248,.35), 0 0 0 1px rgba(129,140,248,.12);
  transition: box-shadow .2s, transform .2s;
}

.navbar-brand:hover .brand-icon {
  box-shadow: 0 0 28px rgba(129,140,248,.5), 0 0 0 1px rgba(129,140,248,.2);
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  background: rgba(129,140,248,.08);
  color: var(--primary);
}

/* Navigation Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-btn {
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  font-family: var(--font-ui);
  transition: var(--transition);
}

.nav-dropdown-btn:hover,
.nav-dropdown-btn.open {
  background: var(--primary-bg);
  color: var(--primary);
}

.nav-dropdown-btn i.chevron {
  font-size: 10px;
  transition: transform .2s;
}

.nav-dropdown-btn.open i.chevron {
  transform: rotate(180deg);
}

.nav-drop-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0,0,0,.8);
  padding: 8px;
  min-width: 240px;
  display: none;
  z-index: 901;
}

.nav-drop-menu.open {
  display: block;
  animation: dropIn .15s ease;
}

@keyframes dropIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.drop-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  transition: var(--transition);
  text-decoration: none;
}

.drop-item:hover {
  background: rgba(129,140,248,.08);
  color: var(--primary);
}

.drop-item i {
  width: 16px;
  text-align: center;
  color: var(--primary);
  font-size: 13px;
  opacity: .8;
}

.drop-sep {
  height: 1px;
  background: var(--border);
  margin: 5px 0;
}

.nav-cta {
  padding: 8px 18px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 800;
  background: var(--primary);
  color: #fff;
  transition: var(--transition);
  box-shadow: 0 0 20px rgba(129,140,248,.25);
}

.nav-cta:hover {
  box-shadow: 0 0 36px rgba(129,140,248,.4);
  transform: translateY(-1px);
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text2);
  font-size: 20px;
}

.mobile-only {
  display: none;
}

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn-primary-zp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 800;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: var(--font-ui);
  transition: var(--transition);
  box-shadow: 0 0 24px rgba(129,140,248,.25);
  text-decoration: none;
  min-height: 44px;
}

.btn-primary-zp:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(129,140,248,.4);
  color: #fff;
}

.btn-primary-zp:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
}

.btn-outline-zp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  background: transparent;
  color: var(--primary);
  border: 1.5px solid rgba(129,140,248,.35);
  cursor: pointer;
  font-family: var(--font-ui);
  transition: var(--transition);
  text-decoration: none;
  min-height: 44px;
}

.btn-outline-zp:hover {
  background: rgba(129,140,248,.08);
  color: var(--primary);
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  background: var(--surface2);
  color: var(--text2);
  border: 1px solid var(--border);
  cursor: pointer;
  font-family: var(--font-ui);
  transition: var(--transition);
  min-height: 44px;
}

.btn-ghost:hover {
  color: var(--text1);
  border-color: var(--border2);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
  border: none;
}

.btn-danger:hover {
  background: #dc2626;
  box-shadow: 0 0 24px rgba(248,113,113,.3);
}

.btn-success {
  background: var(--success);
  color: #fff;
  border: none;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
  min-height: 36px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  min-height: 52px;
}

.btn-block {
  width: 100%;
  display: flex;
}

/* ── Cards ────────────────────────────────────────────────────────────── */
.zp-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px rgba(0,0,0,.4);
  padding: 24px;
}

.card-header {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text1);
  margin-bottom: 4px;
}

.card-subtitle {
  font-size: 14px;
  color: var(--text2);
}

.card-body {
  padding: 16px 0;
}

.card-footer {
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid var(--border);
}

/* ── Forms & Inputs ───────────────────────────────────────────────────── */
.zp-input {
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--border2);
  border-radius: var(--radius);
  padding: 11px 14px;
  font-size: 14px;
  color: var(--text1);
  font-family: var(--font-ui);
  outline: none;
  transition: border-color .2s;
}

.zp-input:focus {
  border-color: rgba(129,140,248,.4);
  box-shadow: 0 0 0 3px rgba(129,140,248,.06);
}

.zp-input::placeholder {
  color: var(--text3);
}

.zp-input:disabled {
  opacity: .6;
  cursor: not-allowed;
}

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

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text1);
}

.form-help {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--text3);
}

.form-error {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--danger);
}

select.zp-input {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23818cf8' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  appearance: none;
}

textarea.zp-input {
  min-height: 100px;
  resize: vertical;
}

.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-wrapper input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary);
}

/* ── Flash Messages ───────────────────────────────────────────────────── */
.flash-container {
  position: fixed;
  top: 74px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 400px;
}

.flash {
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
  max-width: 360px;
  animation: slideIn .3s ease;
}

.flash-success {
  background: rgba(129,140,248,.08);
  border: 1px solid rgba(129,140,248,.3);
  color: #818cf8;
}

.flash-error,
.flash-danger {
  background: rgba(248,113,113,.08);
  border: 1px solid rgba(248,113,113,.3);
  color: #f87171;
}

.flash-warning {
  background: rgba(251,191,36,.08);
  border: 1px solid rgba(251,191,36,.3);
  color: #fbbf24;
}

.flash-info {
  background: rgba(129,140,248,.08);
  border: 1px solid rgba(129,140,248,.3);
  color: #818cf8;
}

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

.flash-close {
  margin-left: auto;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  opacity: .6;
  transition: opacity .2s;
  padding: 4px;
}

.flash-close:hover {
  opacity: 1;
}

/* ── Badges ───────────────────────────────────────────────────────────── */
.badge {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-success {
  background: rgba(129,140,248,.08);
  color: #818cf8;
  border: 1px solid rgba(129,140,248,.25);
}

.badge-warning {
  background: rgba(251,191,36,.1);
  color: #fbbf24;
  border: 1px solid rgba(251,191,36,.3);
}

.badge-danger {
  background: rgba(248,113,113,.1);
  color: #f87171;
  border: 1px solid rgba(248,113,113,.3);
}

.badge-info {
  background: rgba(129,140,248,.1);
  color: var(--info);
  border: 1px solid rgba(129,140,248,.3);
}

.badge-primary {
  background: rgba(129,140,248,.08);
  color: var(--primary);
  border: 1px solid rgba(129,140,248,.2);
}

.badge-secondary {
  background: var(--surface);
  color: var(--text2);
  border: 1px solid var(--border);
}

/* ── Tables ───────────────────────────────────────────────────────────── */
.table-container {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

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

thead {
  background: var(--surface);
}

th {
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text2);
  border-bottom: 1px solid var(--border2);
}

td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text1);
  font-size: 14px;
}

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

tbody tr:hover {
  background: rgba(129,140,248,.02);
}

/* ── Sections ─────────────────────────────────────────────────────────── */
.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(129,140,248,.08);
  color: var(--primary);
  border: 1px solid rgba(129,140,248,.2);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.section-title h2 {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -.02em;
}

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

/* ── Footer ───────────────────────────────────────────────────────────── */
.footer {
  background: #050508;
  color: var(--text3);
  padding: 64px 0 32px;
  border-top: 1px solid rgba(255,255,255,.07);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-brand h4 {
  color: #f1f5f9;
  font-size: 18px;
  font-weight: 800;
  font-family: var(--font-head);
}

.footer p {
  font-size: 14px;
  line-height: 1.7;
  max-width: 280px;
}

.footer-links h5 {
  color: #f1f5f9;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text3);
  font-size: 14px;
  transition: color .2s;
}

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

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #0f1016;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text3);
  font-size: 16px;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,.07);
}

.social-links a:hover {
  background: rgba(129,140,248,.1);
  color: #818cf8;
  border-color: rgba(129,140,248,.3);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 24px;
  margin-top: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 13px;
}

.footer-bottom a {
  color: #64748b;
  transition: color .2s;
}

.footer-bottom a:hover {
  color: #f8fafc;
}

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

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

.modal {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: modalSlideIn .3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text1);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text3);
  cursor: pointer;
  font-size: 20px;
  padding: 4px 8px;
  transition: color .2s;
}

.modal-close:hover {
  color: var(--text1);
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* ── Loading Spinner ──────────────────────────────────────────────────── */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(129,140,248,.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.spinner-lg {
  width: 40px;
  height: 40px;
  border-width: 3px;
}

/* ── Utility Classes ──────────────────────────────────────────────────── */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

.d-none {
  display: none !important;
}

.d-block {
  display: block !important;
}

.d-flex {
  display: flex !important;
}

.align-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-1 {
  gap: 8px;
}

.gap-2 {
  gap: 16px;
}

.gap-3 {
  gap: 24px;
}

.mt-1 {
  margin-top: 8px;
}

.mt-2 {
  margin-top: 16px;
}

.mt-3 {
  margin-top: 24px;
}

.mb-1 {
  margin-bottom: 8px;
}

.mb-2 {
  margin-bottom: 16px;
}

.mb-3 {
  margin-bottom: 24px;
}

.p-1 {
  padding: 8px;
}

.p-2 {
  padding: 16px;
}

.p-3 {
  padding: 24px;
}

/* ── Mobile Responsive ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg2);
    border-bottom: 1px solid var(--border2);
    padding: 10px 12px 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,.6);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    z-index: 899;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-link,
  .nav-dropdown-btn {
    width: 100%;
    padding: 11px 14px;
    border-radius: 9px;
    font-size: 15px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2px;
  }

  .mobile-only {
    display: flex;
  }

  .nav-dropdown-btn {
    justify-content: space-between;
  }

  .nav-drop-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 0 0 16px;
    background: transparent;
  }

  .nav-drop-menu.open {
    display: block;
    animation: none;
  }

  .drop-item {
    font-size: 14px;
    border-bottom: 1px solid var(--border);
  }

  .nav-cta {
    width: 100%;
    justify-content: center;
    margin: 8px 0 0 0 !important;
    padding: 12px;
  }

  .section {
    padding: 56px 0;
  }

  .container {
    padding: 0 16px;
  }

  .modal {
    max-width: 100%;
    margin: 0;
    border-radius: var(--radius);
  }

  /* Prevent iOS from zooming on input tap — inputs must be ≥16px */
  input,
  select,
  textarea,
  .zp-input {
    font-size: 16px !important;
  }
}

@media (max-width: 480px) {
  .nav-links {
    padding: 8px;
  }

  .section-title h2 {
    font-size: 26px;
  }

  /* Ensure tap targets are large enough (min 44px) */
  .btn-primary-zp,
  .btn-outline-zp,
  .btn-ghost {
    min-height: 44px;
  }

  .flash {
    min-width: auto;
    max-width: calc(100vw - 40px);
  }
}

/* ── Print Styles ─────────────────────────────────────────────────────── */
@media print {
  .navbar,
  .nav-toggle,
  .footer,
  .flash-container,
  .modal-overlay {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }
}
