:root {
  --app-ink: #102033;
  --app-muted: #697586;
  --app-bg: #f4f7fb;
  --app-surface: #ffffff;
  --app-surface-soft: #f8fafc;
  --app-line: #dbe4ee;
  --app-primary: #0f3a5f;
  --app-primary-2: #155f8f;
  --app-accent: #f4a51c;
  --app-success: #138a65;
  --app-danger: #c2413a;
  --app-radius: 18px;
  --app-shadow: 0 18px 45px rgba(15, 58, 95, 0.10);
  --motion-fast: 140ms;
  --motion-base: 220ms;
  --motion-slow: 420ms;
  --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  font-size: 14px;
  min-height: 100%;
  position: relative;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  background:
    radial-gradient(circle at top left, rgba(244, 165, 28, 0.14), transparent 28rem),
    radial-gradient(circle at top right, rgba(21, 95, 143, 0.16), transparent 30rem),
    var(--app-bg);
  color: var(--app-ink);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  margin-bottom: 0;
  min-height: 100vh;
}

a {
  color: var(--app-primary-2);
}

.app-navbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(219, 228, 238, 0.85);
  box-shadow: 0 10px 30px rgba(16, 32, 51, 0.06);
}

.app-navbar .navbar-brand {
  align-items: center;
  color: var(--app-primary) !important;
  display: inline-flex;
  gap: 0.7rem;
  text-decoration: none;
}

.app-navbar .brand-logo {
  display: block;
  height: 4rem;
  max-height: 4rem;
  max-width: 6rem;
  object-fit: contain;
  width: 6rem;
}

@media (max-width: 575.98px) {
  .app-navbar .brand-logo {
    height: 3.5rem;
    max-height: 3.5rem;
    max-width: 5.25rem;
    width: 5.25rem;
  }
}

.app-navbar .nav-link,
.app-navbar .btn-link,
.app-navbar .text-dark {
  color: rgba(16, 32, 51, 0.78) !important;
  font-weight: 650;
  transition: color var(--motion-fast) ease;
}

.app-navbar .nav-link:hover,
.app-navbar .btn-link:hover {
  color: var(--app-primary) !important;
}

.dropdown-menu {
  border: 1px solid var(--app-line);
  border-radius: 16px;
  box-shadow: var(--app-shadow);
  padding: 0.45rem;
}

.dropdown-item {
  border-radius: 12px;
  font-weight: 600;
  padding: 0.6rem 0.75rem;
  transition: background-color var(--motion-fast) ease, color var(--motion-fast) ease;
}

.dropdown-item:hover {
  background: #eef6fb;
  color: var(--app-primary);
}

.app-main {
  padding-bottom: 3rem;
  padding-top: 1.75rem;
}

.app-footer {
  background: rgba(255, 255, 255, 0.78);
  border-top: 1px solid var(--app-line);
  color: var(--app-muted);
  padding: 1.25rem 0;
}

h1,
.h1 {
  font-weight: 850;
  letter-spacing: -0.04em;
}

h2,
h3,
.h2,
.h3 {
  letter-spacing: -0.025em;
}

.text-muted {
  color: var(--app-muted) !important;
}

.page-hero {
  background:
    linear-gradient(145deg, rgba(11, 43, 72, 0.97) 0%, rgba(21, 95, 143, 0.88) 50%, rgba(15, 58, 95, 0.96) 100%),
    linear-gradient(45deg, rgba(244, 165, 28, 0.18) 0%, transparent 55%);
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(15, 58, 95, 0.18), 0 6px 18px rgba(15, 58, 95, 0.08);
  color: #fff;
  margin-bottom: 1.5rem;
  overflow: hidden;
  padding: clamp(1.5rem, 3.5vw, 2.8rem);
  position: relative;
}

.page-hero::before {
  background: radial-gradient(circle at 20% 120%, rgba(244, 165, 28, 0.22), transparent 50%);
  content: "";
  height: 22rem;
  left: -6rem;
  position: absolute;
  bottom: -8rem;
  width: 22rem;
}

.page-hero::after {
  background: radial-gradient(circle, rgba(244, 165, 28, 0.28), transparent 55%);
  content: "";
  height: 18rem;
  position: absolute;
  right: -5rem;
  top: -6rem;
  width: 18rem;
}

.page-hero > * {
  position: relative;
  z-index: 1;
}

.page-hero .text-muted,
.page-hero p {
  color: rgba(255, 255, 255, 0.78) !important;
}

.hero-img {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  max-height: 210px;
  width: auto;
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.hero-img:hover {
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.3);
  transform: scale(1.02);
}

@media (max-width: 991.98px) {
  .hero-img {
    max-height: 160px;
  }
}

.card,
.data-card,
.form-panel,
.table-responsive,
.list-group {
  background: var(--app-surface);
  border: 1px solid rgba(219, 228, 238, 0.9);
  border-radius: var(--app-radius);
  box-shadow: 0 12px 28px rgba(16, 32, 51, 0.06);
}

.card {
  overflow: hidden;
}

.card-header {
  background: var(--app-surface-soft);
  border-bottom: 1px solid var(--app-line);
  font-weight: 800;
}

