:root {
  --ds-primary: #6366f1;
  --ds-primary-dark: #4338ca;
  --ds-secondary: #38bdf8;
  --ds-surface: #0f172a;
  --ds-muted: #a8b4d4;
  --ds-text-primary: #f1f5f9;
  --ds-text-secondary: #d7e3ff;
  --ds-text-muted: #97a3c1;
  --ds-success: #22c55e;
  --ds-danger: #ef4444;
  --ds-font-sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

html,
body {
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(99, 102, 241, 0.18), transparent 55%),
    radial-gradient(circle at 20% 80%, rgba(14, 165, 233, 0.18), transparent 55%),
    linear-gradient(180deg, #0b1220 0%, #020617 100%);
  font-family: var(--ds-font-sans);
  color: var(--ds-text-primary);
}

body {
  display: flex;
  flex-direction: column;
  color: var(--ds-text-primary);
}

body,
button,
input,
select,
textarea {
  font-family: var(--ds-font-sans);
  color: var(--ds-text-primary);
}

button,
input,
select,
textarea {
  font-size: 1rem;
  line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--ds-text-primary);
}

p,
li,
label,
small,
.form-text {
  color: var(--ds-text-secondary);
}

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

a {
  color: var(--ds-text-secondary);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--ds-primary);
}

a:focus-visible {
  outline: 2px solid rgba(99, 102, 241, 0.45);
  outline-offset: 2px;
}

main {
  flex: 1;
  width: 100%;
  max-width: min(1600px, calc(100vw - 3rem));
  margin: 0 auto;
  padding: 0.5rem 1.5rem 5.5rem;
}

@media (max-width: 575.98px) {
  main {
    max-width: min(1600px, calc(100vw - 0rem));
  }
  
}

.account-status-banner__container {
  width: 100%;
  max-width: min(1600px, calc(100vw - 3rem));
  margin: 0 auto;
  padding: 0 1.5rem;
}

.account-status-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin: 1.5rem auto 2.5rem;
  padding: 1.5rem 1.85rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(99, 102, 241, 0.35);
  background: linear-gradient(120deg, rgba(99, 102, 241, 0.18), rgba(14, 165, 233, 0.16));
  box-shadow: 0 25px 65px -40px rgba(14, 165, 233, 0.7);
  overflow: hidden;
}

.account-status-banner::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.account-status-banner__icon {
  flex: 0 0 auto;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  background: rgba(99, 102, 241, 0.25);
  color: #e0e7ff;
  box-shadow: 0 15px 35px -25px rgba(99, 102, 241, 0.8);
}

.account-status-banner__content {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.account-status-banner__title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.account-status-banner__body {
  color: var(--ds-text-secondary);
  font-size: 0.95rem;
}

.account-status-banner__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: var(--ds-text-secondary);
}

.account-status-banner__cta {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
}

.account-status-banner__cta .btn {
  min-width: 8.5rem;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
}

.account-status-banner__cta .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--ds-text-primary);
}

.account-status-banner__cta .btn-outline-light:hover,
.account-status-banner__cta .btn-outline-light:focus {
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.08);
}

.account-status-banner--warning {
  border-color: rgba(245, 158, 11, 0.45);
  background: linear-gradient(120deg, rgba(245, 158, 11, 0.22), rgba(59, 130, 246, 0.12));
  box-shadow: 0 25px 65px -40px rgba(245, 158, 11, 0.8);
}

.account-status-banner--warning .account-status-banner__icon {
  background: rgba(245, 158, 11, 0.25);
  color: #fffbeb;
}

.account-status-banner--danger {
  border-color: rgba(239, 68, 68, 0.45);
  background: linear-gradient(120deg, rgba(239, 68, 68, 0.25), rgba(99, 102, 241, 0.16));
  box-shadow: 0 25px 65px -40px rgba(239, 68, 68, 0.85);
}

.account-status-banner--danger .account-status-banner__icon {
  background: rgba(239, 68, 68, 0.25);
  color: #ffe4e6;
}

@media (max-width: 992px) {
  .account-status-banner {
    flex-wrap: wrap;
    padding: 1.35rem 1.35rem;
  }

  .account-status-banner__cta {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .account-status-banner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 1rem;
  }

  .account-status-banner__cta {
    justify-content: stretch;
  }

  .account-status-banner__cta .btn {
    flex: 1 1 100%;
  }
}

.navbar {
  backdrop-filter: blur(14px);
  background: rgba(15, 23, 42, 0.82) !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  position: relative;
  z-index: 1500;
}

.brand-logo {
  height: 39px;
  width: auto;
  border-radius: 0.35rem;
  object-fit: contain;
}

.navbar-brand {
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-panel {
  width: 100%;
}

.nav-menu-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.9rem;
}

.nav-menu-group__end {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}

.nav-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
}

.nav-menu--primary {
  justify-content: flex-start;
}

.nav-menu--secondary {
  justify-content: flex-start;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown__toggle {
  display: inline-flex;
  align-items: center;
  position: relative;
  padding-right: 2.2rem;
}

.nav-dropdown__menu {
  min-width: 15rem;
  padding: 0.35rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.92);
  box-shadow: 0 26px 60px -34px rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(14px);
  z-index: 1200;
  max-width: min(24rem, calc(100vw - 2rem));
}

.nav-dropdown__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0.65rem;
  border-radius: 0.7rem;
  color: var(--ds-text-secondary);
  transition: background 0.2s ease, color 0.2s ease;
  width: 100%;
}

.nav-dropdown__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex: 1 1 auto;
  min-width: 0;
}

.nav-dropdown__label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-dropdown__link:hover,
.nav-dropdown__link:focus {
  background: rgba(99, 102, 241, 0.18);
  color: #fff;
}

.nav-dropdown__link.is-active {
  background: rgba(99, 102, 241, 0.28);
  color: #fff;
}

.nav-dropdown__icon {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.12);
  color: var(--ds-text-secondary);
  font-size: 1rem;
}

.nav-dropdown__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(248, 113, 113, 0.85));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.32);
  padding-inline: clamp(0.4rem, 0.5vw + 0.2rem, 0.6rem);
}

@media (max-width: 991.98px) {
  .nav-menu-group,
  .nav-menu-group__end {
    width: 100%;
  }

  .nav-menu {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0.55rem;
  }

  .nav-menu--primary,
  .nav-menu--secondary {
    justify-content: flex-start;
  }

  .nav-chip,
  .nav-dropdown__toggle {
    width: 100%;
    justify-content: space-between;
    text-align: left;
  }

  .nav-dropdown__menu {
    width: 100%;
    max-width: calc(100vw - 2rem);
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    margin-top: 0.4rem;
  }
}

@media (min-width: 768px) {
  .nav-menu-group__end {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
  }
}

@media (min-width: 992px) {
  .nav-menu-group {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
  }

  .nav-menu--primary {
    justify-content: flex-start;
  }

  .nav-menu--secondary {
    justify-content: flex-end;
  }
}

.nav-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1.1rem;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: linear-gradient(135deg, rgba(148, 163, 184, 0.08), rgba(30, 41, 59, 0.22));
  color: var(--ds-text-secondary);
  font-size: 0.95rem;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.nav-chip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, rgba(99, 102, 241, 0.18), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-chip:hover,
.nav-chip:focus {
  color: #fff;
  border-color: rgba(99, 102, 241, 0.45);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(14, 165, 233, 0.24));
  box-shadow: 0 18px 40px -28px rgba(99, 102, 241, 0.7);
}

.nav-chip:hover::after,
.nav-chip:focus::after {
  opacity: 1;
}

.nav-chip__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  color: var(--ds-text-primary);
  font-size: 0.95rem;
  transition: inherit;
}

.nav-chip__label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-chip__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.6), rgba(51, 65, 85, 0.6));
  color: #e2e8f0;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 12px 30px -22px rgba(15, 23, 42, 0.55);
  flex-shrink: 0;
}

.nav-chip__avatar--square {
  border-radius: 0.6rem;
}

.nav-chip__avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-chip__avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-weight: 700;
  font-size: 0.9rem;
  color: inherit;
}

.nav-chip__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(248, 113, 113, 0.85));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 10px 24px -14px rgba(239, 68, 68, 0.85), inset 0 0 0 1px rgba(248, 250, 252, 0.25);
}

.nav-chip__badge--plan {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.9), rgba(37, 99, 235, 0.9));
  box-shadow: 0 10px 24px -14px rgba(37, 99, 235, 0.65), inset 0 0 0 1px rgba(248, 250, 252, 0.28);
}

.nav-chip__badge--plan-free {
  background: linear-gradient(135deg, rgba(148, 163, 184, 0.9), rgba(71, 85, 105, 0.9));
  box-shadow: 0 10px 24px -14px rgba(100, 116, 139, 0.55), inset 0 0 0 1px rgba(248, 250, 252, 0.22);
}

.nav-chip__badge--plan-plus {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.95), rgba(234, 88, 12, 0.9));
  box-shadow: 0 10px 24px -14px rgba(249, 115, 22, 0.6), inset 0 0 0 1px rgba(253, 230, 138, 0.35);
}

.nav-chip__badge--plan-default {
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.9), rgba(59, 130, 246, 0.88));
  box-shadow: 0 10px 24px -14px rgba(59, 130, 246, 0.58), inset 0 0 0 1px rgba(248, 250, 252, 0.26);
}

.nav-chip__badge--floating {
  position: absolute;
  top: 0px;
  right: 0.9rem;
  min-width: 1.2rem;
  padding: 0.1rem 0.4rem;
  font-size: 0.7rem;
  pointer-events: none;
  z-index: 2;
}

@media (max-width: 575.98px) {
  .nav-dropdown__toggle {
    padding-right: 1.8rem;
  }

  .nav-chip__badge--floating {
    top: 0.35rem;
    right: 0.7rem;
    min-width: 1.05rem;
    padding: 0.05rem 0.3rem;
    font-size: 0.65rem;
  }
}

.nav-chip.is-active .nav-chip__badge {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 64, 175, 0.85));
  box-shadow: 0 10px 24px -14px rgba(59, 130, 246, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.nav-chip.is-active {
  color: #fff;
  border-color: rgba(99, 102, 241, 0.6);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.45), rgba(14, 165, 233, 0.35));
  box-shadow: 0 22px 45px -28px rgba(99, 102, 241, 0.85);
}

.nav-chip.is-active .nav-chip__icon {
  background: rgba(15, 23, 42, 0.65);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.nav-chip--accent {
  border-color: transparent;
  background: linear-gradient(135deg, var(--ds-primary), var(--ds-secondary));
  color: #fff;
  box-shadow: 0 20px 45px -28px rgba(14, 165, 233, 0.75);
}

.nav-chip--ghost {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.4);
  color: var(--ds-text-secondary);
}

.nav-chip--ghost:hover,
.nav-chip--ghost:focus {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  box-shadow: 0 18px 40px -32px rgba(99, 102, 241, 0.55);
}

.ticket-summary {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.ticket-summary__group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ticket-summary__group--overview {
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(14, 165, 233, 0.18));
  border: 1px solid rgba(99, 102, 241, 0.25);
  box-shadow: 0 20px 45px -35px rgba(14, 165, 233, 0.65);
}

.ticket-summary__heading {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ds-text-muted);
}

.ticket-summary__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.ticket-summary__chip {
  flex: 1 1 calc(50% - 0.65rem);
  min-width: 8.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.95rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.55);
  box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.12);
  color: var(--ds-text-primary);
}

.ticket-summary__chip--primary {
  border-color: rgba(59, 130, 246, 0.45);
  background: rgba(37, 99, 235, 0.18);
  color: #bfdbfe;
}

.ticket-summary__chip--alert {
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.16);
  color: #fecaca;
}

.ticket-summary__chip--status {
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(30, 41, 59, 0.55);
}

.ticket-summary__chip--priority {
  border-color: rgba(14, 165, 233, 0.35);
  background: rgba(14, 165, 233, 0.18);
  color: #bae6fd;
}

.ticket-summary__label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ticket-summary__value {
  font-size: 1.1rem;
  font-weight: 700;
}

.ticket-summary-panel .card-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
}

