:root {
  --theme-accent: #2563eb;
  --theme-accent-strong: #1d4ed8;
  --theme-bg: #f3f6fb;
  --theme-bg-elevated: #ffffff;
  --theme-surface: #ffffff;
  --theme-surface-strong: #ffffff;
  --theme-surface-soft: #f7f9fc;
  --theme-surface-muted: #e7edf5;
  --theme-border: rgba(15, 23, 42, 0.08);
  --theme-border-strong: rgba(15, 23, 42, 0.14);
  --theme-text: #0f172a;
  --theme-text-soft: #334155;
  --theme-text-muted: #475569;
  --theme-success: #34d399;
  --theme-warning: #fbbf24;
  --theme-danger: #fb7185;
  --theme-info: #60a5fa;
  --theme-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
  --theme-radius-lg: 12px;
  --theme-radius-md: 10px;
  --theme-radius-sm: 8px;
  --theme-transition: 180ms ease;
  --bs-body-bg: var(--theme-bg);
  --bs-body-color: var(--theme-text);
  --bs-emphasis-color: var(--theme-text);
  --bs-heading-color: var(--theme-text);
  --bs-secondary-color: var(--theme-text-soft);
  --bs-secondary-color-rgb: 51, 65, 85;
  --bs-tertiary-color: var(--theme-text-muted);
  --bs-tertiary-color-rgb: 71, 85, 105;
  --bs-border-color: var(--theme-border);
  --bs-card-bg: var(--theme-surface);
  --bs-card-color: var(--theme-text);
  --bs-link-color: var(--theme-accent);
  --bs-link-hover-color: var(--theme-accent-strong);
}

[data-theme="dark"] {
  --theme-bg: #07111f;
  --theme-bg-elevated: #0d1726;
  --theme-surface: #111c2d;
  --theme-surface-strong: #122033;
  --theme-surface-soft: #18273d;
  --theme-surface-muted: #223552;
  --theme-border: rgba(148, 163, 184, 0.18);
  --theme-border-strong: rgba(148, 163, 184, 0.28);
  --theme-text: #e5edf8;
  --theme-text-soft: #b2c1d8;
  --theme-text-muted: #8396b2;
  --theme-shadow: 0 14px 32px rgba(2, 6, 23, 0.32);
  --bs-body-bg: var(--theme-bg);
  --bs-body-color: var(--theme-text);
  --bs-emphasis-color: var(--theme-text);
  --bs-heading-color: var(--theme-text);
  --bs-secondary-color: var(--theme-text-soft);
  --bs-secondary-color-rgb: 178, 193, 216;
  --bs-tertiary-color: var(--theme-text-muted);
  --bs-tertiary-color-rgb: 131, 150, 178;
  --bs-border-color: var(--theme-border);
  --bs-card-bg: var(--theme-surface);
  --bs-card-color: var(--theme-text);
  --bs-link-color: #7fb3ff;
  --bs-link-hover-color: #a9cdff;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  color: var(--theme-text);
  background: linear-gradient(180deg, #f9fbfe 0%, #f4f7fb 56%, #eef3f8 100%);
  background-color: var(--bs-body-bg);
  background-attachment: fixed;
  font-family: "Manrope", "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

[data-theme="dark"] body {
  background: linear-gradient(180deg, #08111e 0%, #0d1726 45%, #111d2f 100%);
  background-attachment: fixed;
}

a {
  color: var(--theme-accent);
  text-decoration: none;
  transition: color var(--theme-transition), opacity var(--theme-transition);
}

a:hover {
  color: color-mix(in srgb, var(--theme-accent) 80%, white);
}

img {
  max-width: 100%;
}

svg.svg-icon {
  width: 1.125rem;
  height: 1.125rem;
  flex: 0 0 1.125rem;
  display: inline-block;
  vertical-align: middle;
  pointer-events: none;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--theme-accent) 80%, white);
  outline-offset: 2px;
}

.site-shell,
.public-shell,
.auth-shell {
  position: relative;
}

.site-shell::before,
.public-shell::before,
.auth-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--theme-accent) 5%, transparent) 0, transparent 26%),
    radial-gradient(circle at 92% 0%, color-mix(in srgb, var(--theme-accent) 8%, transparent) 0, transparent 26%);
  opacity: 0.75;
}

[data-theme="dark"] .site-shell::before,
[data-theme="dark"] .public-shell::before,
[data-theme="dark"] .auth-shell::before {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--theme-accent) 8%, transparent) 0, transparent 24%),
    radial-gradient(circle at 88% 0%, color-mix(in srgb, var(--theme-accent) 12%, transparent) 0, transparent 24%);
}

.site-shell {
  padding: 1.5rem;
}

.public-shell {
  min-height: 100vh;
  padding: 1.5rem;
}

.auth-shell {
  min-height: 100vh;
}

.site-header,
.site-sidebar,
.content-panel,
.public-panel,
.site-footer,
.mobile-menu__inner,
.showcase-banner,
.auth-stage__aside,
.auth-stage__main,
.panel-card,
.stat-card,
.feature-card,
.quick-link-card,
.sales-card,
.support-hero,
.landing-hero,
.sidebar-card,
.card,
.pricing-card,
.ticket-card,
.ticket-message,
.error-state {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  box-shadow: var(--theme-shadow);
}

.site-header {
  position: sticky;
  top: 1rem;
  z-index: 50;
  margin-bottom: 1.5rem;
  border-radius: var(--theme-radius-lg);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 120;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  background: var(--theme-surface-strong);
  border: 1px solid var(--theme-border);
  color: var(--theme-text);
  box-shadow: var(--theme-shadow);
}

.skip-link:focus {
  top: 1rem;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--theme-text);
}

