:root {
  --sidebar-width: 260px;
}

html { font-size: 16px; }

body.app-shell {
  background-color: #f5f7fb;
  color: #212529;
}

body.app-shell.immersive-shell {
  background-color: #f5f7fb;
  min-height: 100vh;
}

body.app-shell.immersive-shell .app-wrapper {
  margin-left: 0;
  background: transparent;
}

body.app-shell.immersive-shell .app-sidebar,
body.app-shell.immersive-shell .app-sidebar-backdrop {
  display: none !important;
}

body.app-shell.immersive-shell--auth {
  background: radial-gradient(160% 160% at 50% -20%, rgba(59, 130, 246, 0.25) 0%, rgba(148, 163, 184, 0.12) 40%, rgba(248, 250, 252, 1) 85%),
              linear-gradient(180deg, #f8fafc 0%, #eef2f6 100%);
}

body.app-shell.immersive-shell--auth .auth-page {
  background: transparent;
}

body.app-shell.immersive-shell--pay {
  background: radial-gradient(120% 120% at 50% 0%, rgba(59, 130, 246, 0.08) 0%, rgba(15, 23, 42, 0) 55%), #f4f7fb;
}

body.app-shell.immersive-shell--pay .pay-page {
  background: transparent;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem rgba(255, 255, 255, 0.8), 0 0 0 0.2rem rgba(13, 110, 253, 0.5);
}

.app-sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--sidebar-width);
  background: linear-gradient(180deg, #111827 0%, #0b1220 100%);
  color: #e5e7eb;
  padding: 2rem 1.5rem;
  overflow-y: auto;
  box-shadow: rgba(15, 23, 42, 0.35) 4px 0 24px;
  transition: transform 0.3s ease;
  z-index: 1040;
}

.app-sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.app-sidebar-logo {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.75rem;
}

.app-sidebar-brand {
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-sidebar-brand:hover,
.app-sidebar-brand:focus {
  color: #fff;
  text-decoration: none;
}

.app-sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 1035;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

body.sidebar-open .app-sidebar-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.app-nav-section + .app-nav-section {
  margin-top: 1.5rem;
}

.app-nav-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.75rem;
}

.app-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.85rem;
  border-radius: 0.8rem;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.app-nav-link i {
  font-size: 1.1rem;
  opacity: 0.85;
}

.app-nav-link:hover,
.app-nav-link:focus {
  color: #fff;
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.14);
}

.app-nav-link.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(13, 110, 253, 0.4) 0%, rgba(37, 99, 235, 0.2) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.app-wrapper {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f5f7fb;
}

.app-topbar {
  background: linear-gradient(180deg, rgba(8, 15, 32, 0.94) 0%, rgba(8, 15, 32, 0.88) 100%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  position: sticky;
  top: 0;
  z-index: 1020;
  box-shadow: 0 18px 44px -28px rgba(15, 23, 42, 0.75);
  padding-block: 0.4rem;
  overflow: visible;
}

.app-topbar-inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  min-height: 60px;
}

.app-topbar-start,
.app-topbar-actions,
.app-topbar-lang {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.app-topbar-start {
  justify-self: start;
}

.app-topbar-center {
  display: flex;
  justify-content: center;
  min-width: 0;
  justify-self: center;
}

.app-topbar-actions {
  justify-self: end;
  justify-content: flex-end;
  gap: 0.6rem;
  flex-wrap: nowrap;
}

.app-topbar-lang {
  position: relative;
  justify-self: end;
}

.app-topbar-account {
  position: relative;
}

.app-topbar .navbar-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.94rem;
  padding: 0;
  color: #f8fafc;
  white-space: nowrap;
}