.ticket-summary-panel__header {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.ticket-summary-panel__titles {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ticket-summary-panel__search {
  display: flex;
  width: 100%;
}

.ticket-summary-panel__search-group,
.ticket-filter-search {
  display: flex;
  flex: 1;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.08);
}

.ticket-summary-panel__search-group .input-group-text,
.ticket-filter-search .input-group-text {
  background: transparent;
  border: 0;
  color: var(--ds-text-muted);
}

.ticket-summary-panel__search-group .form-control,
.ticket-filter-search .form-control {
  border: 0;
  background: transparent;
  color: var(--ds-text-primary);
  min-width: 0;
}

.ticket-summary-panel__search-group .form-control:focus,
.ticket-filter-search .form-control:focus {
  box-shadow: none;
}

.ticket-summary-panel__search-group .btn,
.ticket-filter-search .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border: 0;
  padding-inline: 0.9rem;
  display: inline-flex;
  align-items: center;
}

.ticket-summary-panel__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ticket-summary-panel .ticket-summary {
  margin-bottom: 0;
}

.ticket-summary-panel .ticket-summary__chips {
  justify-content: flex-start;
}

@media (min-width: 576px) {
  .ticket-summary-panel__search-group {
    max-width: 22rem;
  }
}

@media (min-width: 768px) {
  .ticket-summary-panel__header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .ticket-summary-panel__search {
    justify-content: flex-end;
  }
}

@media (min-width: 992px) {
  .ticket-summary-panel__header {
    gap: 1.5rem;
  }
}

.ticket-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ticket-list--compact {
  gap: 0.5rem;
}

.ticket-list--more {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(148, 163, 184, 0.2);
}

.ticket-list--collapsed {
  display: none;
}

.ticket-list-section {
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 18px 45px -38px rgba(15, 23, 42, 0.85);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ticket-list-section + .ticket-list-section {
  margin-top: 0.75rem;
}

.ticket-overview-panel .card-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-height: 0;
}

.ticket-overview-panel__scroller {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
  padding-right: 0.35rem;
  padding-bottom: 0.25rem;
  min-height: 0;
}

.ticket-overview-panel .ticket-list {
  gap: 0.6rem;
}

.ticket-overview-panel .ticket-list-section {
  padding: 0.85rem 0.95rem;
}

.ticket-overview-panel .ticket-list-section + .ticket-list-section {
  margin-top: 0.6rem;
}

.ticket-overview-panel .ticket-list-section--compact + .ticket-list-section--compact {
  margin-top: 0.45rem;
}

.ticket-overview-panel .ticket-list--more {
  margin-top: 0.35rem;
  padding-top: 0.35rem;
}

.ticket-list-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.ticket-list-section--compact .ticket-list-section__header {
  margin-bottom: 0.4rem;
}

.ticket-list-section__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ticket-list-title {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ds-text-muted);
}

.ticket-list-section--compact .ticket-list-title {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.ticket-list-count {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.ticket-section-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.35);
  color: var(--ds-text-muted);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.ticket-section-toggle:hover,
.ticket-section-toggle:focus {
  color: var(--ds-text-primary);
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(99, 102, 241, 0.45);
}

.ticket-section-toggle .bi {
  transition: transform 0.25s ease;
}

.ticket-list-section__body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ticket-list-section.is-collapsed .ticket-list-section__body {
  display: none;
}

.ticket-list-section.is-collapsed .ticket-section-toggle .bi {
  transform: rotate(-90deg);
}

.ticket-list-section__empty {
  padding: 0.9rem 0.75rem;
  border-radius: 0.75rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ds-text-muted);
  background: rgba(15, 23, 42, 0.45);
  border: 1px dashed rgba(148, 163, 184, 0.28);
}

.ticket-list-item {
  display: block;
  padding: 0.9rem 1.1rem;
  border-radius: 0.85rem;
  background: rgba(30, 41, 59, 0.72);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.ticket-list-item--compact {
  padding: 0.55rem 0.8rem;
  border-radius: 0.65rem;
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(71, 85, 105, 0.45);
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.ticket-list-item:hover,
.ticket-list-item:focus {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(30, 41, 59, 0.88);
}

.ticket-list-item--compact:hover,
.ticket-list-item--compact:focus {
  background: rgba(30, 41, 59, 0.75);
  border-color: rgba(148, 163, 184, 0.55);
  transform: translateY(-1px);
}

.ticket-list--archived .ticket-list-item {
  background: rgba(30, 41, 59, 0.62);
  opacity: 0.85;
}

.ticket-list--archived .ticket-list-item:hover,
.ticket-list--archived .ticket-list-item:focus {
  opacity: 1;
}

.ticket-list-item.is-active {
  border-color: rgba(99, 102, 241, 0.9);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.32), rgba(14, 165, 233, 0.28));
  box-shadow: 0 18px 45px -32px rgba(99, 102, 241, 0.75);
}

.ticket-list-item--compact.is-active {
  border-color: rgba(99, 102, 241, 0.7);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.28), rgba(30, 64, 175, 0.35));
  box-shadow: 0 12px 28px -22px rgba(99, 102, 241, 0.6);
}

.ticket-list--archived .ticket-list-item.is-active {
  opacity: 1;
}

.ticket-list-item__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.ticket-list-item--compact .ticket-list-item__header {
  margin-bottom: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.ticket-list-item__subject {
  font-weight: 600;
  color: var(--ds-text-primary);
  max-width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticket-list-item--compact .ticket-list-item__subject {
  font-size: 0.9rem;
  max-width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  flex: 1 1 auto;
  min-width: 0;
}

.ticket-list-toggle {
  margin-top: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
}

.ticket-list-toggle .bi {
  font-size: 1rem;
}

.ticket-list-item__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.ticket-list-item--compact .ticket-list-item__badge {
  padding: 0.1rem 0.45rem;
  font-size: 0.7rem;
}

.ticket-list-item__meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.ticket-list-item--compact .ticket-list-item__meta {
  display: none;
}

.ticket-list-item__order {
  font-size: 0.8rem;
  color: var(--ds-text-muted);
  margin-bottom: 0.35rem;
}

.ticket-list-item--compact .ticket-list-item__order {
  display: none;
}

.ticket-list-item__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--ds-text-muted);
}

.ticket-list-item--compact .ticket-list-item__footer {
  display: none;
}

.ticket-summary + .ticket-list {
  margin-top: 0.5rem;
}

.ticket-empty {
  padding: 1.5rem;
  text-align: center;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  border-radius: 1rem;
  color: var(--ds-text-muted);
  background: rgba(15, 23, 42, 0.45);
}

.ticket-empty i {
  display: block;
  font-size: 2rem;
  margin-bottom: 0.75rem;
  color: rgba(99, 102, 241, 0.75);
}

@media (max-width: 767.98px) {
  .ticket-summary__chip {
    flex: 1 1 100%;
  }

  .ticket-summary {
    gap: 1rem;
  }

  .ticket-list-section {
    padding: 0.85rem 0.9rem;
  }
}

.ticket-messages {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ticket-message {
  padding: 1rem 1.15rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 14px 35px -32px rgba(15, 23, 42, 0.6);
}

.ticket-message--self {
  border-color: rgba(99, 102, 241, 0.55);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.22), rgba(14, 165, 233, 0.18));
}

.ticket-message--internal {
  border-style: dashed;
  border-color: rgba(255, 196, 81, 0.55);
  background: rgba(255, 196, 81, 0.1);
}

.ticket-message__meta {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: var(--ds-text-muted);
}

.ticket-message__meta-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.ticket-message__author {
  font-weight: 600;
  color: var(--ds-text-primary);
}

.ticket-message__tag {
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 196, 81, 0.16);
  border: 1px solid rgba(255, 196, 81, 0.4);
  color: #fde68a;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ticket-message__time {
  margin-left: auto;
  color: var(--ds-text-muted);
  font-size: 0.85rem;
}

.ticket-message__avatar {
  flex-shrink: 0;
}

.ticket-message__body {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ds-text-secondary);
}

.ticket-message-empty {
  padding: 1.5rem;
  text-align: center;
  border-radius: 1rem;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.45);
  color: var(--ds-text-muted);
}

.ticket-message-empty i {
  display: block;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: rgba(99, 102, 241, 0.75);
}

.ticket-reply__form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ticket-reply__card {
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 24px 55px -40px rgba(15, 23, 42, 0.95);
}

.ticket-reply__card .form-label {
  margin-bottom: 0.35rem;
  color: var(--ds-text-secondary);
}

.ticket-reply__editor {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ticket-reply__editor-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.ticket-reply__editor-header .form-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ds-text-primary);
}

.ticket-reply__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ticket-avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.12);
  color: var(--ds-text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.ticket-avatar--sm {
  width: 2.2rem;
  height: 2.2rem;
  font-size: 0.9rem;
}

.ticket-avatar--md {
  width: 2.8rem;
  height: 2.8rem;
}

.ticket-avatar--lg {
  width: 3.4rem;
  height: 3.4rem;
  font-size: 1.1rem;
}

.ticket-avatar__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

.ticket-avatar__fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: rgba(59, 130, 246, 0.15);
  color: #bfdbfe;
}

.ticket-list-item__grid {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
}

.ticket-list-item__avatar {
  flex-shrink: 0;
}

.ticket-list-item__content {
  width: 100%;
}

.ticket-detail__header .ticket-avatar {
  box-shadow: 0 8px 18px -10px rgba(59, 130, 246, 0.45);
}

.ticket-detail__title {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
}

.ticket-detail__subject {
  display: -webkit-box;
  flex: 1 1 auto;
  width: 100%;
  max-width: min(80vw, 780px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}

@media (max-width: 576px) {
  .ticket-detail__subject {
    max-width: 100%;
  }
}

.ticket-detail__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.ticket-attachments__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 260px));
  gap: 1rem;
  align-items: stretch;
  justify-content: flex-start;
}

.ticket-attachments__grid .ticket-attachment {
  min-width: 220px;
  max-width: 260px;
  width: 100%;
  border-radius: 1rem;
  overflow: hidden;
}

.ticket-attachment__body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
}

.ticket-attachment__preview {
  width: 100%;
  height: 170px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(15, 23, 42, 0.035);
}

.ticket-attachment__meta {
  min-width: 0;
}

@media (max-width: 576px) {
  .ticket-attachments__grid {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .ticket-attachments__grid .ticket-attachment {
    min-width: 0;
    max-width: 100%;
  }
}

.ticket-reply__textarea {
  min-height: 9rem;
  border-radius: 0.85rem;
  padding: 1rem 1.1rem;
  resize: vertical;
}

.ticket-reply__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.25rem;
}

.ticket-reply__footer .btn {
  padding-inline: 1.25rem;
}

.ticket-reply__internal {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border-radius: 0.85rem;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.ticket-reply__internal .form-check-input {
  width: 2.5rem;
  height: 1.2rem;
}

.ticket-reply__internal .form-check-label {
  margin-left: 0.5rem;
  font-size: 0.85rem;
  color: var(--ds-text-secondary);
}

@media (max-width: 575.98px) {
  .ticket-reply__card {
    padding: 1rem 1.1rem;
    border-radius: 0.9rem;
  }

  .ticket-reply__textarea {
    min-height: 8rem;
  }
}

.ticket-reply form textarea {
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(99, 102, 241, 0.25);
  color: var(--ds-text-primary);
}

.ticket-reply form textarea:focus {
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.15);
}

[data-ticket-reply-status] {
  min-height: 1.2rem;
}

.nav-chip--accent .nav-chip__icon {
  background: rgba(15, 23, 42, 0.38);
}

.nav-chip--accent:hover,
.nav-chip--accent:focus {
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 24px 55px -26px rgba(14, 165, 233, 0.8);
}

.nav-chip--danger {
  border-color: rgba(239, 68, 68, 0.55);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.18), rgba(127, 29, 29, 0.25));
  color: #ffe4e6;
  box-shadow: 0 18px 45px -32px rgba(239, 68, 68, 0.55);
}

.nav-chip--danger .nav-chip__icon {
  background: rgba(239, 68, 68, 0.25);
  color: #fff1f2;
}

.nav-chip--danger:hover,
.nav-chip--danger:focus {
  color: #fff;
  border-color: rgba(239, 68, 68, 0.75);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(127, 29, 29, 0.35));
  box-shadow: 0 22px 52px -32px rgba(239, 68, 68, 0.68);
  transform: translateY(-1px);
}

.nav-chip--warning {
  border-color: rgba(251, 191, 36, 0.6);
  color: #fef3c7;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(217, 119, 6, 0.18));
}