.brand-lockup__logo {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.35rem;
}

.brand-lockup__name {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-lockup__tag {
  display: block;
  font-size: 0.82rem;
  color: var(--theme-text-muted);
}

.site-header__menu-toggle {
  display: none;
  flex-direction: column;
  gap: 0.22rem;
  width: 2.75rem;
  height: 2.75rem;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--theme-border);
  border-radius: 10px;
  background: transparent;
  color: var(--theme-text);
}

.site-header__menu-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.header-link,
.account-menu__toggle,
.mobile-menu__link,
.sidebar-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--theme-text-soft);
  transition: background-color var(--theme-transition), color var(--theme-transition), transform var(--theme-transition);
}

.header-link,
.account-menu__toggle {
  min-height: 2.8rem;
  padding: 0.75rem 1rem;
}

.header-link:hover,
.account-menu__toggle:hover,
.mobile-menu__link:hover,
.sidebar-nav__link:hover {
  color: var(--theme-text);
  background: color-mix(in srgb, var(--theme-accent) 14%, transparent);
}

.header-language {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-height: 2.55rem;
  padding: 0.28rem 0.45rem 0.28rem 0.38rem;
  border: 1px solid var(--theme-border);
  border-radius: 10px;
  background: var(--theme-surface-soft);
  color: var(--theme-text-soft);
}

.header-language__flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.3rem;
  min-width: 1.3rem;
  font-size: 0.95rem;
}

.header-language .form-select,
.header-language .ts-wrapper.js-language-selector {
  min-width: 0;
  width: auto;
}

.header-language .form-select {
  min-height: 1.9rem;
  padding: 0.2rem 1.35rem 0.2rem 0.2rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  color: var(--theme-text-soft);
  font-size: 0.88rem;
}

.header-language .ts-wrapper.js-language-selector {
  margin: 0;
}

.header-language .ts-control {
  min-height: 1.9rem;
  padding: 0 1.4rem 0 0.15rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  color: var(--theme-text-soft);
  font-size: 0.88rem;
}

.header-language .ts-control > div,
.header-language .ts-control > input {
  color: inherit;
}

.header-language .form-select:focus,
.header-language .ts-control.focus,
.header-language .ts-wrapper.focus {
  background: transparent;
  box-shadow: none;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 3rem;
  min-height: 2.8rem;
  border-radius: 12px;
  border: 1px solid var(--theme-border);
  background: transparent;
  color: var(--theme-text);
}

.theme-toggle__sun,
.theme-toggle__moon {
  display: inline-block;
  width: 0.95rem;
  height: 0.95rem;
}

.theme-toggle__sun {
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 0 0.2rem rgba(251, 191, 36, 0.18);
}

.theme-toggle__moon {
  border-radius: 50%;
  border: 2px solid #dbeafe;
  border-right-color: transparent;
  transform: rotate(-28deg);
}

.account-menu {
  position: relative;
}

.account-menu__toggle {
  gap: 0.75rem;
  border: 1px solid var(--theme-border);
  background: transparent;
}

.account-menu__avatar,
.sidebar-card__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--theme-accent), color-mix(in srgb, var(--theme-accent) 55%, white));
  color: white;
  font-weight: 800;
}

.account-menu__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.25;
}

.account-menu__meta strong {
  font-size: 0.9rem;
}

.account-menu__meta small {
  color: var(--theme-text-muted);
}

.account-menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.55rem);
  min-width: 13rem;
  padding: 0.5rem;
  border-radius: 12px;
  border: 1px solid var(--theme-border);
  background: var(--theme-surface-strong);
  box-shadow: var(--theme-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--theme-transition), transform var(--theme-transition), visibility var(--theme-transition);
}

.account-menu__panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.account-menu__panel a {
  display: block;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  color: var(--theme-text-soft);
}

.account-menu__panel a:hover {
  color: var(--theme-text);
  background: color-mix(in srgb, var(--theme-accent) 14%, transparent);
}

.mobile-menu {
  display: none;
  padding: 0 1.25rem 1.25rem;
}

.mobile-menu__inner {
  border-radius: 14px;
  padding: 1rem;
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu__section {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.mobile-menu__section + .mobile-menu__section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--theme-border);
}

.mobile-menu__link {
  justify-content: flex-start;
  gap: 0.72rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--theme-border);
  background: var(--theme-surface-soft);
}

.site-main {
  display: grid;
  grid-template-columns: minmax(16rem, 18rem) minmax(0, 1fr);
  gap: 1.5rem;
  transition: grid-template-columns var(--theme-transition);
}

.site-main--no-sidebar {
  grid-template-columns: minmax(0, 1fr);
}

.site-sidebar {
  position: sticky;
  top: 7.1rem;
  height: fit-content;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: opacity var(--theme-transition), transform var(--theme-transition);
}

.site-shell.is-sidebar-collapsed .site-main {
  grid-template-columns: minmax(0, 1fr);
}

.site-shell.is-sidebar-collapsed .site-sidebar {
  display: none;
}

.sidebar-toggle {
  gap: 0.55rem;
}

.sidebar-toggle__icon {
  position: relative;
  width: 1rem;
  height: 0.75rem;
  display: inline-block;
}

.sidebar-toggle__icon::before,
.sidebar-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.sidebar-toggle__icon::before {
  top: 0.1rem;
}

.sidebar-toggle__icon::after {
  bottom: 0.1rem;
}

.sidebar-toggle.is-collapsed .sidebar-toggle__icon::before {
  top: 50%;
  transform: translateY(-50%);
}

.sidebar-toggle.is-collapsed .sidebar-toggle__icon::after {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%);
  width: 60%;
}

