:root {
  --navy: #12263f;
  --navy-soft: #1a3555;
  --panel: #ffffff;
  --page: #e9f1f7;
  --line: #d3e0ec;
  --text: #102030;
  --muted: #617489;
  --blue: #1590df;
  --blue-dark: #0d69b2;
  --blue-soft: #edf7ff;
  --gold: #f6b840;
  --shadow: 0 18px 48px rgba(17, 33, 57, 0.1);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(21, 144, 223, 0.12), transparent 24%),
    linear-gradient(180deg, #f9fbfd 0%, var(--page) 100%);
  color: var(--text);
}

body {
  padding: 18px;
}

body.checkout-popup-open {
  overflow: hidden;
}

body.intro-active {
  overflow: hidden;
}

.hidden {
  display: none !important;
}

.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 28px;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.intro-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-overlay-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(21, 144, 223, 0.3), transparent 26%),
    radial-gradient(circle at top right, rgba(116, 109, 255, 0.22), transparent 24%),
    rgba(10, 20, 34, 0.78);
  backdrop-filter: blur(16px);
}

.intro-video-shell {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100vw - 56px));
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(210, 228, 244, 0.24);
  box-shadow: 0 28px 70px rgba(4, 13, 23, 0.35);
}

.intro-video {
  width: 100%;
  display: block;
  border-radius: 24px;
  background: #0f1c2e;
  border: 1px solid rgba(223, 235, 246, 0.24);
  box-shadow: 0 18px 44px rgba(8, 18, 32, 0.28);
}

.intro-video-copy {
  display: grid;
  gap: 10px;
  padding: 0 6px 6px;
  color: white;
}

.intro-video-copy h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.05;
}

.intro-video-copy p:last-child {
  margin: 0;
  color: #d6e4f4;
  line-height: 1.6;
}

.intro-skip {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 700;
  color: white;
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06)),
    linear-gradient(90deg, #39b6ff, #2e90ff 52%, #746dff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 0 0 1px rgba(101, 202, 255, 0.12),
    0 0 24px rgba(52, 174, 255, 0.24),
    0 12px 24px rgba(37, 101, 194, 0.24);
}

.shell {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
  min-height: calc(100vh - 36px);
}

.sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 30px;
  padding: 26px;
  background:
    radial-gradient(circle at 16% 12%, rgba(21, 144, 223, 0.24), transparent 24%),
    radial-gradient(circle at 78% 10%, rgba(246, 184, 64, 0.18), transparent 28%),
    linear-gradient(180deg, #13243d 0%, #1a2f4b 100%);
  color: white;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.sidebar-scroll {
  display: grid;
  gap: 22px;
  align-content: start;
}

.eyebrow {
  margin: 0 0 12px;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 700;
  color: #cadef5;
  text-transform: uppercase;
}

.eyebrow.subtle {
  color: #9fc2e6;
}

.eyebrow.accent {
  color: var(--blue);
}

.brand-mark {
  width: 238px;
  max-width: 100%;
  height: auto;
}

.brand-lockup h1 {
  margin: 18px 0 14px;
  font-size: 46px;
  line-height: 1.02;
}

.sidebar-copy {
  margin: 0;
  color: #d4deeb;
  line-height: 1.6;
}

.account-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(190, 214, 236, 0.18);
}

.account-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.account-head h2 {
  margin: 0;
  font-size: 24px;
}

.account-copy,
.user-access-copy,
.config-warning,
.auth-message,
.demo-entry-copy p,
.pricing-copy p,
.mini-card p {
  margin: 0;
  color: #c9d9ea;
  line-height: 1.55;
}

.sidebar-footer {
  display: grid;
  gap: 12px;
  margin: 0;
  color: #c9d9ea;
  line-height: 1.55;
}

.legal-links-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.legal-links-inline a {
  color: #dbe9f7;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(201, 217, 234, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.legal-links-inline a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.access-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.badge-locked {
  background: rgba(255, 255, 255, 0.12);
  color: #f4f8fc;
}

.badge-pending {
  background: rgba(246, 184, 64, 0.18);
  color: #ffe7af;
}