.app-topbar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #e2e8f0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.65) 0%, rgba(15, 23, 42, 0.45) 100%);
  border: 1px solid rgba(148, 163, 184, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.app-topbar-toggle:hover,
.app-topbar-toggle:focus {
  color: #fff;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.38) 0%, rgba(37, 99, 235, 0.32) 100%);
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 18px 36px -26px rgba(59, 130, 246, 0.8);
}

.app-topbar-actions > * {
  flex-shrink: 0;
}

.app-topbar-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1.05rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #e2e8f0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.72) 0%, rgba(15, 23, 42, 0.52) 100%);
  border: 1px solid rgba(148, 163, 184, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.app-topbar-chip i {
  font-size: 1rem;
}

.app-topbar-chip:hover,
.app-topbar-chip:focus {
  color: #fff;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.4) 0%, rgba(37, 99, 235, 0.22) 100%);
  border-color: rgba(96, 165, 250, 0.6);
  box-shadow: 0 20px 36px -24px rgba(59, 130, 246, 0.75);
}

.app-topbar-chip:focus {
  box-shadow: 0 0 0 0.12rem rgba(148, 163, 184, 0.4), 0 0 0 0.28rem rgba(59, 130, 246, 0.35);
}

.app-topbar-username {
  display: inline-block;
  max-width: 9rem;
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-topbar-dropdown-menu {
  margin-top: 0.65rem;
  border-radius: 0.85rem;
  min-width: 9.5rem;
  padding-block: 0.35rem;
  overflow: hidden;
  box-shadow: 0 28px 54px -26px rgba(15, 23, 42, 0.85);
  z-index: 1050;
}

.app-topbar .dropdown-menu-dark {
  background: rgba(8, 15, 32, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.app-topbar .dropdown-item-text {
  color: #a5b4fc;
  letter-spacing: 0.12em;
}

.app-topbar .dropdown-menu-dark .dropdown-item {
  color: #e2e8f0;
  font-weight: 500;
}

.app-topbar .dropdown-menu-dark .dropdown-item.active,
.app-topbar .dropdown-menu-dark .dropdown-item:active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.36) 0%, rgba(96, 165, 250, 0.2) 100%);
}

@media (min-width: 768px) {
  .app-topbar-inner {
    min-height: 64px;
    gap: 1rem;
  }

  .app-topbar-center {
    justify-content: flex-start;
    justify-self: flex-start;
  }

  .app-topbar-toggle {
    width: 44px;
    height: 44px;
  }

  .app-topbar-username {
    max-width: 11rem;
  }
}

@media (max-width: 575.98px) {
  .app-topbar-inner {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "start brand"
      "lang actions";
    gap: 0.5rem;
  }

  .app-topbar-start {
    grid-area: start;
  }

  .app-topbar-center {
    grid-area: brand;
    justify-content: flex-end;
    justify-self: flex-end;
    width: auto;
  }

  .app-topbar-actions {
    grid-area: actions;
    justify-self: flex-end;
    width: auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.35rem;
    row-gap: 0.25rem;
  }

  .app-topbar-username {
    max-width: 7.2rem;
  }

  .app-topbar .navbar-brand {
    width: auto;
    text-align: right;
    font-size: 0.86rem;
    letter-spacing: 0.18em;
  }

  .app-topbar-lang {
    grid-area: lang;
    justify-self: flex-start;
  }

  .privacy-hero {
    padding: 2rem 1.5rem;
  }

  .privacy-hero__title {
    font-size: clamp(1.9rem, 8vw, 2.2rem);
  }

  .privacy-hero__lead {
    font-size: 1rem;
    line-height: 1.6;
  }

  .privacy-hero__meta {
    flex-wrap: wrap;
    row-gap: 0.5rem;
  }
}

@media (max-width: 420px) {
  .app-topbar-chip {
    padding: 0.38rem 0.8rem;
    font-size: 0.8rem;
  }

  .app-topbar-actions {
    gap: 0.3rem;
  }

  .btn-modern-secondary,
  .btn-modern-primary {
    padding-inline: 1rem;
    font-size: 0.84rem;
  }
}

.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.app-content {
  flex: 1;
}

.app-content-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.app-content-inner--fluid {
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}

.app-footer {
  background-color: #0f172a;
  color: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.app-footer .link-light {
  color: #e5e7eb;
  text-decoration: underline;
}

#toastContainer {
  z-index: 1090;
}

.page-title {
  font-size: clamp(1.75rem, 1.3rem + 1vw, 2.4rem);
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.badge.text-bg-success {
  background-color: #16a34a;
  color: #ebfff3;
}

.badge.text-bg-warning {
  background-color: #f59f00;
  color: #1f1300;
}

.badge.text-bg-danger {
  background-color: #f03e3e;
  color: #fff5f5;
}

.badge.text-bg-info {
  background-color: #0ea5e9;
  color: #001f2d;
}

.badge.text-bg-secondary {
  background-color: #64748b;
  color: #f8fafc;
}

.table tbody tr td {
  background-color: #ffffff;
}

.table tbody tr:nth-of-type(odd) td {
  background-color: #f8fafc;
}

.table.table-hover tbody tr:hover {
  background-color: rgba(15, 23, 42, 0.04);
}

.btn-icon {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.55rem;
}

.btn-icon.btn-sm {
  width: 2rem;
  height: 2rem;
}

.btn-icon i {
  font-size: 1rem;
  color: inherit;
}

.btn-icon.btn-outline-secondary {
  border-color: rgba(148, 163, 184, 0.4);
  color: #1f2937;
  background-color: #fff;
}

.btn-icon.btn-outline-secondary:hover,
.btn-icon.btn-outline-secondary:focus {
  background-color: #e2e8f0;
  color: #111827;
  border-color: rgba(148, 163, 184, 0.6);
}

.btn-icon.btn-outline-primary {
  border-color: rgba(59, 130, 246, 0.5);
  color: #1d4ed8;
  background-color: #f8fafc;
}

.btn-icon.btn-outline-primary:hover,
.btn-icon.btn-outline-primary:focus {
  background-color: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.8);
  color: #1e40af;
}

.btn-icon.btn-danger {
  background-color: #ef4444;
  border-color: #ef4444;
  color: #fff;
}

.btn-icon.btn-danger:hover,
.btn-icon.btn-danger:focus {
  background-color: #dc2626;
  border-color: #dc2626;
}

.btn-icon.btn-outline-secondary i,
.btn-icon.btn-outline-primary i,
.btn-icon.btn-danger i {
  color: inherit;
}

.btn-icon.is-loading i {
  animation: btn-icon-spin 0.9s linear infinite;
}

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

.btn-pill {
  border-radius: 999px;
  padding-inline: 1.4rem;
  font-weight: 600;
}

.btn-modern-secondary,
.btn-modern-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.18s ease;
}

.btn-modern-secondary {
  padding: 0.48rem 1.3rem;
  color: #e2e8f0;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.68) 0%, rgba(17, 24, 39, 0.52) 100%);
  border: 1px solid rgba(148, 163, 184, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn-modern-secondary:hover,
.btn-modern-secondary:focus {
  color: #fff;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.32) 0%, rgba(17, 24, 39, 0.62) 100%);
  border-color: rgba(96, 165, 250, 0.45);
  box-shadow: 0 20px 38px -26px rgba(59, 130, 246, 0.65);
}

.btn-modern-primary {
  padding: 0.48rem 1.4rem;
  color: #fff;
  background-color: #2563eb;
  border: 1px solid #1d4ed8;
  box-shadow: 0 16px 30px -20px rgba(37, 99, 235, 0.7);
}

.btn-modern-primary:hover,
.btn-modern-primary:focus {
  color: #fff;
  background-color: #1d4ed8;
  border-color: #1e40af;
  box-shadow: 0 18px 34px -20px rgba(29, 78, 216, 0.72);
}

.btn-ghost-light {
  color: #f8fafc;
  background-color: rgba(248, 250, 252, 0.14);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.btn-ghost-light:hover,
.btn-ghost-light:focus {
  color: #fff;
  background-color: rgba(248, 250, 252, 0.22);
  border-color: rgba(248, 250, 252, 0.45);
}

.btn-soft-primary {
  background: rgba(59, 130, 246, 0.28);
  border: 1px solid rgba(59, 130, 246, 0.45);
  color: #f8fafc;
}

.btn-soft-primary:hover,
.btn-soft-primary:focus {
  background: rgba(59, 130, 246, 0.4);
  color: #fff;
  border-color: rgba(59, 130, 246, 0.6);
}

@media (prefers-reduced-motion: reduce) {
  .app-topbar-toggle,
  .app-topbar-chip,
  .btn-modern-secondary,
  .btn-modern-primary {
    transition: none;
  }
}

.pay-page {
  background: radial-gradient(120% 120% at 50% 0%, rgba(59, 130, 246, 0.08) 0%, rgba(15, 23, 42, 0) 55%), #f4f7fb;
  padding-inline: clamp(1rem, 5vw, 3rem);
}

.pay-terminal {
  max-width: 720px;
  margin: 0 auto;
}

.pay-terminal__surface {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  padding: clamp(2.5rem, 6vw, 3.75rem);
  text-align: center;
}

.pay-terminal__status {
  display: flex;
  justify-content: center;
  width: 100%;
}

.pay-terminal__surface.pay-surface--compact {
  padding: clamp(2.5rem, 6vw, 3.75rem);
}

.pay-terminal__icon {
  width: clamp(5.4rem, 8vw, 7rem);
  height: clamp(5.4rem, 8vw, 7rem);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(2.5rem, 6vw, 3.1rem);
  box-shadow: 0 22px 55px -28px rgba(15, 23, 42, 0.45);
}

.pay-terminal__icon--success {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.18) 0%, rgba(16, 185, 129, 0.32) 100%);
  color: #047857;
}

.pay-terminal__icon--warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22) 0%, rgba(249, 115, 22, 0.3) 100%);
  color: #b45309;
}