.sidebar-card {
  border-radius: var(--theme-radius-lg);
  padding: 1.15rem;
}

.sidebar-card__profile {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--theme-border);
}

.sidebar-card__profile strong,
.sidebar-card__balance strong {
  display: block;
  font-size: 0.98rem;
}

.sidebar-card__profile p,
.sidebar-card__note p,
.sidebar-card__balance span {
  margin: 0;
  color: var(--theme-text-muted);
  font-size: 0.9rem;
}

.sidebar-nav__list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-nav__link {
  justify-content: flex-start;
  gap: 0.72rem;
  width: 100%;
  min-height: 3rem;
  padding: 0.85rem 1rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
}

.sidebar-nav__link:hover {
  border-color: var(--theme-border);
}

.mobile-menu__icon,
.sidebar-nav__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  border-radius: 8px;
  background: color-mix(in srgb, var(--theme-accent) 14%, var(--theme-surface-strong));
  color: var(--theme-accent);
}

.sidebar-card__balance,
.sidebar-card__note,
.sidebar-card__actions {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--theme-border);
}

.sidebar-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.site-content {
  min-width: 0;
}

.site-content--wide {
  max-width: 1100px;
  margin-inline: auto;
}

.order-index .site-main,
.order-product .site-main,
.order-storefront .site-main {
  grid-template-columns: 1fr;
}

.order-index .site-sidebar,
.order-product .site-sidebar,
.order-storefront .site-sidebar {
  display: none !important;
}

body.order-index .site-main,
body.order-product .site-main,
body.order-storefront .site-main {
  grid-template-columns: minmax(0, 1fr) !important;
}

body.order-index .page-meta,
body.order-product .page-meta,
body.order-storefront .page-meta {
  display: none;
}

.page-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.page-meta__title h1,
.landing-hero h2,
.dashboard-hero h2,
.support-hero h2,
.error-state h2 {
  margin: 0.2rem 0 0;
  font-size: clamp(1.85rem, 3vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.eyebrow {
  margin: 0;
  color: var(--theme-accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb-item {
  color: var(--theme-text-muted);
  font-size: 0.92rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  margin-right: 0.4rem;
  color: var(--theme-text-muted);
}

.breadcrumb-item a {
  color: inherit;
}

.content-panel {
  padding: 1.2rem 0;
  border-radius: var(--theme-radius-lg);
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.dashboard-home .content-panel,
.error-page .content-panel {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.button,
.btn,
.btn-primary,
.btn-outline-primary,
.btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.85rem;
  padding: 0.78rem 1.2rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: transform var(--theme-transition), background-color var(--theme-transition), border-color var(--theme-transition), color var(--theme-transition), box-shadow var(--theme-transition);
}

.button:hover,
.btn:hover,
.btn-primary:hover,
.btn-outline-primary:hover,
.btn-dark:hover {
  transform: translateY(-1px);
}

.button--small,
.btn-sm {
  min-height: 2.35rem;
  padding: 0.6rem 0.95rem;
  font-size: 0.9rem;
}

.button--primary,
.btn-primary {
  background: linear-gradient(135deg, var(--theme-accent), color-mix(in srgb, var(--theme-accent) 65%, white));
  color: #ffffff !important;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--theme-accent) 35%, transparent);
}

.button--ghost,
.btn-outline-primary {
  color: var(--theme-text) !important;
  background: var(--theme-surface-strong);
  border-color: var(--theme-border-strong);
}

.btn-dark {
  color: #ffffff !important;
  background: #172235;
  border-color: #172235;
}

.button--ghost:hover,
.btn-dark:hover {
  transform: translateY(-1px);
}

.button--ghost:hover,
.btn-outline-primary:hover {
  background: color-mix(in srgb, var(--theme-accent) 10%, #ffffff);
  border-color: color-mix(in srgb, var(--theme-accent) 24%, transparent);
  color: var(--theme-text) !important;
}

.btn-dark:hover {
  background: #22314a;
  border-color: #22314a;
  color: #ffffff !important;
}

.btn-success,
.btn-info,
.btn-danger,
.btn-secondary {
  color: #ffffff !important;
}

.btn-warning {
  color: #111827 !important;
}

.dashboard-hero,
.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 0.9fr);
  gap: 1.25rem;
  padding: 1.6rem;
  border-radius: var(--theme-radius-lg);
  margin-bottom: 1.4rem;
}

.dashboard-hero__text,
.landing-hero p,
.support-hero p {
  max-width: 48rem;
  margin: 1rem 0 0;
  color: var(--theme-text-soft);
  font-size: 1rem;
}

.dashboard-hero__actions,
.landing-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.landing-hero__panel {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.landing-hero__metric {
  padding: 1rem 1.1rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--theme-accent) 10%, var(--theme-surface-soft));
  border: 1px solid color-mix(in srgb, var(--theme-accent) 18%, var(--theme-border));
}

.landing-hero__metric span {
  display: block;
  color: var(--theme-text-muted);
  font-size: 0.85rem;
}

.landing-hero__metric strong {
  display: block;
  margin-top: 0.4rem;
  font-size: 1rem;
  line-height: 1.35;
}

.hero-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.1rem;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--theme-accent) 10%, var(--theme-surface-soft));
  border: 1px solid color-mix(in srgb, var(--theme-accent) 18%, var(--theme-border));
  color: var(--theme-text-soft);
  font-size: 0.83rem;
  font-weight: 700;
}

.stats-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.stats-grid {
  margin-bottom: 1.2rem;
}