.nav-chip--warning .nav-chip__icon {
  background: rgba(251, 191, 36, 0.24);
  color: #fff7ed;
}

.nav-chip--warning:hover,
.nav-chip--warning:focus {
  color: #fffaf0;
  border-color: rgba(251, 191, 36, 0.75);
  box-shadow: 0 18px 45px -28px rgba(251, 191, 36, 0.6);
}

.nav-chip--static {
  pointer-events: none;
  cursor: default;
  opacity: 0.9;
}

.nav-chip--impersonating {
  border-style: dashed;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.16), rgba(14, 165, 233, 0.14));
}

.avatar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(14, 165, 233, 0.25));
  color: #fff;
  font-size: 1.3rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.card.bg-dark-subtle {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.85));
  border: 1px solid rgba(99, 102, 241, 0.22);
  box-shadow: 0 26px 48px -34px rgba(14, 165, 233, 0.55);
  color: var(--ds-text-primary);
  backdrop-filter: blur(12px);
}

.card.bg-dark-subtle .card-title,
.card.bg-dark-subtle .card-subtitle {
  color: var(--ds-text-primary);
}

.card.bg-dark-subtle .btn-outline-light {
  border-color: rgba(148, 163, 184, 0.35);
  color: var(--ds-text-secondary);
  transition: all 0.25s ease;
}

.card.bg-dark-subtle .btn-outline-light:hover,
.card.bg-dark-subtle .btn-outline-light:focus {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(14, 165, 233, 0.22));
  color: #fff;
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 14px 36px -28px rgba(99, 102, 241, 0.6);
}

.card.bg-dark-subtle .form-control,
.card.bg-dark-subtle .form-select {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: var(--ds-text-primary);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.45);
}

.card.bg-dark-subtle .form-control::placeholder,
.card.bg-dark-subtle .form-select::placeholder {
  color: rgba(255, 255, 255, 0.98);
  opacity: 1;
}

.card.bg-dark-subtle .form-control:focus,
.card.bg-dark-subtle .form-select:focus {
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.12);
}

.stat-card {
  border-radius: 1rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.65), rgba(30, 41, 59, 0.75));
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 18px 40px -32px rgba(14, 165, 233, 0.5);
  height: 100%;
}

.stat-card__label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(226, 232, 240, 0.75);
  margin-bottom: 0.5rem;
}

.stat-card__value {
  font-size: 2.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
}

.stat-card__meta {
  font-size: 0.85rem;
}

.summary-tile {
  border-radius: 1rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, rgba(148, 163, 184, 0.12), rgba(30, 41, 59, 0.22));
  border: 1px solid rgba(148, 163, 184, 0.18);
  height: 100%;
}

.summary-tile__label {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(226, 232, 240, 0.75);
  margin-bottom: 0.45rem;
}

.summary-tile__value {
  font-size: 1.65rem;
  font-weight: 600;
}

.partner-summary-card {
  background: linear-gradient(145deg, rgba(23, 37, 84, 0.5), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 1.25rem;
}

.partner-summary__header h4 {
  margin-bottom: 0.35rem;
}

.partner-summary__alert {
  border: 1px solid rgba(253, 224, 71, 0.35);
  background: rgba(253, 224, 71, 0.08);
  color: #fef9c3;
}

.summary-stat {
  border-radius: 1rem;
  padding: 1.1rem 1.2rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(17, 24, 39, 0.75));
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 18px 40px -32px rgba(0, 0, 0, 0.5);
}

.summary-stat--accent {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(15, 23, 42, 0.9));
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 22px 48px -38px rgba(59, 130, 246, 0.5);
}

.summary-stat__label {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: rgba(226, 232, 240, 0.72);
  margin-bottom: 0.25rem;
}

.summary-stat__value {
  font-size: 1.65rem;
  font-weight: 700;
  color: #e5e7eb;
}

.summary-stat__meta {
  font-size: 0.95rem;
  color: rgba(226, 232, 240, 0.72);
}

.partner-summary__section {
  padding: 1.15rem 1.25rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(15, 23, 42, 0.85));
  border: 1px solid rgba(148, 163, 184, 0.16);
  height: 100%;
}

.partner-summary__section-title {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(226, 232, 240, 0.7);
  margin-bottom: 0.85rem;
}

.summary-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  font-size: 0.97rem;
  color: #e5e7eb;
  padding: 0.4rem 0;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.18);
}

.summary-detail-row:last-child {
  border-bottom: none;
}

.partner-summary__table thead {
  background: rgba(255, 255, 255, 0.03);
}

.partner-summary__table tbody tr {
  border-color: rgba(148, 163, 184, 0.15);
}

.partner-summary__table tbody tr:hover {
  background: rgba(59, 130, 246, 0.04);
}

.metric-progress {
  height: 0.6rem;
  background: rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 18px 40px -32px rgba(14, 165, 233, 0.45);
}

.metric-progress .progress-bar {
  height: 100%;
  border-radius: 999px;
}

.metric-progress__bar--credit {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.85), rgba(14, 165, 233, 0.6));
}

.metric-progress__bar--debit {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.78), rgba(249, 115, 22, 0.6));
}

.table.table-dark {
  --bs-table-bg: rgba(15, 23, 42, 0.78);
  --bs-table-striped-bg: rgba(30, 41, 59, 0.72);
  --bs-table-hover-bg: rgba(46, 60, 87, 0.72);
  --bs-table-border-color: rgba(148, 163, 184, 0.2);
  color: var(--ds-text-primary);
  border-color: rgba(148, 163, 184, 0.18);
  backdrop-filter: blur(8px);
}

.table.table-dark thead tr {
  background: rgba(13, 20, 35, 0.9);
  border-bottom: 1px solid rgba(99, 102, 241, 0.22);
}

.table.table-dark th {
  color: var(--ds-text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  border-color: rgba(99, 102, 241, 0.18) !important;
}

.table.table-dark td {
  border-color: rgba(99, 102, 241, 0.12) !important;
}

.table.table-dark tbody tr {
  transition: background 0.2s ease;
}

.table.table-dark tbody tr:hover {
  background: rgba(46, 60, 87, 0.72);
}

.badge.bg-success-subtle {
  background: rgba(22, 163, 74, 0.22);
  color: #bbf7d0;
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
}

.badge.bg-danger-subtle {
  background: rgba(239, 68, 68, 0.18);
  color: #fecaca;
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
}

.alert-modern {
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.85);
  color: inherit;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  box-shadow: 0 18px 45px -25px rgba(99, 102, 241, 0.45);
}

.alert-modern.alert-success {
  border-color: rgba(34, 197, 94, 0.45);
}

.alert-modern.alert-danger,
.alert-modern.alert-warning {
  border-color: rgba(239, 68, 68, 0.45);
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.section-title h1,
.section-title h2,
.section-title h3,
.section-title h4 {
  margin: 0;
  font-weight: 700;
}

.hero {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.22), rgba(14, 165, 233, 0.18));
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 30px;
  padding: 4rem 3rem;
  box-shadow: 0 35px 60px -40px rgba(15, 118, 110, 0.55);
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 10%, rgba(14, 165, 233, 0.35), transparent 55%);
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(2.5rem, 4vw, 3.75rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: #fff;
}

.hero p {
  font-size: 1.125rem;
  color: var(--ds-text-secondary);
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-cta {
  background: linear-gradient(135deg, var(--ds-primary), var(--ds-secondary));
  border: none;
  color: #fff;
  padding: 0.85rem 2.4rem;
  font-weight: 600;
  border-radius: 999px;
  box-shadow: 0 18px 40px -22px rgba(99, 102, 241, 0.75);
}

.btn-ghost {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: var(--ds-text-primary);
  padding: 0.85rem 2.2rem;
  background: transparent;
}

.btn-ghost:hover,
.btn-ghost:focus {
  color: var(--ds-text-secondary);
  border-color: rgba(148, 163, 184, 0.55);
}

.card-modern {
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 20px;
  padding: 0;
  box-shadow: 0 25px 45px -30px rgba(99, 102, 241, 0.4);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  overflow: hidden;
}

.card-modern--imported {
  border-color: rgba(34, 197, 94, 0.55);
  box-shadow: 0 30px 55px -32px rgba(34, 197, 94, 0.45);
}

.card-modern:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 35px 60px -35px rgba(14, 165, 233, 0.5);
}

.card-modern:focus-visible {
  outline: 2px solid rgba(99, 102, 241, 0.65);
  outline-offset: 4px;
}

.card-modern .card-media {
  position: relative;
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(14, 165, 233, 0.12));
  overflow: hidden;
  flex-shrink: 0;
  border-radius: 0;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  isolation: isolate;
  padding: 0;
}

@media (min-width: 768px) {
  .card-modern .card-media {
    height: 280px;
  }
}

@media (min-width: 1280px) {
  .card-modern .card-media {
    height: 320px;
  }
}

.card-modern .card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.08);
  opacity: 0;
  transition: opacity 0.18s ease;
  z-index: 1;
  pointer-events: none;
}

.card-modern:hover .card-media::after {
  opacity: 1;
}

.card-modern .card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: 0;
  transition: transform 0.25s ease;
  aspect-ratio: inherit;
}

.card-modern:hover .card-media img {
  transform: scale(1.01);
}

.card-modern .card-media--empty::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(99, 102, 241, 0.35), transparent 65%);
  opacity: 1;
}

.card-modern .card-body {
  margin-top: auto;
  padding: 1.35rem 1.35rem 1.6rem;
  color: var(--ds-text-primary);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.card-modern .product-meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.card-modern .product-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.product-import-count {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.45);
  line-height: 1.2;
}

.product-import-count i {
  color: #94a3b8;
  font-size: 1rem;
}

.card-modern .product-title {
  margin: 0;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-modern .product-price {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(140deg, rgba(15, 23, 42, 0.92), rgba(30, 64, 175, 0.9));
  color: #f8fafc;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.5rem 0.9rem;
  min-width: max-content;
  box-shadow: 0 18px 35px -24px rgba(15, 23, 42, 0.85);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  z-index: 2;
  border: 1px solid rgba(148, 163, 184, 0.3);
  backdrop-filter: blur(8px);
}

.card-modern:hover .product-price {
  transform: translateY(-2px);
  box-shadow: 0 26px 45px -26px rgba(14, 165, 233, 0.7);
}

.product-badges {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  z-index: 2;
}

.product-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
  min-width: max-content;
  color: #f8fafc;
  box-shadow: 0 20px 32px -26px rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
}

.product-status i {
  font-size: 1rem;
  color: inherit;
}

.product-status--imported {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.45));
  border-color: rgba(34, 197, 94, 0.45);
  color: #ecfdf5;
  box-shadow: 0 20px 32px -26px rgba(34, 197, 94, 0.6);
}

.product-status--imported i {
  color: #bbf7d0;
}

.product-status--new {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.28), rgba(37, 99, 235, 0.55));
  border-color: rgba(37, 99, 235, 0.45);
  color: #dbeafe;
  box-shadow: 0 20px 32px -26px rgba(37, 99, 235, 0.55);
}

.product-status--new i {
  color: #bfdbfe;
}

.product-status--out {
  background: linear-gradient(135deg, rgba(248, 113, 113, 0.28), rgba(220, 38, 38, 0.55));
  border-color: rgba(220, 38, 38, 0.45);
  color: #fee2e2;
  box-shadow: 0 20px 32px -26px rgba(220, 38, 38, 0.55);
}

.product-status--out i {
  color: #fecaca;
}

.card-modern .product-categories {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.card-modern .product-category {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  background: none;
  color: var(--ds-text-secondary);
  border-radius: 0;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.45;
  padding: 0.15rem 0 0.15rem 0.75rem;
  letter-spacing: 0.02em;
  border-left: 3px solid rgba(99, 102, 241, 0.55);
}

.btn-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 0 1.75rem;
  min-height: 44px;
  min-width: 180px;
  font-weight: 600;
  font-size: 0.95rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.95), rgba(14, 165, 233, 0.95));
  color: #0f172a;
  border: none;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 18px 35px -22px rgba(99, 102, 241, 0.65);
  pointer-events: auto;
  align-self: flex-start;
}

.card-modern .btn-card {
  margin-top: auto;
}

.btn-card:hover,
.btn-card:focus-visible {
  color: #0f172a;
  transform: translateY(-2px);
  box-shadow: 0 26px 40px -24px rgba(14, 165, 233, 0.75);
}