.pay-terminal__icon--danger {
  background: linear-gradient(135deg, rgba(248, 113, 113, 0.22) 0%, rgba(220, 38, 38, 0.32) 100%);
  color: #b91c1c;
}

.pay-terminal__icon--info {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.22) 0%, rgba(37, 99, 235, 0.32) 100%);
  color: #1d4ed8;
}

.pay-terminal__title {
  font-size: clamp(1.9rem, 4vw, 2.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin: 0;
}

.pay-terminal__subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: #475569;
  margin: 0;
  max-width: 44ch;
}

.pay-terminal__details {
  width: 100%;
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.pay-terminal__detail {
  background: rgba(148, 163, 184, 0.1);
  border-radius: 22px;
  padding: 1.25rem 1.5rem;
  text-align: left;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.14);
}

.pay-terminal__detail-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 0.4rem;
}

.pay-terminal__detail-value {
  font-size: 1.08rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
  word-break: break-word;
}

.pay-terminal__detail-value .currency {
  font-weight: 500;
  color: #64748b;
  margin-left: 0.35rem;
}

.pay-terminal__detail-value--with-action {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pay-terminal__copy {
  padding: 0.25rem;
  line-height: 1;
  color: #0f172a;
  text-decoration: none;
}

.pay-terminal__copy:hover,
.pay-terminal__copy:focus {
  color: #1d4ed8;
  text-decoration: none;
}

.pay-terminal__copy .bi {
  font-size: 1.05rem;
}

.pay-terminal__note {
  font-size: 0.96rem;
  color: #475569;
  margin: 0;
  max-width: 46ch;
}

.pay-terminal__actions {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.pay-terminal__action {
  min-width: 200px;
}

.pay-terminal__link {
  color: #2563eb;
  word-break: break-word;
}

.pay-terminal__link:hover,
.pay-terminal__link:focus {
  color: #1d4ed8;
}

.pay-terminal--success .pay-terminal__surface {
  border-top: 4px solid rgba(34, 197, 94, 0.6);
}

.pay-terminal--expired .pay-terminal__surface {
  border-top: 4px solid rgba(245, 158, 11, 0.58);
}

.pay-terminal--partial .pay-terminal__surface {
  border-top: 4px solid rgba(250, 204, 21, 0.58);
}

.pay-terminal--overpaid .pay-terminal__surface {
  border-top: 4px solid rgba(59, 130, 246, 0.6);
}

.pay-terminal--cancelled .pay-terminal__surface {
  border-top: 4px solid rgba(248, 113, 113, 0.64);
}

.pay-terminal--public .pay-terminal__surface {
  max-width: 780px;
  margin: 0 auto;
}

.invoice-terminal .pay-terminal__surface {
  max-width: 920px;
  margin: 0 auto;
}

.invoice-panels {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.25rem);
  grid-template-columns: minmax(0, 1fr);
}

.invoice-panel .card-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin-bottom: 1.5rem;
}