.stat-card,
.feature-card {
  padding: 1.25rem;
  border-radius: 14px;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  margin-bottom: 0.9rem;
  border-radius: 10px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--theme-accent) 18%, #ffffff), color-mix(in srgb, var(--theme-accent) 8%, var(--theme-surface-soft)));
  color: var(--theme-accent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--theme-accent) 12%, transparent);
}

.card-icon .svg-icon {
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 1.2rem;
}

.stat-card__label {
  display: inline-block;
  color: var(--theme-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  font-weight: 800;
}

.stat-card__value {
  display: block;
  margin-top: 0.45rem;
  font-size: clamp(1.85rem, 3vw, 2.55rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.stat-card p,
.feature-card p {
  color: var(--theme-text-soft);
  margin: 0.8rem 0 0.75rem;
}

.feature-card h3,
.panel-card h3 {
  margin: 0.22rem 0 0;
  font-size: 1.25rem;
  letter-spacing: -0.04em;
}

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

.panel-card {
  border-radius: 14px;
  padding: 1.25rem;
}

.panel-card__header,
.panel-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.panel-card__header {
  margin-bottom: 1rem;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.activity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--theme-border);
  background: var(--theme-surface-soft);
  color: inherit;
}

.activity-row strong {
  display: block;
  color: var(--theme-text);
}

.activity-row p {
  margin: 0.3rem 0 0;
  color: var(--theme-text-muted);
  font-size: 0.9rem;
}

.summary-list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
}

.summary-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--theme-border);
  background: var(--theme-surface-soft);
}

.summary-list dt {
  color: var(--theme-text-muted);
  font-weight: 600;
}

.summary-list dd {
  margin: 0;
  font-weight: 700;
}

.empty-card {
  padding: 1.2rem;
  border-radius: 14px;
  border: 1px dashed var(--theme-border-strong);
  background: color-mix(in srgb, var(--theme-accent) 8%, transparent);
}

.empty-card h4 {
  margin: 0;
  font-size: 1.05rem;
}

.empty-card p {
  margin: 0.6rem 0 1rem;
  color: var(--theme-text-soft);
}

.quick-link-grid,
.sales-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.quick-link-grid {
  margin-bottom: 1.2rem;
}

.quick-link-card,
.sales-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.25rem;
  border-radius: 14px;
  color: inherit;
}

.quick-link-card strong,
.sales-card h3 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
  color: var(--theme-text);
}

.quick-link-card p,
.sales-card p {
  margin: 0.7rem 0 0;
  color: var(--theme-text-soft);
}

.quick-link-card:hover,
.sales-card:hover {
  color: inherit;
  transform: translateY(-2px);
}

.sales-section {
  margin-bottom: 1.2rem;
}

.sales-section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.sales-section__header h3 {
  margin: 0.2rem 0 0;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}

.sales-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: auto;
  padding-top: 1rem;
}

.status-pill,
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2rem;
  padding: 0.4rem 0.75rem;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: capitalize;
  letter-spacing: 0.02em;
}

.status-pill--active,
.status-pill--paid,
.text-bg-success {
  background: rgba(52, 211, 153, 0.16);
  color: #047857;
}

.status-pill--pending,
.status-pill--pending-setup,
.status-pill--unpaid,
.status-pill--on-hold,
.text-bg-warning {
  background: rgba(251, 191, 36, 0.16);
  color: #b45309;
}

.status-pill--failed-setup,
.status-pill--failed-renew,
.status-pill--suspended,
.status-pill--canceled,
.status-pill--closed,
.status-pill--error,
.text-bg-danger,
.text-bg-secondary {
  background: rgba(251, 113, 133, 0.16);
  color: #be123c;
}

[data-theme="dark"] .status-pill--active,
[data-theme="dark"] .status-pill--paid,
[data-theme="dark"] .text-bg-success {
  color: #9af0c8;
}

[data-theme="dark"] .status-pill--pending,
[data-theme="dark"] .status-pill--pending-setup,
[data-theme="dark"] .status-pill--unpaid,
[data-theme="dark"] .status-pill--on-hold,
[data-theme="dark"] .text-bg-warning {
  color: #fde68a;
}

[data-theme="dark"] .status-pill--failed-setup,
[data-theme="dark"] .status-pill--failed-renew,
[data-theme="dark"] .status-pill--suspended,
[data-theme="dark"] .status-pill--canceled,
[data-theme="dark"] .status-pill--closed,
[data-theme="dark"] .status-pill--error,
[data-theme="dark"] .text-bg-danger,
[data-theme="dark"] .text-bg-secondary {
  color: #fecdd3;
}

.error-state {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2rem;
  border-radius: var(--theme-radius-lg);
  text-align: center;
}