.metric-card {
  background: linear-gradient(180deg, #fff, #f8fbfd);
  border: 1px solid rgba(219, 228, 238, 0.95);
  border-radius: 20px;
  box-shadow: 0 14px 30px rgba(16, 32, 51, 0.07);
  height: 100%;
  padding: 1.15rem;
  transition: border-color var(--motion-base) ease, box-shadow var(--motion-base) ease, transform var(--motion-base) var(--motion-ease);
}

.metric-card .metric-label {
  color: var(--app-muted);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.metric-card .metric-value {
  color: var(--app-primary);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-top: 0.45rem;
}

.finance-hint {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--app-muted);
  cursor: help;
  line-height: 1;
  padding: 0 0.15rem;
}

.finance-hint:hover,
.finance-hint:focus-visible {
  color: var(--app-primary);
  outline: none;
}

.action-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.action-card {
  background: #fff;
  border: 1px solid var(--app-line);
  border-radius: 18px;
  color: var(--app-ink);
  display: block;
  font-weight: 750;
  padding: 1rem;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.action-card:hover {
  border-color: rgba(21, 95, 143, 0.45);
  box-shadow: var(--app-shadow);
  color: var(--app-primary);
  transform: translateY(-2px);
}

.btn {
  border-radius: 999px;
  font-weight: 750;
  padding-left: 1rem;
  padding-right: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--app-primary), var(--app-primary-2));
  border-color: var(--app-primary);
  box-shadow: 0 10px 22px rgba(15, 58, 95, 0.16);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0b2d4a, var(--app-primary));
  border-color: #0b2d4a;
}