.card-modern:hover .btn-card {
  transform: translateY(-2px);
  box-shadow: 0 26px 40px -24px rgba(14, 165, 233, 0.75);
}

.btn-card:focus-visible {
  outline: 2px solid rgba(99, 102, 241, 0.55);
  outline-offset: 3px;
}

.btn-card:active {
  transform: translateY(0);
  box-shadow: 0 18px 30px -26px rgba(14, 165, 233, 0.65);
}

.btn-card:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  box-shadow: none;
}

.badge-soft {
  background: rgba(99, 102, 241, 0.18);
  color: var(--ds-text-secondary);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

.filter-panel {
  position: sticky;
  top: 96px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 24px;
  padding: 1.75rem;
  box-shadow: 0 25px 40px -35px rgba(14, 165, 233, 0.45);
}

.filter-panel label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ds-text-secondary);
}

.filter-panel .form-control,
.filter-panel .form-select {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #f8fafc;
  border-radius: 14px;
}

.filter-panel .form-control::placeholder {
  color: rgba(248, 250, 252, 0.7);
}

.filter-panel .form-control:focus,
.filter-panel .form-select:focus {
  box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.25);
  border-color: rgba(99, 102, 241, 0.65);
}

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

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

@media (min-width: 1024px) {
  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
  }
}

@media (min-width: 1280px) {
  .catalog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
  }
}

.catalog-grid .empty-state {
  padding: 3rem;
  text-align: center;
  border-radius: 24px;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  color: var(--ds-text-secondary);
  background: rgba(15, 23, 42, 0.4);
}

.catalog-pagination {
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(30, 64, 175, 0.65));
  border: 1px solid rgba(99, 102, 241, 0.35);
  box-shadow: 0 25px 40px -35px rgba(14, 165, 233, 0.35);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  color: #f8fafc;
  justify-content: space-between;
}

.catalog-pagination__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(248, 250, 252, 0.25);
  border-radius: 999px;
  padding: 0.55rem 1.25rem;
  background: rgba(15, 23, 42, 0.55);
  color: inherit;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.catalog-pagination__pill:hover,
.catalog-pagination__pill:focus-visible {
  background: rgba(99, 102, 241, 0.25);
  border-color: rgba(248, 250, 252, 0.45);
  color: #fff;
  transform: translateY(-1px);
}

.catalog-pagination__pill:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.catalog-pagination__pages {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 140px;
}

.catalog-pagination__page-btn {
  border: none;
  background: rgba(15, 23, 42, 0.45);
  color: inherit;
  padding: 0.35rem 0.95rem;
  border-radius: 14px;
  font-weight: 600;
  min-width: 44px;
  text-align: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.catalog-pagination__page-btn:hover,
.catalog-pagination__page-btn:focus-visible {
  background: rgba(99, 102, 241, 0.35);
  color: #fff;
  transform: translateY(-1px);
}

.catalog-pagination__page-btn.is-active {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.85), rgba(99, 102, 241, 0.85));
  color: #fff;
  cursor: default;
  transform: none;
}

.catalog-pagination__page-btn:disabled {
  opacity: 0.9;
}

.catalog-pagination__ellipsis {
  color: rgba(248, 250, 252, 0.65);
  padding: 0 0.25rem;
}

.catalog-pagination__count {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(248, 250, 252, 0.85);
}

.catalog-pagination__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.catalog-inline-loader {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(248, 250, 252, 0.85);
  letter-spacing: 0.01em;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.catalog-inline-loader[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.catalog-inline-loader__dots {
  display: inline-flex;
  gap: 0.25rem;
}

.catalog-inline-loader__dots span {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.8);
  animation: catalog-inline-loader-bounce 0.9s ease-in-out infinite;
}

.catalog-inline-loader__dots span:nth-child(2) {
  animation-delay: 0.12s;
}

.catalog-inline-loader__dots span:nth-child(3) {
  animation-delay: 0.24s;
}

.catalog-grid {
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.catalog-grid.is-loading {
  opacity: 0.45;
  filter: blur(1px);
  pointer-events: none;
}

@media (max-width: 640px) {
  .catalog-pagination {
    flex-direction: column;
    align-items: stretch;
  }

  .catalog-pagination__pages {
    width: 100%;
  }

  .catalog-pagination__count {
    text-align: center;
  }

  .catalog-pagination__meta {
    justify-content: center;
  }
}

@keyframes catalog-inline-loader-bounce {
  0%,
  80%,
  100% {
    transform: scale(0.6);
    opacity: 0.55;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 2rem;
  align-items: flex-start;
}

@media (max-width: 992px) {
  .product-detail {
    grid-template-columns: 1fr;
  }
}

.product-gallery {
  display: grid;
  gap: 1.5rem;
}

.product-gallery .image-stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.product-gallery img {
  border-radius: 18px;
  object-fit: cover;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.product-form {
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 24px;
  padding: 2rem 2.25rem;
  box-shadow: 0 25px 45px -32px rgba(99, 102, 241, 0.45);
}

.product-form__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.product-form__header h4 {
  margin: 0;
  font-weight: 600;
}

.product-form__header p {
  margin: 0;
}

.product-form-layout {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

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

.product-form .form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-form .form-field-full {
  grid-column: 1 / -1;
}

.product-form .image-input-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

.product-form .image-input-grid .form-control {
  min-height: 44px;
}

.product-form .form-text {
  margin-top: 0.25rem;
}

.product-form .form-control,
.product-form .form-select {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 14px;
  color: var(--ds-text-primary);
}

.product-form .form-control:focus,
.product-form .form-select:focus {
  border-color: rgba(99, 102, 241, 0.8);
  box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.2);
}

.ds-html-editor {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ds-html-editor .pell {
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.9);
  color: var(--ds-text-primary);
  overflow: hidden;
}

.ds-html-editor .pell-actionbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  background: rgb(15 21 34);
}

.ds-html-editor .pell-button {
  border: none;
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
  background: transparent;
  color: var(--ds-text-secondary);
  font-size: 0.85rem;
  line-height: 1;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.ds-html-editor .pell-button:hover,
.ds-html-editor .pell-button:focus-visible {
  background: rgba(99, 102, 241, 0.2);
  color: #fff;
  outline: none;
}

.ds-html-editor .pell-button-active {
  background: rgba(99, 102, 241, 0.35);
  color: #fff;
}

.ds-html-editor__content {
  min-height: 320px;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ds-text-primary);
  background: #0f1522;
}

.ds-html-editor__content p {
  margin-bottom: 0.75rem;
}

.ds-html-editor__content ul,
.ds-html-editor__content ol {
  margin: 0.75rem 0 0.75rem 1.25rem;
}

.ds-html-editor__input {
  display: none !important;
}

.variant-section {
  display: grid;
  gap: 1.25rem;
}

.variant-section__header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.variant-card {
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.6);
  padding: 1.75rem;
  margin-bottom: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem 1.5rem;
}

.variant-card .variant-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.variant-card .form-text {
  margin-top: 0;
}

.variant-card .input-group-text {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--ds-text-secondary);
}

.variant-card .input-group {
  flex-wrap: nowrap;
}

.variant-card .input-group .form-select {
  min-width: 0;
}

.variant-card .input-group .btn {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .variant-card {
    padding: 1.25rem;
    grid-template-columns: 1fr;
  }
}

.form-check-modern {
  background: rgba(15, 23, 42, 0.45);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.auth-wrapper {
  max-width: 420px;
  margin: 0 auto;
}

.auth-card {
  background: rgba(15, 23, 42, 0.82);
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 2.5rem;
  box-shadow: 0 30px 55px -40px rgba(99, 102, 241, 0.55);
}

.register-landing {
  display: grid;
  gap: 2.5rem;
  margin: 3rem auto 0;
  max-width: 1200px;
  align-items: stretch;
}

.register-landing__intro {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.22), rgba(14, 165, 233, 0.14));
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 34px;
  padding: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0 35px 70px -45px rgba(14, 165, 233, 0.55);
  position: relative;
  overflow: hidden;
}

.register-landing__intro::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(79, 70, 229, 0.35), transparent 60%),
    radial-gradient(circle at 85% 80%, rgba(14, 165, 233, 0.25), transparent 55%);
  opacity: 0.85;
  pointer-events: none;
  mix-blend-mode: screen;
}

.register-landing__intro > * {
  position: relative;
  z-index: 1;
}

.register-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(15, 23, 42, 0.35);
  color: #fff;
  box-shadow: 0 16px 32px -26px rgba(15, 23, 42, 0.85);
}

.register-landing__intro h1 {
  font-size: clamp(2rem, 3.4vw, 2.85rem);
  line-height: 1.15;
  font-weight: 800;
}

.register-highlight {
  color: #fff;
  font-weight: 700;
  background: linear-gradient(120deg, rgba(236, 72, 153, 0.4), rgba(59, 130, 246, 0.4));
  padding: 0 0.25em;
  border-radius: 0.4rem;
}

.register-selling-points {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.register-selling-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-weight: 500;
  color: var(--ds-text-secondary);
}

.register-selling-points li::before {
  content: "\f26a";
  font-family: "bootstrap-icons";
  color: var(--ds-secondary);
  font-size: 1.1rem;
  line-height: 1.3;
}

.register-landing__video {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: auto;
}

.register-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 28px 60px -36px rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.6);
}

.register-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.register-video-caption {
  font-size: 0.9rem;
  color: var(--ds-text-muted);
}

.register-form-card {
  background: rgba(15, 23, 42, 0.86);
  border-radius: 34px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: 0 38px 70px -45px rgba(99, 102, 241, 0.65);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  position: relative;
}

.register-form-card .badge-soft {
  background: rgba(99, 102, 241, 0.2);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ds-text-primary);
  border: 1px solid rgba(99, 102, 241, 0.4);
}

.register-form-card__badge {
  position: absolute;
  top: clamp(1.5rem, 2vw, 2.25rem);
  right: clamp(1.5rem, 2vw, 2.25rem);
  white-space: nowrap;
}

.register-form-card__header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-right: clamp(0rem, 8vw - 4rem, 4rem);
}

.register-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem 1.5rem;
}

.register-form-grid .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.register-form-grid .form-group label {
  font-size: 0.9rem;
}

.register-form-grid .form-group input {
  min-height: 3.1rem;
}

.register-form-grid .form-note,
.register-form-grid .form-actions {
  grid-column: 1 / -1;
}

.register-form-grid .form-note {
  margin-top: -0.5rem;
}

.register-form-grid .form-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.register-form-grid .form-actions .btn {
  padding: 0.9rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
}

.register-form-grid .form-actions .form-text {
  text-align: center;
}

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

@media (max-width: 991.98px) {
  .register-landing {
    margin-top: 2.5rem;
  }

  .register-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .register-landing__intro,
  .register-form-card {
    border-radius: 26px;
    padding: 1.75rem;
  }

  .register-video-frame {
    border-radius: 18px;
  }

  .register-form-card__badge {
    position: static;
    align-self: flex-start;
    margin-bottom: 0.75rem;
  }

  .register-form-card__header {
    padding-right: 0;
  }
}

.auth-card h2 {
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.modal-modern .modal-content {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(17, 24, 39, 0.88));
  border-radius: 26px;
  border: 1px solid rgba(99, 102, 241, 0.28);
  box-shadow: 0 36px 70px -38px rgba(99, 102, 241, 0.65);
  color: var(--ds-text-primary);
}

.modal {
  z-index: 2100;
}

.modal-backdrop {
  z-index: 2000;
}

.modal-modern .modal-header,
.modal-modern .modal-footer {
  border-color: rgba(148, 163, 184, 0.18);
}

.modal-modern .modal-title {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.modal-modern .modal-body p,
.modal-modern .modal-body small {
  color: var(--ds-text-secondary);
}

.modal-modern .modal-body .form-control,
.modal-modern .modal-body .form-select,
.modal-modern .modal-body textarea {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(148, 163, 184, 0.3);
  color: var(--ds-text-primary);
}

.modal-modern .modal-body .form-control:focus,
.modal-modern .modal-body .form-select:focus,
.modal-modern .modal-body textarea:focus {
  border-color: rgba(99, 102, 241, 0.55);
  box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.18);
}