.error-state__code {
  font-size: clamp(4.5rem, 15vw, 8rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.08em;
  color: color-mix(in srgb, var(--theme-accent) 72%, white);
}

.error-state p {
  color: var(--theme-text-soft);
}

.error-state__actions {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 1.3rem;
}

.card,
.modal-content,
.dropdown-menu,
.offcanvas,
.list-group-item,
.nav-tabs .nav-link,
.table,
.alert,
.form-control,
.form-select,
.input-group-text,
.form-check-input {
  border-color: var(--theme-border);
}

.card,
.modal-content,
.dropdown-menu,
.offcanvas {
  border-radius: 14px;
  background: var(--theme-surface);
  color: var(--theme-text);
}

.card-header,
.modal-header,
.offcanvas-header {
  border-color: var(--theme-border);
  background: color-mix(in srgb, var(--theme-accent) 4%, var(--theme-surface-soft));
}

.card-body,
.modal-body,
.offcanvas-body {
  color: var(--theme-text);
}

.table {
  color: var(--theme-text);
  --bs-table-bg: transparent;
  --bs-table-striped-bg: rgba(255, 255, 255, 0.02);
  --bs-table-striped-color: var(--theme-text);
}

.table > :not(caption) > * > * {
  border-bottom-color: var(--theme-border);
}

.table-hover > tbody > tr:hover > * {
  background: color-mix(in srgb, var(--theme-accent) 8%, transparent);
  color: var(--theme-text);
}

.form-control,
.form-select,
.input-group-text {
  min-height: 3rem;
  border-radius: 10px;
  background: var(--theme-surface-soft);
  color: var(--theme-text);
  box-shadow: none;
}

.form-control::placeholder {
  color: var(--theme-text-muted);
}

.form-control:focus,
.form-select:focus {
  background: var(--theme-surface-strong);
  color: var(--theme-text);
  border-color: color-mix(in srgb, var(--theme-accent) 42%, transparent);
  box-shadow: 0 0 0 0.25rem color-mix(in srgb, var(--theme-accent) 18%, transparent);
}

.form-check-input {
  background-color: var(--theme-surface-soft);
}

.form-check-input:checked {
  background-color: var(--theme-accent);
  border-color: var(--theme-accent);
}

.nav-tabs {
  border-bottom-color: var(--theme-border);
  gap: 0.5rem;
}

.nav-pills {
  gap: 0.5rem;
}

.nav-pills .nav-link {
  min-height: 2.5rem;
  justify-content: flex-start;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--theme-border);
  border-radius: 10px;
  color: var(--theme-text);
  background: var(--theme-surface-soft);
}

.nav-pills .nav-link.active,
.nav-pills .nav-link:hover {
  color: var(--theme-text);
  background: color-mix(in srgb, var(--theme-accent) 16%, transparent);
  border-color: color-mix(in srgb, var(--theme-accent) 24%, transparent);
}

.nav-tabs .nav-link {
  margin-bottom: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--theme-text-muted);
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-link:hover {
  color: var(--theme-text);
  background: color-mix(in srgb, var(--theme-accent) 14%, transparent);
  border-color: transparent;
}

.tab-content {
  padding: 0.35rem;
}

.list-group-item {
  background: transparent;
  color: var(--theme-text);
}

.list-group {
  gap: 0.75rem;
}

.list-group-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--theme-border);
  background: var(--theme-surface-soft);
}

.list-group-item .svg-icon {
  margin-left: auto;
}

.list-group-item:hover {
  background: color-mix(in srgb, var(--theme-accent) 8%, transparent);
}

.accordion {
  --bs-accordion-bg: transparent;
  --bs-accordion-border-color: var(--theme-border);
  --bs-accordion-btn-focus-border-color: color-mix(in srgb, var(--theme-accent) 42%, transparent);
  --bs-accordion-btn-focus-box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--theme-accent) 15%, transparent);
  --bs-accordion-active-color: var(--theme-text);
  --bs-accordion-active-bg: color-mix(in srgb, var(--theme-accent) 8%, transparent);
  --bs-accordion-btn-color: var(--theme-text);
  --bs-accordion-color: var(--theme-text);
}

.accordion-item {
  overflow: hidden;
  border: 1px solid var(--theme-border);
  border-radius: 12px;
  background: var(--theme-surface-strong);
}

.accordion-item + .accordion-item {
  margin-top: 0.85rem;
}

.accordion-button {
  gap: 0.65rem;
  padding: 1rem 1.1rem;
  font-weight: 700;
  color: var(--theme-text);
  background: var(--theme-surface-soft);
  box-shadow: none;
}

.accordion-button:not(.collapsed) {
  color: var(--theme-text);
  background: color-mix(in srgb, var(--theme-accent) 10%, transparent);
  box-shadow: none;
}

.accordion-button .badge {
  margin-left: 0.3rem;
}

.accordion-button::after {
  background-size: 1rem;
}

.accordion-body {
  padding: 1rem 1.1rem 1.15rem;
  background: var(--theme-surface);
}

.order-currency {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.order-currency__label {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--theme-text-soft);
}

.order-currency__select {
  width: auto;
  min-width: 12rem;
}

.accordion-inner > .well,
.well {
  padding: 1rem 1.05rem;
  border: 1px solid var(--theme-border);
  border-radius: 10px;
  background: var(--theme-surface-soft);
}

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

.row-fluid .span6 {
  min-width: 0;
}

.control-group + .control-group {
  margin-top: 0.9rem;
}

.control-group .controls,
.control-group .form-controls {
  width: 100%;
}