.badge-active {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08)),
    linear-gradient(90deg, #49e7a1, #28c97a 52%, #18a95f 100%);
  color: #f5fbff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 0 0 1px rgba(108, 231, 170, 0.22),
    0 0 24px rgba(49, 216, 133, 0.28),
    0 10px 24px rgba(31, 143, 91, 0.22);
}

.badge-demo {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08)),
    linear-gradient(90deg, #39b6ff, #2e90ff 52%, #746dff 100%);
  color: #f5fbff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 0 0 1px rgba(101, 202, 255, 0.12),
    0 0 24px rgba(52, 174, 255, 0.24),
    0 12px 24px rgba(37, 101, 194, 0.24);
}

.config-warning,
.auth-message {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.config-warning {
  border: 1px solid rgba(246, 184, 64, 0.3);
  color: #ffe4a1;
}

.auth-message.info {
  color: #d9ebff;
}

.auth-message.success {
  color: #cff7dd;
}

.auth-message.error {
  color: #ffd6d6;
}

.demo-entry {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05)),
    rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(90, 186, 255, 0.26);
  box-shadow:
    0 0 0 1px rgba(77, 173, 255, 0.08),
    0 12px 28px rgba(36, 100, 192, 0.12);
}

.demo-entry-copy {
  display: grid;
  gap: 8px;
}

.demo-entry-copy h3 {
  margin: 0;
}

.user-panel {
  display: grid;
  gap: 10px;
}

.user-email {
  margin: 0;
  color: #f2f7fb;
}

.auth-forms {
  display: grid;
  gap: 14px;
}

.auth-forms.recovery-mode #loginForm,
.auth-forms.recovery-mode #resetRequestForm,
.auth-forms.recovery-mode #registerForm {
  display: none !important;
}

.auth-forms.reset-mode #loginForm,
.auth-forms.reset-mode #registerForm {
  display: none !important;
}

.auth-forms.reset-mode #resetRequestForm {
  display: grid !important;
}

.auth-form {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(11, 22, 36, 0.16);
  border: 1px solid rgba(193, 213, 233, 0.12);
}

.auth-helper-copy {
  margin: -2px 0 2px;
  color: #c9d9ea;
  line-height: 1.5;
}

.auth-popup {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 18, 31, 0.42);
  backdrop-filter: blur(6px);
}

.auth-popup-card {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(193, 213, 233, 0.88);
  box-shadow: 0 24px 60px rgba(9, 24, 46, 0.24);
  text-align: center;
}

.auth-popup-card h3 {
  margin: 8px 0 10px;
  font-size: 28px;
  color: #12365d;
}

.auth-popup-card p:last-of-type {
  margin: 0 0 18px;
  color: #51657d;
  line-height: 1.65;
}

.checkout-popup {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: center;
  padding: 24px;
}

.checkout-popup-card {
  position: relative;
  z-index: 1;
  width: min(100%, 860px);
  max-height: min(92vh, 980px);
  display: grid;
  gap: 16px;
  padding: 24px;
  overflow: auto;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.99);
  border: 1px solid rgba(193, 213, 233, 0.88);
  box-shadow: 0 24px 60px rgba(9, 24, 46, 0.24);
}

.checkout-popup-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.checkout-popup-head h3 {
  margin: 6px 0 0;
  color: #12365d;
  font-size: 30px;
}

.checkout-popup-copy,
.checkout-popup-notice {
  margin: 0;
  color: #51657d;
  line-height: 1.6;
}

.checkout-popup-notice {
  padding: 12px 14px;
  border-radius: 16px;
  background: #edf7ff;
  color: #1d5f94;
}

.checkout-popup-notice.error {
  background: #fff1f1;
  color: #a03030;
}

.checkout-popup-notice.success {
  background: #edf9f1;
  color: #1f7a45;
}