.modal-modern .modal-footer {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.modal-backdrop.show {
  background: rgba(2, 6, 23, 0.9);
}

.form-control,
.form-select {
  border-radius: 14px;
}

label.form-label {
  color: var(--ds-text-secondary);
  font-weight: 600;
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding: 2.25rem 1.5rem 2.75rem;
  color: var(--ds-text-secondary);
  font-size: 0.92rem;
  background: rgba(15, 23, 42, 0.8);
  margin-top: auto;
}

.site-footer__container {
  width: 100%;
  max-width: min(1600px, calc(100vw - 3rem));
  margin: 0 auto;
}

.site-footer__nav-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
}

.site-footer__nav-column {
  flex: 1 1 240px;
}

.site-footer__brand-card {
  height: 100%;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.site-footer__brand-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.18);
  color: #c7d2fe;
  box-shadow: 0 10px 30px -18px rgba(99, 102, 241, 0.8);
  font-size: 1.35rem;
}

.site-footer__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ds-text-primary);
}

.site-footer__section-heading {
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ds-text-primary);
  margin-bottom: 0.9rem;
}

.site-footer__nav ul {
  display: grid;
  gap: 0.65rem;
}

.site-footer__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.45rem;
  border-radius: 0.65rem;
  color: var(--ds-text-secondary);
  font-weight: 600;
}

.site-footer__link i {
  color: var(--ds-primary);
}

.site-footer__link:hover,
.site-footer__link:focus-visible {
  color: var(--ds-text-primary);
  background: rgba(255, 255, 255, 0.04);
}

::placeholder,
input::placeholder,
textarea::placeholder,
.form-control::placeholder,
.form-select::placeholder {
  color: var(--ds-text-muted);
  opacity: 1;
}

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

  .filter-panel {
    position: relative;
    top: 0;
  }
}

@media (max-width: 768px) {
  main {
    padding: 0.5rem 15px 1rem;
  }

  .hero {
    padding: 3rem 1.75rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .site-footer {
    text-align: center;
    padding: 2rem 1.25rem 2.25rem;
  }

  .site-footer__nav-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 0.85rem;
    row-gap: 1.1rem;
  }

  .site-footer__nav-column {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .site-footer__brand-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    padding: 1.1rem 1rem;
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.08), rgba(14, 165, 233, 0.06));
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 16px;
    box-shadow: 0 12px 28px -20px rgba(0, 0, 0, 0.45);
  }

  .site-footer__brand {
    flex-direction: column;
    justify-content: center;
    gap: 0.55rem;
    text-align: center;
  }

  .site-footer__brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.9rem;
  }

  .site-footer__brand-text p {
    margin-bottom: 0;
    line-height: 1.35;
  }

  .site-footer__title {
    font-size: 0.92rem;
  }

  .site-footer__nav ul {
    grid-template-columns: 1fr;
    gap: 0.25rem 0.45rem;
  }

  .site-footer__link {
    justify-content: center;
    font-size: 0.9rem;
    padding: 0.28rem 0.35rem;
    gap: 0.35rem;
  }

  .site-footer__link i {
    font-size: 0.95rem;
  }

  .site-footer__section-heading {
    margin: 0.2rem 0 0.45rem;
  }
}

.fade-out {
  opacity: 0;
  transition: opacity 0.45s ease;
}

.container-wide {
  width: 100%;
  max-width: min(1600px, calc(100vw - 3rem));
  margin: 0 auto;
}

.product-page {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.product-breadcrumbs {
  font-size: 0.85rem;
  color: var(--ds-text-muted);
  margin-bottom: 15px;
}

.product-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.product-breadcrumbs a {
  color: var(--ds-text-secondary);
  text-decoration: none;
}

.product-breadcrumbs li[aria-current='page'] {
  color: var(--ds-text-primary);
  font-weight: 600;
}

.product-hero__grid {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.product-gallery,
.product-summary {
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 28px;
  padding: 2rem;
  box-shadow: 0 35px 60px -45px rgba(14, 165, 233, 0.45);
}

.product-gallery__main {
  border-radius: 22px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.6);
  height: clamp(320px, 60vh, 720px);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-gallery__main img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: cover;
  aspect-ratio: inherit;
}

.product-gallery__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 0.95rem;
  color: var(--ds-text-muted);
}

.product-gallery__thumbs {
  margin-top: 1.25rem;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(72px, 1fr);
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.product-gallery__thumb {
  border: 2px solid transparent;
  border-radius: 18px;
  padding: 0;
  background: rgba(15, 23, 42, 0.65);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.product-gallery__thumb:is(:hover, :focus-visible) {
  border-color: rgba(99, 102, 241, 0.65);
  outline: none;
  transform: translateY(-2px);
}

.product-gallery__thumb.is-active {
  border-color: var(--ds-primary);
}

.product-gallery__thumb img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: cover;
  border-radius: 16px;
  pointer-events: none;
  aspect-ratio: inherit;
}

.product-summary {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.product-summary__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.import-status {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.9rem 1.15rem;
  border-radius: 18px;
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.08);
  color: var(--ds-text-primary);
  box-shadow: 0 24px 45px -28px rgba(34, 197, 94, 0.35);
  margin-top: -0.25rem;
}

.import-status--active {
  background: rgba(34, 197, 94, 0.12);
}

.import-status i {
  font-size: 1.35rem;
  line-height: 1;
  color: var(--ds-success);
  margin-top: 0.1rem;
}

.import-status strong {
  font-size: 0.95rem;
  display: block;
}

.import-status span {
  display: block;
  font-size: 0.85rem;
  color: var(--ds-text-secondary);
  margin-top: 0.2rem;
}

.product-summary__caption {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ds-text-muted);
}

.product-summary__badge {
  background: rgba(99, 102, 241, 0.22);
  border-radius: 999px;
  padding: 0.45rem 1.15rem;
  font-size: 0.75rem;
  color: var(--ds-text-secondary);
}

.product-summary__title {
  font-size: clamp(1.75rem, 3vw, 2.15rem);
  font-weight: 700;
  margin: 0;
}

.product-price-block {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 20px;
  padding: 1.25rem 1.5rem;
}

.product-price-block__item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.product-price-block__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ds-text-muted);
}

.product-price-block__value {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
}

.product-price-block__value--profit {
  color: var(--ds-success);
}

.product-price-block__note {
  font-size: 0.75rem;
  color: var(--ds-text-muted);
  display: block;
}

.product-primary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.product-transfer-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.product-transfer-status::before {
  content: '';
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: ds-spin 0.75s linear infinite;
}

.product-summary__description {
  display: grid;
  gap: 0.75rem;
}

.product-summary__quickfacts {
  display: grid;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-summary__quickfacts li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
  color: var(--ds-text-secondary);
}

.product-summary__quickfacts .label {
  color: var(--ds-text-muted);
  font-weight: 500;
}

.product-form-modern {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.product-tabs {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  padding-bottom: 0.5rem;
}

.tabs-nav button {
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.5rem;
  background: rgba(15, 23, 42, 0.65);
  color: var(--ds-text-secondary);
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.tabs-nav button[aria-selected='true'] {
  background: linear-gradient(135deg, var(--ds-primary), var(--ds-secondary));
  color: #fff;
  transform: translateY(-2px);
}

.tabs-nav button:focus-visible {
  outline: 2px solid var(--ds-primary);
  outline-offset: 2px;
}

.tab-panel[hidden] {
  display: none;
}

.panel-card {
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 28px;
  box-shadow: 0 35px 60px -45px rgba(99, 102, 241, 0.5);
  padding: 2rem 2.25rem;
  display: grid;
  gap: 1.5rem;
}

@media (max-width: 576px) {
  .panel-card {
    padding: 20px 15px;
  }
} 

.panel-card__header h2 {
  margin: 0 0 0.35rem 0;
  font-size: 1.35rem;
}

.panel-card__header p {
  margin: 0;
  color: var(--ds-text-secondary);
}

.panel-card__body {
  display: grid;
  gap: 1.5rem;
}

.feature-list h3 {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.feature-list ul {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.5rem;
  color: var(--ds-text-secondary);
}

.accordion {
  display: grid;
  gap: 1rem;
}

.accordion__item {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.65);
  overflow: hidden;
}

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

.accordion__trigger {
  background: none;
  border: none;
  color: var(--ds-text-primary);
  font-size: 1rem;
  font-weight: 600;
  padding: 0;
  text-align: left;
}

.accordion__trigger:focus-visible {
  outline: 2px solid var(--ds-primary);
  outline-offset: 2px;
}

.accordion__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.15);
  color: var(--ds-text-secondary);
  font-size: 0.85rem;
}

.meta-pill.is-success {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
}

.btn-sync {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: transparent;
  color: var(--ds-text-secondary);
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
}

.btn-sync:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.accordion__panel {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding: 1.5rem;
  display: grid;
  gap: 1.25rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

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

.variant-selection-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.form-row .form-text,
.form-row small.form-text {
  color: var(--ds-text-muted);
}

.form-control,
.form-select,
.select2-container--default .select2-selection--single {
  background: #0f1522;
  border: 1px solid #263149;
  color: #e6edf6;
  border-radius: 12px;
  padding: 10px 12px;
}

.form-control:focus,
.form-select:focus {
  outline: 0;
  border-color: #5b7cfa;
  box-shadow: 0 0 0 3px rgba(91, 124, 250, 0.15);
}

.select2-container--default .select2-selection--single {
  height: 42px;
  display: flex;
  align-items: center;
  background: #0f1522;
  border: 1px solid #263149;
  border-radius: 12px;
  padding: 0 12px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #e6edf6;
  line-height: 1;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 42px;
}

.panel-card__header--with-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.panel-card__header-content {
  display: grid;
  gap: 0.25rem;
}

.panel-card__meta {
  font-size: 0.85rem;
  color: var(--ds-text-muted);
}

.btn-round {
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ds-primary), var(--ds-secondary));
  border: none;
  color: #fff;
  padding: 0.6rem 1.4rem;
  font-weight: 600;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-round:hover,
.btn-round:focus-visible {
  transform: translateY(-1px);
  opacity: 0.92;
}

.btn-round:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn.is-busy {
  position: relative;
  pointer-events: none;
}

.btn.is-busy::after {
  content: '';
  position: absolute;
  top: calc(50% - 0.5rem);
  right: 0.75rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: ds-spin 0.75s linear infinite;
}

@keyframes ds-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.input-with-action,
.select-with-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.input-with-action .form-control,
.select-with-action .form-select {
  flex: 1 1 auto;
  min-width: 0;
}

.input-with-action .btn,
.select-with-action .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.settings-test-status {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.7);
  color: var(--ds-text-muted);
  font-size: 0.9rem;
  padding: 0.5rem 0.85rem;
  transition: opacity 0.2s ease;
}

.settings-test-status--success {
  border-color: rgba(34, 197, 94, 0.45);
  color: #bbf7d0;
}

.settings-test-status--error {
  border-color: rgba(239, 68, 68, 0.55);
  color: #fecaca;
}

.settings-test-status--pending {
  border-color: rgba(148, 163, 184, 0.4);
  color: var(--ds-text-secondary);
}

.settings-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.settings-tabs {
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  gap: 0.5rem;
  flex-wrap: wrap;
}

.settings-tabs .nav-link {
  border: none;
  border-radius: 14px 14px 0 0;
  color: var(--ds-text-secondary);
  background: transparent;
  font-weight: 500;
  padding: 0.65rem 1.1rem;
  transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.settings-tabs .nav-link .bi {
  font-size: 1rem;
}

.settings-tabs .nav-link:hover,
.settings-tabs .nav-link:focus {
  color: var(--ds-text-primary);
  background: rgba(148, 163, 184, 0.12);
}

.settings-tabs .nav-link.active {
  color: var(--ds-text-primary);
  background: rgba(99, 102, 241, 0.18);
  box-shadow: 0 18px 35px -28px rgba(99, 102, 241, 0.8);
}

.settings-tab-content {
  padding-top: 0.5rem;
}

.settings-pane {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 0.75rem;
}

.settings-pane__header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.settings-pane__header h4 {
  margin: 0;
  font-weight: 600;
}

.settings-pane__header p {
  margin: 0;
  font-size: 0.95rem;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem 1.5rem;
}

.settings-grid--compact {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.settings-grid--narrow {
  grid-template-columns: minmax(260px, 1fr);
}

.settings-grid__field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.settings-grid__field--full {
  grid-column: 1 / -1;
}

.settings-form-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 14px;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.65);
  font-weight: 500;
  font-size: 0.95rem;
}