.invoice-panel dl dt {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
}

.invoice-panel dl dd {
  font-weight: 600;
  color: #0f172a;
}

.invoice-panel dl dd .currency {
  font-weight: 500;
  color: #64748b;
  margin-left: 0.35rem;
}

@media (min-width: 992px) {
  .invoice-panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.pay-layout {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.25rem);
}

.pay-layout--single {
  max-width: 760px;
}

.pay-layout--two {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "aside"
    "main";
}

.pay-layout__main {
  grid-area: main;
}

.pay-layout__aside {
  grid-area: aside;
}

@media (min-width: 992px) {
  .pay-layout--two {
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.88fr);
    grid-template-areas: "main aside";
  }
}

.pay-surface {
  background: #ffffff;
  border-radius: 28px;
  padding: clamp(1.9rem, 4vw, 2.9rem);
  box-shadow: 0 40px 90px -45px rgba(15, 23, 42, 0.35), 0 18px 40px -30px rgba(15, 23, 42, 0.2);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.pay-surface--compact {
  padding: clamp(1.6rem, 3vw, 2.3rem);
}

.pay-surface--dark {
  background: radial-gradient(120% 140% at 10% -10%, rgba(96, 165, 250, 0.3) 0%, rgba(15, 23, 42, 0) 55%), linear-gradient(180deg, #0f172a 0%, #1f2937 100%);
  color: #e2e8f0;
  box-shadow: 0 35px 60px -30px rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.08);
}

.pay-surface--dark .text-muted {
  color: rgba(226, 232, 240, 0.72) !important;
}

.pay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(1.5rem, 4vw, 2rem);
}

.pay-header-group {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pay-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background-color: rgba(15, 23, 42, 0.06);
  color: #475569;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}

.pay-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  background-color: rgba(15, 23, 42, 0.06);
  color: #0f172a;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.pay-status-pill i {
  font-size: 1.1rem;
  color: #1d4ed8;
}

.pay-status-pill.text-bg-success {
  background: rgba(22, 163, 74, 0.16);
  color: #166534;
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.25);
}

.pay-status-pill.text-bg-success i {
  color: #16a34a;
}

.pay-status-pill.text-bg-warning {
  background: rgba(245, 159, 0, 0.18);
  color: #92400e;
  box-shadow: inset 0 0 0 1px rgba(245, 159, 0, 0.25);
}

.pay-status-pill.text-bg-warning i {
  color: #f59f00;
}

.pay-status-pill.text-bg-danger {
  background: rgba(240, 62, 62, 0.18);
  color: #b91c1c;
  box-shadow: inset 0 0 0 1px rgba(240, 62, 62, 0.25);
}

.pay-status-pill.text-bg-danger i {
  color: #f03e3e;
}

.pay-status-pill.text-bg-info {
  background: rgba(14, 165, 233, 0.18);
  color: #075985;
  box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.25);
}

.pay-status-pill.text-bg-info i {
  color: #0ea5e9;
}

.pay-status-pill.text-bg-secondary {
  background: rgba(100, 116, 139, 0.15);
  color: #1e293b;
  box-shadow: inset 0 0 0 1px rgba(100, 116, 139, 0.25);
}

.pay-status-pill.text-bg-secondary i {
  color: #475569;
}

.pay-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #475569;
  font-size: 0.9rem;
}

.pay-meta time {
  font-variant-numeric: tabular-nums;
}

.pay-section + .pay-section {
  margin-top: clamp(1.3rem, 3vw, 1.8rem);
}