.checkout-embed-mount {
  min-height: 560px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid #dbe8f4;
  background: linear-gradient(180deg, #f8fbff 0%, #f0f6fc 100%);
}

.checkout-embed-mount iframe {
  display: block;
  width: 100%;
  min-height: 560px;
  border: 0;
}

.checkout-embed-loading {
  display: grid;
  place-items: center;
  min-height: 560px;
  padding: 24px;
  text-align: center;
  color: #5b6f84;
  font-weight: 600;
}

.checkout-popup-actions {
  display: flex;
  justify-content: flex-end;
}

.checkout-page-body {
  min-height: 100vh;
  padding: 24px;
}

.checkout-page {
  max-width: 1320px;
  margin: 0 auto;
}

.checkout-return-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  color: #34597f;
  font-weight: 700;
  text-decoration: none;
}

.checkout-page-shell {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.checkout-page-summary,
.checkout-page-panel {
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.checkout-page-summary {
  display: grid;
  gap: 18px;
  padding: 28px;
  background:
    radial-gradient(circle at 16% 12%, rgba(21, 144, 223, 0.24), transparent 24%),
    radial-gradient(circle at 78% 10%, rgba(246, 184, 64, 0.18), transparent 28%),
    linear-gradient(180deg, #13243d 0%, #1a2f4b 100%);
  color: white;
}

.checkout-page-logo {
  width: 220px;
  max-width: 100%;
  height: auto;
}

.checkout-page-summary h1,
.checkout-page-panel h2,
.checkout-login-card h3 {
  margin: 0;
}

.checkout-page-copy,
.checkout-account-copy,
.checkout-plan-meta,
.checkout-login-card p:last-of-type {
  margin: 0;
  color: #54697f;
  line-height: 1.6;
}

.checkout-page-summary .checkout-page-copy,
.checkout-page-summary .checkout-account-copy,
.checkout-page-summary .checkout-plan-meta {
  color: #d5e1ee;
}

.checkout-plan-card,
.checkout-account-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(194, 215, 236, 0.18);
}

.checkout-plan-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(194, 215, 236, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.checkout-plan-card h2 {
  font-size: 24px;
}

.checkout-plan-price {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  color: white;
}

.checkout-account-email {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: white;
  word-break: break-word;
}

.checkout-page-status {
  margin: 0;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  color: #eff7ff;
  line-height: 1.6;
}

.checkout-page-status.success {
  background: rgba(61, 188, 112, 0.16);
  color: #dffbe8;
}

.checkout-page-status.error {
  background: rgba(255, 103, 103, 0.14);
  color: #ffe1e1;
}

.checkout-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.checkout-page-panel {
  display: grid;
  gap: 16px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(193, 213, 233, 0.88);
}

.checkout-page-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.checkout-locked-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: #edf7ff;
  color: #1d5f94;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.checkout-page-embed {
  min-height: 720px;
}

.checkout-page-embed iframe {
  min-height: 720px;
}

.checkout-login-card {
  display: grid;
  gap: 12px;
  padding: 22px;
  border-radius: 24px;
  background: #f6faff;
  border: 1px solid #dbe8f4;
}

.btn-link {
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: #d9eaff;
  border: 1px solid rgba(178, 208, 236, 0.16);
}

.auth-form h3,
.pricing-copy h3,
.mini-card h2,
.action-copy h3,
.panel-head h3,
.content-lock-card h2 {
  margin: 0;
}

.pricing-section {
  display: grid;
  gap: 14px;
}

.pricing-grid {
  display: grid;
  gap: 12px;
}

.pricing-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(194, 215, 236, 0.18);
}

.pricing-card-active {
  border-color: rgba(90, 186, 255, 0.34);
  box-shadow: 0 0 0 1px rgba(77, 173, 255, 0.1), 0 14px 32px rgba(36, 100, 192, 0.16);
}

.pricing-card-demo {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.06)),
    rgba(255, 255, 255, 0.08);
  border-color: rgba(90, 186, 255, 0.28);
  box-shadow: 0 0 0 1px rgba(77, 173, 255, 0.08), 0 12px 28px rgba(36, 100, 192, 0.12);
}

.pricing-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(194, 215, 236, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.pricing-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.pricing-card h4 {
  margin: 0;
  font-size: 18px;
}

.price-line {
  font-size: 28px;
  font-weight: 800;
  color: white;
}

.price-line small {
  font-size: 14px;
  color: #cddaea;
}

.plan-meta {
  color: #d4dfeb;
  font-size: 14px;
}

.checkout-inline-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05)),
    rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(90, 186, 255, 0.26);
  box-shadow:
    0 0 0 1px rgba(77, 173, 255, 0.08),
    0 12px 28px rgba(36, 100, 192, 0.12);
}