.settings-form-status .bi {
  font-size: 1.05rem;
}

.settings-form-status--error {
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.12);
  color: #fecaca;
}

.settings-form-status--success {
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.12);
  color: #bbf7d0;
}

.settings-form-status--info {
  border-color: rgba(59, 130, 246, 0.45);
  background: rgba(59, 130, 246, 0.12);
  color: #bfdbfe;
}

.settings-form .form-text {
  color: var(--ds-text-muted);
}

.settings-pane .btn.btn-cta {
  align-self: flex-start;
}

.settings-pane .input-with-action .btn {
  margin-left: 0.75rem;
}

.settings-pane .input-with-action {
  gap: 0.75rem;
}

.settings-pane .input-with-action .form-control {
  min-height: 2.75rem;
}

.settings-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 18px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0 24px 48px -34px rgba(15, 23, 42, 0.8);
}

.settings-card--branding {
  gap: 1.25rem;
}

.settings-card__header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.settings-card__header--between {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
}

.settings-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.22);
  color: var(--ds-text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.branding-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: stretch;
}

.branding-layout__fields {
  flex: 1 1 340px;
  min-width: 0;
}

.settings-grid--branding {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.branding-layout__preview {
  flex: 0 0 240px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.branding-preview {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.branding-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

.branding-preview__placeholder {
  color: var(--ds-text-muted);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.branding-preview__hint {
  text-align: center;
  color: var(--ds-text-muted);
  font-size: 0.85rem;
}

@media (max-width: 767.98px) {
  .settings-tabs {
    gap: 0.35rem;
  }

  .settings-tabs .nav-link {
    font-size: 0.95rem;
    padding: 0.5rem 0.85rem;
  }

  .settings-grid,
  .settings-grid--compact,
  .settings-grid--narrow {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .settings-pane {
    gap: 1.25rem;
  }

  .settings-card {
    padding: 1.25rem;
  }

  .settings-card__header--between {
    flex-direction: column;
    align-items: flex-start;
  }

  .branding-layout {
    flex-direction: column;
  }

  .branding-layout__preview {
    width: 100%;
    max-width: none;
  }
}

.select2-container--default .select2-selection--single {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 14px;
  height: auto;
  min-height: 2.75rem;
  padding: 0.45rem 0.75rem;
  display: flex;
  align-items: center;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--ds-text-primary);
  padding-left: 0;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: var(--ds-text-muted);
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100%;
  right: 0.5rem;
}

.select2-dropdown {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 14px;
  color: var(--ds-text-secondary);
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background: var(--ds-primary);
  color: #fff;
}

.select2-container--default .select2-results__option[aria-selected='true'] {
  background: rgba(99, 102, 241, 0.18);
  color: var(--ds-text-primary);
}

.select2-search--dropdown .select2-search__field {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: var(--ds-text-primary);
}

.select2-container--default .select2-search--dropdown .select2-search__field::placeholder {
  color: var(--ds-text-muted);
}

.image-input-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

textarea[data-expandable-textarea] {
  max-height: 10rem;
  transition: max-height 0.25s ease;
}

textarea[data-expandable-textarea][data-expanded='true'] {
  max-height: none;
}

.form-footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem 2rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.72);
}

.form-footer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.btn-ghost.btn-ghost-sm,
.btn.btn-ghost.btn-ghost-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

.collapsible {
  position: relative;
}

.collapsible__content {
  display: block;
  line-height: 1.65;
  color: var(--ds-text-secondary);
}

.collapsible[data-expanded='false'] .collapsible__content {
  max-height: 11rem;
  overflow: hidden;
}

.collapsible[data-expanded='false'] .collapsible__content::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 3.5rem;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0), rgba(15, 23, 42, 0.95));
  pointer-events: none;
}

.collapsible__toggle,
[data-textarea-toggle] {
  align-self: flex-start;
  border: none;
  border-radius: 999px;
  padding: 0.45rem 1rem;
  background: rgba(99, 102, 241, 0.15);
  color: var(--ds-text-secondary);
  font-weight: 500;
  font-size: 0.85rem;
}

.collapsible__toggle:hover,
.collapsible__toggle:focus-visible,
[data-textarea-toggle]:hover,
[data-textarea-toggle]:focus-visible {
  background: rgba(99, 102, 241, 0.3);
  color: #fff;
  outline: none;
}

[data-textarea-toggle] {
  margin-top: -0.25rem;
}

.data-list {
  display: grid;
  gap: 1rem;
}

.data-list div {
  display: grid;
  gap: 0.25rem;
}

.data-list dt {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ds-text-muted);
}

.data-list dd {
  margin: 0;
  font-size: 0.95rem;
}

.toast-stack,
[data-toast-stack] {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  display: grid;
  gap: 0.75rem;
  z-index: 100;
}

.toast-card {
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 18px;
  padding: 0.85rem 1.1rem;
  font-size: 0.9rem;
  color: var(--ds-text-secondary);
  box-shadow: 0 20px 40px -25px rgba(99, 102, 241, 0.6);
}

.toast-card--success {
  border-color: rgba(34, 197, 94, 0.45);
  color: #bbf7d0;
}

.toast-card--error {
  border-color: rgba(239, 68, 68, 0.55);
  color: #fecaca;
}

.draft-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (min-width: 1024px) {
  .product-hero__grid {
    grid-template-columns: clamp(420px, 56vw, 640px) minmax(0, 1fr);
    column-gap: 2rem;
  }

  .product-gallery,
  .product-summary {
    grid-column: auto;
  }

  .product-summary {
    position: sticky;
    top: 3rem;
  }

}

@media (min-width: 1440px) {
  .product-hero__grid {
    grid-template-columns: clamp(460px, 48vw, 680px) minmax(0, 1fr);
  }

  .product-gallery,
  .product-summary {
    padding: 2.25rem;
  }
}

@media (max-width: 1023px) {
  .product-summary,
  .product-gallery {
    padding: 1.75rem;
  }

  .product-price-block {
    flex-direction: column;
    gap: 1rem;
  }

  .product-primary-actions {
    width: 100%;
  }

  .product-primary-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .product-gallery,
  .product-summary {
    padding: 1.25rem 1rem;
  }

  .product-summary__caption {
    font-size: 0.72rem;
    line-height: 1.4;
  }

  .product-summary__badge {
    padding: 0.35rem 0.95rem;
    font-size: 0.7rem;
    line-height: 1.25;
  }

  .product-summary__title {
    font-size: clamp(1.5rem, 4.8vw, 1.85rem);
    line-height: 1.2;
  }

  .product-price-block {
    padding: 1.05rem 1.15rem;
    gap: 0.9rem;
  }

  .product-price-block__value {
    font-size: 1.4rem;
    line-height: 1.2;
  }

  .product-gallery__main {
    height: clamp(300px, 52vh, 400px);
  }

  .product-gallery__thumbs {
    grid-auto-columns: minmax(76px, 1fr);
    gap: 0.65rem;
  }

}

@media (max-width: 640px) {
  .product-summary__quickfacts li {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-gallery__thumbs {
    grid-auto-columns: minmax(72px, 0.85fr);
  }

  .tabs-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    width: 100%;
    overflow: visible;
    padding-bottom: 0.35rem;
  }

  .tabs-nav button {
    width: 100%;
    padding: 0.55rem 0.85rem;
    font-size: 0.95rem;
    text-align: center;
  }
}

.imports-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.5rem;
}

.imports-search,
.orders-search {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.orders-search {
  margin-left: auto;
}

.imports-search__group,
.orders-search__group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.55rem 0.55rem 0.95rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.32);
  box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.12), 0 18px 38px -28px rgba(99, 102, 241, 0.55);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.imports-search__group:focus-within,
.orders-search__group:focus-within {
  border-color: rgba(99, 102, 241, 0.55);
  box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.18), 0 18px 46px -26px rgba(99, 102, 241, 0.65);
}

.imports-search__icon,
.orders-search__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--ds-text-muted);
}

.imports-search__input,
.orders-search__input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--ds-text-primary);
  font-size: 0.95rem;
  padding: 0;
}

.imports-search__input:focus,
.orders-search__input:focus {
  outline: none;
  box-shadow: none;
}

.imports-search__input::placeholder,
.orders-search__input::placeholder {
  color: var(--ds-text-muted);
}

.imports-search__submit,
.orders-search__submit {
  border: none;
  border-radius: 999px;
  padding: 0.45rem 1.35rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.85), rgba(56, 189, 248, 0.65));
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  box-shadow: 0 20px 38px -26px rgba(99, 102, 241, 0.75);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.imports-search__submit:hover,
.imports-search__submit:focus,
.orders-search__submit:hover,
.orders-search__submit:focus {
  transform: translateY(-1px);
  box-shadow: 0 24px 42px -24px rgba(99, 102, 241, 0.8);
  filter: brightness(1.05);
}

.imports-search__submit:focus,
.orders-search__submit:focus {
  outline: none;
}

.imports-search__submit:focus-visible,
.orders-search__submit:focus-visible {
  outline: 2px solid rgba(99, 102, 241, 0.5);
  outline-offset: 3px;
}

.imports-search__reset,
.orders-search__reset {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ds-text-muted);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
  align-self: flex-end;
}

.imports-search__reset i,
.orders-search__reset i {
  font-size: 0.9rem;
}

.imports-search__reset:hover,
.imports-search__reset:focus,
.orders-search__reset:hover,
.orders-search__reset:focus {
  color: var(--ds-text-secondary);
}

.imports-search__reset:focus,
.orders-search__reset:focus {
  outline: none;
}

.imports-search__reset:focus-visible,
.orders-search__reset:focus-visible {
  outline: 2px solid rgba(99, 102, 241, 0.45);
  outline-offset: 2px;
}

.import-list {
  display: grid;
  gap: 1.5rem;
}

.import-card {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: 26px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.82);
  box-shadow: 0 30px 55px -35px rgba(99, 102, 241, 0.45);
}

.import-card__media {
  width: min(180px, 100%);
  height: 160px;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(14, 165, 233, 0.18));
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: var(--ds-text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.import-card__media img {
  width: 100%;
  height: auto;
  min-height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: inherit;
}

.import-card__media--empty {
  border-style: dashed;
}

.import-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  min-width: 220px;
}

.import-card__header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-start;
  justify-content: space-between;
}

.import-card__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ds-text-primary);
}

.import-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #bbf7d0;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.import-card__meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.35rem;
}

.import-card__meta li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
}

.import-card__meta .label {
  color: var(--ds-text-muted);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.import-card__form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.import-card__switch {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ds-text-secondary);
}

.import-card__switch .form-check-input,
.import-card__switch .form-check-label {
  cursor: pointer;
}

.import-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.imports-pagination {
  margin-top: 2.5rem;
  border-radius: 26px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.86);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 30px 55px -35px rgba(99, 102, 241, 0.45);
}

.imports-pagination__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.imports-pagination__summary {
  color: var(--ds-text-muted);
  font-size: 0.9rem;
}

.imports-pagination__controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.imports-pagination__arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  color: var(--ds-text-secondary);
  background: rgba(15, 23, 42, 0.6);
  text-decoration: none;
  font-weight: 600;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.imports-pagination__arrow:hover,
.imports-pagination__arrow:focus {
  color: #fff;
  border-color: rgba(99, 102, 241, 0.55);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.35), rgba(56, 189, 248, 0.25));
  box-shadow: 0 18px 32px -26px rgba(99, 102, 241, 0.6);
}

.imports-pagination__arrow:focus {
  outline: none;
}

.imports-pagination__arrow:focus-visible {
  outline: 2px solid rgba(99, 102, 241, 0.4);
  outline-offset: 3px;
}

.imports-pagination__arrow.is-disabled {
  opacity: 0.45;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.45);
  border-color: rgba(148, 163, 184, 0.2);
  color: var(--ds-text-muted);
}

.imports-pagination__list {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.imports-pagination__item {
  display: inline-flex;
}

.imports-pagination__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: rgba(15, 23, 42, 0.6);
  color: var(--ds-text-secondary);
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.imports-pagination__page:hover,
.imports-pagination__page:focus {
  color: #fff;
  border-color: rgba(99, 102, 241, 0.55);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.35), rgba(56, 189, 248, 0.25));
  box-shadow: 0 18px 32px -26px rgba(99, 102, 241, 0.6);
}

