/* ============================================================
   REPORTE.PWNAMA.COM — Main Stylesheet
   Font: DM Sans | Palette: Panama Red/Blue + Neutral
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,300;1,9..40,400&family=DM+Mono:wght@400;500&display=swap');

/* ─── Custom Properties ─────────────────────────────────── */
:root {
  --ink:        #0D1117;
  --ink-soft:   #374151;
  --muted:      #6B7280;
  --border:     #E5E7EB;
  --bg:         #F7F8FA;
  --white:      #FFFFFF;
  --navy:       #091230;
  --navy-mid:   #0F1F4D;
  --red:        #C8192B;
  --red-hover:  #A8141F;
  --red-light:  #FEE2E2;
  --blue:       #003587;
  --blue-light: #DBEAFE;
  --green:      #065F46;
  --green-light:#D1FAE5;
  --mono:       'DM Mono', monospace;
  --sans:       'DM Sans', sans-serif;
  --radius:     6px;
  --radius-lg:  12px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:  0 4px 12px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.07);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.12), 0 4px 16px rgba(0,0,0,.08);
  --transition: 180ms cubic-bezier(.4,0,.2,1);
  --max-w:      1120px;
  --nav-h:      64px;
}

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
input, textarea, select, button { font-family: var(--sans); }

/* ─── Layout ─────────────────────────────────────────────── */
.container  { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.container--sm { max-width: 720px; }
.container--md { max-width: 880px; }

/* ─── NAV ─────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(9,18,48,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav__inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav__logo {
  display: flex; align-items: center; gap: 10px;
}
.nav__logo-mark {
  width: 34px; height: 34px;
  background: var(--red);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: #fff;
  letter-spacing: -1px;
}
.nav__wordmark {
  font-size: 15px; font-weight: 600; color: #fff; letter-spacing: -.01em;
}
.nav__wordmark span { color: var(--red); }
.nav__links {
  display: flex; align-items: center; gap: 8px;
}
.nav__link {
  font-size: 14px; font-weight: 500; color: rgba(255,255,255,.65);
  padding: 6px 14px; border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.nav__link:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav__link.active { color: #fff; }
.nav__cta {
  font-size: 13px; font-weight: 600; color: #fff;
  background: var(--red); border: none; cursor: pointer;
  padding: 8px 18px; border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
}
.nav__cta:hover { background: var(--red-hover); transform: translateY(-1px); }

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
  background: var(--navy);
  padding: calc(var(--nav-h) + 72px) 0 80px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 80% 30%, rgba(200,25,43,.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 20% 70%, rgba(0,53,135,.20) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px; background: rgba(255,255,255,.06);
}
.hero__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  position: relative; z-index: 1;
}
.hero__tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: rgba(255,255,255,.5);
  border: 1px solid rgba(255,255,255,.12);
  padding: 5px 12px; border-radius: 100px; margin-bottom: 24px;
}
.hero__tag-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red); flex-shrink: 0;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100%{ opacity:1; transform:scale(1); }
  50%{ opacity:.5; transform:scale(.8); }
}
.hero h1 {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700; color: #fff; line-height: 1.15; letter-spacing: -.025em;
  margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--red); }
.hero__sub {
  font-size: 17px; color: rgba(255,255,255,.55);
  line-height: 1.65; font-weight: 400; margin-bottom: 36px;
  max-width: 480px;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__search-wrap {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius-lg);
  padding: 32px; position: relative; z-index: 1;
}
.hero__search-label {
  font-size: 12px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: rgba(255,255,255,.4);
  margin-bottom: 14px; display: block;
}
.search-row {
  display: flex; gap: 8px;
}
.search-input {
  flex: 1; height: 46px; padding: 0 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); color: #fff;
  font-size: 15px; font-weight: 500; letter-spacing: .01em;
  transition: border-color var(--transition), background var(--transition);
  outline: none;
}
.search-input::placeholder { color: rgba(255,255,255,.25); }
.search-input:focus {
  border-color: rgba(255,255,255,.35);
  background: rgba(255,255,255,.09);
}
.search-btn {
  height: 46px; padding: 0 22px;
  background: var(--red); color: #fff; border: none; cursor: pointer;
  border-radius: var(--radius); font-size: 14px; font-weight: 600;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}
.search-btn:hover { background: var(--red-hover); transform: translateY(-1px); }
.hero__recent {
  margin-top: 24px; border-top: 1px solid rgba(255,255,255,.06); padding-top: 18px;
}
.hero__recent-label {
  font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,.3); margin-bottom: 12px;
}
.hero__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hero__chip {
  font-size: 12px; font-family: var(--mono);
  color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  padding: 4px 12px; border-radius: 100px; cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}
.hero__chip:hover { color: #fff; border-color: rgba(255,255,255,.25); }

/* ─── STATS BAR ───────────────────────────────────────────── */
.stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.stats-bar__inner {
  display: flex; gap: 0;
}
.stat-item {
  flex: 1; padding: 28px 24px;
  border-right: 1px solid var(--border);
  transition: background var(--transition);
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: var(--bg); }
.stat-num {
  font-size: 30px; font-weight: 700; letter-spacing: -.03em;
  color: var(--ink); line-height: 1; margin-bottom: 6px;
}
.stat-num--red { color: var(--red); }
.stat-label {
  font-size: 13px; color: var(--muted); font-weight: 400;
}

/* ─── SECTION ─────────────────────────────────────────────── */
.section { padding: 80px 0; }
.section--alt { background: var(--white); }
.section__eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--red); margin-bottom: 14px;
}
.section__title {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700; letter-spacing: -.025em; line-height: 1.2;
  margin-bottom: 16px;
}
.section__sub {
  font-size: 16px; color: var(--muted); max-width: 580px; line-height: 1.65;
}