.checkout-inline-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.checkout-inline-head h4 {
  margin: 0;
  font-size: 20px;
  color: #f6fbff;
}

.checkout-inline-copy,
.checkout-inline-notice {
  margin: 0;
  color: #d7e4f2;
  line-height: 1.55;
}

.checkout-inline-notice {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(16, 39, 65, 0.34);
  border: 1px solid rgba(181, 203, 230, 0.12);
}

.checkout-inline-notice.success {
  background: rgba(51, 168, 100, 0.18);
  color: #def9e8;
}

.checkout-inline-notice.error {
  background: rgba(255, 103, 103, 0.16);
  color: #ffe1e1;
}

.checkout-inline-mount {
  min-height: 640px;
  background: rgba(250, 252, 255, 0.98);
}

.checkout-inline-mount iframe {
  min-height: 640px;
}

.checkout-inline-actions {
  display: flex;
  justify-content: flex-end;
}

.sidebar-cards {
  display: grid;
  gap: 12px;
}

.mini-card {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(181, 203, 230, 0.08);
}

.server-badge {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(21, 144, 223, 0.2);
  color: #e8f6ff;
  font-size: 14px;
}

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1400;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 999px;
  color: white;
  text-decoration: none;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.34), transparent 34%),
    linear-gradient(180deg, #41e07f 0%, #24c267 54%, #109d4f 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 0 0 1px rgba(67, 224, 129, 0.2),
    0 0 28px rgba(36, 194, 103, 0.28),
    0 16px 34px rgba(11, 96, 49, 0.28);
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.whatsapp-float::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  border: 1px solid rgba(80, 235, 142, 0.24);
  animation: whatsapp-pulse 2.2s ease-out infinite;
}

.whatsapp-float:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 0 0 1px rgba(67, 224, 129, 0.24),
    0 0 34px rgba(36, 194, 103, 0.34),
    0 18px 38px rgba(11, 96, 49, 0.34);
}

.whatsapp-float svg {
  width: 34px;
  height: 34px;
}

@keyframes whatsapp-pulse {
  0% {
    opacity: 0.7;
    transform: scale(0.92);
  }

  70% {
    opacity: 0;
    transform: scale(1.15);
  }

  100% {
    opacity: 0;
    transform: scale(1.18);
  }
}

.sidebar-footer .brand-link {
  display: inline-block;
  padding: 14px 18px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06)),
    linear-gradient(90deg, #39b6ff, #2e90ff 52%, #746dff 100%);
  color: white;
  text-decoration: none;
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 0 0 1px rgba(101, 202, 255, 0.12),
    0 0 24px rgba(52, 174, 255, 0.24),
    0 12px 24px rgba(37, 101, 194, 0.24);
}

.main-shell {
  position: relative;
  min-width: 0;
}

.main {
  display: grid;
  gap: 18px;
  align-content: start;
}

.main > * {
  min-width: 0;
}

.hero {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 26px 28px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 8%, rgba(21, 144, 223, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(246, 250, 255, 0.96));
  box-shadow: var(--shadow);
}

.hero.hero-centered {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

.hero.hero-centered .hero-copy {
  max-width: 920px;
  text-align: center;
}

.hero-logo {
  width: 340px;
  max-width: 100%;
  height: auto;
}

.hero-copy h2 {
  margin: 0 0 10px;
  font-size: 36px;
  line-height: 1.12;
  background: linear-gradient(90deg, #31b2ff, #2b8fff 52%, #7367ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 14px rgba(43, 143, 255, 0.22));
}

.hero-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 26px;
}

.action-copy p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.search-status {
  margin-top: 12px;
  color: var(--blue-dark);
  font-weight: 700;
}

.search-department-progress {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 120px));
  justify-content: start;
  gap: 6px;
}

.search-department-progress.hidden {
  display: none;
}

