.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
}

.site-header .container {
  width: min(calc(100% - 48px), 1360px);
}

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

.header-inner > a:first-child {
  flex: 0 0 auto;
}

.brand-logo {
  display: block;
  width: 218px;
  max-width: 100%;
  height: auto;
  max-height: 44px;
  object-fit: contain;
  object-position: left center;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-left: auto;
  white-space: nowrap;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  color: #334155;
  font-size: 0.97rem;
  font-weight: 700;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--primary);
}

.header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  margin-left: 30px;
}

.menu-button {
  display: none;
  margin-left: auto;
  border: 0;
  border-radius: 10px;
  padding: 8px;
  color: var(--text);
  background: transparent;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
}

.menu-button:hover {
  background: var(--surface-soft);
}

.menu-button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.28);
  outline-offset: 2px;
}

.currency-switch {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
}

.currency-switch button {
  border: 0;
  padding: 8px 11px;
  color: var(--muted);
  background: transparent;
  font-size: 0.78rem;
  font-weight: 850;
}

.currency-switch button.is-active {
  color: white;
  background: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.button--primary {
  color: white;
  background: var(--primary);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.18);
}

.button--primary:hover {
  background: var(--primary-dark);
}

.button--secondary {
  border-color: var(--line);
  color: var(--text);
  background: white;
}

.button--secondary:hover {
  background: var(--surface-soft);
  border-color: #cbd5e1;
}

.button--danger {
  border-color: #fecdd3;
  color: var(--danger);
  background: var(--danger-soft);
}

.button--small {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.86rem;
}

.button--large {
  min-height: 54px;
  padding: 14px 23px;
  border-radius: 14px;
}

.button--full {
  width: 100%;
}

.button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-size: 0.84rem;
  font-weight: 850;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.045);
}

.card--padded {
  padding: 26px;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 22px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--primary);
  background: var(--primary-soft);
  font-weight: 900;
}

.site-status-banner {
  border-bottom: 1px solid #fde68a;
  color: #92400e;
  background: #fffbeb;
}

.site-status-banner__inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  line-height: 1.55;
}

.site-status-banner__inner strong {
  flex: 0 0 auto;
  color: #78350f;
}

.site-status-banner--dashboard {
  margin: 0 0 20px;
  border: 1px solid #fde68a;
  border-radius: 14px;
}

.site-status-banner--dashboard .site-status-banner__inner {
  width: auto;
  margin: 0;
  padding: 13px 15px;
}

@media (max-width: 700px) {
  .site-status-banner__inner {
    flex-direction: column;
    gap: 3px;
  }
}

.notice {
  padding: 13px 15px;
  border: 1px solid;
  border-radius: 12px;
  font-size: 0.92rem;
}

.notice--info {
  border-color: #bfdbfe;
  color: #1d4ed8;
  background: #eff6ff;
}

.notice--success {
  border-color: #a7f3d0;
  color: var(--success);
  background: var(--success-soft);
}

.notice--warning {
  border-color: #fde68a;
  color: var(--warning);
  background: var(--warning-soft);
}

.notice--danger {
  border-color: #fecdd3;
  color: var(--danger);
  background: var(--danger-soft);
}

.form-card {
  width: min(100%, 560px);
  margin: 58px auto;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
}

.field label {
  color: #334155;
  font-size: 0.91rem;
  font-weight: 800;
}

.input,
.select,
.textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 11px;
  padding: 12px 13px;
  color: var(--text);
  background: white;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
  outline: 0;
}

.textarea {
  min-height: 130px;
  resize: vertical;
}

.checkbox-row {
  display: inline-flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 18px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 850;
}

.status-pill--success {
  color: var(--success);
  background: var(--success-soft);
}

.status-pill--pending {
  color: var(--warning);
  background: var(--warning-soft);
}

.status-pill--neutral {
  color: #475569;
  background: #f1f5f9;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.table th {
  color: var(--muted);
  font-size: 0.79rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.table tr:last-child td {
  border-bottom: 0;
}

.empty-state {
  padding: 44px 20px;
  text-align: center;
  color: var(--muted);
}

.empty-state strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 1.15rem;
}

.site-footer {
  padding: 58px 0 24px;
  color: white;
  background: var(--text);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(160px, 1fr) minmax(160px, 1fr);
  gap: 56px;
  align-items: start;
}

.footer-grid > div:first-child {
  min-width: 0;
}