.btn-success {
  background: linear-gradient(135deg, var(--app-success), #20a77a);
  border-color: var(--app-success);
}

.btn-accent {
  background: linear-gradient(135deg, var(--app-accent), #df930a);
  border-color: var(--app-accent);
  box-shadow: 0 10px 22px rgba(244, 165, 28, 0.25);
}

.btn-accent:hover {
  background: linear-gradient(135deg, #df930a, #c48108);
  border-color: #c48108;
}

.btn-outline-primary,
.btn-outline-secondary {
  background: rgba(255, 255, 255, 0.72);
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: rgba(21, 95, 143, 0.55);
  box-shadow: 0 0 0 0.22rem rgba(21, 95, 143, 0.14);
}

.form-control,
.form-select {
  border-color: var(--app-line);
  border-radius: 14px;
  padding: 0.72rem 0.85rem;
  transition: border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

.form-label {
  color: var(--app-ink);
  font-weight: 750;
}

.table-responsive {
  overflow: auto;
}

.table {
  margin-bottom: 0;
}

.table thead th {
  background: var(--app-surface-soft);
  border-bottom: 1px solid var(--app-line);
  color: var(--app-muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.table tbody td {
  border-color: #edf2f7;
  vertical-align: middle;
}

.table tbody tr {
  transition: background-color var(--motion-fast) ease;
}

.table tbody tr:hover {
  background-color: rgba(21, 95, 143, 0.035);
}

.alert {
  border: 0;
  border-radius: 16px;
  box-shadow: 0 10px 22px rgba(16, 32, 51, 0.05);
}

.alert.show {
  animation: feedback-enter var(--motion-base) var(--motion-ease) both;
}

.identity-shell .data-card {
  min-height: 100%;
}

.identity-badge {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  display: inline-flex;
  font-weight: 750;
  padding: 0.65rem 1rem;
}

.identity-form-narrow {
  max-width: 720px;
}

.identity-card {
  border: 1px solid rgba(15, 58, 95, 0.08);
  box-shadow: 0 24px 60px rgba(16, 32, 51, 0.13);
}

.identity-card-icon {
  align-items: center;
  background: linear-gradient(135deg, rgba(15, 58, 95, 0.1), rgba(244, 165, 28, 0.16));
  border-radius: 20px;
  color: var(--app-primary);
  display: inline-flex;
  font-size: 1.7rem;
  height: 4rem;
  justify-content: center;
  margin-bottom: 1rem;
  width: 4rem;
}

.identity-separator {
  align-items: center;
  color: var(--app-muted);
  display: flex;
  font-size: 0.85rem;
  gap: 0.85rem;
  margin: 1.35rem 0;
  text-align: center;
}

.identity-separator::before,
.identity-separator::after {
  background: var(--app-line);
  content: "";
  flex: 1;
  height: 1px;
}

.btn-google {
  align-items: center;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 12px;
  color: #3c4043;
  display: inline-flex;
  font-weight: 700;
  gap: 0.75rem;
  justify-content: center;
  min-height: 3rem;
}

.btn-google:hover,
.btn-google:focus {
  background: #f8fafd;
  border-color: #c9ced6;
  color: #202124;
  box-shadow: 0 8px 18px rgba(60, 64, 67, 0.12);
}

.google-icon {
  flex: 0 0 auto;
  height: 1.25rem;
  width: 1.25rem;
}

.status-badge {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 850;
  padding: 0.2rem 0.65rem;
}

.status-success {
  background: rgba(19, 138, 101, 0.12);
  color: var(--app-success);
}

.status-warning {
  background: rgba(244, 165, 28, 0.16);
  color: #96640a;
}

.status-danger {
  background: rgba(194, 65, 58, 0.12);
  color: var(--app-danger);
}

.status-info {
  background: rgba(13, 110, 253, 0.12);
  color: #0a58ca;
}

.option-card {
  background: #fff;
  border: 1px solid var(--app-line);
  border-radius: 18px;
  box-shadow: 0 12px 25px rgba(16, 32, 51, 0.06);
  height: 100%;
  padding: 1rem;
}

.option-card.best-price {
  border-color: rgba(244, 165, 28, 0.85);
  box-shadow: 0 18px 35px rgba(244, 165, 28, 0.18);
}

.price-tag {
  color: var(--app-primary);
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.empty-state {
  background: #fff;
  border: 1px dashed #bfd0df;
  border-radius: var(--app-radius);
  color: var(--app-muted);
  padding: 1.25rem;
  text-align: center;
}

.purchase-stepper {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 1rem;
}

.purchase-step {
  background: #fff;
  border: 1px solid var(--app-line);
  border-radius: 16px;
  color: var(--app-muted);
  font-weight: 700;
  padding: 0.85rem 1rem;
}

.purchase-step i {
  margin-right: 0.35rem;
}

.purchase-step.completed {
  border-color: rgba(25, 135, 84, 0.35);
  color: var(--app-success);
}

.purchase-step.active {
  border-color: rgba(13, 110, 253, 0.4);
  color: var(--app-primary);
  box-shadow: 0 12px 28px rgba(13, 110, 253, 0.12);
}

.home-hero {
  background:
    linear-gradient(135deg, rgba(15, 58, 95, 0.98), rgba(20, 91, 137, 0.92)),
    linear-gradient(45deg, rgba(244, 165, 28, 0.22), transparent);
  border-radius: 32px;
  color: #fff;
  overflow: hidden;
  padding: clamp(1.5rem, 5vw, 3.5rem);
}

.home-hero .text-muted,
.home-hero .lead {
  color: rgba(255, 255, 255, 0.78) !important;
}

.home-hero img {
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
  text-align: start;
}

@media (max-width: 767.98px) {
  .app-main {
    padding-top: 1rem;
  }

  .page-hero {
    border-radius: 20px;
  }

  .purchase-stepper {
    grid-template-columns: 1fr;
  }

  .btn {
    margin-bottom: 0.35rem;
  }
}

/* ── Footer ────────────────────────────────────────────── */

.app-footer {
  background: #0f1a2e;
  border-top: 0;
  color: #b0c4de;
  margin-top: 2.5rem;
  padding: 2.5rem 0 0;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  padding-bottom: 2rem;
}

.footer-heading {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-links a {
  color: #b0c4de;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease;
}

.footer-links a:hover {
  color: var(--app-accent);
}

.footer-desc {
  font-size: 0.85rem;
  line-height: 1.5;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.footer-social-icon {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: #b0c4de;
  display: inline-flex;
  height: 2.2rem;
  justify-content: center;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
  width: 2.2rem;
}

.footer-social-icon:hover {
  background: var(--app-accent);
  color: #0f1a2e;
}

.footer-social-icon-disabled {
  cursor: default;
  opacity: 0.65;
}

.footer-social-icon-disabled:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #b0c4de;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  padding: 1.15rem 0;
  text-align: center;
}

/* ── Terms & Privacy sections ──────────────────── */

.terms-intro {
  background: var(--app-surface-soft);
  border: 1px solid var(--app-line);
  border-radius: var(--app-radius);
  margin-bottom: 1rem;
  padding: 1rem 1.25rem;
}

.terms-section {
  align-items: flex-start;
  background: var(--app-surface);
  border: 1px solid rgba(219, 228, 238, 0.9);
  border-radius: var(--app-radius);
  box-shadow: 0 8px 20px rgba(16, 32, 51, 0.04);
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
  padding: 1.25rem;
  transition: box-shadow 200ms ease;
}

.terms-section:hover {
  box-shadow: 0 12px 28px rgba(16, 32, 51, 0.08);
}

.terms-num {
  align-items: center;
  background: linear-gradient(135deg, var(--app-primary), var(--app-primary-2));
  border-radius: 12px;
  color: #fff;
  display: flex;
  flex-shrink: 0;
  font-size: 1rem;
  font-weight: 900;
  height: 2.4rem;
  justify-content: center;
  width: 2.4rem;
}

.terms-content {
  flex: 1;
  min-width: 0;
}

.terms-content ul {
  padding-left: 1.25rem;
}

.terms-content ul li {
  margin-bottom: 0.3rem;
}

/* ── Accordion custom (Help FAQ) ──────────────── */

.accordion {
  --bs-accordion-border-color: var(--app-line);
  --bs-accordion-border-radius: var(--app-radius);
  --bs-accordion-btn-focus-box-shadow: 0 0 0 0.2rem rgba(21, 95, 143, 0.14);
  --bs-accordion-active-bg: rgba(21, 95, 143, 0.06);
  --bs-accordion-active-color: var(--app-primary);
  --bs-accordion-btn-active-icon: var(--bs-accordion-btn-icon);
}

.accordion-item:first-of-type {
  border-top-left-radius: var(--app-radius);
  border-top-right-radius: var(--app-radius);
}

.accordion-item:last-of-type {
  border-bottom-left-radius: var(--app-radius);
  border-bottom-right-radius: var(--app-radius);
}

.accordion-button {
  font-weight: 700;
  padding: 1rem 1.25rem;
}

.accordion-button:not(.collapsed) {
  box-shadow: none;
}

.accordion-button i {
  color: var(--app-primary-2);
}

.accordion-body {
  padding: 1rem 1.25rem 1.25rem;
}

/* ── FAQ accordion (larger, more readable) ────── */

.faq-accordion {
  font-size: 1.05rem;
}

.faq-accordion .accordion-button {
  font-size: 1.15rem;
  padding: 1.1rem 1.4rem;
}

.faq-accordion .faq-icon {
  font-size: 1.5rem;
}

.faq-accordion .faq-body {
  font-size: 1.05rem;
  line-height: 1.65;
  padding: 1.15rem 1.4rem 1.35rem;
}

/* ── Contact info panel ───────────────────────── */

.contact-info dt i {
  color: var(--app-primary-2);
  width: 1rem;
}

.contact-info a {
  color: var(--app-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-info a:hover {
  color: var(--app-primary-2);
}

/* ── Developer card (About) ──────────────────── */

.dev-card {
  background: var(--app-surface);
  border: 1px solid var(--app-line);
  border-left: 5px solid var(--app-accent);
  border-radius: var(--app-radius);
  box-shadow: 0 14px 35px rgba(16, 32, 51, 0.07);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  overflow: hidden;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  transition: box-shadow 250ms ease;
}

.dev-card:hover {
  box-shadow: 0 18px 45px rgba(16, 32, 51, 0.11);
}

.dev-card-photo {
  flex-shrink: 0;
}

.dev-photo {
  border: 3px solid var(--app-line);
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(16, 32, 51, 0.1);
  height: 130px;
  object-fit: cover;
  width: 130px;
}

@media (max-width: 480px) {
  .dev-photo {
    height: 100px;
    width: 100px;
  }
}

.dev-card-body {
  flex: 1;
  min-width: 220px;
  padding-top: 0.2rem;
}

.dev-badge {
  background: linear-gradient(135deg, var(--app-accent), #df930a);
  border-radius: 999px;
  color: #fff;
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
  padding: 0.25rem 0.9rem;
  text-transform: uppercase;
}

.dev-name {
  color: var(--app-primary);
  font-size: clamp(1.3rem, 2.8vw, 1.8rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
}

.dev-title {
  color: var(--app-muted);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 1rem;
  max-width: 520px;
}

.dev-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dev-link {
  align-items: center;
  background: rgba(15, 58, 95, 0.06);
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--app-primary);
  display: inline-flex;
  font-size: 0.85rem;
  font-weight: 700;
  gap: 0.4rem;
  padding: 0.4rem 1.1rem;
  text-decoration: none;
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.dev-link:hover {
  background: rgba(244, 165, 28, 0.1);
  border-color: var(--app-accent);
  color: var(--app-ink);
  transform: translateY(-1px);
}

/* ── About page cards ──────────────────────────── */

.about-card {
  background: var(--app-surface);
  border: 1px solid rgba(219, 228, 238, 0.9);
  border-radius: var(--app-radius);
  box-shadow: 0 12px 28px rgba(16, 32, 51, 0.06);
  height: 100%;
  padding: 1.75rem 1.5rem;
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.about-card:hover {
  box-shadow: 0 18px 40px rgba(16, 32, 51, 0.1);
  transform: translateY(-3px);
}

.about-icon {
  align-items: center;
  background: linear-gradient(135deg, rgba(15, 58, 95, 0.08), rgba(244, 165, 28, 0.12));
  border-radius: 16px;
  color: var(--app-primary);
  display: inline-flex;
  font-size: 1.6rem;
  height: 3.2rem;
  justify-content: center;
  margin-bottom: 1rem;
  width: 3.2rem;
}

.about-company {
  background: linear-gradient(135deg, rgba(15, 58, 95, 0.96), rgba(21, 95, 143, 0.9));
  border-radius: var(--app-radius);
  box-shadow: var(--app-shadow);
  color: #fff;
  padding: 2rem clamp(1.25rem, 3vw, 2.5rem);
}

.about-company-icon {
  align-items: center;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  color: #fff;
  display: inline-flex;
  flex-shrink: 0;
  font-size: 1.4rem;
  height: 2.8rem;
  justify-content: center;
  width: 2.8rem;
}

.about-company a {
  color: var(--app-accent);
}

/* ── Notification dropdown ───────────────────────── */

.notification-badge {
  align-items: center;
  background: #dc3545;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 700;
  justify-content: center;
  line-height: 1;
  min-width: 1.15rem;
  padding: 0.15rem 0.32rem;
  position: absolute;
  right: 0.1rem;
  top: 0.2rem;
}

.notification-badge.badge-update {
  animation: badge-update var(--motion-base) var(--motion-ease);
}

.notification-menu {
  border: 0;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(16, 32, 51, 0.14);
  min-width: min(92vw, 380px);
  overflow: hidden;
  padding: 0;
}

.notification-menu-header {
  align-items: center;
  border-bottom: 1px solid rgba(16, 32, 51, 0.08);
  display: flex;
  justify-content: space-between;
  padding: 0.85rem 1rem;
}

.notification-list {
  max-height: 360px;
  overflow-y: auto;
}

.notification-item {
  border-bottom: 1px solid rgba(16, 32, 51, 0.07);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  transition: background-color var(--motion-fast) ease, opacity var(--motion-fast) ease, transform var(--motion-fast) ease;
}

.notification-item-enter {
  animation: notification-enter var(--motion-base) var(--motion-ease) both;
}

.notification-item.is-leaving {
  opacity: 0;
  transform: translateX(8px);
}

.notification-item-unread {
  background: rgba(10, 111, 183, 0.08);
}

.notification-content {
  color: inherit;
  text-decoration: none;
}

.notification-content:hover {
  color: var(--app-primary);
}

.notification-message,
.notification-time,
.notification-empty {
  color: var(--app-muted);
  font-size: 0.82rem;
}

.notification-actions {
  align-items: flex-start;
  display: flex;
  gap: 0.25rem;
}

.notification-action-btn {
  color: var(--app-muted);
  line-height: 1;
  padding: 0.15rem 0.25rem;
}

.notification-action-btn:hover {
  color: var(--app-primary);
}

.notification-empty {
  padding: 1rem;
  text-align: center;
}

/* ── WhatsApp floating button ────────────────────── */

.whatsapp-float {
  align-items: center;
  background: #25d366;
  border-radius: 50%;
  bottom: 1.5rem;
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.35);
  color: #fff;
  display: flex;
  font-size: 1.5rem;
  height: 3.4rem;
  justify-content: center;
  position: fixed;
  right: 1.5rem;
  text-decoration: none;
  transition: transform 250ms ease, box-shadow 250ms ease;
  width: 3.4rem;
  z-index: 999;
}

.whatsapp-float:hover {
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
  color: #fff;
  transform: scale(1.1);
}

@keyframes whatsapp-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-float {
  animation: whatsapp-pulse 2s infinite;
}

/* ── Feature cards (Home/Index) ─────────────────── */

.card-feature {
  border-radius: 18px;
  overflow: hidden;
  transition: box-shadow 240ms ease, transform 240ms ease;
}

.card-feature:hover {
  box-shadow: 0 18px 35px rgba(16, 32, 51, 0.09) !important;
  transform: translateY(-3px);
}

.brand-mark {
  align-items: center;
  background: linear-gradient(135deg, var(--app-primary), var(--app-primary-2));
  border-radius: 20px;
  color: #fff;
  display: flex;
  font-size: 2rem;
  height: 4.4rem;
  justify-content: center;
  width: 4.4rem;
}

.promo-fade-in {
  animation: promo-fade-in 0.8s ease-out forwards;
  opacity: 0;
}

@keyframes promo-fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.wholesale-promo {
  background:
    radial-gradient(circle at 8% 15%, rgba(244, 165, 28, 0.18), transparent 30%),
    radial-gradient(circle at 92% 85%, rgba(21, 95, 143, 0.3), transparent 36%),
    linear-gradient(135deg, #0a1628 0%, #132033 52%, #0f1d2f 100%);
  border-radius: var(--app-radius);
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 3rem);
  position: relative;
}

.wholesale-promo::before {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  content: "";
  height: 22rem;
  position: absolute;
  right: -10rem;
  top: -12rem;
  width: 22rem;
}

.wholesale-promo-heading {
  margin: 0 auto 1.5rem;
  max-width: 48rem;
}

.wholesale-promo-heading h2 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.025em;
}

.wholesale-promo-heading > p:last-child,
.wholesale-promo-contact > p {
  color: rgba(255, 255, 255, 0.72);
}

.wholesale-promo-eyebrow {
  color: var(--app-accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.wholesale-solution-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 220ms ease, transform 220ms ease;
}

.wholesale-solution-card:hover {
  border-color: rgba(244, 165, 28, 0.5);
  transform: translateY(-3px);
}

.wholesale-solution-card img {
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  width: 100%;
}

.wholesale-solution-body {
  padding: 1.35rem;
}

.wholesale-solution-body h3 {
  color: #fff;
  font-size: 1.25rem;
  margin: 0.75rem 0 0.5rem;
}

.wholesale-solution-body p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.wholesale-solution-label {
  color: var(--app-accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wholesale-promo-contact {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
}

@media (max-width: 575.98px) {
  .whatsapp-float {
    bottom: 1rem;
    font-size: 1.3rem;
    height: 2.8rem;
    right: 1rem;
    width: 2.8rem;
  }

  .wholesale-promo-contact {
    align-items: stretch;
    flex-direction: column;
  }

  .wholesale-promo-contact .btn {
    width: 100%;
  }
}

/* ── Subtle motion ─────────────────────────────── */

@keyframes surface-reveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes menu-reveal {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes feedback-enter {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes notification-enter {
  from {
    opacity: 0;
    transform: translateX(6px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes badge-update {
  50% {
    transform: scale(1.18);
  }
}

@keyframes metric-value-enter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

[data-reveal].motion-pending,
[data-reveal].motion-visible {
  transition: opacity var(--motion-slow) var(--motion-ease), transform var(--motion-slow) var(--motion-ease);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].motion-pending {
  opacity: 0;
  transform: translateY(12px);
}

[data-reveal].motion-visible {
  opacity: 1;
  transform: translateY(0);
}

.metric-card.motion-visible .metric-value {
  animation: metric-value-enter var(--motion-base) var(--motion-ease) both;
  animation-delay: 80ms;
}

.dropdown-menu.show {
  animation: menu-reveal var(--motion-fast) ease-out both;
  transform-origin: top center;
}

.modal.show .modal-content {
  animation: surface-reveal var(--motion-base) var(--motion-ease) both;
}

.btn {
  transition: background-color var(--motion-fast) ease, border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, color var(--motion-fast) ease, transform var(--motion-fast) var(--motion-ease);
}

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

.btn .bi-arrow-right {
  display: inline-block;
  transition: transform var(--motion-fast) var(--motion-ease);
}

.btn:hover:not(:disabled) .bi-arrow-right {
  transform: translateX(2px);
}

.offer-card-wrapper {
  transition: opacity var(--motion-fast) ease, transform var(--motion-fast) var(--motion-ease);
}

.offer-card-wrapper.is-filtered-out {
  opacity: 0;
  transform: translateY(6px);
}

.offer-card-wrapper.offer-card-entering {
  animation: surface-reveal var(--motion-base) var(--motion-ease) both;
}

.offer-card-wrapper.offer-card-sorted .option-card {
  animation: offer-sorted var(--motion-base) var(--motion-ease);
}

#results-count.results-count-update {
  animation: badge-update var(--motion-base) var(--motion-ease);
  display: inline-block;
}

@keyframes offer-sorted {
  50% {
    border-color: rgba(21, 95, 143, 0.38);
    box-shadow: 0 16px 32px rgba(16, 32, 51, 0.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal].motion-pending {
    opacity: 1;
    transform: none;
  }
}

/* ── Visual guides ─────────────────────────────── */

.guide-entry-banner,
.guide-support-strip {
  align-items: center;
  background: linear-gradient(135deg, #fff, #f2f7fb);
  border: 1px solid var(--app-line);
  border-radius: var(--app-radius);
  box-shadow: 0 14px 32px rgba(16, 32, 51, 0.06);
  display: flex;
  gap: 1.25rem;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
}

.guide-entry-icon,
.guide-role-icon {
  align-items: center;
  background: linear-gradient(135deg, var(--app-primary), var(--app-primary-2));
  border-radius: 18px;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1.6rem;
  height: 3.75rem;
  justify-content: center;
  width: 3.75rem;
}

.guide-entry-banner > div:nth-child(2) {
  flex: 1;
}

.guide-hub-hero {
  min-height: 310px;
}

.guide-hub-illustration {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem;
}

.guide-hub-route {
  align-items: center;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 3rem 1fr 3rem 1fr 3rem;
}

.guide-hub-route i {
  align-items: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  display: flex;
  font-size: 1.25rem;
  height: 3rem;
  justify-content: center;
}

.guide-hub-route span {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.55), rgba(244, 165, 28, 0.85));
  height: 2px;
  position: relative;
}

.guide-hub-route span::after {
  border-bottom: 4px solid transparent;
  border-left: 6px solid var(--app-accent);
  border-top: 4px solid transparent;
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.guide-hub-intro {
  margin-left: auto;
  margin-right: auto;
  max-width: 720px;
}

.guide-role-card {
  border: 1px solid var(--app-line);
  border-radius: 26px;
  box-shadow: 0 18px 42px rgba(16, 32, 51, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(1.4rem, 3vw, 2.25rem);
  position: relative;
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.guide-role-card::before {
  border-radius: 50%;
  content: "";
  height: 14rem;
  position: absolute;
  right: -7rem;
  top: -7rem;
  width: 14rem;
}

.guide-role-card:hover {
  box-shadow: 0 24px 54px rgba(16, 32, 51, 0.13);
  transform: translateY(-4px);
}

.guide-role-customer {
  background: linear-gradient(145deg, #fff, #eff8f4);
}

.guide-role-customer::before {
  background: rgba(19, 138, 101, 0.1);
}

.guide-role-supplier {
  background: linear-gradient(145deg, #fff, #fff8eb);
}

.guide-role-supplier::before {
  background: rgba(244, 165, 28, 0.13);
}

.guide-role-supplier .guide-role-icon {
  background: linear-gradient(135deg, var(--app-accent), #d98908);
  color: #172335;
}

.guide-role-card-top {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  position: relative;
}

.guide-role-count {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--app-line);
  border-radius: 999px;
  color: var(--app-muted);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.4rem 0.75rem;
}

.guide-role-card h2,
.guide-role-card > p,
.guide-role-topics,
.guide-role-card > .btn {
  position: relative;
}

.guide-role-topics {
  display: grid;
  gap: 0.7rem;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.guide-role-topics li {
  align-items: flex-start;
  display: flex;
  gap: 0.55rem;
}

.guide-role-topics i {
  color: var(--app-success);
  font-size: 1.1rem;
}

.guide-how-item {
  height: 100%;
  padding: 0.5rem;
  position: relative;
  text-align: center;
}

.guide-how-item > span {
  color: rgba(15, 58, 95, 0.1);
  font-family: "Bebas Neue", sans-serif;
  font-size: 3.5rem;
  left: 50%;
  line-height: 1;
  position: absolute;
  top: -0.2rem;
  transform: translateX(-50%);
}

.guide-how-item > i {
  color: var(--app-primary);
  display: block;
  font-size: 2rem;
  margin: 0.7rem 0 1rem;
  position: relative;
}

.guide-role-switch {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--app-line);
  border-radius: 999px;
  padding: 0.45rem;
  width: fit-content;
}

.guide-role-switch .btn {
  margin: 0;
}

.guide-layout {
  align-items: start;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(215px, 255px) minmax(0, 1fr);
}

.guide-toc {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--app-line);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(16, 32, 51, 0.06);
  max-height: calc(100vh - 7rem);
  overflow-y: auto;
  padding: 1rem;
  position: sticky;
  top: 6rem;
  z-index: 5;
}

.guide-toc-title {
  color: var(--app-primary);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}

.guide-toc-link {
  align-items: center;
  border-radius: 11px;
  color: var(--app-muted);
  display: flex;
  font-size: 0.86rem;
  font-weight: 700;
  gap: 0.55rem;
  padding: 0.58rem 0.65rem;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.guide-toc-link span {
  color: var(--app-accent);
  font-family: "Bebas Neue", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.guide-toc-link:hover,
.guide-toc-link.active {
  background: #eef6fb;
  color: var(--app-primary);
  transform: translateX(2px);
}

.guide-content {
  display: grid;
  gap: 1.5rem;
  min-width: 0;
}

.guide-flow {
  background: var(--app-surface);
  border: 1px solid var(--app-line);
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(16, 32, 51, 0.065);
  overflow: hidden;
  padding: clamp(1.25rem, 3vw, 2rem);
  scroll-margin-top: 6.5rem;
  transition: border-color 220ms ease, box-shadow 220ms ease, opacity 420ms ease, transform 420ms ease;
}

.guide-flow:target {
  border-color: rgba(244, 165, 28, 0.65);
  box-shadow: 0 18px 42px rgba(244, 165, 28, 0.14);
}

.guide-flow-header {
  align-items: flex-start;
  border-bottom: 1px solid var(--app-line);
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
}

.guide-flow-number {
  align-items: center;
  background: linear-gradient(135deg, var(--app-primary), var(--app-primary-2));
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(15, 58, 95, 0.16);
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.5rem;
  height: 3.25rem;
  justify-content: center;
  letter-spacing: 0.06em;
  width: 3.25rem;
}

.guide-flow-kicker {
  color: var(--app-accent);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.guide-flow-header h2 {
  margin-bottom: 0.35rem;
}

.guide-flow-grid {
  align-items: center;
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
}

.guide-instructions {
  min-width: 0;
}

.guide-steps {
  counter-reset: guide-step;
  display: grid;
  gap: 0.9rem;
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.guide-steps li {
  counter-increment: guide-step;
  min-height: 2rem;
  padding-left: 2.6rem;
  position: relative;
}

.guide-steps li::before {
  align-items: center;
  background: #edf4fa;
  border: 1px solid #d5e4f0;
  border-radius: 10px;
  color: var(--app-primary);
  content: counter(guide-step);
  display: flex;
  font-size: 0.8rem;
  font-weight: 900;
  height: 2rem;
  justify-content: center;
  left: 0;
  position: absolute;
  top: -0.1rem;
  width: 2rem;
}

.guide-callout {
  align-items: flex-start;
  border: 1px solid var(--app-line);
  border-left-width: 4px;
  border-radius: 13px;
  display: flex;
  font-size: 0.9rem;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
}

.guide-callout > i {
  flex: 0 0 auto;
  font-size: 1.15rem;
  margin-top: 0.1rem;
}

.guide-callout.info {
  background: #eef7fc;
  border-left-color: #2687b8;
  color: #174d68;
}

.guide-callout.warning {
  background: #fff8e8;
  border-left-color: var(--app-accent);
  color: #66470c;
}

.guide-callout.success {
  background: #edf8f4;
  border-left-color: var(--app-success);
  color: #105f48;
}

.guide-visual {
  background:
    radial-gradient(circle at top right, rgba(244, 165, 28, 0.18), transparent 40%),
    linear-gradient(145deg, #0d2943, #164e73);
  border-radius: 22px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  min-width: 0;
  padding: clamp(0.75rem, 2.5vw, 1.35rem);
}

.guide-window {
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 15px;
  box-shadow: 0 20px 45px rgba(4, 18, 31, 0.28);
  color: var(--app-ink);
  overflow: hidden;
}

.guide-window-bar {
  align-items: center;
  background: #eef3f7;
  border-bottom: 1px solid #dce6ee;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: auto 1fr auto;
  min-height: 2.6rem;
  padding: 0.55rem 0.75rem;
}

.guide-window-dots {
  color: #91a2b2;
  display: inline-flex;
  font-size: 0.58rem;
  gap: 0.25rem;
  letter-spacing: 0.1em;
}

.guide-window-dots i {
  background: #95a6b6;
  border-radius: 50%;
  display: block;
  height: 0.48rem;
  width: 0.48rem;
}

.guide-window-dots i:first-child { background: #e96d62; }
.guide-window-dots i:nth-child(2) { background: #e7b64c; }
.guide-window-dots i:nth-child(3) { background: #61b77a; }

.guide-window-title {
  color: #526678;
  font-size: 0.75rem;
  font-weight: 750;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guide-window-body {
  display: grid;
  gap: 0.8rem;
  padding: clamp(1rem, 2.5vw, 1.35rem);
}

.visual-field {
  display: grid;
  flex: 1 1 0;
  gap: 0.3rem;
  min-width: 0;
}

.visual-label {
  color: #718092;
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.visual-input,
.visual-select {
  align-items: center;
  background: #fff;
  border: 1px solid #d7e1ea;
  border-radius: 9px;
  color: #32475a;
  display: flex;
  font-size: 0.82rem;
  justify-content: space-between;
  min-height: 2.35rem;
  overflow-wrap: anywhere;
  padding: 0.55rem 0.7rem;
}

.visual-select {
  background: #f8fafc;
}

.visual-button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 800;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.55rem 0.85rem;
  text-align: center;
}

.visual-button.primary {
  background: linear-gradient(135deg, var(--app-primary), var(--app-primary-2));
  color: #fff;
}

.visual-button.success {
  background: linear-gradient(135deg, var(--app-success), #20a77a);
  color: #fff;
}

.visual-button.outline {
  background: #fff;
  border-color: #bfcfdd;
  color: var(--app-primary);
}

.visual-row {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  min-width: 0;
}

.visual-row > * {
  min-width: 0;
}

.visual-offer {
  background: #f8fafc;
  border: 1px solid #dce6ee;
  border-radius: 13px;
  padding: 0.9rem;
}

.visual-price {
  color: var(--app-primary);
  display: grid;
  flex: 0 0 auto;
  font-size: 0.95rem;
  text-align: right;
}

.visual-price strong {
  font-size: 1.15rem;
}

.visual-price span {
  color: #718092;
  font-size: 0.65rem;
}

.visual-status {
  background: rgba(19, 138, 101, 0.12);
  border-radius: 999px;
  color: var(--app-success);
  display: inline-flex;
  font-size: 0.7rem;
  font-weight: 850;
  padding: 0.3rem 0.6rem;
  width: fit-content;
}

.visual-total {
  align-items: center;
  background: #eef5fa;
  border-radius: 11px;
  display: flex;
  flex: 1 1 auto;
  gap: 0.65rem;
  justify-content: space-between;
  padding: 0.7rem 0.8rem;
}

.visual-total span {
  color: #66798a;
  font-size: 0.76rem;
}

.visual-total strong {
  color: var(--app-primary);
  font-size: 1rem;
}

.visual-balance {
  align-items: center;
  background: linear-gradient(135deg, #eef6fb, #edf8f4);
  border: 1px solid #d5e5e7;
  border-radius: 13px;
  display: flex;
  gap: 0.8rem;
  justify-content: space-between;
  padding: 0.85rem 1rem;
}

.visual-balance > i {
  color: var(--app-primary);
  font-size: 1.45rem;
}

.visual-balance span {
  color: #66798a;
  display: grid;
  font-size: 0.72rem;
}

.visual-balance strong {
  color: var(--app-primary);
  font-size: 1.15rem;
}

.visual-qr {
  color: var(--app-primary);
  font-size: clamp(5.5rem, 13vw, 8rem);
  line-height: 1;
}

.visual-code {
  background: #f2f5f7;
  border: 1px dashed #aabac8;
  border-radius: 10px;
  color: #243b50;
  font-family: "Courier New", monospace;
  font-size: clamp(1rem, 3vw, 1.45rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  padding: 0.65rem;
  text-align: center;
}

.visual-divider {
  align-items: center;
  color: #8a98a6;
  display: flex;
  font-size: 0.7rem;
  gap: 0.6rem;
  margin: 0.1rem 0;
}

.visual-divider::before,
.visual-divider::after {
  background: #e0e7ed;
  content: "";
  flex: 1;
  height: 1px;
}

.visual-divider:empty::after {
  display: none;
}

.visual-progress {
  display: grid;
  gap: 0.4rem;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
}

.visual-progress-step {
  align-items: center;
  background: #edf1f4;
  border-radius: 9px;
  color: #788796;
  display: flex;
  font-size: 0.68rem;
  font-weight: 750;
  gap: 0.35rem;
  justify-content: center;
  min-height: 2.1rem;
  padding: 0.4rem;
  text-align: center;
}

.visual-progress-step.done {
  background: rgba(19, 138, 101, 0.12);
  color: var(--app-success);
}

.visual-progress-step.active {
  background: rgba(21, 95, 143, 0.12);
  box-shadow: inset 0 0 0 1px rgba(21, 95, 143, 0.22);
  color: var(--app-primary);
}

.visual-table {
  border-collapse: collapse;
  font-size: 0.72rem;
  width: 100%;
}

.visual-table th,
.visual-table td {
  border-bottom: 1px solid #e1e8ee;
  padding: 0.55rem 0.45rem;
  text-align: left;
  white-space: nowrap;
}

.visual-table th {
  color: #718092;
  font-size: 0.63rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.visual-metric {
  background: #f5f8fa;
  border: 1px solid #e0e8ee;
  border-radius: 11px;
  display: grid;
  flex: 1 1 0;
  min-width: 0;
  padding: 0.7rem;
}

.visual-metric span {
  color: #718092;
  font-size: 0.66rem;
}

.visual-metric strong {
  color: var(--app-primary);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

@media (max-width: 1199.98px) {
  .guide-flow-grid {
    grid-template-columns: 1fr;
  }

  .guide-visual {
    margin-left: auto;
    margin-right: auto;
    max-width: 680px;
    width: 100%;
  }
}

@media (max-width: 991.98px) {
  .guide-layout {
    grid-template-columns: 1fr;
  }

  .guide-toc {
    max-height: none;
    overflow: hidden;
    position: static;
  }

  .guide-toc .nav {
    flex-direction: row !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }

  .guide-toc-link {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

@media (max-width: 767.98px) {
  .guide-entry-banner,
  .guide-support-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .guide-entry-banner .btn,
  .guide-support-strip .btn {
    width: 100%;
  }

  .guide-role-switch {
    border-radius: 18px;
    width: 100%;
  }

  .guide-role-switch .btn {
    flex: 1 1 auto;
  }

  .guide-flow {
    border-radius: 18px;
  }

  .guide-flow-header {
    gap: 0.75rem;
  }

  .guide-flow-number {
    border-radius: 12px;
    font-size: 1.2rem;
    height: 2.7rem;
    width: 2.7rem;
  }

  .visual-row {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .visual-row > .visual-field,
  .visual-row > .visual-button,
  .visual-row > .visual-metric,
  .visual-row > .visual-total,
  .visual-row > .visual-select,
  .visual-row > .visual-input {
    flex: 1 1 130px;
  }
}

@media print {
  .guide-role-switch,
  .guide-toc,
  .guide-flow .btn,
  .guide-support-strip {
    display: none !important;
  }

  .guide-layout,
  .guide-flow-grid {
    display: block;
  }

  .guide-flow {
    break-inside: avoid;
    box-shadow: none;
    margin-bottom: 1rem;
  }
}