.search-department-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  padding: 7px 8px;
  min-height: 88px;
  border: 1px solid rgba(178, 196, 216, 0.58);
  background: rgba(246, 249, 253, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.search-department-card.is-pending {
  background: rgba(246, 249, 253, 0.92);
  border-color: rgba(178, 196, 216, 0.58);
}

.search-department-card.is-running {
  background: linear-gradient(135deg, rgba(131, 207, 255, 0.16), rgba(172, 168, 255, 0.16));
  border-color: rgba(104, 163, 255, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 5px 12px rgba(77, 144, 226, 0.12);
}

.search-department-card.is-complete {
  background: linear-gradient(135deg, rgba(73, 231, 161, 0.12), rgba(178, 240, 213, 0.22));
  border-color: rgba(45, 178, 112, 0.45);
}

.search-department-top {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 6px;
}

.search-department-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(24, 46, 86, 0.08);
  color: var(--blue-dark);
  font-weight: 800;
  font-size: 13px;
}

.search-department-name {
  flex: 1;
  min-width: 0;
  font-weight: 700;
  color: var(--text);
  font-size: 12px;
  line-height: 1.15;
}

.search-department-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 3px 6px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.search-department-card.is-pending .search-department-badge {
  background: rgba(24, 46, 86, 0.08);
  color: #5d708c;
}

.search-department-card.is-running .search-department-badge {
  background: rgba(90, 186, 255, 0.16);
  color: #2353a3;
}

.search-department-card.is-complete .search-department-badge {
  background: rgba(44, 186, 116, 0.14);
  color: #1f7c50;
}

.search-department-detail {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.search-department-footer {
  margin-top: auto;
  padding-top: 5px;
  display: flex;
  justify-content: flex-end;
}


.action-buttons,
.department-actions,
.target-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  border: none;
  border-radius: 18px;
  padding: 14px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: default;
  transform: none;
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04)),
    linear-gradient(90deg, #36b7ff, #2d88ff 52%, #6f69ff 100%);
  color: white;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 0 0 1px rgba(95, 194, 255, 0.12),
    0 0 26px rgba(46, 153, 255, 0.24),
    0 10px 26px rgba(36, 95, 186, 0.22);
}

.btn-secondary {
  background: #edf2ff;
  color: #234ca0;
}

.btn-small {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
}