.pay-amount {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.14) 0%, rgba(79, 70, 229, 0.12) 100%);
  border-radius: 22px;
  padding: clamp(1.4rem, 3.5vw, 1.9rem);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.08);
}

.pay-amount-value {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  font-size: clamp(2.3rem, 4.5vw, 3.05rem);
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.pay-amount-actual {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0.8rem 1.1rem;
  border-radius: 16px;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(217, 119, 6, 0.25);
}

.pay-amount-actual-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: #92400e;
}

.pay-amount-actual-value {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  font-weight: 600;
  color: #0f172a;
}

.pay-amount-actual-value .currency {
  font-size: 0.9rem;
  color: #475569;
}

.pay-amount-value .currency {
  font-size: clamp(1.15rem, 2.5vw, 1.3rem);
  font-weight: 600;
  color: #1d4ed8;
}

.pay-amount-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.pay-countdown {
  background: rgba(15, 23, 42, 0.05);
  border-radius: 20px;
  padding: 1.25rem 1.5rem;
  display: grid;
  gap: 0.35rem;
}

.pay-countdown-value {
  font-size: clamp(1.7rem, 3.5vw, 2.1rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

.pay-progress {
  display: grid;
  gap: 0.35rem;
}

.pay-progress .progress {
  background-color: rgba(148, 163, 184, 0.22);
  height: 10px;
  border-radius: 999px;
}

.pay-progress .progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, #60a5fa 0%, #2563eb 100%);
}

.pay-progress .progress-bar.bg-success {
  background: linear-gradient(90deg, #34d399 0%, #059669 100%);
}

.pay-progress .progress-bar.bg-info {
  background: linear-gradient(90deg, #38bdf8 0%, #0ea5e9 100%);
}

.pay-steps {
  display: grid;
  gap: 0.65rem;
}

.pay-steps-title {
  display: none;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.pay-steps-title + .pay-steps-toggle {
  margin-top: 0.4rem;
}

.pay-steps-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.85rem 1.1rem;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.05);
  background: rgba(15, 23, 42, 0.04);
  color: #0f172a;
  font-weight: 600;
  line-height: 1.25;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.pay-steps-toggle:hover {
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
}

.pay-steps-toggle:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35);
}

.pay-steps-toggle .bi {
  transition: transform 0.2s ease;
  font-size: 1.1rem;
}

.pay-steps-toggle:not(.collapsed) .bi {
  transform: rotate(-180deg);
}

.pay-steps-collapse {
  margin-top: 0.65rem;
}

.pay-step-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.pay-step-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(15, 23, 42, 0.05);
  border-radius: 16px;
  padding: 0.85rem 1.1rem;
  font-weight: 500;
  color: #0f172a;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.05);
}

.pay-step-list .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background-color: #1d4ed8;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  flex-shrink: 0;
}

@media (min-width: 992px) {
  .pay-steps-toggle {
    display: none;
  }

  .pay-steps-title {
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: #475569;
  }

  .pay-steps-title + .pay-steps-toggle {
    margin-top: 0;
  }

  .pay-steps-collapse {
    display: block !important;
    height: auto !important;
    visibility: visible;
    margin-top: 0.8rem;
  }
}

.pay-aside {
  display: grid;
  align-content: start;
}

.pay-aside-panel {
  display: grid;
  gap: 1.25rem;
}

.pay-address-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(15, 23, 42, 0.35);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  backdrop-filter: blur(6px);
}

.pay-address-text {
  font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', 'Courier New', monospace;
  word-break: break-all;
  font-size: 0.95rem;
}

.pay-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #e2e8f0;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
}

.pay-copy-btn:hover,
.pay-copy-btn:focus {
  color: #fff;
  border-color: rgba(148, 163, 184, 0.5);
  text-decoration: none;
}

.pay-qr-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.45);
  border-radius: 18px;
  padding: clamp(1.3rem, 3vw, 1.75rem);
}

.pay-qr-wrapper canvas {
  width: 220px;
  height: 220px;
}

.pay-footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  margin-top: clamp(1.8rem, 4vw, 2.4rem);
  padding-top: 1.6rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.pay-footer form {
  width: 100%;
}

.pay-footer .btn {
  width: 100%;
  min-width: 0;
  font-weight: 600;
  border-radius: 999px;
  padding-inline: 1.75rem;
}

.pay-badge-muted {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: rgba(148, 163, 184, 0.9);
}

.pay-alert {
  border-radius: 16px;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(100, 116, 139, 0.22);
  background-color: rgba(148, 163, 184, 0.08);
  color: #1f2937;
  font-weight: 500;
}

.pay-alert--danger {
  background-color: rgba(248, 113, 113, 0.12);
  border-color: rgba(220, 38, 38, 0.3);
  color: #7f1d1d;
}