/* ─── HOW IT WORKS ────────────────────────────────────────── */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  margin-top: 52px; position: relative;
}
.steps::before {
  content: '';
  position: absolute; top: 28px; left: calc(16.66% + 28px); right: calc(16.66% + 28px);
  height: 1px; background: var(--border);
}
.step {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 28px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.step:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.step__num {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--border); display: flex; align-items: center;
  justify-content: center; font-size: 14px; font-weight: 700;
  color: var(--muted); margin-bottom: 20px; background: var(--bg);
  position: relative; z-index: 1;
}
.step__num--active {
  border-color: var(--red); color: var(--red); background: var(--red-light);
}
.step__title { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.step__desc { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ─── REPORT TYPES ────────────────────────────────────────── */
.report-types {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 52px;
}
.report-type-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px 32px; cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.report-type-card:hover {
  border-color: var(--red); box-shadow: var(--shadow-md); transform: translateY(-2px);
}
.report-type-card.selected {
  border-color: var(--red);
  background: #FFF5F5;
}
.rtc__icon {
  width: 48px; height: 48px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 18px;
}
.rtc__icon--red { background: var(--red-light); }
.rtc__icon--blue { background: var(--blue-light); }
.rtc__title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.rtc__desc { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ─── FORM ────────────────────────────────────────────────── */
.form-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-sm);
}
.progress-bar {
  display: flex; gap: 4px; margin-bottom: 40px;
}
.progress-step {
  flex: 1; height: 3px; background: var(--border); border-radius: 2px;
  transition: background 300ms;
}
.progress-step.done { background: var(--red); }
.progress-step.active { background: rgba(200,25,43,.4); }
.step-header { margin-bottom: 28px; }
.step-header__num {
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.step-header h2 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.step-header p { font-size: 14px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--ink-soft);
}
.form-label .required { color: var(--red); margin-left: 3px; }
.form-input, .form-select, .form-textarea {
  width: 100%; height: 44px; padding: 0 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: 14px; color: var(--ink); background: var(--bg);
  transition: border-color var(--transition), background var(--transition);
  outline: none; appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--red); background: var(--white);
  box-shadow: 0 0 0 3px rgba(200,25,43,.08);
}
.form-textarea { height: 100px; padding: 12px 14px; resize: vertical; }
.form-select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236B7280' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.45; }
.form-hint a { color: var(--blue); text-decoration: underline; }
.privacy-notice {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px;
  font-size: 13px; color: var(--muted); line-height: 1.5; margin-top: 20px;
}
.privacy-notice__icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.form-actions {
  display: flex; gap: 12px; margin-top: 32px; justify-content: flex-end;
}