.input-append {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.input-append .span8 {
  flex: 1 1 14rem;
  min-width: 0;
}

.radio {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.radio input[type="radio"] {
  margin-top: 0.2rem;
}

.order-index #orderbutton,
.order-product #orderbutton,
.order-storefront #orderbutton {
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.order-index #orderbutton svg,
.order-product #orderbutton svg,
.order-storefront #orderbutton svg {
  width: 1.125rem;
  height: 1.125rem;
  max-width: 1.125rem;
  max-height: 1.125rem;
  flex: 0 0 1.125rem;
}

.order-index .card-header h1,
.order-product .card-header h1,
.order-storefront .card-header h1 {
  font-size: 1.6rem;
  letter-spacing: -0.04em;
}

.order-index .loading,
.order-product .loading {
  background: rgba(7, 17, 31, 0.45) no-repeat;
}

.order-index .loading img,
.order-product .loading img {
  width: 3rem;
  height: 3rem;
}

.order-storefront .content-panel,
.order-storefront .public-panel {
  padding: 0;
}

.order-storefront .card,
.order-storefront .card-header,
.order-storefront .card-body {
  border-radius: 12px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.order-storefront .list-group-item {
  cursor: pointer;
}

.order-index .card,
.order-index .card-header,
.order-index .card-body,
.order-product .card,
.order-product .card-header,
.order-product .card-body {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.order-shell {
  display: grid;
  gap: 1rem;
}

.order-shell__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  padding: 0.2rem 0 0.25rem;
  border-bottom: 1px solid var(--theme-border);
}

.order-shell__header h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.order-shell__description {
  margin: 0.45rem 0 0;
  max-width: 48rem;
  color: var(--theme-text-soft);
}

.order-shell__header .order-currency {
  margin-top: 0;
}

.order-shell__body {
  display: grid;
  gap: 1rem;
}

.order-shell__body > * {
  min-width: 0;
}

.order-domain-tabs {
  display: grid;
  grid-template-columns: minmax(11.5rem, 13rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.order-domain-tabs__nav {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding-right: 1rem;
  border-right: 1px solid var(--theme-border);
}

.order-domain-tabs__content {
  min-width: 0;
}

.order-domain-pane {
  display: grid;
  gap: 1rem;
}

.order-domain-field {
  display: grid;
  gap: 0.55rem;
}

.order-domain-input-row {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.order-domain-input-group {
  flex: 1 1 22rem;
  display: flex;
  align-items: stretch;
  min-width: 0;
}

.order-domain-input-group .form-control:not(.order-domain-tld) {
  flex: 1 1 12rem;
  min-width: 9rem;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.order-domain-input-group .form-select,
.order-domain-input-group .order-domain-tld {
  flex: 0 0 7.5rem;
  max-width: 8rem;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.order-domain-input-group .order-domain-tld {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

.order-domain-check {
  flex: 0 0 auto;
  white-space: nowrap;
}

.order-domain-config {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.2rem;
}

.order-domain-help {
  margin: 0;
  color: var(--theme-text-muted);
  font-size: 0.92rem;
}

.order-domain-nameservers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.order-checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 22rem);
  gap: 1rem;
  align-items: start;
}

.order-promo,
.order-summary,
.order-payment {
  padding: 1rem 1.05rem;
  border: 1px solid var(--theme-border);
  border-radius: 12px;
  background: var(--theme-surface-soft);
}

.order-promo__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
}

.order-promo__form {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.order-promo__form .form-control {
  flex: 1 1 12rem;
  min-width: 0;
}

.order-cart-item-actions {
  width: 1%;
  white-space: nowrap;
  text-align: right;
}

.order-cart-remove {
  min-height: 2.35rem;
  padding: 0.55rem 0.7rem;
}

.order-gateway-list {
  display: grid;
  gap: 0.7rem;
}

.order-gateway-option {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--theme-border);
  border-radius: 10px;
  background: var(--theme-surface-strong);
}

.order-gateway-option input {
  margin-top: 0.2rem;
}

.order-gateway-option span {
  color: var(--theme-text-soft);
}

.order-checkout-actions {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.order-checkout-note {
  margin: 0;
  color: var(--theme-text-soft);
}

.order-tos-copy {
  color: var(--theme-text-muted);
  font-size: 0.92rem;
}

.order-checkout-message {
  margin: 0;
  color: var(--theme-text-soft);
}

.list-group-item__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.5rem;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  background: color-mix(in srgb, var(--theme-accent) 12%, transparent);
  color: var(--theme-accent);
  font-size: 0.88rem;
  font-weight: 700;
}

.addons {
  margin-top: 1.25rem;
}

.addons-grid {
  display: grid;
  gap: 0.9rem;
}

.addon-card {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid var(--theme-border);
  border-radius: 10px;
  background: var(--theme-surface-soft);
}

.addon-card__body {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.addon-card__icon {
  flex: 0 0 36px;
  border-radius: 8px;
  object-fit: cover;
}

.addon-card__content {
  min-width: 0;
}

.addon-card__content h5 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.addon-card__description > :last-child {
  margin-bottom: 0;
}

.addon-card__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.addon-card__meta .form-select {
  max-width: 100%;
}

.addon-card__actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

[data-theme="dark"] .table {
  --bs-table-striped-bg: rgba(255, 255, 255, 0.02);
}

.alert,
.theme-alert {
  border-radius: 12px;
  padding: 1rem 1.1rem;
  background: var(--theme-surface-soft);
  color: var(--theme-text);
}

.theme-alert--success,
.alert-success,
.alert-info {
  border-color: rgba(52, 211, 153, 0.2);
}

.theme-alert--warning,
.alert-warning {
  border-color: rgba(251, 191, 36, 0.22);
}

.theme-alert--danger,
.alert-danger {
  border-color: rgba(251, 113, 133, 0.22);
}

.alert-link {
  font-weight: 800;
}

.pagination {
  gap: 0.4rem;
  flex-wrap: wrap;
}

.page-item {
  list-style: none;
}

.page-link {
  min-width: 2.8rem;
  min-height: 2.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--theme-border);
  background: var(--theme-surface-soft);
  color: var(--theme-text);
}

.page-item.active .page-link,
.page-link:hover {
  background: color-mix(in srgb, var(--theme-accent) 18%, transparent);
  border-color: color-mix(in srgb, var(--theme-accent) 24%, transparent);
  color: var(--theme-text);
}

.page-item.disabled .page-link {
  opacity: 0.45;
}

.theme-alert + .theme-alert,
.content-panel > .alert + .alert {
  margin-top: 0.9rem;
}

.support-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.45rem 1.55rem;
  border-radius: var(--theme-radius-lg);
  margin-bottom: 1.2rem;
}

.support-layout,
.support-layout--detail,
.support-layout--contact {
  display: grid;
  grid-template-columns: minmax(18rem, 0.95fr) minmax(0, 1.35fr);
  gap: 1rem;
}

.support-layout--detail {
  grid-template-columns: minmax(18rem, 0.72fr) minmax(0, 1.28fr);
}

.support-layout--contact {
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
}

.support-composer__intro {
  margin: 0 0 1rem;
  color: var(--theme-text-soft);
}

.support-form {
  display: flex;
  flex-direction: column;
}

.support-form__submit {
  display: flex;
  justify-content: flex-start;
  margin-top: 0.25rem;
}

.ticket-list,
.support-thread__list {
  display: grid;
  gap: 0.9rem;
}

.ticket-card,
.ticket-message,
.ticket-reply {
  border-radius: 14px;
}

.ticket-card {
  padding: 1rem;
  border: 1px solid var(--theme-border);
  background: var(--theme-surface-soft);
}

.ticket-card__meta,
.ticket-card__actions,
.ticket-message__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ticket-card__meta h4 {
  margin: 0.18rem 0 0;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.ticket-card__meta p {
  margin: 0.4rem 0 0;
  color: var(--theme-text-muted);
}

.ticket-card__actions {
  margin-top: 0.9rem;
}

.ticket-message {
  padding: 1rem 1.05rem;
  border: 1px solid var(--theme-border);
  background: var(--theme-surface-soft);
}

.ticket-message--staff {
  border-color: color-mix(in srgb, var(--theme-accent) 18%, var(--theme-border));
  background: color-mix(in srgb, var(--theme-accent) 6%, var(--theme-surface-soft));
}

.ticket-message__author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.ticket-message__author .card-icon {
  margin-bottom: 0;
  width: 2.4rem;
  height: 2.4rem;
}

.ticket-message__author strong {
  display: block;
}

.ticket-message__author p {
  margin: 0.2rem 0 0;
  color: var(--theme-text-muted);
  font-size: 0.9rem;
}

.ticket-message__body {
  margin-top: 0.9rem;
  color: var(--theme-text);
}

.ticket-message__body > :last-child {
  margin-bottom: 0;
}

.support-thread {
  display: grid;
  gap: 1rem;
}

.support-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer {
  margin-top: 1.5rem;
  overflow: hidden;
  border-radius: var(--theme-radius-lg);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) repeat(2, minmax(0, 0.8fr));
  gap: 1.3rem;
  padding: 1.35rem 1.4rem 1.1rem;
}

.site-footer__eyebrow {
  margin: 0 0 0.4rem;
  color: var(--theme-accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer__brand {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
}

.site-footer__text {
  margin: 0.35rem 0 0;
  color: var(--theme-text-muted);
}

.site-footer__credits {
  margin: 0.9rem 0 0;
  color: var(--theme-text-soft);
  font-size: 0.92rem;
}

.site-footer__credits a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.14rem;
}

.footer-panel__title {
  margin: 0 0 0.85rem;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.footer-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.footer-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0.35rem 0.68rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--theme-accent) 16%, var(--theme-border));
  background: color-mix(in srgb, var(--theme-accent) 8%, var(--theme-surface-soft));
  color: var(--theme-text-soft);
  font-size: 0.8rem;
  font-weight: 700;
}

.site-footer__links {
  display: grid;
  gap: 0.55rem;
  justify-content: flex-start;
}

.site-footer__links a {
  color: var(--theme-text-soft);
}

.footer-contact-list {
  display: grid;
  gap: 0.55rem;
}

.footer-contact-item {
  color: var(--theme-text-soft);
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.4rem 1.3rem;
  border-top: 1px solid var(--theme-border);
  background: color-mix(in srgb, var(--theme-accent) 3%, transparent);
}

.site-footer__bottom p {
  margin: 0;
  color: var(--theme-text-muted);
}

.site-footer__bottom-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.8rem;
  color: var(--theme-text-soft);
}

.site-footer__bottom-links a,
.site-footer__bottom-links span {
  color: inherit;
  font-size: 0.9rem;
}

.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 40;
  min-height: 2.9rem;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--theme-border);
  background: var(--theme-surface-strong);
  color: var(--theme-text);
  box-shadow: var(--theme-shadow);
}