.pay-section--banner {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.pay-switch-btn {
  box-shadow: 0 18px 40px -20px rgba(37, 99, 235, 0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pay-switch-btn:hover,
.pay-switch-btn:focus {
  transform: translateY(-1px);
  box-shadow: 0 22px 50px -20px rgba(37, 99, 235, 0.6);
}

.pay-form {
  display: grid;
  gap: 1.5rem;
}

.pay-field {
  display: grid;
  gap: 0.65rem;
}

.pay-field-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #64748b;
}

.pay-field + .pay-field {
  margin-top: 0.85rem;
}

.pay-field:first-of-type {
  margin-top: 1rem;
}

.pay-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.pay-cta .btn {
  min-width: 160px;
  border-radius: 999px;
  padding-inline: 1.25rem;
}

.pay-note {
  font-size: 0.85rem;
  color: #64748b;
}

.pay-note--warning {
  color: #92400e;
}

.pay-divider {
  height: 1px;
  background: rgba(148, 163, 184, 0.2);
  margin: 1.5rem 0;
}

.pay-side-note {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: rgba(226, 232, 240, 0.75);
}

.pay-txhash {
  display: grid;
  gap: 0.3rem;
  margin-top: 1rem;
  word-break: break-all;
}

.pay-txhash-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: inherit;
  text-decoration: none;
  font-weight: 500;
}

.pay-txhash-link:hover {
  text-decoration: underline;
}

@media (max-width: 767.98px) {
  .pay-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .pay-countdown {
    padding: 1.1rem 1.25rem;
  }
  .pay-address-card {
    flex-direction: column;
    align-items: stretch;
  }
  .pay-copy-btn {
    justify-content: center;
  }
}

.feature .feature-icon {
  width: 56px;
  height: 56px;
}

.home-page {
  display: grid;
  gap: clamp(3rem, 6vw, 4.5rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.home-hero {
  position: relative;
  border-radius: 32px;
  padding: clamp(2.5rem, 8vw, 4.5rem);
  background: radial-gradient(140% 120% at 0% 0%, rgba(59, 130, 246, 0.28) 0%, rgba(15, 23, 42, 0) 55%),
              linear-gradient(135deg, #0f172a 0%, #1f2937 55%, #0b1120 100%);
  color: #e2e8f0;
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
  overflow: hidden;
  box-shadow: 0 45px 90px -40px rgba(15, 23, 42, 0.7);
}

.home-hero__copy {
  max-width: 540px;
  display: grid;
  gap: 1.5rem;
}

.home-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.85);
}

.home-hero__title {
  font-size: clamp(2.5rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f8fafc;
  margin: 0;
}

.home-hero__subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.25rem);
  color: rgba(226, 232, 240, 0.78);
  margin: 0;
  line-height: 1.6;
}

.home-hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.home-hero__actions .btn {
  border-radius: 999px;
  padding-inline: 1.75rem;
  font-weight: 600;
}

.home-hero__status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.home-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(15, 23, 42, 0.55);
  border-radius: 999px;
  padding: 0.6rem 1.1rem;
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.88);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.home-pill span {
  font-weight: 600;
  color: #f8fafc;
}

.home-section {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.25rem);
}

.home-section__title {
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #0f172a;
  margin: 0;
}

.home-section__subtitle {
  max-width: 640px;
  color: #64748b;
  margin: 0;
  font-size: 1rem;
}

.home-feature-grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.home-feature-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 1.6rem 1.9rem;
  box-shadow: 0 30px 60px -35px rgba(15, 23, 42, 0.25);
  border: 1px solid rgba(226, 232, 240, 0.6);
  display: grid;
  gap: 0.9rem;
}

.home-feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.home-feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  color: #0f172a;
}

.home-feature-card p {
  margin: 0;
  color: #475569;
  line-height: 1.6;
}

.home-section--alt {
  background: linear-gradient(120deg, rgba(59, 130, 246, 0.08) 0%, rgba(96, 165, 250, 0.05) 60%, rgba(226, 232, 240, 0.25) 100%);
  border-radius: 28px;
  padding: clamp(2rem, 6vw, 3rem);
}

.home-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.home-steps li {
  display: flex;
  gap: 1.1rem;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 18px;
  padding: 1.2rem 1.4rem;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.2);
  align-items: flex-start;
}

.home-steps h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #0f172a;
}

.home-steps p {
  margin: 0.35rem 0 0;
  color: #475569;
}

.step-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  flex-shrink: 0;
}

.home-highlight {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  background: #ffffff;
  border-radius: 28px;
  padding: clamp(2rem, 6vw, 3rem);
  border: 1px solid rgba(226, 232, 240, 0.6);
  box-shadow: 0 30px 60px -40px rgba(15, 23, 42, 0.3);
}

@media (min-width: 992px) {
  .home-highlight {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
  }
}

.home-highlight__list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  gap: 0.65rem;
  color: #334155;
}