.imports-pagination__page:focus {
  outline: none;
}

.imports-pagination__page:focus-visible {
  outline: 2px solid rgba(99, 102, 241, 0.4);
  outline-offset: 3px;
}

.imports-pagination__page.is-active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.7), rgba(56, 189, 248, 0.55));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 20px 40px -28px rgba(99, 102, 241, 0.75);
  cursor: default;
}

.imports-pagination__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  color: var(--ds-text-muted);
}

@media (max-width: 768px) {
  .imports-toolbar {
    justify-content: stretch;
  }

  .imports-search,
  .orders-search {
    max-width: 100%;
  }

  .imports-search__reset,
  .orders-search__reset {
    align-self: flex-start;
  }

  .imports-pagination__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .imports-pagination__summary {
    text-align: center;
  }

  .imports-pagination__controls {
    justify-content: center;
  }

  .imports-pagination__list {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .import-card {
    padding: 1.25rem;
  }

  .import-card__media {
    width: 100%;
    height: 200px;
  }
}

.orders-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.orders-sync-btn {
  position: relative;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.22), rgba(14, 165, 233, 0.18));
  color: var(--ds-text-primary);
  padding: 0.75rem 2.2rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 18px 45px -28px rgba(99, 102, 241, 0.55);
}

.orders-sync-btn:hover,
.orders-sync-btn:focus {
  color: #fff;
  border-color: rgba(148, 163, 184, 0.6);
}

.orders-sync-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.orders-sync-btn .orders-sync-spinner {
  display: inline-block;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  border: 2px solid rgba(148, 163, 184, 0.35);
  border-top-color: #fff;
  animation: orders-spin 0.8s linear infinite;
  margin-right: 0.4rem;
}

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

.orders-callout {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 24px 48px -32px rgba(99, 102, 241, 0.45);
}

.orders-callout i {
  font-size: 1.35rem;
  margin-top: 0.2rem;
}

.orders-callout--danger {
  border-color: rgba(239, 68, 68, 0.55);
  background: rgba(153, 27, 27, 0.25);
}

.orders-callout--info {
  border-color: rgba(14, 165, 233, 0.45);
  background: rgba(14, 116, 144, 0.25);
}

.orders-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--ds-text-muted);
}

.orders-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.orders-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.orders-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.4rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.orders-tab {
  border: none;
  background: transparent;
  color: var(--ds-text-muted);
  font-weight: 600;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.orders-tab:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.3);
}

.orders-tab:hover {
  color: #fff;
}

.orders-tab.is-active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.45), rgba(56, 189, 248, 0.35));
  color: #fff;
  box-shadow: 0 18px 38px -28px rgba(99, 102, 241, 0.6);
}

.orders-tab__count {
  font-size: 0.85rem;
  color: rgba(226, 232, 240, 0.82);
}

.orders-search {
  margin-left: auto;
}

@media (max-width: 768px) {
  .orders-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .orders-section .section-title {
    flex-direction: column;
    align-items: stretch;
  }

  .orders-tabs {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .orders-search {
    width: 100%;
    margin-left: 0;
  }

  .orders-search__group {
    width: 100%;
  }

  .orders-tab {
    min-height: 44px;
    padding: 0.6rem 0.9rem;
    font-size: 0.95rem;
    line-height: 1.3;
  }

  .orders-search__input {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
    line-height: 1.4;
  }

  .orders-search__submit {
    width: 100%;
    justify-content: center;
  }

  .orders-sync-btn {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.25rem;
  }
}

.orders-feedback {
  border-radius: 18px;
  padding: 1rem 1.35rem;
  font-weight: 500;
}

.orders-feedback--error {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fecaca;
}

.orders-loader {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border-radius: 18px;
  padding: 0.85rem 1.2rem;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.25);
  width: fit-content;
}

.orders-loader__spinner {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  border: 2px solid rgba(148, 163, 184, 0.35);
  border-top-color: var(--ds-secondary);
  animation: orders-spin 0.8s linear infinite;
}

.orders-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  border-radius: 28px;
  border: 1px dashed rgba(148, 163, 184, 0.32);
  background: rgba(15, 23, 42, 0.55);
  display: grid;
  gap: 0.75rem;
  justify-items: center;
  color: var(--ds-text-secondary);
}

.orders-empty i {
  font-size: 2.5rem;
  color: rgba(99, 102, 241, 0.75);
}

.orders-list {
  display: grid;
  gap: 1.75rem;
}

.orders-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.orders-pagination__info {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ds-text-muted);
}

.orders-pagination__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.orders-pagination__actions .btn {
  min-width: 7.5rem;
}

.orders-pagination__actions .btn.disabled,
.orders-pagination__actions .btn[disabled] {
  pointer-events: none;
  opacity: 0.55;
}

.order-card {
  border-radius: 26px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.82);
  box-shadow: 0 30px 55px -34px rgba(99, 102, 241, 0.45);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.order-card__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.order-card__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.order-card__id {
  font-size: 1.2rem;
  font-weight: 700;
}

.order-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--ds-text-muted);
}

.order-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.order-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
}

.order-badge--success {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.45);
  color: #bbf7d0;
}

.order-badge--info {
  background: rgba(14, 165, 233, 0.18);
  border-color: rgba(14, 165, 233, 0.45);
  color: #bae6fd;
}

.order-badge--warning {
  background: rgba(250, 204, 21, 0.2);
  border-color: rgba(250, 204, 21, 0.45);
  color: #fef08a;
}

.order-badge--danger {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.45);
  color: #fecaca;
}

.order-badge--muted {
  background: rgba(148, 163, 184, 0.18);
  border-color: rgba(148, 163, 184, 0.35);
  color: var(--ds-text-secondary);
}

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

.order-card__customer,
.order-card__items {
  background: rgba(15, 23, 42, 0.65);
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  padding: 1.35rem;
  display: grid;
  gap: 1rem;
}

.order-card__customer h3,
.order-card__items h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.order-card__customer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.order-card__customer li {
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  font-size: 0.95rem;
}

.order-card__customer .label {
  color: var(--ds-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
}

.order-card__customer-note {
  border-top: 1px dashed rgba(148, 163, 184, 0.35);
  padding-top: 0.75rem;
  display: grid;
  gap: 0.35rem;
}

.order-card__customer-note-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.order-card__customer-note-text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ds-text-primary);
  white-space: pre-wrap;
}

.order-card__note-edit {
  color: var(--ds-text-muted);
  padding: 0.25rem 0.5rem;
}

.order-card__note-edit:hover,
.order-card__note-edit:focus {
  color: var(--ds-text-primary);
}

.order-card__items ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.order-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
}

.order-item__media {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.order-item__media img {
  width: 100%;
  height: auto;
  min-height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: inherit;
}

.order-item__content {
  display: grid;
  gap: 0.65rem;
  grid-column: 1 / -1;
}

.order-item__media + .order-item__content {
  grid-column: 2;
}

.order-item__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.65rem;
  align-items: center;
}

.order-item__title {
  font-weight: 600;
  font-size: 1rem;
}

.order-item__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.75rem;
  background: rgba(99, 102, 241, 0.18);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: var(--ds-text-secondary);
}

.order-item__badge--muted {
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.25);
}

.order-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--ds-text-secondary);
}

.order-card__totals {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--ds-text-secondary);
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding-top: 0.75rem;
}

.order-card__totals-group {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.order-card__totals-group:not(:last-child) {
  padding-right: 1.25rem;
  border-right: 1px solid rgba(148, 163, 184, 0.12);
}

.order-card__totals-group:not(:first-child) {
  padding-left: 1.25rem;
}

.order-card__totals-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ds-text-muted);
}

.order-card__totals-group--partner {
  color: var(--ds-secondary);
}

.order-card__totals-group--partner .order-card__totals-title {
  color: var(--ds-secondary);
}

.order-card__actions {
  margin: 1.5rem;
  margin-top: 0;
  display: flex;
  justify-content: flex-end;
}

.order-card__actions-group {
  display: flex;
  width: 100%;
  gap: 0.75rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.order-card__actions .btn {
  min-width: 210px;
  padding: 0.85rem 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
}

.order-card__actions .btn.is-loading {
  opacity: 0.85;
  pointer-events: none;
}

.order-card__actions .btn i {
  line-height: 1;
}

.btn-wallet {
  background: linear-gradient(135deg, #fde68a, #fbbf24);
  border: 1px solid #f3c565;
  color: #7a4c02;
  font-weight: 600;
  padding: 0.85rem 2.4rem;
  border-radius: 999px;
  box-shadow: 0 18px 40px -22px rgba(247, 185, 59, 0.55);
}

.btn-wallet:hover,
.btn-wallet:focus {
  color: #7a4c02;
  background: linear-gradient(135deg, #fcd34d, #f59e0b);
  border-color: #f0b429;
}

.btn-wallet:disabled,
.btn-wallet.is-loading {
  color: #8c5a04;
  background: linear-gradient(135deg, #f5deb3, #f1c87a);
  border-color: #e9c17a;
  box-shadow: none;
}

.order-card__return {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.order-card__return-heading {
  display: flex;
  align-items: center;
  font-weight: 600;
  color: var(--ds-text);
}

.order-card__return-title {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.order-card__return-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.order-card__return-status-text {
  color: var(--ds-text-secondary);
}

.order-card__return-info {
  color: var(--ds-text-secondary);
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.order-card__return-info--meta span {
  display: inline-flex;
  gap: 0.35rem;
  align-items: baseline;
}

.order-card__return-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.order-card__return-actions .btn {
  min-width: 220px;
}

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

.order-item__partner {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--ds-secondary);
  font-weight: 500;
}

@media (max-width: 640px) {
  .order-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .order-item__media {
    width: 64px;
    height: 64px;
  }

  .order-item__media + .order-item__content {
    grid-column: 1;
  }

  .order-card__return-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .order-card__return-actions .btn {
    width: 100%;
  }
}

.order-card__footer {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding-top: 1.2rem;
}

.order-card__shipping {
  display: grid;
  gap: 0.6rem;
}

.order-card__shipping-title {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.order-card__shipping-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--ds-text-secondary);
}

.order-card__tracking {
  background-color: var(--ds-surface-subtle);
  border: 1px solid var(--ds-border-subtle);
  border-radius: 0.75rem;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.order-card__tracking-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.order-card__tracking-number {
  font-weight: 600;
}

.order-card__tracking-history {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.order-card__tracking-history-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ds-text-primary);
}

.order-card__tracking-history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.order-card__tracking-item {
  display: grid;
  grid-template-columns: minmax(110px, 0.45fr) 1fr;
  gap: 0.75rem;
  align-items: start;
}

.order-card__tracking-item-time {
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--ds-text-secondary);
}

.order-card__tracking-item-body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.order-card__tracking-item-status {
  font-weight: 600;
  color: var(--ds-text-primary);
}

.order-card__tracking-item-desc {
  color: var(--ds-text-secondary);
}

.order-card__tracking-item-location {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--ds-text-secondary);
}

.order-card__tracking a {
  color: var(--ds-secondary);
}

@media (max-width: 768px) {
  .order-card__tracking-item {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .order-card__tracking-item-time {
    font-size: 0.8rem;
  }
}

@media (max-width: 1023px) {
  .order-card__body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .order-card {
    padding: 1.35rem;
  }

  .order-card__meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .order-card__totals {
    flex-direction: column;
    align-items: flex-start;
  }

  .order-card__totals-group {
    border-right: none;
    padding: 0;
  }

  .order-card__actions-group {
    justify-content: space-between;
  }

  .order-card__actions .btn,
  .order-card__actions .btn-wallet {
    flex: 1 1 48%;
    min-width: 48%;
    padding: 0.7rem 1.1rem;
    min-height: 44px;
  }
}

.plan-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

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

.plan-details {
  margin-top: 3rem;
  padding: 2.5rem;
  border-radius: 2rem;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: 0 28px 55px -32px rgba(14, 165, 233, 0.45);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.plan-details__intro {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 680px;
}

.plan-details__intro h2 {
  font-size: 2rem;
  margin: 0;
}

.plan-details__intro p {
  margin: 0;
  font-size: 1rem;
  color: var(--ds-text-secondary);
}

.plan-details__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.plan-details__card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.9rem;
  border-radius: 1.5rem;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.12);
}

.plan-details__card--highlight {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.16), rgba(59, 130, 246, 0.12));
  border-color: rgba(249, 115, 22, 0.45);
  box-shadow: 0 24px 48px -32px rgba(249, 115, 22, 0.45);
}

.plan-details__card-title {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--ds-text-primary);
}