.btn-ghost {
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.btn-muted {
  background: #f3f6fa;
  color: #4b5e76;
}

.top-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.category-panel,
.target-panel,
.department-panel,
.selection-panel,
.results-panel {
  padding: 24px;
  min-width: 0;
}

.selection-panel,
.results-panel {
  width: 100%;
  max-width: 35cm;
  justify-self: start;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-label {
  margin: 0;
  color: #7d8fa6;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.server-pill,
.formats-pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: #f0f6fb;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.segment-switch {
  display: inline-flex;
  padding: 6px;
  border-radius: 22px;
  background: #eef4fa;
  border: 1px solid var(--line);
  gap: 8px;
  margin-bottom: 18px;
}

.segment {
  min-width: 120px;
  padding: 14px 18px;
  border: none;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  color: #425267;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.segment.active {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08)),
    linear-gradient(90deg, #31b2ff, #2b8fff 52%, #7367ff 100%);
  color: white;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 0 0 1px rgba(91, 196, 255, 0.18),
    0 0 28px rgba(38, 152, 255, 0.28),
    0 12px 24px rgba(40, 114, 214, 0.22);
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: inherit;
  font-size: 14px;
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(211, 224, 236, 0.9);
  background: #f9fbfe;
  color: var(--text);
  font: inherit;
}

.field textarea {
  min-height: 118px;
  resize: vertical;
  line-height: 1.5;
}

.auth-form .field input,
.auth-form .field textarea {
  background: rgba(255, 255, 255, 0.96);
}

.field.compact {
  margin-bottom: 18px;
}

.category-note,
.availability-note,
.upload-note,
.results-meta {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.target-groups {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.target-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #f8fbfe;
  border: 1px solid var(--line);
  transition: border-color 120ms ease, background 120ms ease, transform 120ms ease;
}

.target-card.active {
  background: #eef7ff;
  border-color: #9bcff1;
}

.target-card:hover,
.department-option:hover {
  transform: translateY(-1px);
  border-color: #b8d8ef;
}

.target-copy h4 {
  margin: 0 0 6px;
  font-size: 22px;
}

.target-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.department-panel {
  padding-bottom: 18px;
}

.department-grid-wrap {
  width: 100%;
  min-width: 0;
  max-height: 520px;
  overflow: auto;
  padding-right: 6px;
}

.department-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.department-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #f8fbfe;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease, transform 120ms ease;
}

.department-option.active {
  background: #eaf6ff;
  border-color: #8ecaf0;
}

.department-option input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.department-code {
  min-width: 28px;
  font-weight: 800;
  color: var(--blue-dark);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  min-width: 0;
}

.stat-card {
  padding: 22px;
}

.stat-card strong {
  display: block;
  margin-top: 6px;
  font-size: 32px;
}

.selection-list {
  display: grid;
  gap: 12px;
}

.selection-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #f8fbfe;
  border: 1px solid var(--line);
}

.selection-item span {
  color: var(--muted);
}

.selection-item strong {
  text-align: right;
  overflow-wrap: anywhere;
}

.results-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  width: 100%;
  max-width: 35cm;
}

.table-wrap {
  width: 100%;
  max-width: 35cm;
  height: 20cm;
  overflow: auto;
  border-radius: 20px;
  border: 1px solid var(--line);
}

.results-panel {
  overflow: hidden;
}

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

thead {
  background: #f4f9fd;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid #e6eff6;
  text-align: left;
  font-size: 14px;
}

tbody tr:hover {
  background: #f8fbfe;
}

.content-lock {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  border-radius: 30px;
  background: rgba(233, 241, 247, 0.72);
  backdrop-filter: blur(6px);
  z-index: 10;
  transition: opacity 160ms ease, visibility 160ms ease;
}

.content-lock-card {
  max-width: 520px;
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(211, 224, 236, 0.96);
  box-shadow: var(--shadow);
  text-align: center;
}

.content-lock-card p {
  color: var(--muted);
  line-height: 1.6;
}

body.is-unlocked .content-lock {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 1180px) {
  .intro-video-shell {
    width: min(100%, calc(100vw - 36px));
  }

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

  .checkout-page-shell {
    grid-template-columns: 1fr;
  }

  .main-shell {
    min-height: 1000px;
  }

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

@media (max-width: 760px) {
  body {
    padding: 12px;
  }

  .checkout-page-body {
    padding: 12px;
  }

  .intro-overlay {
    padding: 16px;
  }

  .intro-video-shell {
    padding: 16px;
    border-radius: 24px;
  }

  .intro-video-copy h2 {
    font-size: 24px;
  }

  .intro-skip {
    top: 14px;
    right: 14px;
    padding: 10px 15px;
  }

  .whatsapp-float {
    right: 18px;
    bottom: 18px;
    width: 62px;
    height: 62px;
  }

  .whatsapp-float svg {
    width: 31px;
    height: 31px;
  }

  .sidebar,
  .hero,
  .action-bar,
  .category-panel,
  .target-panel,
  .department-panel,
  .selection-panel,
  .results-panel {
    padding: 18px;
  }

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

  .hero-logo {
    width: 230px;
  }

  .hero-copy h2 {
    font-size: 28px;
  }

  .action-bar,
  .panel-head,
  .target-card,
  .selection-item,
  .pricing-card-head,
  .checkout-page-panel-head {
    grid-template-columns: 1fr;
    display: grid;
  }

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

  .segment-switch {
    width: 100%;
  }

  .segment {
    min-width: 0;
    width: 100%;
  }

  .results-tools {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .table-wrap {
    width: 100%;
    height: auto;
    max-height: 70vh;
  }

  .content-lock {
    padding: 16px;
  }

  .checkout-page-summary,
  .checkout-page-panel {
    padding: 18px;
  }

  .checkout-page-embed,
  .checkout-page-embed iframe,
  .checkout-embed-loading {
    min-height: 620px;
  }

  .checkout-page-actions {
    flex-direction: column;
  }
}