.home-highlight__list li {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.home-highlight__list i {
  color: #22c55e;
}

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

.home-highlight__stat {
  background: rgba(15, 23, 42, 0.04);
  border-radius: 18px;
  padding: 1.4rem 1.2rem;
  display: grid;
  gap: 0.35rem;
  text-align: center;
}

.home-highlight__stat span {
  font-size: 1.8rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.015em;
}

.home-highlight__stat small {
  font-size: 0.9rem;
  color: #475569;
}

.home-cta {
  display: flex;
  justify-content: center;
}

.home-cta__card {
  width: 100%;
  max-width: 860px;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  border-radius: 30px;
  padding: clamp(2.2rem, 6vw, 3rem);
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0 45px 90px -40px rgba(76, 29, 149, 0.55);
}

.home-cta__card h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.home-cta__card p {
  margin: 0;
  color: rgba(226, 232, 240, 0.85);
  font-size: 1.05rem;
}

.home-cta__actions {
  display: flex;
  gap: 1rem;
}

.home-cta__actions .btn {
  border-radius: 999px;
  padding-inline: 1.9rem;
  font-weight: 600;
}

@media (max-width: 767.98px) {
  .home-hero__actions .btn,
  .home-cta__actions .btn {
    width: 100%;
  }
  .home-hero__status {
    gap: 0.5rem;
  }
}

.auth-page {
  min-height: clamp(420px, calc(100vh - 220px), 100vh);
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(160% 160% at 50% -20%, rgba(59, 130, 246, 0.25) 0%, rgba(148, 163, 184, 0.12) 40%, rgba(248, 250, 252, 1) 85%),
              linear-gradient(180deg, #f8fafc 0%, #eef2f6 100%);
  padding: clamp(2.5rem, 8vw, 4rem) 1.5rem;
}

.auth-card {
  width: 100%;
  max-width: 520px;
  background: #ffffff;
  border-radius: 28px;
  padding: clamp(2rem, 5vw, 2.6rem);
  box-shadow: 0 45px 90px -40px rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(226, 232, 240, 0.6);
  display: grid;
  gap: 1.75rem;
}

.auth-card__header {
  display: grid;
  gap: 0.75rem;
}

.auth-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: #94a3b8;
}

.auth-title {
  font-size: clamp(1.8rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.auth-subtitle {
  color: #475569;
  margin: 0;
  font-size: 1rem;
}

.auth-form {
  display: grid;
  gap: 1.2rem;
}

.auth-field {
  display: grid;
  gap: 0.5rem;
}

.auth-label {
  font-weight: 600;
  color: #0f172a;
}

.auth-card .form-control {
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  padding: 0.9rem 1.05rem;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-card .form-control:focus {
  border-color: rgba(59, 130, 246, 0.65);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18);
}

.auth-card .form-check-input {
  border-radius: 0.65rem;
  border-color: rgba(59, 130, 246, 0.45);
}

.auth-card .form-check-input:checked {
  background-color: #2563eb;
  border-color: #2563eb;
}

.auth-card .form-check-label {
  color: #475569;
  font-size: 0.9rem;
}

.auth-card__footer {
  text-align: center;
  font-size: 0.95rem;
  color: #475569;
}

.auth-card__footer a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

.auth-card__footer a:hover {
  text-decoration: underline;
}

.auth-btn-primary {
  width: 100%;
  border-radius: 999px;
  padding: 0.85rem 1.4rem;
  font-weight: 600;
}

.auth-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #64748b;
  font-size: 0.9rem;
}

@media (max-width: 991.98px) {
  .app-sidebar {
    padding: 1.75rem 1.25rem;
  }

  .app-content-inner {
    max-width: 100%;
  }
}

@media (max-width: 767.98px) {
  .app-sidebar {
    transform: translateX(-100%);
    width: 100%;
    max-width: 280px;
  }

  body.sidebar-open .app-sidebar {
    transform: translateX(0);
  }

  .app-wrapper {
    margin-left: 0;
  }

  .app-content-inner {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }
}
.pay-dropdown {
  position: relative;
  display: block;
}

.pay-dropdown.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.pay-dropdown-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: #ffffff;
  font-weight: 600;
  font-size: 0.94rem;
  color: #0f172a;
  box-shadow: none;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  position: relative;
}

.pay-dropdown-toggle:hover {
  border-color: rgba(148, 163, 184, 0.75);
}

.pay-dropdown.is-open .pay-dropdown-toggle {
  border-color: rgba(37, 99, 235, 0.65);
  box-shadow: 0 12px 26px -24px rgba(37, 99, 235, 0.75);
}

.pay-dropdown-toggle::after {
  content: "";
  position: absolute;
  inset-inline-end: 1rem;
  inset-block-start: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border-inline-end: 2px solid rgba(30, 41, 59, 0.65);
  border-block-end: 2px solid rgba(30, 41, 59, 0.65);
  transform: translateY(-50%) rotate(45deg);
  transition: transform 0.2s ease;
}

.pay-dropdown.is-open .pay-dropdown-toggle::after {
  transform: translateY(-30%) rotate(-135deg);
}

.pay-dropdown-toggle.is-disabled,
.pay-dropdown.is-disabled .pay-dropdown-toggle {
  cursor: not-allowed;
  box-shadow: none;
}

.pay-dropdown-menu {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 0.35rem);
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 18px 40px -28px rgba(15, 23, 42, 0.45);
  padding: 0.3rem 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
  z-index: 25;
}