.plan-details__card-lead {
  margin: 0;
  font-size: 1rem;
  color: var(--ds-text-secondary);
}

.plan-details__list {
  margin: 0;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  color: var(--ds-text-secondary);
}

.plan-details__list li {
  line-height: 1.55;
}

.plan-details__list strong {
  color: var(--ds-text-primary);
}

.plan-details__cta {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ds-text-muted);
}

.plan-details__cta a {
  color: var(--ds-secondary);
  font-weight: 600;
}

.plan-details__cta a:hover,
.plan-details__cta a:focus {
  color: var(--ds-primary);
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: 1.75rem;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: 0 28px 55px -32px rgba(14, 165, 233, 0.45);
  overflow: hidden;
}

.plan-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 10%, rgba(14, 165, 233, 0.18), transparent 60%);
  pointer-events: none;
}

.plan-card--highlight {
  border-color: rgba(249, 115, 22, 0.55);
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.18), rgba(14, 165, 233, 0.12));
  box-shadow: 0 32px 60px -28px rgba(249, 115, 22, 0.45);
}

.plan-card--highlight::after {
  background: radial-gradient(circle at 80% 0%, rgba(249, 115, 22, 0.35), transparent 55%);
}

.plan-card--current {
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 30px 60px -34px rgba(56, 189, 248, 0.45);
}

.plan-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.plan-card__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ds-text-muted);
  margin-bottom: 0.25rem;
}

.plan-card__title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.plan-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.9), rgba(37, 99, 235, 0.85));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 16px 32px -24px rgba(37, 99, 235, 0.55);
}

.plan-card__price-block {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.plan-card__price {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  font-size: 2.8rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.plan-card__price--free {
  font-size: 2.2rem;
  color: var(--ds-secondary);
}

.plan-card__currency {
  font-size: 1.4rem;
  font-weight: 600;
  color: rgba(248, 250, 252, 0.85);
}

.plan-card__price-term {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ds-text-muted);
  margin-bottom: 0.35rem;
}

.plan-card__price-subtext {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ds-text-muted);
}

.plan-card__features {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.plan-card__feature {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.plan-card__feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.85rem;
  background: rgba(148, 163, 184, 0.14);
  color: var(--ds-secondary);
  font-size: 1.2rem;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.25);
}

.plan-card--highlight .plan-card__feature-icon {
  background: rgba(249, 115, 22, 0.14);
  color: rgba(249, 115, 22, 0.95);
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.35);
}

.plan-card__feature-copy {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.plan-card__feature-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ds-text-muted);
}

.plan-card__feature-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
}

.plan-card__footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.plan-card__action {
  display: flex;
}

.plan-card__button {
  width: 100%;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  font-size: 1rem;
  border-radius: 1rem;
}

.plan-card--highlight .plan-card__button {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.95), rgba(234, 88, 12, 0.9));
  box-shadow: 0 24px 48px -28px rgba(249, 115, 22, 0.55);
}

.plan-card__note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ds-text-muted);
}

.onboarding-card {
  background: linear-gradient(140deg, rgba(99, 102, 241, 0.12), rgba(14, 165, 233, 0.08)), #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.35);
  color: var(--ds-text-primary);
}

.onboarding-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.onboarding-card__meta h3 {
  color: var(--ds-text-primary);
}

.onboarding-eyebrow {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.8rem;
}

.onboarding-count-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.18);
  color: #cbd5ff;
  border: 1px solid rgba(99, 102, 241, 0.35);
  font-weight: 700;
  font-size: 0.95rem;
}

.onboarding-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--ds-text-muted);
}

.onboarding-progress__bar {
  flex: 1;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background-color: rgba(148, 163, 184, 0.25);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.08);
}

.onboarding-progress__bar .progress-bar {
  background: linear-gradient(90deg, #38bdf8, #6366f1);
}

.onboarding-progress__label {
  min-width: 120px;
  text-align: right;
  font-size: 0.95rem;
}

.onboarding-card__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.onboarding-task {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.onboarding-task--hidden {
  display: none;
}

.onboarding-task--complete {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.45);
  box-shadow: 0 14px 28px rgba(34, 197, 94, 0.12);
}

.onboarding-task--summary {
  box-shadow: none;
  border-style: dashed;
}

.onboarding-task__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.onboarding-task__content h5 {
  margin-bottom: 4px;
  color: var(--ds-text-primary);
}

.onboarding-task__status .status-pill {
  font-size: 0.9rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.status-pill--pending {
  color: #facc15;
  border-color: rgba(250, 204, 21, 0.4);
  background: rgba(250, 204, 21, 0.12);
}

.status-pill--done {
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.12);
}

.onboarding-complete-state {
  margin-top: 10px;
}

.onboarding-task__content p {
  color: var(--ds-text-secondary);
}

.onboarding-dismiss {
  color: var(--ds-text-muted);
}

@media (max-width: 575.98px) {
  .plan-card {
    padding: 1.5rem;
    border-radius: 1.35rem;
  }

  .plan-card__title {
    font-size: 1.6rem;
  }

  .plan-grid {
    gap: 1.2rem;
  }

  .plan-details {
    padding: 18px;
    border-radius: 1.6rem;
  }

  .plan-details__intro h2 {
    font-size: 1.6rem;
  }

  .plan-details__grid {
    gap: 1.25rem;
  }
}

/* Landing layout enhancements */
.landing-hero {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  overflow: hidden;
}

@media (min-width: 992px) {
  .landing-hero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 4.5rem 4rem;
  }
}

.hero-copy h1 {
  line-height: 1.1;
}

.trust-cues {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: var(--ds-text-secondary);
  font-weight: 600;
  box-shadow: 0 16px 35px -28px rgba(99, 102, 241, 0.6);
}

.hero-media {
  position: relative;
}

.hero-device {
  position: relative;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.25), transparent 50%),
    radial-gradient(circle at 80% 10%, rgba(14, 165, 233, 0.25), transparent 55%),
    rgba(15, 23, 42, 0.6);
  box-shadow: 0 35px 55px -32px rgba(14, 165, 233, 0.45);
  padding: 1.25rem;
}

.hero-device__header {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.hero-device__header .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(226, 232, 240, 0.55);
}

.hero-device__body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.floating-card {
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 1rem 1.1rem;
  box-shadow: 0 25px 50px -35px rgba(99, 102, 241, 0.55);
}

.floating-card--secondary {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(14, 165, 233, 0.15));
}

.floating-card .progress {
  background: rgba(148, 163, 184, 0.2);
}

.floating-card .progress-bar {
  background: linear-gradient(135deg, var(--ds-primary), var(--ds-secondary));
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.85rem;
  margin-top: 0.35rem;
}

/* Value stack */
.value-stack {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.value-step {
  display: grid;
  gap: 1.25rem;
}

.value-copy h3 {
  font-weight: 700;
}

.value-bullets li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ds-text-secondary);
  margin-bottom: 0.35rem;
}

.value-bullets i {
  color: var(--ds-primary);
}

.value-media {
  border-radius: 18px;
  padding: 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.6);
  box-shadow: 0 25px 40px -35px rgba(99, 102, 241, 0.5);
}

.gradient-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(14, 165, 233, 0.12));
}

.product-rail {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.product-pill {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.35);
}

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

.filter-chip {
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  text-align: center;
  background: rgba(15, 23, 42, 0.3);
  color: var(--ds-text-secondary);
  font-weight: 600;
}

.filter-chip.active {
  border-color: rgba(99, 102, 241, 0.65);
  background: rgba(99, 102, 241, 0.12);
  color: #e0e7ff;
}

@media (min-width: 992px) {
  .value-step {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
  }

  .value-step--alt .value-copy {
    order: 2;
  }

  .value-step--alt .value-media {
    order: 1;
  }
}

/* Brand strip */
.brand-strip {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.brand-strip--inline {
  margin-top: 1.5rem;
  padding: 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 14px;
  box-shadow: 0 24px 45px -38px rgba(14, 165, 233, 0.5);
}

.brand-strip__title {
  font-weight: 600;
  font-size: 0.95rem;
}

.brand-strip .logo-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  align-items: stretch;
  justify-items: center;
}

.logo-card {
  padding: 0.75rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgb(20 29 54);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  min-width: 128px;
  box-shadow: 0 20px 45px -35px rgba(99, 102, 241, 0.45);
}

.logo-card img {
  max-width: 120px;
  width: 100%;
  height: auto;
  filter: grayscale(12%);
  opacity: 0.95;
}

@media (max-width: 767.98px) {
  .brand-strip--inline {
    padding: 0.6rem 0.75rem;
    background: rgba(15, 23, 42, 0.4);
  }

  .brand-strip .logo-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(140px, 1fr);
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scroll-snap-type: x mandatory;
  }

  .brand-strip .logo-card {
    min-height: 52px;
    padding: 0.5rem 0.75rem;
    scroll-snap-align: start;
  }
  }

/* Product rail */
.latest-products .section-title {
  margin-bottom: 1rem;
}

.latest-products__rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scroll-snap-type: x mandatory;
}

.latest-products__rail::-webkit-scrollbar {
  height: 8px;
}

.latest-products__rail::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.4);
}

.latest-products__rail::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.45);
  border-radius: 99px;
}

@media (min-width: 992px) {
  .latest-products__rail {
    grid-auto-flow: row;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    overflow: visible;
  }
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.55));
  box-shadow: 0 20px 45px -38px rgba(99, 102, 241, 0.5);
  scroll-snap-align: start;
}

.product-card__media {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.08);
  height: 220px;
}

.product-card__price-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.45rem 0.75rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.78);
  color: #e0e7ff;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid rgba(99, 102, 241, 0.35);
  box-shadow: 0 12px 32px -22px rgba(99, 102, 241, 0.75);
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (min-width: 992px) {
  .product-card__media {
    height: 240px;
  }
}

.product-card__placeholder {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 30%, rgba(99, 102, 241, 0.3), rgba(15, 23, 42, 0.65));
}

.product-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-top: 0.1rem;
}

.product-card__title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card__price {
  font-size: 0.95rem;
  font-weight: 600;
}

.product-card__profit {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.86rem;
  color: #c7f9cc;
  white-space: nowrap;
}

.product-card__profit-label {
  color: #dfe7fb;
  letter-spacing: 0.01em;
}

.product-card__profit-value {
  color: #34d399;
  font-weight: 700;
}

.product-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #c7d2fe;
  font-weight: 600;
}

.product-card__cta:hover,
.product-card__cta:focus-visible {
  background: rgba(99, 102, 241, 0.3);
  color: #fff;
}

.latest-products__rail--skeleton .product-card__media,
.product-card--skeleton .product-card__media {
  min-height: 160px;
}

.skeleton-box,
.skeleton-line,
.skeleton-pill,
.product-card__placeholder {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.6s ease-in-out infinite;
}

.skeleton-line {
  height: 12px;
  border-radius: 8px;
}

.skeleton-line--short {
  width: 45%;
}

.skeleton-line--long {
  width: 70%;
}

.skeleton-pill {
  width: 90px;
  height: 30px;
  border-radius: 999px;
  margin-top: 0.35rem;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Plan teaser */
.plan-teaser {
  margin-bottom: 4rem;
}

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

.plan-card {
  padding: 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.55);
  box-shadow: 0 25px 45px -35px rgba(14, 165, 233, 0.4);
}

.plan-price-tag {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.plan-price-subtext {
  font-size: 0.95rem;
}

.plan-card--highlight {
  border-color: rgba(99, 102, 241, 0.7);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(14, 165, 233, 0.2));
  box-shadow: 0 25px 60px -35px rgba(99, 102, 241, 0.55);
}

.plan-perks li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ds-text-secondary);
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.plan-perks i {
  color: var(--ds-primary);
}

.plan-cta .btn {
  min-width: 260px;
}

/* Product rail utility (carousel/rail friendly) */
.product-rail--horizontal {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  overflow-x: auto;
  gap: 1rem;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
}

.product-rail--horizontal > * {
  scroll-snap-align: start;
}