.footer-logo {
  display: block;
  width: 244px;
  max-width: calc(100% + 18px);
  height: auto;
  max-height: 49px;
  margin-left: -18px;
  margin-bottom: 6px;
  object-fit: contain;
  object-position: left center;
}

.site-footer p,
.site-footer a {
  color: #94a3b8;
}

.site-footer a:hover {
  color: white;
}

.site-footer a:focus-visible {
  border-radius: 4px;
  outline: 3px solid rgba(96, 165, 250, 0.45);
  outline-offset: 3px;
}

.footer-links {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid #1e293b;
  color: #94a3b8;
  font-size: 0.88rem;
}


/* Production refinements */
.primary-nav a[aria-current="page"] {
  color: var(--primary);
  font-weight: 800;
}

.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

.legal-content {
  max-width: 900px;
}

.legal-content h2 {
  margin-top: 2rem;
  margin-bottom: 0.55rem;
}

.legal-content p {
  color: var(--text-soft);
}

.status-pill--danger {
  color: #991b1b;
  background: #fee2e2;
}


/* Social authentication */
.social-auth {
  display: grid;
  gap: 12px;
  margin: 24px 0 18px;
}

.social-auth-button {
  width: 100%;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
  text-align: center;
}

.social-auth-button:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  transform: translateY(-1px);
}

.social-auth-button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 25%, transparent);
  outline-offset: 2px;
}

.social-auth-button svg {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0 22px;
  color: var(--muted);
  font-size: .9rem;
}

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

.auth-divider span {
  white-space: nowrap;
}

.social-terms {
  margin: 14px 0 0;
  text-align: center;
}

.social-terms a {
  color: var(--primary);
  font-weight: 750;
}


/* Accessible authentication refinements */
.auth-card {
  width: min(100%, 570px);
  margin-block: 54px;
  padding: clamp(26px, 4vw, 36px);
}

.auth-card--wide {
  width: min(100%, 680px);
}

.auth-header {
  text-align: center;
}

.auth-header h1 {
  margin: 14px 0 10px;
  font-size: clamp(2rem, 5vw, 2.55rem);
}

.auth-header p {
  max-width: 560px;
  margin: 0 auto;
}

.auth-form {
  display: grid;
  gap: 0;
}

.auth-form .button--full {
  margin-top: 4px;
}

.password-input {
  position: relative;
}

.password-input .input {
  padding-right: 52px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 7px;
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  transform: translateY(-50%);
}

.password-toggle:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

.password-toggle:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.3);
  outline-offset: 1px;
}

.password-toggle__icon {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-toggle__slash {
  opacity: 1;
  transition: opacity 0.15s ease;
}

.password-toggle.is-visible .password-toggle__slash {
  opacity: 0;
}

.field-helper {
  margin: -5px 0 17px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.auth-consent {
  margin-top: 2px;
}

.auth-consent a,
.auth-link,
.auth-switch a {
  color: var(--primary);
  font-weight: 800;
}

.auth-consent a:hover,
.auth-link:hover,
.auth-switch a:hover {
  text-decoration: underline;
}

.auth-message-slot {
  min-height: 62px;
  display: flex;
  align-items: flex-start;
  padding-top: 12px;
}

.auth-message {
  width: 100%;
  margin: 0;
}

.label-optional {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
}

.auth-switch {
  margin: 20px 0 0;
  text-align: center;
}

.input[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(190, 18, 60, 0.08);
}

.button-spinner {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: button-spin 0.7s linear infinite;
}

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

.social-auth-button[disabled],
.button[disabled] {
  opacity: 0.68;
  transform: none;
}

.social-auth-button[aria-busy="true"],
.button[aria-busy="true"] {
  cursor: wait;
}

.social-auth-button[disabled]:not([aria-busy="true"]),
.button[disabled]:not([aria-busy="true"]) {
  cursor: not-allowed;
}


/* Clickable payment-method cards */
.payment-method-grid {
  align-items: stretch;
}

.payment-method-card {
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.payment-method-card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  transform: translateY(-3px);
}

.payment-method-card p {
  flex: 1;
}

.payment-method-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 16px;
  color: var(--primary);
  background: var(--primary-soft);
}

.payment-method-icon__svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.payment-support-notice {
  max-width: 850px;
  margin: 34px auto 0;
  text-align: center;
}


/* Calm, professional visual hierarchy */
.primary-nav a { font-weight: 550; }
.currency-switch button, .button, .eyebrow, .field label { font-weight: 600; }
.button { min-height: 48px; }
.card { box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04); }