.pay-dropdown.is-open .pay-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.pay-dropdown-option {
  border: none;
  background: transparent;
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
  color: #0f172a;
  cursor: pointer;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.pay-dropdown-option:hover,
.pay-dropdown-option:focus {
  background-color: rgba(59, 130, 246, 0.1);
  color: #1d4ed8;
  outline: none;
}

.pay-dropdown-option.is-active {
  background-color: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
}


/* Privacy page */
.privacy-page {
  max-width: 980px;
  margin: 0 auto;
  color: #0f172a;
}

.privacy-page a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

.privacy-page a:hover,
.privacy-page a:focus {
  text-decoration: underline;
}

.privacy-hero {
  background: linear-gradient(135deg, #111827 0%, #1e293b 55%, #1d4ed8 120%);
  border-radius: 1.5rem;
  padding: 3rem 3rem 2.75rem;
  color: #f8fafc;
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.25);
  position: relative;
  overflow: hidden;
}

.privacy-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 120% at 100% 0%, rgba(59, 130, 246, 0.3) 0%, rgba(15, 23, 42, 0) 60%);
  pointer-events: none;
}

.privacy-hero__badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.12);
  color: rgba(226, 232, 240, 0.9);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}

.privacy-hero__title {
  position: relative;
  font-size: clamp(2.35rem, 2.1rem + 1.2vw, 2.75rem);
  font-weight: 600;
  line-height: 1.12;
  margin-top: 1.75rem;
  margin-bottom: 1rem;
  hyphens: auto;
  word-break: break-word;
}

.privacy-hero__lead {
  position: relative;
  font-size: 1.125rem;
  line-height: 1.65;
  max-width: 56ch;
  color: rgba(241, 245, 249, 0.88);
}

.privacy-hero__meta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(6px);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
}

.privacy-hero__meta-label {
  color: rgba(226, 232, 240, 0.8);
  font-weight: 600;
}

.privacy-hero__meta-value {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.16);
  font-weight: 600;
}

.privacy-note {
  margin-top: 2.5rem;
  padding: 1.75rem 2.25rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(59, 130, 246, 0.25);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(59, 130, 246, 0.02));
  color: #1e293b;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.08);
}

.privacy-note__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.privacy-note__text {
  margin: 0;
  line-height: 1.6;
}

.privacy-section {
  margin-top: 3.5rem;
}

.privacy-section__title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #0f172a;
}

.privacy-section__intro {
  margin-bottom: 1.5rem;
  color: #475569;
  line-height: 1.65;
  max-width: 72ch;
}

.privacy-card,
.privacy-tile,
.privacy-outline,
.privacy-callout,
.privacy-list,
.privacy-ordered {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.privacy-card {
  padding: 1.8rem;
  height: 100%;
}

.privacy-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.privacy-card__body {
  margin-bottom: 0.9rem;
  color: #1f2937;
  line-height: 1.65;
}

.privacy-card__meta {
  margin: 0;
  font-size: 0.85rem;
  color: #64748b;
}

.privacy-card--subtle {
  padding: 1.4rem 1.6rem;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.05);
}

.privacy-tile {
  padding: 1.25rem 1.5rem;
  height: 100%;
  font-weight: 500;
  color: #1f2937;
  line-height: 1.55;
}

.privacy-outline {
  padding: 1.6rem 1.75rem;
  height: 100%;
  border-left: 4px solid #2563eb;
}

.privacy-outline__title {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1e3a8a;
  margin-bottom: 0.75rem;
}

.privacy-outline__body {
  margin: 0;
  color: #1f2937;
  line-height: 1.6;
}

.privacy-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  overflow: hidden;
}

.privacy-list li {
  padding: 1.05rem 1.6rem;
  color: #1f2937;
  line-height: 1.6;
  border-bottom: 1px solid #e2e8f0;
}

.privacy-list li:last-child {
  border-bottom: none;
}

.privacy-list--compact li {
  padding: 0.9rem 1.4rem;
}

.privacy-callout {
  padding: 1.4rem 1.6rem;
  border-radius: 1.25rem;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.18);
  background: rgba(37, 99, 235, 0.06);
}

.privacy-footnote {
  color: #64748b;
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

.privacy-ordered {
  counter-reset: privacyCounter;
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.privacy-ordered li {
  counter-increment: privacyCounter;
  position: relative;
  padding: 1.05rem 1.5rem 1.05rem 3.5rem;
  border-bottom: 1px solid #e2e8f0;
  color: #1f2937;
  line-height: 1.6;
}

.privacy-ordered li::before {
  content: counter(privacyCounter);
  position: absolute;
  left: 1.5rem;
  top: 1rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.privacy-ordered li:last-child {
  border-bottom: none;
}

.privacy-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}

.privacy-footer__primary {
  margin-bottom: 0.75rem;
  font-weight: 500;
  color: #1f2937;
}

.privacy-footer__secondary {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
}

@media (max-width: 767.98px) {
  .privacy-hero {
    padding: 2.4rem 2rem;
  }

  .privacy-hero__title {
    font-size: 2.2rem;
  }

  .privacy-page {
    padding-inline: 1.25rem;
  }
}