.pricing-card {
  border-radius: 12px;
}

.pricing-card__body {
  padding: 1.2rem;
}

.pricing-card__amount {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.public-shell {
  display: block;
}

.public-shell__body {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 0;
}

.public-content {
  width: min(1200px, 100%);
  margin: 0 auto;
}

.public-panel {
  min-height: auto;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.showcase-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
  padding: 1.15rem 1.25rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--theme-accent) 10%, var(--theme-surface-soft));
  border: 1px solid color-mix(in srgb, var(--theme-accent) 18%, var(--theme-border));
}

.showcase-banner strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.45;
}

.showcase-banner .eyebrow {
  margin-bottom: 0.35rem;
}

.auth-shell__body {
  width: min(1300px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 2rem;
}

.auth-content {
  width: min(1220px, 100%);
}

.auth-footer {
  margin-top: 1rem;
}

.auth-stage {
  display: grid;
  grid-template-columns: minmax(18rem, 0.92fr) minmax(0, 1.08fr);
  gap: 1.5rem;
  align-items: stretch;
}

.auth-stage__aside,
.auth-stage__main {
  border-radius: var(--theme-radius-lg);
}

.auth-stage__aside {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

.auth-stage__main {
  padding: 1.2rem;
}

.auth-stage__actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.auth-brand {
  align-self: flex-start;
}

.auth-aside__copy h1 {
  margin: 0.3rem 0 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.auth-aside__copy p:last-child {
  margin: 1rem 0 0;
  color: var(--theme-text-soft);
}

.auth-points {
  display: grid;
  gap: 0.85rem;
}

.auth-point {
  padding: 1rem 1.1rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--theme-accent) 8%, var(--theme-surface-soft));
  border: 1px solid color-mix(in srgb, var(--theme-accent) 14%, var(--theme-border));
}

.auth-point strong {
  display: block;
  margin-bottom: 0.2rem;
}

.auth-point span {
  color: var(--theme-text-soft);
  font-size: 0.95rem;
}

.auth-shell .container {
  max-width: none;
}

.page-login,
.page-signup,
.public-shell {
  min-height: 100vh;
}

.page-login .container,
.page-signup .container {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.page-login .row,
.page-signup .row {
  min-height: calc(100vh - 6rem);
}

.page-login .card,
.page-signup .card {
  overflow: hidden;
}

.page-login .card::before,
.page-signup .card::before {
  content: "";
  display: block;
  height: 0.35rem;
  background: linear-gradient(90deg, var(--theme-accent), #22d3ee);
}

.page-login .card-body,
.page-signup .card-body {
  padding: 1.5rem;
}

.page-login .my-4,
.page-signup .my-4 {
  filter: drop-shadow(0 18px 28px rgba(2, 6, 23, 0.24));
}

.auth,
.page-login form,
.page-signup form {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.auth .mb-3:last-of-type,
.page-login .mb-3:last-of-type,
.page-signup .mb-3:last-of-type {
  margin-bottom: 1rem !important;
}

.client-profile .card {
  overflow: hidden;
}

.db-avatar {
  border-radius: 16px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--theme-accent) 26%, transparent), var(--theme-surface-soft));
  border: 1px solid var(--theme-border);
}

.text-muted,
.small,
.fs-7,
.text-secondary {
  color: var(--theme-text-muted) !important;
}

.text-body-secondary,
.form-text,
label,
.form-label,
.col-form-label,
legend,
.list-group-item-text,
small.text-body-secondary {
  color: var(--theme-text-soft) !important;
}

.h-100 {
  min-height: 100%;
}

.w-100 {
  width: 100%;
}

.wait {
  position: fixed;
  inset: 0;
  background: rgba(7, 17, 31, 0.45);
  z-index: 1000;
}

.spinner-border {
  border-color: color-mix(in srgb, var(--theme-accent) 25%, transparent);
  border-top-color: var(--theme-accent);
}

.toast,
.toast-header {
  background: var(--theme-surface-strong);
  color: var(--theme-text);
  border-color: var(--theme-border);
}

blockquote {
  margin: 1.2rem 0;
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--theme-accent);
  background: color-mix(in srgb, var(--theme-accent) 8%, transparent);
  border-radius: 0 10px 10px 0;
}

