/* Infog.in - Static UI design system (HTML5 + CSS3 only) */

:root {
  --primary: #2E7BEF;
  --primary-dark: #2568CC;
  --secondary: #0F3F8C;
  --secondary-deep: #0A2D66;
  --background: #EEF5FF;
  --white: #FFFFFF;
  --text: #142744;
  --muted: #607699;
  --line: #D9E7FB;
  --line-soft: #E8F1FD;
  --success: #159957;
  --success-bg: #E7F8EF;
  --warning: #B45309;
  --warning-bg: #FFF4DF;
  --danger: #C62828;
  --danger-bg: #FDECEC;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(15, 63, 140, 0.06);
  --shadow: 0 12px 34px rgba(15, 63, 140, 0.10);
  --shadow-lg: 0 24px 60px rgba(15, 63, 140, 0.16);
  --transition: 180ms ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 12px;
  line-height: 1.25;
  color: var(--secondary);
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); letter-spacing: -0.02em; }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }

p { margin: 0 0 16px; }

ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 8px; }

:focus-visible {
  outline: 3px solid rgba(46, 123, 239, 0.35);
  outline-offset: 3px;
}

.container {
  width: min(1200px, calc(100% - 40px));
  margin-inline: auto;
}

.narrow { max-width: 820px; margin-inline: auto; }

.section { padding: 82px 0; }
.section-sm { padding: 52px 0; }
.section-alt { background: var(--white); }

.section-head {
  max-width: 720px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-head p { color: var(--muted); margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  background: #DEEBFF;
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 14px;
}

.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.muted { color: var(--muted); }
.center { text-align: center; }
.small { font-size: 0.85rem; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 11px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.94rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn img { width: 17px; height: 17px; }

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(46, 123, 239, 0.24);
}

.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }

.btn-secondary {
  background: var(--secondary);
  color: var(--white);
}

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

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover { background: #E4EFFF; }

.btn-ghost { background: transparent; color: var(--secondary); }
.btn-ghost:hover { background: #E4EFFF; }

.btn-light {
  background: var(--white);
  color: var(--secondary);
  box-shadow: var(--shadow-sm);
}

.btn-light:hover { background: #F4F9FF; }

.btn-sm { min-height: 36px; padding: 7px 14px; font-size: 0.83rem; border-radius: 8px; }
.btn-block { width: 100%; }

/* Demo strip + header */
.demo-strip {
  background: var(--secondary-deep);
  color: #DCE9FF;
  text-align: center;
  font-size: 0.78rem;
  padding: 7px 16px;
  letter-spacing: 0.01em;
  overflow: hidden;
  white-space: nowrap;
}

.demo-strip strong { color: var(--white); }

.demo-strip-track {
  display: inline-block;
  white-space: nowrap;
  animation: maintenance-ticker 18s linear infinite;
  will-change: transform;
}

.demo-strip-item { padding-right: 5rem; }

@keyframes maintenance-ticker {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 74px;
}

.brand { flex-shrink: 0; }
.brand img { width: 138px; height: auto; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.primary-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #3D5476;
  padding: 8px 2px;
  transition: color var(--transition);
}

.primary-nav a:hover,
.primary-nav a.is-active { color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 8px; }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
}

.menu-toggle img { width: 22px; height: 22px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 92px;
  background:
    radial-gradient(circle at 86% 12%, rgba(46, 123, 239, 0.18), transparent 34%),
    radial-gradient(circle at 6% 90%, rgba(15, 63, 140, 0.10), transparent 30%),
    var(--background);
}

.hero::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  border: 1px solid rgba(46, 123, 239, 0.16);
  right: -180px;
  top: -180px;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero h1 { margin-bottom: 20px; }
.hero-lead { font-size: 1.08rem; color: var(--muted); max-width: 540px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 26px;
  margin-top: 30px;
  padding: 0;
  list-style: none;
}

.hero-points li { display: flex; align-items: center; gap: 8px; font-size: 0.86rem; color: #3D5476; margin: 0; }
.hero-points img { width: 18px; height: 18px; }

.hero-visual { position: relative; }
.hero-visual > img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

.float-card {
  position: absolute;
  right: -18px;
  bottom: -22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 12px;
}

.float-card img { width: 38px; height: 38px; }
.float-card strong { display: block; font-size: 0.9rem; color: var(--secondary); }
.float-card span { font-size: 0.76rem; color: var(--muted); }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px 38px;
  padding: 28px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Cards and grids */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.feature-card { transition: var(--transition); }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #BFD6F8; }

.icon-box {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  background: #E7F1FF;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.icon-box img { width: 26px; height: 26px; }
.feature-card p:last-child { margin-bottom: 0; color: var(--muted); }

/* Services */
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: var(--transition);
}

.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #BFD6F8; }

.service-card-top { display: flex; align-items: center; gap: 14px; }
.service-card-top img { width: 42px; height: 42px; }
.service-card h3 { margin: 0; }
.service-card p { color: var(--muted); font-size: 0.9rem; margin: 0; }

.service-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #EEF5FF;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #3D5476;
}

.price { font-weight: 700; color: var(--secondary); font-size: 1.05rem; }
.price span { font-size: 0.76rem; font-weight: 500; color: var(--muted); }

/* Steps */
.steps { counter-reset: step; }

.step {
  position: relative;
  padding: 30px 26px 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: -18px;
  left: 26px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 8px 16px rgba(46, 123, 239, 0.25);
}

.step p { color: var(--muted); margin-bottom: 0; }

/* Stats band */
.stats-band {
  background: linear-gradient(120deg, var(--secondary), #1A5CB8);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  box-shadow: var(--shadow);
}

.stats-band h2 { color: var(--white); margin-bottom: 28px; text-align: center; }

.stat { text-align: center; }
.stat strong { display: block; font-size: 2rem; line-height: 1.2; color: var(--white); }
.stat span { font-size: 0.82rem; color: #CBDDFF; }

/* Testimonials */
.testimonial { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.testimonial p { color: #3D5476; font-size: 0.92rem; }
.testimonial-author { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #E7F1FF;
  display: grid;
  place-items: center;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
}
.testimonial-author strong { display: block; font-size: 0.86rem; color: var(--secondary); }
.testimonial-author span { font-size: 0.75rem; color: var(--muted); }

/* CTA */
.cta-band {
  background: linear-gradient(120deg, #E7F1FF, #F7FBFF);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cta-band h2 { margin-bottom: 8px; }
.cta-band p { color: var(--muted); margin-bottom: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Page hero */
.page-hero {
  background: linear-gradient(120deg, #E7F1FF, var(--background) 60%, #F9FCFF);
  border-bottom: 1px solid var(--line);
  padding: 54px 0 58px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--primary); font-weight: 600; }
.page-hero h1 { margin-bottom: 10px; font-size: clamp(2rem, 3.6vw, 2.8rem); }
.page-hero p { max-width: 680px; color: var(--muted); margin-bottom: 0; font-size: 1rem; }

/* Prose content */
.prose h2 { font-size: 1.5rem; margin-top: 34px; }
.prose h3 { font-size: 1.1rem; margin-top: 26px; }
.prose p, .prose li { color: #3D5476; }
.prose a { color: var(--primary); text-decoration: underline; }
.prose ul { padding-left: 20px; }

.content-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-sm); }

/* Alerts and notices */
.alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.86rem;
  margin-bottom: 20px;
  border: 1px solid transparent;
}

.alert img { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; }
.alert strong { display: block; color: inherit; margin-bottom: 2px; }
.alert-info { background: #E9F3FF; border-color: #C9E0FF; color: #1D4E92; }
.alert-warning { background: var(--warning-bg); border-color: #F6DDAE; color: var(--warning); }
.alert-success { background: var(--success-bg); border-color: #C5EBD7; color: #0E7441; }

.demo-note {
  border-left: 4px solid var(--primary);
  background: #EFF6FF;
  border-radius: 0 10px 10px 0;
  padding: 12px 16px;
  color: #33557F;
  font-size: 0.84rem;
  margin-bottom: 22px;
}

/* Tables */
.table-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.table-toolbar .search-box { max-width: 340px; flex: 1 1 240px; }

.table-spaced { margin-top: 28px; }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

table { width: 100%; border-collapse: collapse; min-width: 620px; }
th, td { padding: 14px 16px; text-align: left; font-size: 0.85rem; border-bottom: 1px solid var(--line-soft); }
th { background: #F5F9FF; color: #47638A; font-weight: 600; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #F8FBFF; }
td strong { color: var(--secondary); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.74rem;
  font-weight: 600;
}

.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-complete { background: var(--success-bg); color: var(--success); }
.status-pending { background: var(--warning-bg); color: var(--warning); }
.status-processing { background: #E7F1FF; color: var(--primary); }
.status-cancelled { background: var(--danger-bg); color: var(--danger); }

/* Forms */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }

.form-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.form-grid .form-group { margin-bottom: 0; }

label { font-size: 0.84rem; font-weight: 600; color: #385275; }

input, select, textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(46, 123, 239, 0.12); }
input::placeholder, textarea::placeholder { color: #9AAEC9; }

.search-box { position: relative; }
.search-box input { padding-left: 42px; }
.search-box img { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; }

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.84rem;
  color: #3D5476;
}

.check input { width: 17px; height: 17px; min-height: auto; margin-top: 3px; accent-color: var(--primary); }
.check a { color: var(--primary); text-decoration: underline; }
.form-note { font-size: 0.78rem; color: var(--muted); margin-top: 6px; }
.form-actions { margin-top: 22px; }

/* FAQ */
.faq-list { display: grid; gap: 12px; }

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 600;
  color: var(--secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--primary); line-height: 1; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item[open] summary { border-bottom: 1px solid var(--line-soft); }
.faq-answer { padding: 18px 20px; color: #3D5476; font-size: 0.9rem; }
.faq-answer p:last-child { margin-bottom: 0; }

/* Auth */
.auth-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 0;
  max-width: 980px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.auth-visual {
  background: linear-gradient(150deg, var(--secondary), #1D63C4);
  color: var(--white);
  padding: 46px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-visual h2 { color: var(--white); font-size: 1.7rem; }
.auth-visual p { color: #D5E6FF; font-size: 0.9rem; }
.auth-visual ul { list-style: none; padding: 0; margin: 22px 0 0; }
.auth-visual li { display: flex; gap: 10px; align-items: center; font-size: 0.86rem; color: #E8F2FF; }
.auth-visual li img { width: 18px; height: 18px; flex-shrink: 0; }

.auth-form { padding: 46px 42px; }
.auth-form h1 { font-size: 1.8rem; margin-bottom: 8px; }
.auth-form > p { color: var(--muted); font-size: 0.9rem; }
.auth-alt { text-align: center; font-size: 0.86rem; color: var(--muted); margin: 22px 0 0; }
.auth-alt a { color: var(--primary); font-weight: 600; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 28px; align-items: start; }
.info-card { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.info-card img { width: 24px; height: 24px; flex-shrink: 0; }
.info-card h3 { font-size: 0.95rem; margin-bottom: 4px; }
.info-card p { font-size: 0.86rem; color: var(--muted); margin: 0; }

/* Legal list */
.legal-list { counter-reset: legal; list-style: none; padding: 0; }
.legal-list li { position: relative; padding-left: 40px; color: #3D5476; }
.legal-list li::before {
  counter-increment: legal;
  content: counter(legal) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--primary);
}

/* Pagination + empty state */
.pagination { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 36px; height: 36px; padding: 0 10px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--white); font-size: 0.82rem; color: #3D5476; }
.pagination .is-current { background: var(--primary); color: var(--white); border-color: var(--primary); }

.empty-state { text-align: center; padding: 44px 20px; color: var(--muted); }
.empty-state img { width: 46px; height: 46px; margin: 0 auto 14px; opacity: 0.7; }

/* Toast */
.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  max-width: min(380px, calc(100% - 44px));
  background: var(--secondary-deep);
  color: var(--white);
  border-radius: 12px;
  padding: 15px 18px;
  box-shadow: var(--shadow-lg);
  font-size: 0.86rem;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: var(--transition);
}

.toast.is-visible { opacity: 1; transform: translateY(0); }

.clipboard-helper {
  position: fixed;
  opacity: 0;
  pointer-events: none;
}

/* Footer */
.site-footer {
  background: var(--secondary-deep);
  color: #C8D9F5;
  padding: 62px 0 22px;
  margin-top: 20px;
}

.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 42px; }
.site-footer .brand img { width: 150px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 0.86rem; max-width: 300px; margin-top: 18px; color: #B8CDF0; }
.footer-grid h3 { color: var(--white); font-size: 0.92rem; margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { font-size: 0.85rem; color: #B8CDF0; }
.footer-links a:hover { color: var(--white); }
.social-row { display: flex; gap: 10px; margin-top: 20px; }
.social-row a { width: 36px; height: 36px; border-radius: 9px; background: rgba(255, 255, 255, 0.10); display: grid; place-items: center; }
.social-row a:hover { background: rgba(255, 255, 255, 0.2); }
.social-row img { width: 18px; height: 18px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 44px;
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.78rem;
  color: #9DB7E4;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid { gap: 36px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 34px; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-visual { padding: 34px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .header-actions { margin-left: 0; }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    background: var(--white);
    border-bottom: 1px solid transparent;
    transition: max-height var(--transition), border-color var(--transition), padding var(--transition);
  }

  .primary-nav.is-open { max-height: 360px; padding: 10px 20px 18px; border-color: var(--line); }
  .primary-nav a { padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
  .primary-nav a:last-child { border-bottom: 0; }

  .hero { padding: 58px 0 66px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 620px; margin-inline: auto; }
  .float-card { right: 6px; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .section { padding: 62px 0; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 30px, 1200px); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .header-actions .btn-ghost { display: none; }
  .hero h1 { font-size: 2.25rem; }
  .stats-band { padding: 34px 22px; }
  .stat { margin-bottom: 22px; }
  .stat:last-child { margin-bottom: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .auth-form { padding: 32px 24px; }
  .content-card { padding: 24px 20px; }
  .table-toolbar { align-items: stretch; }
  .table-toolbar .search-box { max-width: none; }
}

@media (max-width: 480px) {
  .header-inner { min-height: 66px; gap: 12px; }
  .brand img { width: 118px; }
  .header-actions .btn-primary { padding: 9px 14px; min-height: 40px; font-size: 0.82rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .cta-actions .btn { width: 100%; }
  .pagination { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Maintenance popup */
.maintenance-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(7, 28, 63, 0.62);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 180ms ease;
}

.maintenance-overlay.is-visible { opacity: 1; }

.maintenance-card {
  width: min(100%, 440px);
  padding: 34px 32px 30px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(7, 28, 63, 0.28);
  text-align: center;
  transform: translateY(12px) scale(0.98);
  transition: transform 180ms ease;
}

.maintenance-overlay.is-visible .maintenance-card { transform: translateY(0) scale(1); }

.maintenance-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #EEF5FF;
  color: var(--primary);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}

.maintenance-card h2 { margin-bottom: 10px; font-size: 1.45rem; }
.maintenance-card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 24px; }
.maintenance-card .btn { min-width: 150px; }

.maintenance-overlay .btn:focus-visible {
  outline: 3px solid rgba(46, 123, 239, 0.35);
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .maintenance-card { padding: 28px 22px 24px; }
  .maintenance-card h2 { font-size: 1.25rem; }
}