/* ─── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; border: none; cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-hover); box-shadow: 0 4px 12px rgba(200,25,43,.3); }
.btn--secondary { background: var(--bg); color: var(--ink-soft); border: 1.5px solid var(--border); }
.btn--secondary:hover { background: var(--white); border-color: #d1d5db; }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: #002570; }
.btn--ghost { background: transparent; color: var(--ink-soft); border: 1.5px solid var(--border); }
.btn--ghost:hover { background: var(--bg); }
.btn--lg { padding: 13px 28px; font-size: 15px; }
.btn--sm { padding: 7px 14px; font-size: 13px; }
.btn--full { width: 100%; justify-content: center; }
.btn--icon { width: 36px; height: 36px; padding: 0; justify-content: center; border-radius: var(--radius); }

/* ─── BADGE ───────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; letter-spacing: .03em;
  padding: 3px 9px; border-radius: 100px;
}
.badge--red { background: var(--red-light); color: var(--red); }
.badge--blue { background: var(--blue-light); color: var(--blue); }
.badge--green { background: var(--green-light); color: var(--green); }
.badge--gray { background: var(--bg); color: var(--muted); border: 1px solid var(--border); }

/* ─── TABLE ───────────────────────────────────────────────── */
.table-wrap {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.data-table { width: 100%; border-collapse: collapse; }
.data-table thead tr {
  background: var(--bg); border-bottom: 1px solid var(--border);
}
.data-table th {
  text-align: left; padding: 12px 20px;
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
}
.data-table td { padding: 16px 20px; border-bottom: 1px solid var(--bg); font-size: 14px; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: #FAFAFA; }
.phone-num { font-family: var(--mono); font-size: 13px; }

/* ─── NOTICE ──────────────────────────────────────────────── */
.notice-box {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  font-size: 14px; line-height: 1.8; color: var(--ink);
  white-space: pre-wrap; font-family: var(--sans);
}
.notice-header {
  text-align: center; margin-bottom: 28px; padding-bottom: 20px;
  border-bottom: 2px solid var(--ink);
}
.notice-header__title {
  font-size: 16px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; margin-bottom: 4px;
}
.notice-header__sub { font-size: 13px; color: var(--muted); }

/* ─── REPORT ID ───────────────────────────────────────────── */
.report-id-box {
  background: var(--navy); border-radius: var(--radius-lg);
  padding: 24px 28px; display: flex; gap: 20px; align-items: center;
}
.report-id-box__label {
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 6px;
}
.report-id-box__value {
  font-family: var(--mono); font-size: 18px; font-weight: 500;
  color: #fff; letter-spacing: .05em; word-break: break-all;
}
.report-id-box__copy {
  margin-left: auto; flex-shrink: 0;
}

/* ─── SHARE ───────────────────────────────────────────────── */
.share-section {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
}
.share-section h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.share-section p { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.share-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.share-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius);
  font-size: 13px; font-weight: 600; border: none; cursor: pointer;
  transition: opacity var(--transition), transform var(--transition);
  text-decoration: none;
}
.share-btn:hover { opacity: .88; transform: translateY(-1px); }
.share-btn--facebook  { background: #1877F2; color: #fff; }
.share-btn--linkedin  { background: #0A66C2; color: #fff; }
.share-btn--instagram { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: #fff; }
.share-btn--tiktok    { background: #010101; color: #fff; }
.share-btn--whatsapp  { background: #25D366; color: #fff; }
.share-btn--copy      { background: var(--bg); color: var(--ink); border: 1.5px solid var(--border); }
.share-btn--download  { background: var(--navy); color: #fff; }

/* ─── SEARCH RESULT ──────────────────────────────────────── */
.search-result {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; margin-top: 28px;
}
.search-result__head {
  padding: 24px 28px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.search-result__phone {
  font-family: var(--mono); font-size: 24px; font-weight: 500; letter-spacing: .02em;
}
.search-result__body { padding: 28px; }
.search-result-empty {
  text-align: center; padding: 48px 24px;
  color: var(--muted); font-size: 15px;
}
.search-result-empty h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; color: var(--ink); }

/* ─── LAW SECTION ─────────────────────────────────────────── */
.law-section { background: var(--navy); padding: 80px 0; }
.law-section .section__eyebrow { color: rgba(255,255,255,.4); }
.law-section .section__title { color: #fff; }
.law-section .section__sub { color: rgba(255,255,255,.5); }
.law-articles { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 48px; }
.law-article {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg); padding: 28px;
}
.law-article__num {
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--red); margin-bottom: 10px;
}
.law-article__title { font-size: 16px; font-weight: 600; color: #fff; margin-bottom: 10px; }
.law-article__text { font-size: 13px; color: rgba(255,255,255,.45); line-height: 1.65; }

/* ─── CTA BANNER ─────────────────────────────────────────── */
.cta-banner {
  background: var(--red); padding: 64px 0; text-align: center;
}
.cta-banner h2 {
  font-size: clamp(22px,3vw,34px); font-weight: 700;
  color: #fff; margin-bottom: 14px; letter-spacing: -.025em;
}
.cta-banner p { font-size: 16px; color: rgba(255,255,255,.75); margin-bottom: 32px; }
.cta-banner .btn { background: #fff; color: var(--red); }
.cta-banner .btn:hover { background: rgba(255,255,255,.9); }

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer {
  background: var(--ink); padding: 52px 0 28px;
}
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer__brand-logo {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.footer__mark {
  width: 32px; height: 32px; border-radius: 4px;
  background: var(--red); display: flex; align-items: center;
  justify-content: center; font-size: 14px; font-weight: 700; color: #fff;
}
.footer__name { font-size: 15px; font-weight: 600; color: #fff; }
.footer__name span { color: var(--red); }
.footer__desc { font-size: 13px; color: rgba(255,255,255,.35); line-height: 1.6; }
.footer__col-title { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.3); margin-bottom: 16px; }
.footer__links { list-style: none; }
.footer__links li { margin-bottom: 10px; }
.footer__links a { font-size: 14px; color: rgba(255,255,255,.45); transition: color var(--transition); }
.footer__links a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.06); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer__copy { font-size: 12px; color: rgba(255,255,255,.25); }
.footer__legal { font-size: 12px; color: rgba(255,255,255,.25); max-width: 500px; line-height: 1.5; }

/* ─── ALERT/INFO BOXES ────────────────────────────────────── */
.alert {
  display: flex; gap: 12px; padding: 14px 18px;
  border-radius: var(--radius); font-size: 13px; line-height: 1.55;
}
.alert--warning { background: #FFFBEB; border: 1px solid #FCD34D; color: #92400E; }
.alert--info    { background: var(--blue-light); border: 1px solid #93C5FD; color: var(--blue); }
.alert--success { background: var(--green-light); border: 1px solid #6EE7B7; color: var(--green); }
.alert--error   { background: var(--red-light); border: 1px solid #FCA5A5; color: var(--red); }
.alert__icon { font-size: 16px; flex-shrink: 0; }

/* ─── MODAL ───────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.5); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; pointer-events: none;
  transition: opacity 250ms;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--white); border-radius: var(--radius-lg);
  width: 100%; max-width: 620px; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg); transform: translateY(8px);
  transition: transform 250ms;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal__head {
  padding: 24px 28px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.modal__title { font-size: 18px; font-weight: 700; }
.modal__close {
  width: 32px; height: 32px; border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--border);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--muted); transition: background var(--transition);
}
.modal__close:hover { background: var(--border); }
.modal__body { padding: 28px; }

/* ─── LOADING ─────────────────────────────────────────────── */
.spinner {
  width: 20px; height: 20px; border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff; border-radius: 50%;
  animation: spin .7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(255,255,255,.85); backdrop-filter: blur(4px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; opacity: 0; pointer-events: none; transition: opacity 200ms;
}
.loading-overlay.show { opacity: 1; pointer-events: all; }
.loading-overlay .spinner { border-color: rgba(9,18,48,.2); border-top-color: var(--red); width: 32px; height: 32px; border-width: 3px; }
.loading-overlay p { font-size: 14px; color: var(--muted); }

/* ─── TOAST ───────────────────────────────────────────────── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 400; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--ink); color: #fff; 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;
  transform: translateX(120%); transition: transform 300ms cubic-bezier(.34,1.56,.64,1);
  max-width: 320px;
}
.toast.show { transform: translateX(0); }
.toast--success { background: var(--green); }
.toast--error   { background: var(--red); }

/* ─── CANVAS PREVIEW ──────────────────────────────────────── */
.canvas-preview-wrap {
  background: #000; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 1; width: 100%; max-width: 360px;
  display: flex; align-items: center; justify-content: center;
}
.canvas-preview-wrap canvas { width: 100%; height: 100%; }

/* ─── UTILITIES ───────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted  { color: var(--muted); }
.text-red    { color: var(--red); }
.text-mono   { font-family: var(--mono); }
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mb-6  { margin-bottom: 24px; }
.gap-16{ gap: 16px; }
.hidden { display: none !important; }
.flex   { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .report-types { grid-template-columns: 1fr; }
  .law-articles { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats-bar__inner { flex-wrap: wrap; }
  .stat-item { min-width: 50%; border-right: none; border-bottom: 1px solid var(--border); }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  .form-card { padding: 24px; }
  .nav__links .nav__link { display: none; }
  .footer__grid { grid-template-columns: 1fr; }
  .share-buttons { flex-direction: column; }
  .share-btn { width: 100%; justify-content: center; }
}