code,
pre {
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.92);
  color: #d8e8ff;
}

pre {
  padding: 1rem;
  overflow: auto;
}

@media (max-width: 1100px) {
  .stats-grid,
  .feature-grid,
  .quick-link-grid,
  .sales-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid,
  .auth-stage,
  .landing-hero,
  .dashboard-hero,
  .support-layout,
  .support-layout--detail,
  .support-layout--contact {
    grid-template-columns: 1fr;
  }

  .page-meta,
  .site-footer__bottom,
  .sales-section__header,
  .support-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .site-footer__links {
    justify-content: flex-start;
  }

  .site-footer__bottom-links {
    justify-content: flex-start;
  }

  .row-fluid {
    grid-template-columns: 1fr;
  }

  .order-checkout-grid,
  .order-domain-tabs {
    grid-template-columns: 1fr;
  }

  .order-domain-tabs__nav {
    padding-right: 0;
    padding-bottom: 0.9rem;
    border-right: 0;
    border-bottom: 1px solid var(--theme-border);
  }
}

@media (max-width: 900px) {
  .site-shell {
    padding: 1rem;
  }

  .site-main {
    grid-template-columns: 1fr;
  }

  .site-sidebar {
    display: none;
  }

  .site-header__menu-toggle {
    display: inline-flex;
  }

  .site-header__nav {
    display: none;
  }

  .sidebar-toggle {
    display: none;
  }

  .content-panel {
    padding: 1rem;
  }
}

@media (max-width: 700px) {
  .stats-grid,
  .feature-grid,
  .dashboard-grid,
  .quick-link-grid,
  .sales-grid {
    grid-template-columns: 1fr;
  }

  .site-header__inner,
  .dashboard-hero,
  .landing-hero,
  .support-hero,
  .showcase-banner,
  .auth-stage__aside,
  .auth-stage__main,
  .panel-card,
  .stat-card,
  .feature-card,
  .quick-link-card,
  .sales-card,
  .ticket-card,
  .ticket-message,
  .error-state,
  .content-panel,
  .sidebar-card,
  .site-footer__inner,
  .site-footer__bottom,
  .page-login .card-body,
  .page-signup .card-body {
    padding: 1rem;
  }

  .activity-row,
  .summary-list div,
  .ticket-card__meta,
  .ticket-card__actions,
  .ticket-message__header,
  .site-footer__bottom-links {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-menu__panel {
    min-width: 11.5rem;
  }

  .showcase-banner,
  .auth-stage__actions {
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-start;
  }

  .header-language {
    width: 100%;
    justify-content: flex-start;
  }

  .order-domain-input-group {
    flex-basis: 100%;
  }

  .order-domain-input-group .form-control {
    min-width: 0;
  }

  .order-domain-input-group .form-select,
  .order-domain-input-group .order-domain-tld {
    flex-basis: 6.5rem;
  }

  .order-domain-check {
    width: 100%;
  }

  .order-domain-nameservers {
    grid-template-columns: 1fr;
  }

  .order-shell__header {
    padding-top: 0;
  }
}
