@import url('/static/css/shared_shell.css?v=redesign-r5-unified-1');

:root {
  --store-bg: var(--hxl-bg, #080d15);
  --store-bg-secondary: var(--hxl-bg-soft, #0b111d);
  --store-surface: var(--hxl-surface, #111827);
  --store-surface-soft: var(--hxl-surface-raised, #151e2e);
  --store-surface-elevated: #1b2940;
  --store-border: var(--hxl-border, rgba(255, 255, 255, 0.06));
  --store-border-strong: var(--hxl-border-strong, rgba(255, 255, 255, 0.12));
  --store-text: var(--hxl-text, #ffffff);
  --store-muted: var(--hxl-muted, #9badc4);
  --store-subtle: #74879f;
  --store-accent: var(--hxl-cyan, #70cbd0);
  --store-accent-strong: #a6e8eb;
  --store-accent-deep: #258ba3;
  --store-glow: rgba(112, 203, 208, 0.18);
  --store-silver: #f4f4f5;
  --store-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  --store-danger: var(--hxl-danger, #ef4444);
  --store-danger-strong: #f87171;
  --store-danger-soft: rgba(239, 68, 68, 0.13);
  --store-success: var(--hxl-success, #70cbd0);
  --font-body: var(--hxl-font-ui, Inter, "Segoe UI", Tahoma, Arial, sans-serif);
  --font-heading: var(--hxl-font-display, "Courier New", Consolas, monospace);
  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
}

html,
body {
  background:
    radial-gradient(circle at 50% -10%, rgba(192, 164, 97, 0.16), transparent 30%),
    radial-gradient(circle at 88% 10%, rgba(219, 194, 126, 0.08), transparent 24%),
    linear-gradient(180deg, var(--store-bg) 0%, var(--store-bg-secondary) 100%);
  color: var(--store-text);
  font-family: var(--font-body);
  letter-spacing: 0;
  color-scheme: dark;
  scroll-behavior: smooth;
}

body,
.container-scroller,
.page-body-wrapper,
.main-panel,
.content-wrapper,
.navbar,
.sidebar,
.navbar-menu-wrapper,
.sidebar-brand-wrapper {
  background: transparent !important;
  color: var(--store-text);
  font-family: var(--font-body);
}

.main-panel,
.content-wrapper {
  background: transparent !important;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
.card-title,
.modal-title {
  color: var(--store-text);
  font-family: var(--font-heading);
  letter-spacing: 0;
}

p,
label,
.menu-title,
.nav-link,
.section-copy,
.text-muted {
  color: var(--store-muted) !important;
}

.sidebar .nav-link,
.navbar .nav-link,
.sidebar .menu-title,
.sidebar .nav-category .nav-link {
  color: var(--store-text) !important;
}

.sidebar .nav-link:hover,
.sidebar .nav-link:focus,
.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: var(--store-accent-strong) !important;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-link:hover,
.brand-link:focus {
  text-decoration: none;
}

.brand-link span {
  display: inline-block;
  line-height: 1;
}

.brand-mark {
  width: 30px;
  height: 30px;
  object-fit: cover;
  border-radius: 9px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
  flex-shrink: 0;
}

.brand-mark-mini {
  width: 26px;
  height: 26px;
  border-radius: 8px;
}

.brand-mark-badge {
  width: 22px;
  height: 22px;
  border-radius: 7px;
}

.sidebar .nav .nav-item.active > .nav-link,
.sidebar .nav .nav-item:hover > .nav-link {
  background: rgba(255, 255, 255, 0.03) !important;
}

.card,
.modal-content,
.form-control,
.search input {
  background: linear-gradient(180deg, rgba(26, 26, 26, 0.98), rgba(17, 17, 17, 0.98)) !important;
  color: var(--store-text) !important;
  border: 1px solid var(--store-border) !important;
  border-radius: 8px;
  box-shadow: var(--store-shadow);
}

.form-control,
.search input {
  min-height: 48px;
  background: linear-gradient(180deg, rgba(22, 22, 22, 1), rgba(16, 16, 16, 1)) !important;
}

.form-control:focus,
.search input:focus {
  border-color: rgba(219, 194, 126, 0.44) !important;
  box-shadow: 0 0 0 0.2rem rgba(192, 164, 97, 0.12) !important;
}

.form-control::placeholder {
  color: var(--store-subtle) !important;
}

.btn {
  border-radius: 8px;
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: 0;
  padding: 0.72rem 1rem;
  transition: transform 120ms ease, border-color 120ms ease, background-color 120ms ease, color 120ms ease;
}

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

.btn-primary {
  background: var(--hxl-cyan, #70cbd0) !important;
  border: 1px solid var(--hxl-cyan, #70cbd0) !important;
  color: var(--hxl-ink, #05070d) !important;
  box-shadow: 0 12px 28px rgba(112, 203, 208, 0.2);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--hxl-cyan-strong, #a5f2f2) !important;
  border-color: var(--hxl-cyan-strong, #a5f2f2) !important;
  color: var(--hxl-ink, #05070d) !important;
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(207, 212, 221, 0.18) !important;
  color: var(--store-silver) !important;
}

.btn-outline-light:hover,
.btn-outline-light:focus {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(219, 194, 126, 0.34) !important;
  color: var(--store-text) !important;
}

.btn-danger {
  background: linear-gradient(180deg, var(--store-danger-strong) 0%, var(--store-danger) 100%) !important;
  border: 1px solid rgba(190, 67, 67, 0.7) !important;
  color: #fff6f6 !important;
}

.btn-danger:hover,
.btn-danger:focus {
  background: linear-gradient(180deg, #b33232 0%, #931f1f 100%) !important;
}

.btn:disabled,
.btn.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(207, 212, 221, 0.18) !important;
  color: var(--store-silver) !important;
}

.btn-info,
.btn-warning,
.btn-success {
  border: 1px solid var(--store-border) !important;
}

.count.bg-success,
.badge.bg-primary,
.badge.badge-outline-light,
.count-indicator .count {
  background: var(--hxl-cyan, #70cbd0) !important;
  color: var(--hxl-ink, #05070d) !important;
  border: none !important;
}

.section-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.52rem 0.9rem;
  border-radius: 999px;
  background: rgba(112, 203, 208, 0.1);
  border: 1px solid rgba(112, 203, 208, 0.24);
  color: var(--store-accent-strong) !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.title-gradient,
.product-title {
  background: linear-gradient(110deg, #ffffff 0%, #dbc27e 48%, #f0efe9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}

.hero-card {
  background:
    linear-gradient(135deg, rgba(192, 164, 97, 0.12), rgba(255, 255, 255, 0.02)),
    linear-gradient(180deg, rgba(18, 18, 18, 0.98), rgba(13, 13, 13, 0.98)) !important;
}

.store-card,
.news-card,
.product-card,
.order-card,
.lookup-card,
.summary-card,
.chat-shell,
.result-card {
  height: 100%;
}

.store-card .card-body,
.news-card .card-body,
.product-card .card-body,
.order-card .card-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 1.45rem;
}

.product-image,
.news-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, #151826, #111827);
}

.product-meta,
.news-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  color: var(--store-subtle);
  font-size: 12px;
}

.product-meta span,
.news-meta span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  line-height: 1;
}

.product-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.product-actions.compact {
  justify-content: flex-end;
}

.product-actions .btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.product-actions.compact .btn {
  min-width: 118px;
}

.price-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 104px;
}

.price-stack strong {
  color: var(--store-text);
  font-size: 1.05rem;
}

.price-note {
  color: var(--store-subtle);
  font-size: 12px;
}

.availability-note {
  margin: 0;
  color: var(--store-silver) !important;
  font-size: 12px;
  font-weight: 600;
}

.availability-note.out-of-stock {
  color: #f0b6b6 !important;
}

.availability-note.in-stock {
  color: var(--store-success) !important;
}

.quantity-selector {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.quantity-selector.is-disabled {
  opacity: 0.65;
}

.quantity-button {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(219, 194, 126, 0.20);
  background: rgba(255, 255, 255, 0.05);
  color: var(--store-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.quantity-button:hover,
.quantity-button:focus {
  border-color: rgba(219, 194, 126, 0.34);
  color: var(--store-accent-strong);
}

.quantity-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.quantity-input {
  width: 54px;
  min-height: auto;
  text-align: center;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0.35rem 0.2rem !important;
  color: var(--store-text) !important;
  font-weight: 700;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quantity-input[type=number] {
  -moz-appearance: textfield;
}

.quantity-input:disabled {
  color: var(--store-subtle) !important;
  cursor: not-allowed;
}

.quantity-display {
  min-width: 36px;
  text-align: center;
  color: var(--store-text);
  font-weight: 700;
}

.empty-state,
.empty-news {
  border: 1px dashed rgba(219, 194, 126, 0.20);
  border-radius: 8px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.015);
  color: var(--store-muted);
  text-align: center;
}

.flash-message,
.flash-stack .alert {
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.alert-success.flash-message,
.flash-stack .alert-success {
  background: rgba(112, 203, 208, 0.1) !important;
  border-color: rgba(112, 203, 208, 0.34) !important;
  color: var(--hxl-cyan-strong, #a5f2f2) !important;
}

.alert-warning.flash-message,
.flash-stack .alert-warning {
  background: rgba(192, 164, 97, 0.12) !important;
  border-color: rgba(219, 194, 126, 0.28) !important;
  color: #f0e8d9 !important;
}

.alert-danger.flash-message,
.alert-error.flash-message,
.flash-stack .alert-danger {
  background: rgba(132, 36, 36, 0.22) !important;
  border-color: rgba(209, 97, 97, 0.32) !important;
  color: #ffd9d9 !important;
}

.alert-info.flash-message,
.flash-stack .alert-info {
  background: rgba(87, 99, 129, 0.22) !important;
  border-color: rgba(143, 160, 197, 0.28) !important;
  color: #e6ecfb !important;
}

.navbar .navbar-menu-wrapper,
.sidebar .sidebar-brand-wrapper,
.sidebar .profile-desc {
  background: transparent !important;
}

.search .form-control {
  border-radius: 999px;
  padding-inline: 18px;
}

.sidebar-search {
  width: 100%;
}

.sidebar-search .form-control {
  min-height: 44px;
  border-radius: 999px;
  padding-inline: 16px;
}

.profile-initial {
  width: 40px;
  height: 40px;
  border-radius: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(219, 194, 126, 0.18), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(219, 194, 126, 0.22);
  color: var(--store-accent-strong);
  font-weight: 800;
}

.premium-username {
  color: var(--hex-text, #f0e8d9) !important;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.user-role-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  padding: 4px 12px;
  border-radius: 1px;
  border: 1px solid rgba(219, 194, 126, 0.22);
  background: rgba(192, 164, 97, 0.12);
  color: var(--store-accent-strong) !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.topbar-inline-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-entry-button {
  border-color: rgba(219, 194, 126, 0.30) !important;
  color: var(--store-accent-strong) !important;
  background: rgba(192, 164, 97, 0.06) !important;
}

.admin-entry-button:hover,
.admin-entry-button:focus {
  background: rgba(192, 164, 97, 0.12) !important;
}

.sidebar-quick-actions,
.hero-actions,
.inline-actions,
.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.account-field {
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.account-field strong {
  display: block;
  margin-bottom: 6px;
  color: var(--store-text);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.account-modal-copy {
  color: var(--store-muted);
  line-height: 1.7;
}

.logout-link {
  background: linear-gradient(180deg, var(--store-danger-strong) 0%, var(--store-danger) 100%) !important;
  border: 1px solid rgba(190, 67, 67, 0.7) !important;
  color: #fff7f7 !important;
}

.message-container {
  background: linear-gradient(180deg, rgba(27, 27, 27, 1), rgba(21, 21, 21, 1));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 12px;
}

.message-timestamp {
  color: var(--store-subtle);
  font-size: 11px;
  margin-bottom: 8px;
}

.message-text {
  color: var(--store-text);
  white-space: pre-wrap;
  line-height: 1.65;
}

.message-text a {
  color: var(--store-accent-strong);
  text-decoration: underline;
}

.message-username {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-weight: 700;
  cursor: pointer;
}

.member-name,
.member-plus-name {
  color: var(--store-text);
}

.admin-name {
  color: #d0c9bc;
}

.chat-role-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chat-role-badge.member {
  background: rgba(255, 255, 255, 0.06);
  color: var(--store-silver);
}

.chat-role-badge.admin {
  background: var(--store-danger-soft);
  border-color: rgba(190, 67, 67, 0.2);
  color: #ffcdcd;
}

#message-container {
  height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

#message-input {
  min-height: 112px;
  resize: vertical;
}

.user-info-popup {
  position: absolute;
  z-index: 1080;
  min-width: 220px;
  padding: 16px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(24, 24, 24, 0.98), rgba(15, 15, 15, 0.98));
  border: 1px solid rgba(219, 194, 126, 0.20);
  color: var(--store-text);
  box-shadow: var(--store-shadow);
}

.user-info-popup p {
  margin-bottom: 8px;
  color: var(--store-text) !important;
}

.user-info-popup .close-btn {
  float: right;
  cursor: pointer;
  color: var(--store-subtle);
}

.results-stack > * + * {
  margin-top: 14px;
}

.result-entry {
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.result-entry strong {
  color: var(--store-accent-strong);
}

.result-entry code,
.stock-shell,
.stock-preview,
.lookup-code-block {
  display: block;
  width: 100%;
  padding: 14px;
  margin-top: 10px;
  border-radius: 8px;
  background: #0f0f0f;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--store-text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(192, 164, 97, 0.12), transparent 32%),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.05), transparent 22%),
    var(--store-bg);
}

.auth-nav {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-nav .navbar-brand {
  color: var(--store-text) !important;
  font-family: var(--font-heading);
}

.auth-nav .navbar-brand .brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.auth-nav .navbar-nav .nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
}

.auth-nav-register {
  padding: 0.48rem 0.92rem !important;
  border-radius: 999px;
  border: 1px solid rgba(207, 212, 221, 0.18);
  background: rgba(255, 255, 255, 0.02);
  color: var(--store-silver) !important;
  line-height: 1;
}

.auth-nav-register:hover,
.auth-nav-register:focus {
  border-color: rgba(219, 194, 126, 0.34);
  background: rgba(255, 255, 255, 0.06);
  color: var(--store-text) !important;
}

.auth-shell {
  min-height: calc(100vh - 92px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
  gap: 24px;
  align-items: center;
  padding: 48px 0 56px;
}

.auth-panel {
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.98), rgba(12, 12, 12, 0.98));
  border: 1px solid var(--store-border);
  border-radius: 8px;
  box-shadow: var(--store-shadow);
}

.auth-panel-info {
  padding: 36px;
  display: flex;
  flex-direction: column;
}

.auth-panel-form {
  padding: 32px;
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(192, 164, 97, 0.12);
  border: 1px solid rgba(219, 194, 126, 0.20);
  color: var(--store-accent-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.auth-badge .brand-mark-badge {
  box-shadow: none;
}

.auth-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.06;
  margin: 18px 0 16px;
}

.auth-copy {
  color: var(--store-muted);
  font-size: 1rem;
  line-height: 1.8;
}

.login-wrap {
  width: 100%;
  max-width: none;
  min-height: auto;
  margin: 0;
}

.login-html {
  position: static;
  width: 100%;
  height: auto;
  padding: 0;
}

.login-html .tab {
  color: var(--store-subtle);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 20px 18px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid transparent;
}

.login-html .sign-in:checked + .tab,
.login-html .sign-up:checked + .tab {
  color: var(--store-text);
  border-color: var(--store-accent);
}

.login-form {
  min-height: auto;
  position: relative;
  perspective: none;
  transform-style: flat;
}

.login-html .sign-in-htm,
.login-html .sign-up-htm {
  position: static;
  display: none;
  transform: none;
  backface-visibility: visible;
}

.login-html
  .sign-in:checked
  + .tab
  + .sign-up
  + .tab
  + .login-form
  .sign-in-htm {
  display: block;
}

.login-html .sign-up:checked + .tab + .login-form .sign-up-htm {
  display: block;
}

.login-form .group {
  margin-bottom: 16px;
}

.login-form .group .label {
  margin-bottom: 8px;
  color: var(--store-silver);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.login-form .group .input,
.login-form .group .button {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--store-border);
  background: linear-gradient(180deg, rgba(22, 22, 22, 1), rgba(16, 16, 16, 1));
  color: var(--store-text);
  padding: 15px 16px;
}

.login-form .group .input:focus {
  outline: none;
  border-color: rgba(219, 194, 126, 0.44);
  box-shadow: 0 0 0 0.2rem rgba(192, 164, 97, 0.12);
}

.login-form .group .button,
.login-form .group .button.button {
  background: linear-gradient(180deg, #dbc27e 0%, #c0a461 100%);
  border-color: rgba(219, 194, 126, 0.72);
  color: #ffffff;
  font-weight: 800;
}

.login-form .group .check:checked + label {
  color: var(--store-text);
}

.login-form .group label .icon {
  background: rgba(255, 255, 255, 0.08);
}

.login-form .group .check:checked + label .icon {
  background: var(--store-accent);
}

.hr {
  height: 1px;
  margin: 28px 0;
  background: rgba(255, 255, 255, 0.08);
}

.foot-lnk {
  text-align: left;
}

.foot-lnk a,
.foot-lnk label {
  color: var(--store-silver);
}

.custom-alert {
  max-width: 100%;
}

.btn-sm {
  padding: 0.62rem 0.9rem;
}

.auth-modal .modal-header,
.auth-modal .modal-footer,
.auth-modal .modal-body {
  border-color: rgba(255, 255, 255, 0.06);
}

.reset-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.reset-panel {
  width: min(100%, 460px);
  padding: 28px;
}

.reset-note {
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(192, 164, 97, 0.08);
  border: 1px solid rgba(219, 194, 126, 0.14);
  color: var(--store-muted);
  line-height: 1.6;
}

.flash-stack {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.flash-stack .alert {
  border-radius: 8px;
  margin: 0;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-link,
.social-link:link,
.social-link:visited,
.contact-link-chip,
.contact-link-chip:link,
.contact-link-chip:visited {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.62rem 0.92rem;
  border-radius: 999px;
  border: 1px solid rgba(219, 194, 126, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--store-text) !important;
  text-decoration: none !important;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.social-link:hover,
.social-link:focus,
.social-link:active,
.contact-link-chip:hover,
.contact-link-chip:focus,
.contact-link-chip:active {
  color: #ffffff !important;
  background: rgba(192, 164, 97, 0.12);
  border-color: rgba(219, 194, 126, 0.32);
  transform: translateY(-1px);
  text-decoration: none !important;
}

.social-link i,
.contact-link-chip i {
  color: var(--store-accent);
  font-size: 0.98rem;
}

.social-link span,
.contact-link-chip span {
  line-height: 1;
}

.social-links.compact {
  gap: 8px;
}

.social-links.compact .social-link {
  padding: 0.52rem 0.82rem;
  font-size: 0.9rem;
}

.social-contact-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-contact-title {
  margin: 0;
  color: var(--store-text);
  font-size: 0.92rem;
  font-weight: 700;
}

.social-contact-copy,
.social-contact-note {
  margin: 0;
  color: var(--store-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.landing-contact-section {
  text-align: left;
}

.sidebar-footer-contact {
  margin-top: auto;
  padding: 22px 20px 8px;
}

.sidebar-contact-section {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-contact-section .social-links {
  gap: 6px;
}

.sidebar-contact-section .social-link {
  padding: 0.48rem 0.72rem;
  font-size: 0.84rem;
}

.auth-social-row {
  margin-top: auto;
  padding-top: 18px;
}

.auth-social-row .social-links {
  margin-top: 0;
}

@media (max-width: 991.98px) {
  .auth-shell {
    grid-template-columns: 1fr;
    padding: 28px 0 40px;
  }

  .auth-panel-info {
    order: 2;
  }

  .auth-panel-form {
    order: 1;
  }

  .topbar-inline-user {
    display: none;
  }

  .landing-footer .social-links {
    justify-content: flex-start;
  }

  .sidebar-footer-contact {
    margin-top: 18px;
    padding-top: 10px;
  }
}

@media (max-width: 768px) {
  .card,
  .modal-content,
  .form-control {
    border-radius: 8px;
  }

  .auth-panel-info,
  .auth-panel-form {
    padding: 24px;
  }

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

  .product-actions.compact {
    align-items: stretch;
  }

  .quantity-selector {
    justify-content: center;
  }

  .product-actions.compact .btn {
    min-width: 0;
  }
}

/* HexingLab premium experience system */
* {
  box-sizing: border-box;
}

::selection {
  background: rgba(219, 194, 126, 0.34);
  color: #fff;
}

body::before,
body::after,
.landing-premium::before,
.landing-premium::after {
  pointer-events: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.034) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.034) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 18%, black 0%, transparent 68%);
  opacity: 0.55;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 0.38;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08) 0 1px, transparent 1.5px),
    radial-gradient(circle at 80% 30%, rgba(219, 194, 126, 0.12) 0 1px, transparent 1.5px);
  background-size: 180px 180px, 220px 220px;
}

@keyframes hx-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -12px, 0); }
}

@keyframes hx-pulse {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 0.95; transform: scale(1.04); }
}

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

.hx-page-vignette {
  display: none !important;
}

.hx-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(192, 164, 97, 0.2), transparent 28%),
    #080d15;
  transition: opacity 160ms var(--ease-premium), visibility 0s linear;
}

.hx-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  transition-delay: 0s, 160ms;
}

.hx-loader-mark {
  position: relative;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  color: #fff;
  font: 700 1.15rem/1 var(--font-heading);
  letter-spacing: 0.12em;
}

.hx-loader-mark::before,
.hx-loader-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(219, 194, 126, 0.34);
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%);
}

.hx-loader-mark::before {
  box-shadow: 0 0 42px rgba(192, 164, 97, 0.35);
  animation: hx-loader-spin 1.6s linear infinite;
}

.hx-loader-mark::after {
  inset: 14px;
  background: radial-gradient(circle, rgba(219, 194, 126, 0.28), rgba(255, 255, 255, 0.03));
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition:
    opacity 160ms var(--ease-premium),
    transform 160ms var(--ease-premium);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.card,
.modal-content,
.form-control,
.search input {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.014)),
    rgba(17, 17, 17, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 8px !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--tilt-x, 50%) var(--tilt-y, 0%), rgba(219, 194, 126, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 38%);
  opacity: 0;
  transition: opacity 120ms ease;
}

.card:hover::before {
  opacity: 1;
}

.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 999px !important;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(circle at var(--btn-x, 50%) var(--btn-y, 50%), rgba(255, 255, 255, 0.32), transparent 40%);
  transition: opacity 0.2s ease;
}

.btn:hover::after {
  opacity: 1;
}

.btn-primary,
.login-form .group .button,
.login-form .group .button.button {
  background: linear-gradient(180deg, #dbc27e 0%, #c0a461 100%) !important;
  border-color: rgba(219, 194, 126, 0.72) !important;
  color: #fff !important;
  box-shadow: 0 16px 42px rgba(192, 164, 97, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn-primary:hover,
.btn-primary:focus,
.login-form .group .button:hover {
  background: linear-gradient(180deg, #e2cb8d 0%, #c8ad68 100%) !important;
  border-color: rgba(216, 180, 254, 0.72) !important;
  color: #fff !important;
  box-shadow: 0 20px 56px rgba(192, 164, 97, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn-outline-light,
.auth-nav-register {
  background: rgba(255, 255, 255, 0.035) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #f4f4f5 !important;
}

.btn-outline-light:hover,
.btn-outline-light:focus,
.auth-nav-register:hover {
  background: rgba(255, 255, 255, 0.075) !important;
  border-color: rgba(219, 194, 126, 0.34) !important;
}

.section-pill,
.auth-badge,
.user-role-badge,
.sidebar-balance-pill,
.product-meta span,
.news-meta span,
.order-status-badge,
.delivered-callout,
.url-search-chip,
.lookup-chip,
.status-pill {
  border-color: rgba(219, 194, 126, 0.2) !important;
  background: rgba(192, 164, 97, 0.1) !important;
  color: #d0c9bc !important;
}

.title-gradient,
.product-title {
  background: linear-gradient(105deg, #ffffff 0%, #d8d8de 34%, #dbc27e 72%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}

.landing-premium {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 12%, rgba(192, 164, 97, 0.2), transparent 25%),
    radial-gradient(circle at 85% 8%, rgba(219, 194, 126, 0.12), transparent 20%),
    linear-gradient(180deg, #080d15 0%, #0b111d 56%, #080d15 100%) !important;
}

.landing-premium {
  position: relative;
}

.landing-premium::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at var(--hx-x, 50%) var(--hx-y, 28%), rgba(192, 164, 97, 0.14), transparent 24%),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
}

.landing-premium > * {
  position: relative;
  z-index: 1;
}

.premium-shell {
  width: min(100% - 40px, 1440px);
  margin-inline: auto;
}

.premium-nav,
.auth-nav,
.navbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  background: rgba(5, 5, 5, 0.94) !important;
}

.premium-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 76px;
}

.premium-nav-inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
}

.premium-logo,
.auth-nav .navbar-brand,
.sidebar-brand,
.premium-username {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff !important;
  font-family: var(--font-heading);
  font-weight: 700 !important;
  letter-spacing: -0.01em;
}

.premium-logo-mark,
.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}

.brand-mark {
  display: inline-block;
  object-fit: contain;
  border-radius: 8px;
  filter: drop-shadow(0 12px 28px rgba(192, 164, 97, 0.26));
}

.brand-mark-mini {
  width: 26px;
  height: 26px;
}

.brand-mark-badge {
  width: 22px;
  height: 22px;
}

.premium-logo-mark {
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  background:
    radial-gradient(circle at 50% 50%, rgba(219, 194, 126, 0.48), transparent 55%),
    linear-gradient(145deg, #151e2e, #080d15);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px rgba(192, 164, 97, 0.22);
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%);
}

.app-brand-compact {
  white-space: nowrap;
}

.premium-nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(10px, 1.4vw, 22px);
}

.premium-nav-links a,
.topbar-nav-links a {
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 13px;
  font-weight: 600;
  transition: color 0.18s ease, transform 0.18s ease;
}

.premium-nav-links a:hover,
.topbar-nav-links a:hover {
  color: #fff !important;
  transform: translateY(-1px);
}

.premium-nav-actions,
.topbar-icon-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.topbar-icon-button {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  color: #fff;
  display: inline-grid;
  place-items: center;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.topbar-icon-button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(219, 194, 126, 0.32);
}

.hero-premium {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.88fr);
  align-items: center;
  gap: clamp(36px, 6vw, 96px);
  padding: clamp(54px, 7vw, 108px) 0 clamp(32px, 5vw, 74px);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  color: #d1d5db;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--store-accent);
  box-shadow: 0 0 18px var(--store-glow);
}

.hero-title {
  max-width: 760px;
  margin: 26px 0 22px;
  color: #fff;
  font: 700 clamp(4rem, 10vw, 9.4rem)/0.86 var(--font-heading);
  letter-spacing: 0;
}

.hero-copy-large {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: clamp(1rem, 1.2vw, 1.18rem);
  line-height: 1.8;
}

.hero-actions {
  margin-top: 30px;
}

.premium-section {
  padding: clamp(68px, 9vw, 132px) 0;
}

.section-heading-premium {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.section-heading-premium h2,
.section-heading-premium h3 {
  margin: 14px 0 0;
  color: #fff;
  font: 700 clamp(2rem, 4.5vw, 5rem)/0.98 var(--font-heading);
  letter-spacing: 0;
}

.section-heading-premium p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.64) !important;
  line-height: 1.75;
}

.product-card:hover,
.store-card:hover,
.admin-link-card:hover {
  border-color: rgba(219, 194, 126, 0.36) !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.34);
}

.product-card,
.store-card,
.news-card,
.order-card {
  transform-style: preserve-3d;
  transition:
    transform 140ms var(--ease-premium),
    border-color 120ms ease;
}

.product-card .card-body,
.news-card .card-body,
.store-card .card-body,
.order-card .card-body {
  position: relative;
  z-index: 1;
}

.product-image,
.news-image {
  position: relative;
  aspect-ratio: 1.22 / 1;
  border-radius: 8px;
  object-fit: cover;
  transform: translateZ(28px);
  box-shadow:
    0 24px 46px rgba(0, 0, 0, 0.42),
    0 18px 34px rgba(192, 164, 97, 0.12);
}

.product-card::after {
  content: none;
}

.price-stack strong {
  color: #fff;
  font-family: var(--font-heading);
}

.quantity-selector,
.quantity-badge {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.quantity-button {
  border-color: rgba(219, 194, 126, 0.22);
}

.quantity-button:hover,
.quantity-button:focus {
  color: #d0c9bc;
  border-color: rgba(219, 194, 126, 0.48);
}

.sidebar {
  border-inline-end: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(5, 5, 5, 0.96) !important;
}

.sidebar .nav .nav-item.active > .nav-link,
.sidebar .nav .nav-item:hover > .nav-link {
  background: rgba(192, 164, 97, 0.12) !important;
}

.sidebar .nav-link:hover,
.sidebar .nav-link:focus,
.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: #fff !important;
}

.navbar .navbar-menu-wrapper {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-balance-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 1px;
  font-weight: 700;
}

.sidebar-balance-pill {
  min-height: auto;
  flex-direction: column;
  align-items: flex-start;
  border-radius: 1px;
  padding: 12px 14px;
}

.sidebar-balance-pill span {
  color: var(--hex-muted, #94a69f);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.topbar-nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 18px;
}

.empty-state,
.empty-news {
  border-color: rgba(219, 194, 126, 0.24);
  background: rgba(192, 164, 97, 0.06);
}

.auth-shell {
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
}

.auth-panel {
  border-radius: 8px;
}

.auth-panel-info {
  min-height: 620px;
  justify-content: center;
  background:
    radial-gradient(circle at 76% 18%, rgba(192, 164, 97, 0.24), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.014));
}

.auth-title {
  font-size: clamp(2.8rem, 6vw, 5.8rem);
  line-height: 0.94;
}

.modal-content.account-modal,
.balance-modal-panel {
  border-radius: 8px;
}

.balance-preset-row,
.balance-custom-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.balance-custom-inline .form-control {
  flex: 1 1 160px;
}

.balance-modal-panel {
  padding: 16px;
  border: 1px solid rgba(219, 194, 126, 0.16);
  background: rgba(192, 164, 97, 0.07);
}

.luxury-footer {
  padding: clamp(64px, 8vw, 108px) 0 38px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(5, 5, 5, 0.72);
}

.luxury-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(130px, 0.5fr));
  gap: clamp(24px, 4vw, 56px);
}

.luxury-footer h4 {
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.luxury-footer a,
.luxury-footer p {
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.9;
}

.public-nav-inner {
  position: relative;
}

.premium-mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.premium-mobile-menu {
  width: min(100% - 28px, 720px);
  margin: 0 auto 14px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #090909;
  box-shadow: var(--store-shadow);
}

.premium-mobile-menu a {
  display: flex;
  min-height: 46px;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.premium-mobile-menu a:hover,
.premium-mobile-menu a:focus {
  background: rgba(192, 164, 97, 0.12);
  color: #fff;
}

.public-hero {
  min-height: clamp(520px, 72vh, 740px);
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.46fr);
  padding-top: clamp(72px, 10vw, 132px);
}

.public-hero-title {
  max-width: 820px;
  font-size: clamp(3rem, 6.4vw, 5.8rem);
  line-height: 0.98;
}

.hero-brandline {
  display: inline-flex;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.simple-text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.simple-text-link:hover,
.simple-text-link:focus {
  color: #fff;
}

.public-hero-preview,
.account-summary-tile {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background:
    radial-gradient(circle at var(--tilt-x, 50%) var(--tilt-y, 0%), rgba(192, 164, 97, 0.16), transparent 45%),
    rgba(17, 17, 17, 0.74);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

.public-hero-preview {
  display: grid;
  gap: 10px;
  width: min(100%, 430px);
  justify-self: end;
  padding: 12px;
}

.account-summary-tile {
  padding: 18px;
}

.hero-preview-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 78px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.hero-preview-row:hover,
.hero-preview-row:focus {
  background: rgba(192, 164, 97, 0.1);
  border-color: rgba(219, 194, 126, 0.24);
  transform: translateY(-1px);
}

.hero-preview-row img {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.04);
}

.hero-preview-row strong,
.hero-preview-row small {
  display: block;
  min-width: 0;
}

.hero-preview-row strong {
  overflow: hidden;
  color: #fff;
  font: 700 0.95rem/1.25 var(--font-heading);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-preview-row small {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-preview-empty {
  min-height: 180px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
  letter-spacing: 0.12em;
  background: radial-gradient(circle at 50% 50%, rgba(192, 164, 97, 0.18), transparent 60%);
}

.account-summary-tile span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.account-summary-tile strong {
  color: #fff;
  font: 700 clamp(1.2rem, 2vw, 1.65rem)/1.1 var(--font-heading);
}

.public-card-grid,
.account-summary-grid,
.simple-footer-grid {
  display: grid;
  gap: 18px;
}

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

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

.tools-grid .store-card.no-tool-media .card-body {
  justify-content: flex-start;
  padding-top: 1.55rem;
}

.account-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: center;
}

.account-hero-title {
  margin: 20px 0 16px;
  max-width: 820px;
  color: #fff;
  font: 700 clamp(2.8rem, 6vw, 6.4rem)/0.95 var(--font-heading);
}

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

.section-title {
  margin: 8px 0 0;
  color: #fff;
  font: 700 clamp(1.5rem, 3vw, 2.35rem)/1.05 var(--font-heading);
}

.topbar-cart-count,
.store-cart-count {
  min-inline-size: 20px;
  block-size: 20px;
  padding-inline: 4px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #c0a461;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  contain: layout paint;
}

.topbar-cart-count {
  position: absolute;
  inset-block-start: -4px;
  inset-inline-end: -5px;
}

.store-cart-count {
  position: static;
  flex: 0 0 auto;
  margin-inline-start: auto;
}

.topbar-icon-button {
  position: relative;
}

.simple-footer {
  padding: 44px 0 34px;
}

.simple-footer-grid {
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: start;
}

.simple-footer .premium-logo {
  margin-bottom: 16px;
}

body.public-home .premium-logo {
  gap: 10px;
  color: #f3ead3 !important;
  line-height: 1;
  min-width: 0;
}

.public-brand-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: inline-grid;
  place-items: center;
  box-sizing: border-box;
  aspect-ratio: 1;
  border: 1px solid #c0a461;
  border-radius: 2px;
  background: #101827;
  color: #e4cf91;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  text-shadow: none;
  box-shadow: none;
}

body.public-home .public-brand-wordmark {
  display: inline-block;
  overflow: visible;
  color: #f3ead3 !important;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.065em;
  line-height: 1;
  white-space: nowrap;
}

.hx-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100000;
  max-width: min(360px, calc(100vw - 32px));
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)),
    rgba(9, 9, 9, 0.92);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42), 0 0 34px rgba(192, 164, 97, 0.16);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition: opacity 220ms ease, transform 220ms ease, border-color 220ms ease;
}

.hx-toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.hx-toast-success {
  border-color: rgba(112, 203, 208, 0.28);
}

.hx-toast-error {
  border-color: rgba(239, 68, 68, 0.28);
}

@media (max-width: 1280px) {
  .topbar-nav-links {
    display: none;
  }
}

@media (max-width: 1024px) {
  .hero-premium,
  .account-hero-layout {
    grid-template-columns: 1fr;
  }

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

  .premium-nav-inner {
    grid-template-columns: 1fr auto;
  }

  .premium-nav-links {
    display: none;
  }

  .public-hero-preview {
    justify-self: start;
  }
}

@media (max-width: 767.98px) {
  .premium-shell {
    width: min(100% - 28px, 1440px);
  }

  .public-brand-mark {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
    font-size: 18px;
  }

  .public-hero-title,
  .account-hero-title {
    font-size: clamp(2.7rem, 14vw, 4.6rem);
  }

  .public-hero {
    min-height: auto;
    padding-top: 58px;
  }

  .public-card-grid,
  .tools-grid,
  .updates-grid,
  .account-summary-grid,
  .luxury-footer-grid,
  .simple-footer-grid {
    grid-template-columns: 1fr;
  }

  .section-heading-premium {
    align-items: flex-start;
    flex-direction: column;
  }

  .public-nav-actions {
    display: none;
  }

  .premium-mobile-toggle {
    display: inline-flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    filter: none;
    transform: none;
  }

  body::after,
  .hx-page-vignette {
    animation: none !important;
  }

  .hx-loader,
  .sidebar-offcanvas,
  .store-sidebar-backdrop {
    transition: none !important;
  }
}

@media (max-width: 768px) {
  body.auth-page {
    max-width: 100%;
  }

  body.auth-page {
    min-height: 100svh;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }

  .auth-page .auth-nav {
    overflow-x: clip;
    overflow-y: visible;
  }

  .auth-page .auth-nav .container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-left: 16px;
    padding-right: 16px;
  }

  .auth-page .auth-nav .navbar-brand {
    min-width: 0;
    max-width: calc(100vw - 92px);
    gap: 8px;
    white-space: nowrap;
  }

  .auth-page .auth-nav .navbar-brand span {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .auth-page .auth-nav .navbar-toggler {
    flex: 0 0 auto;
  }

  .auth-page > .container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0;
  }

  .auth-page .auth-shell {
    width: 100%;
    min-height: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    align-items: start;
    padding:
      max(20px, env(safe-area-inset-top))
      0
      max(28px, env(safe-area-inset-bottom));
  }

  .auth-page .auth-panel-info {
    display: none;
  }

  .auth-page .auth-panel-form {
    width: calc(100% - 32px);
    max-width: 460px;
    min-width: 0;
    max-height: none;
    margin-inline: auto;
    padding: 22px;
    overflow: visible;
  }

  .auth-page .login-wrap,
  .auth-page .login-html,
  .auth-page .login-form,
  .auth-page .login-html form,
  .auth-page .login-html .sign-in-htm,
  .auth-page .login-html .sign-up-htm,
  .auth-page .login-form .group {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
    transform: none;
  }

  .auth-page .login-wrap {
    margin-inline: auto;
  }

  .auth-page .login-html {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 10px;
    align-items: start;
    height: auto;
    min-height: 0;
    padding: 0;
  }

  .auth-page .login-html .mb-4 {
    grid-column: 1 / -1;
    margin-bottom: 18px !important;
  }

  .auth-page .login-html h2 {
    margin-bottom: 8px;
    font-size: clamp(1.55rem, 8vw, 2rem);
    line-height: 1.08;
  }

  .auth-page .login-html .auth-copy {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .auth-page .login-html .tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    margin: 0 0 18px;
    padding: 0 0 10px;
    font-size: 16px;
    line-height: 1.2;
    white-space: nowrap;
    text-align: center;
  }

  .auth-page .login-html .tab:nth-of-type(2) {
    margin-right: 0;
  }

  .auth-page .login-form {
    grid-column: 1 / -1;
    min-height: 0;
    position: relative;
    perspective: none;
    transform-style: flat;
  }

  .auth-page .login-html .sign-in-htm,
  .auth-page .login-html .sign-up-htm {
    position: static;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    backface-visibility: visible;
  }

  .auth-page .login-form .group {
    margin-bottom: 14px;
  }

  .auth-page .login-form .group .label,
  .auth-page .login-form .group .input,
  .auth-page .login-form .group .button,
  .auth-page .compact-verify-input,
  .auth-page .compact-verify-submit,
  .auth-page .auth-modal .form-control,
  .auth-page .auth-modal .btn {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .auth-page .login-form .group .input,
  .auth-page .compact-verify-input,
  .auth-page .auth-modal .form-control {
    min-height: 48px;
    font-size: 16px;
  }

  .auth-page .login-form .group .button,
  .auth-page .compact-verify-submit,
  .auth-page .auth-modal .btn {
    min-height: 48px;
    font-size: 16px;
  }

  .auth-page .login-form .group .check + label {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    margin: 0;
    color: var(--store-muted);
    font-size: 16px;
    line-height: 1.25;
    white-space: nowrap;
  }

  .auth-page .login-form .group label .icon {
    flex: 0 0 15px;
  }

  .auth-page .hr {
    margin: 22px 0 18px;
  }

  .auth-page .foot-lnk {
    width: 100%;
    text-align: center;
  }

  .auth-page .foot-lnk a,
  .auth-page .foot-lnk label {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    font-size: 16px;
  }

  .auth-page .compact-verify-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .auth-page .modal-dialog {
    width: calc(100% - 32px);
    max-width: 460px;
    min-width: 0;
    margin-inline: auto;
  }
}



/* ================================================================
   HexingLab design refinement — unified navy / purple / cyan application shell
   CSS-only by design: existing markup, routes, hooks, and behavior stay intact.
   ================================================================ */

:root {
  --hex-bg-deep: var(--hxl-bg, #080d15);
  --hex-bg: var(--hxl-bg-soft, #0b111d);
  --hex-surface: var(--hxl-surface, #111827);
  --hex-surface-raised: var(--hxl-surface-raised, #151e2e);
  --hex-surface-hover: #1b2940;
  --hex-border: var(--hxl-border-strong, rgba(112, 203, 208, 0.42));
  --hex-border-soft: var(--hxl-border, rgba(112, 203, 208, 0.18));
  --hex-text: var(--hxl-text, #f4f7fa);
  --hex-text-soft: var(--hxl-text-soft, #d7e1eb);
  --hex-muted: var(--hxl-muted, #9badc4);
  --hex-gold: var(--hxl-gold, #d9bd72);
  --hex-gold-bright: #f2c96d;
  --hex-cyan: var(--hxl-cyan, #70cbd0);
  --hex-cyan-bright: var(--hxl-cyan-strong, #a5f2f2);
  --hex-purple: var(--hxl-purple, #a98cff);
  --hex-positive: var(--hxl-success, #70cbd0);
  --hex-danger: var(--hxl-danger, #f18793);
  --hex-warning: var(--hxl-gold, #d9bd72);
  --store-bg: var(--hex-bg-deep);
  --store-bg-secondary: var(--hex-bg);
  --store-surface: var(--hex-surface);
  --store-surface-soft: var(--hex-surface-raised);
  --store-surface-elevated: var(--hex-surface-hover);
  --store-border: var(--hex-border-soft);
  --store-border-strong: var(--hex-border);
  --store-text: var(--hex-text);
  --store-muted: var(--hex-text-soft);
  --store-subtle: var(--hex-muted);
  --store-accent: var(--hex-cyan);
  --store-accent-strong: var(--hex-cyan-bright);
  --store-glow: rgba(112, 203, 208, 0.12);
  --store-silver: var(--hex-text);
  --store-shadow: 0 18px 52px rgba(0, 0, 0, 0.28);
  --store-danger: var(--hex-danger);
  --store-danger-strong: #e08a82;
  --store-danger-soft: rgba(216, 120, 112, 0.13);
  --store-success: var(--hex-positive);
  --font-body: var(--hxl-font-ui, Inter, "Segoe UI", Tahoma, Arial, sans-serif);
  --font-heading: var(--hxl-font-display, "Courier New", Consolas, monospace);
}

html,
body {
  min-width: 0;
  max-width: 100%;
  color: var(--hex-text);
  background:
    radial-gradient(circle at 16% -8%, rgba(112, 203, 208, 0.09), transparent 32rem),
    radial-gradient(circle at 92% 14%, rgba(192, 164, 97, 0.055), transparent 29rem),
    linear-gradient(145deg, var(--hex-bg-deep), var(--hex-bg) 58%, #0a1020) !important;
  font-family: var(--font-body);
  line-height: 1.65;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.12;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(0, 0, 0, 0.18) 3px 4px);
  mix-blend-mode: soft-light;
}

.container-scroller,
.landing-premium,
.auth-nav,
.auth-page > .container {
  position: relative;
  z-index: 1;
}

::selection {
  color: var(--hex-bg-deep);
  background: var(--hex-cyan-bright);
}

a {
  color: var(--hex-cyan);
}

a:hover,
a:focus {
  color: #a6e8eb;
}

:focus-visible {
  outline: 2px solid var(--hex-cyan-bright) !important;
  outline-offset: 3px;
}

p,
label,
.menu-title,
.nav-link,
.section-copy,
.text-muted,
.hero-copy-large,
.auth-copy {
  color: var(--hex-text-soft) !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.card-title,
.modal-title {
  color: var(--hex-text);
}

.hero-title,
.public-hero-title,
.account-hero-title,
.auth-title,
.section-heading-premium h2,
.section-title {
  color: var(--hex-text) !important;
  font-family: var(--font-heading) !important;
  font-weight: 700 !important;
  letter-spacing: -0.065em !important;
  text-shadow: 2px 2px 0 rgba(192, 164, 97, 0.12);
  text-wrap: balance;
}

.hero-title,
.public-hero-title {
  max-width: 850px;
  font-size: clamp(3.4rem, 7vw, 7.6rem);
  line-height: 0.88;
}

.title-gradient,
.product-title {
  color: var(--hex-text) !important;
  background: none;
  -webkit-text-fill-color: currentColor;
}

.hero-brandline,
.section-kicker,
.section-pill,
.auth-badge,
.user-role-badge,
.status-pill,
.product-meta span,
.news-meta span,
.premium-nav-links a,
.topbar-nav-links a,
.sidebar .menu-title,
.sidebar .nav-category .nav-link {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.075em;
}

.hero-brandline,
.section-kicker {
  color: var(--hex-cyan-bright) !important;
}

.section-kicker,
.section-pill,
.auth-badge,
.user-role-badge,
.sidebar-balance-pill,
.product-meta span,
.news-meta span,
.order-status-badge,
.status-pill {
  border: 1px solid var(--hex-border-soft) !important;
  border-radius: 1px !important;
  color: var(--hex-cyan-bright) !important;
  background: rgba(112, 203, 208, 0.065) !important;
  box-shadow: none;
}

.section-kicker::before {
  border-radius: 0;
  background: var(--hex-cyan);
  box-shadow: 0 0 9px rgba(112, 203, 208, 0.38);
}

.landing-premium,
.auth-page {
  background:
    radial-gradient(circle at 18% 10%, rgba(112, 203, 208, 0.09), transparent 29rem),
    radial-gradient(circle at 84% 8%, rgba(192, 164, 97, 0.055), transparent 27rem),
    linear-gradient(150deg, var(--hex-bg-deep), var(--hex-bg)) !important;
}

.landing-premium::before {
  background:
    radial-gradient(circle at var(--hx-x, 50%) var(--hx-y, 28%), rgba(112, 203, 208, 0.07), transparent 27%),
    linear-gradient(180deg, transparent, rgba(8, 13, 21, 0.54));
}

[data-tilt] {
  transform: none !important;
}

.premium-nav,
.auth-nav,
.navbar {
  min-height: 70px;
  border-bottom: 1px solid var(--hex-border-soft) !important;
  background: var(--hex-bg-deep) !important;
}

.premium-nav-inner {
  min-height: 70px;
}

.premium-logo,
.auth-nav .navbar-brand,
.sidebar-brand,
.premium-username {
  color: var(--hex-text) !important;
  font-family: var(--font-heading);
  letter-spacing: 0.055em;
}

.brand-mark,
.brand-mark-mini,
.brand-mark-badge {
  border-radius: 0 !important;
  filter: drop-shadow(0 8px 18px rgba(192, 164, 97, 0.16));
}

.premium-nav-links a,
.topbar-nav-links a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding-inline: 11px;
  border: 1px solid transparent;
  color: var(--hex-text-soft) !important;
  font-size: 12px;
  text-transform: uppercase;
}

.premium-nav-links a:hover,
.premium-nav-links a:focus,
.topbar-nav-links a:hover,
.topbar-nav-links a:focus {
  border-color: var(--hex-border-soft);
  color: var(--hex-cyan-bright) !important;
  background: rgba(21, 30, 46, 0.58);
  transform: none;
}

.premium-mobile-toggle,
.topbar-icon-button,
.navbar-toggler {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--hex-border) !important;
  border-radius: 1px !important;
  color: var(--hex-text) !important;
  background: var(--hex-surface) !important;
}

.premium-mobile-menu {
  border: 1px solid var(--hex-border) !important;
  border-radius: 1px;
  background: rgba(8, 13, 21, 0.985);
}

.premium-mobile-menu a {
  min-height: 44px;
  border-radius: 0;
  color: var(--hex-text-soft);
}

.premium-mobile-menu a:hover,
.premium-mobile-menu a:focus {
  color: var(--hex-cyan-bright);
  background: var(--hex-surface);
}

.sidebar {
  border-inline-end: 1px solid var(--hex-border-soft);
  background: var(--hex-bg-deep) !important;
}

.store-submenu-list {
  margin-inline-start: -40px;
  margin-inline-end: 0;
}

.sidebar .nav .nav-item > .nav-link {
  min-height: 44px;
  border-inline-start: 2px solid transparent;
  border-radius: 0;
}

.sidebar .nav .nav-item.active > .nav-link,
.sidebar .nav .nav-item:hover > .nav-link,
.sidebar .nav .nav-item > .nav-link:focus {
  border-inline-start-color: var(--hex-cyan-bright);
  color: var(--hex-cyan-bright) !important;
  background: var(--hex-surface) !important;
}

.sidebar-balance-pill {
  border-inline-start: 2px solid var(--hex-cyan) !important;
  color: var(--hex-text) !important;
  background: rgba(112, 203, 208, 0.065) !important;
}

.card,
.modal-content,
.form-control,
.search input,
.auth-panel,
.public-hero-preview,
.account-summary-tile {
  border: 1px solid var(--hex-border-soft) !important;
  border-radius: 1px !important;
  color: var(--hex-text) !important;
  background:
    linear-gradient(145deg, rgba(21, 30, 46, 0.76), rgba(11, 17, 29, 0.93)) !important;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.2);
}

.card {
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 28px;
  height: 2px;
  opacity: 1;
  pointer-events: none;
  background: var(--hex-cyan);
}

.card::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 17px;
  height: 17px;
  border-right: 1px solid var(--hex-cyan);
  border-bottom: 1px solid var(--hex-cyan);
  border-radius: 0;
  opacity: 0.62;
  pointer-events: none;
  background: transparent;
  filter: none;
}

.card:hover {
  border-color: rgba(112, 203, 208, 0.54) !important;
  background:
    linear-gradient(145deg, rgba(27, 41, 64, 0.82), rgba(11, 17, 29, 0.94)) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
  transform: translateY(-2px) !important;
}

.card:hover::before {
  width: 36px;
  opacity: 1;
  background: var(--hex-cyan);
  box-shadow: none;
}

.product-card:hover::after {
  opacity: 0.78;
  border-color: var(--hex-cyan);
  background: transparent;
  filter: none;
}

.product-image,
.news-image,
.hero-preview-row img {
  border: 1px solid var(--hex-border-soft);
  border-radius: 0;
  background: var(--hex-bg);
  box-shadow: 0 15px 34px rgba(0, 0, 0, 0.28);
}

.hero-preview-row {
  border: 1px solid var(--hex-border-soft);
  border-radius: 0;
  background: rgba(8, 13, 21, 0.42);
}

.hero-preview-row:hover,
.hero-preview-row:focus {
  border-color: var(--hex-cyan);
  background: var(--hex-surface);
  transform: none;
}

.hero-preview-row strong,
.price-stack strong,
.account-summary-tile strong {
  color: var(--hex-text);
}

.btn,
.login-form .group .button,
.compact-verify-submit {
  min-height: 44px;
  border-radius: 1px !important;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.035em;
}

.btn-primary,
.login-form .group .button,
.login-form .group .button.button {
  border: 1px solid var(--hex-gold) !important;
  color: var(--hex-bg-deep) !important;
  background: var(--hex-gold) !important;
  box-shadow: 0 9px 24px rgba(192, 164, 97, 0.13);
}

.btn-primary:hover,
.btn-primary:focus,
.login-form .group .button:hover,
.login-form .group .button:focus {
  border-color: var(--hex-gold-bright) !important;
  color: var(--hex-bg-deep) !important;
  background: var(--hex-gold-bright) !important;
  box-shadow: 0 11px 28px rgba(219, 194, 126, 0.17);
}

.btn-outline-light,
.auth-nav-register {
  border: 1px solid var(--hex-border) !important;
  color: var(--hex-text) !important;
  background: rgba(8, 13, 21, 0.38) !important;
}

.btn-outline-light:hover,
.btn-outline-light:focus,
.auth-nav-register:hover,
.auth-nav-register:focus {
  border-color: var(--hex-cyan) !important;
  color: var(--hex-cyan-bright) !important;
  background: rgba(112, 203, 208, 0.065) !important;
}

.btn-danger,
.logout-link {
  border-color: rgba(216, 120, 112, 0.62) !important;
  color: #ffe3df !important;
  background: rgba(216, 120, 112, 0.13) !important;
  box-shadow: none;
}

.btn-danger:hover,
.btn-danger:focus,
.logout-link:hover,
.logout-link:focus {
  border-color: rgba(216, 120, 112, 0.78) !important;
  color: #ffe3df !important;
  background: rgba(216, 120, 112, 0.2) !important;
  box-shadow: 0 0 0 2px rgba(216, 120, 112, 0.08);
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: var(--hex-cyan-bright) !important;
}

.simple-text-link:hover,
.simple-text-link:focus {
  color: #a6e8eb !important;
  text-decoration-color: rgba(112, 203, 208, 0.62);
}

.btn:disabled,
.btn.disabled,
.login-form .group .button:disabled {
  opacity: 0.46;
  filter: saturate(0.55);
  box-shadow: none;
}

.form-control,
.search input,
.login-form .group .input,
.compact-verify-input {
  min-height: 48px;
  border: 1px solid var(--hex-border) !important;
  border-radius: 0 !important;
  color: var(--hex-text) !important;
  background: rgba(8, 13, 21, 0.72) !important;
  caret-color: var(--hex-cyan-bright);
  box-shadow: none;
}

.form-control:focus,
.search input:focus,
.login-form .group .input:focus,
.compact-verify-input:focus {
  outline: 2px solid rgba(112, 203, 208, 0.5);
  outline-offset: 1px;
  border-color: var(--hex-cyan) !important;
  box-shadow: none !important;
}

.form-control:-webkit-autofill,
.login-form .group .input:-webkit-autofill {
  -webkit-text-fill-color: var(--hex-text);
  box-shadow: 0 0 0 60px var(--hex-bg) inset !important;
}

.sidebar-search .form-control {
  min-height: 48px;
  border: 1px solid var(--hex-border) !important;
  border-radius: 0 !important;
  color: var(--hex-text) !important;
  background: rgba(8, 13, 21, 0.72) !important;
  box-shadow: none !important;
}

.login-form .group .button.button {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700 !important;
  letter-spacing: 0.035em;
}

.error-message,
.text-danger,
[aria-invalid="true"] + .error-message {
  color: #e99a92 !important;
}

.alert-success,
.flash-stack .alert-success,
.hx-toast-success {
  border-color: rgba(112, 203, 208, 0.42) !important;
  color: var(--hex-cyan-bright) !important;
  background: rgba(112, 203, 208, 0.095) !important;
}

.alert-warning,
.flash-stack .alert-warning {
  border-color: rgba(210, 168, 92, 0.42) !important;
  color: #f0d59f !important;
  background: rgba(210, 168, 92, 0.095) !important;
}

.alert-danger,
.alert-error,
.flash-stack .alert-danger,
.hx-toast-error {
  border-color: rgba(216, 120, 112, 0.42) !important;
  color: #f3b8b2 !important;
  background: rgba(216, 120, 112, 0.095) !important;
}

.alert-info,
.flash-stack .alert-info {
  border-color: rgba(112, 203, 208, 0.42) !important;
  color: #b7ebee !important;
  background: rgba(112, 203, 208, 0.085) !important;
}

.section-heading-premium {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hex-border-soft);
}

.premium-section {
  padding: clamp(58px, 7vw, 96px) 0;
}

.hero-premium {
  min-height: min(760px, calc(100vh - 70px));
  padding: clamp(54px, 7vw, 92px) 0;
}

.public-hero {
  min-height: clamp(500px, 70vh, 700px);
}

.public-hero-copy {
  position: relative;
  padding-left: clamp(14px, 2vw, 24px);
  border-inline-start: 1px solid var(--hex-border-soft);
}

.public-hero-copy::before {
  content: "";
  position: absolute;
  top: 0;
  left: -1px;
  width: 2px;
  height: 72px;
  background: linear-gradient(var(--hex-cyan-bright), var(--hex-purple));
}

.account-hero-card {
  border-color: rgba(192, 164, 97, 0.42) !important;
  background:
    linear-gradient(145deg, rgba(21, 30, 46, 0.86), rgba(11, 17, 29, 0.96)) !important;
}

.featured-grid {
  row-gap: 1.25rem;
}

.account-hero-title {
  margin: 15px 0 13px;
  font-size: clamp(2.35rem, 5vw, 5.15rem);
  line-height: 0.93;
}

.account-summary-grid {
  gap: 10px;
}

.account-summary-tile {
  min-width: 0;
  padding: 14px 15px;
  border-inline-start: 2px solid var(--hex-cyan) !important;
}

.account-summary-tile span {
  margin-bottom: 5px;
  color: var(--hex-muted);
  font-size: 12px;
  line-height: 1.35;
}

.account-summary-tile strong {
  font: 700 clamp(1.3rem, 2vw, 1.75rem)/1 var(--font-heading);
}

.account-summary-tile:nth-child(5) {
  border-inline-start-color: var(--hex-gold) !important;
  background: linear-gradient(145deg, rgba(217, 189, 114, 0.08), rgba(11, 17, 29, 0.94)) !important;
}

.order-card .card-body,
.news-card .card-body,
.store-card .card-body,
.product-card .card-body {
  gap: 12px;
  padding: 1.25rem;
}

.order-card .product-meta,
.news-card .news-meta {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hex-border-soft);
}

.product-actions {
  align-items: flex-end;
}

.product-actions .btn,
.product-actions.compact .btn {
  min-width: 116px;
  min-height: 44px;
}

.product-meta span,
.news-meta span {
  min-height: 28px;
  color: var(--hex-gold-bright) !important;
  background: rgba(192, 164, 97, 0.07) !important;
  border-color: rgba(192, 164, 97, 0.36) !important;
}

.product-card:has(a[href^="/tools/free/"]) .product-meta span,
.product-card:has(a[href^="/tools/free/"]) .price-stack strong {
  color: var(--hex-positive) !important;
}

.product-card:has(a[href^="/tools/free/"]) .product-meta span {
  border-color: rgba(112, 203, 208, 0.36) !important;
  background: rgba(112, 203, 208, 0.075) !important;
}

.product-card:has(form[action="/cart/add"]) .product-meta span,
.store-card:not(:has(button:disabled)) .product-meta span {
  color: var(--hex-purple) !important;
  border-color: rgba(169, 138, 216, 0.36) !important;
  background: rgba(169, 138, 216, 0.075) !important;
}

.store-card:has(button:disabled) .product-meta span,
.product-card:has(button:disabled) .price-note,
.availability-note.out-of-stock {
  color: var(--hex-danger) !important;
  border-color: rgba(216, 120, 112, 0.38) !important;
  background: rgba(216, 120, 112, 0.075) !important;
}

.auth-shell {
  grid-template-columns: minmax(0, 1fr) minmax(420px, 520px);
  gap: 1px;
  padding: 36px 0 44px;
}

.auth-panel-info {
  min-height: 590px;
  padding: clamp(30px, 5vw, 58px);
  border-right-color: transparent !important;
  background:
    radial-gradient(circle at 22% 22%, rgba(112, 203, 208, 0.1), transparent 22rem),
    linear-gradient(145deg, rgba(17, 24, 39, 0.94), rgba(8, 13, 21, 0.92)) !important;
}

.auth-panel-form {
  padding: clamp(26px, 4vw, 42px);
}

.auth-title {
  max-width: 680px;
  font-size: clamp(2.8rem, 5vw, 5.4rem);
  line-height: 0.91;
}

.login-html .tab {
  min-height: 42px;
  color: var(--hex-muted);
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 0.07em;
}

.login-html .sign-in:checked + .tab,
.login-html .sign-up:checked + .tab {
  border-color: var(--hex-cyan);
  color: var(--hex-cyan-bright);
}

.login-form .group .label {
  color: var(--hex-text-soft);
  font-family: var(--font-heading);
}

.login-form .group .check:checked + label .icon {
  background: var(--hex-cyan);
}

.hr {
  background: var(--hex-border-soft);
}

.empty-state,
.empty-news {
  border: 1px dashed rgba(210, 168, 92, 0.42);
  border-radius: 0;
  color: var(--hex-text-soft);
  background: rgba(210, 168, 92, 0.055);
}

.luxury-footer {
  border-top-color: var(--hex-border-soft);
  background: rgba(8, 13, 21, 0.76);
}

.luxury-footer h4 {
  color: var(--hex-cyan-bright);
}

@media (max-width: 1024px) {
  .navbar .app-brand-compact span {
    display: none;
  }

  .hero-premium {
    gap: 32px;
  }

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

  .account-summary-tile:nth-child(5) {
    grid-column: span 2;
  }
}

@media (max-width: 767.98px) {
  .premium-shell {
    width: calc(100% - 28px);
  }

  .premium-nav,
  .premium-nav-inner,
  .auth-nav,
  .navbar {
    min-height: 64px;
  }

  .hero-premium,
  .public-hero {
    min-height: auto;
    padding: 42px 0 50px;
  }

  .public-hero-title,
  .hero-title,
  .account-hero-title {
    max-width: 100%;
    font-size: clamp(2.35rem, 11.5vw, 3.75rem);
    line-height: 0.94;
    letter-spacing: -0.075em !important;
    overflow-wrap: normal;
    word-break: normal;
  }

  .section-heading-premium h2,
  .section-title {
    font-size: clamp(1.7rem, 8.5vw, 2.65rem);
    line-height: 1;
  }

  .premium-section {
    padding: 54px 0;
  }

  .section-heading-premium {
    gap: 14px;
    padding-bottom: 14px;
  }

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

  .account-summary-tile:nth-child(5) {
    grid-column: 1 / -1;
  }

  .account-summary-tile {
    padding: 12px 13px;
  }

  .account-summary-tile span {
    letter-spacing: 0.035em;
  }

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

  .product-actions .btn,
  .product-actions.compact .btn {
    width: 100%;
    min-width: 0;
  }

  .auth-page .auth-shell {
    padding: 12px 0 max(22px, env(safe-area-inset-bottom));
  }

  .auth-page .auth-panel-info {
    display: none;
  }

  .auth-page .auth-panel-form {
    width: calc(100% - 28px);
    max-width: 460px;
    max-height: none;
    margin-inline: auto;
    padding: 18px;
    overflow: visible;
  }

  .auth-page .login-html .mb-4 {
    margin-bottom: 12px !important;
  }

  .auth-page .login-html h2 {
    margin-bottom: 5px;
    font-size: clamp(1.35rem, 7vw, 1.75rem);
  }

  .auth-page .login-html .auth-copy {
    font-size: 0.875rem;
    line-height: 1.45;
  }

  .auth-page .login-html .tab {
    min-height: 40px;
    margin-bottom: 12px;
    padding-bottom: 7px;
    font-size: 13px;
  }

  .auth-page .login-form .group {
    margin-bottom: 12px;
  }

  .auth-page .hr {
    margin: 16px 0 12px;
  }

  .navbar .navbar-menu-wrapper,
  .navbar .navbar-brand-wrapper {
    min-width: 0;
  }

  .app-brand-compact {
    min-width: 0;
    white-space: nowrap;
  }

  .app-brand-compact span,
  .navbar .navbar-toggler,
  .navbar .navbar-toggler-right {
    flex: 0 0 auto;
  }

  .content-wrapper {
    padding-inline: 14px !important;
  }

  .btn,
  .btn-sm,
  button,
  input[type="button"],
  input[type="submit"],
  .quantity-button {
    min-height: 45px !important;
  }
}

@media (max-width: 420px) {
  .premium-shell {
    width: calc(100% - 28px);
  }

  .public-hero-title,
  .hero-title,
  .account-hero-title {
    font-size: clamp(2.15rem, 10.8vw, 2.85rem);
    letter-spacing: -0.08em !important;
  }

  .hero-copy-large {
    font-size: 0.9rem;
    line-height: 1.62;
  }

  .hero-actions .btn,
  .hero-actions .simple-text-link {
    width: 100%;
    justify-content: center;
  }

  .account-summary-grid {
    grid-template-columns: 1fr;
  }

  .account-summary-tile:nth-child(5) {
    grid-column: auto;
  }

  .auth-page .auth-nav .container {
    padding-inline: 14px;
  }

  .auth-page .auth-nav .navbar-brand span,
  .app-brand-compact span {
    display: none;
  }

  .auth-page .auth-panel-form {
    width: calc(100% - 28px);
    padding: 15px;
  }

  .auth-page .login-form .group .input,
  .auth-page .login-form .group .button,
  .auth-page .compact-verify-submit {
    min-height: 46px;
  }
}

/* ========================================================================
   Login shared-shell cascade correction
   Scoped to the real templates/login.html hierarchy so legacy storefront,
   login.css, and the template's verification-control styles cannot reapply
   the former legacy treatment.
   ======================================================================== */

body.auth-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--hex-text) !important;
  background:
    radial-gradient(circle at 14% 8%, rgba(112, 203, 208, 0.09), transparent 30rem),
    radial-gradient(circle at 86% 16%, rgba(169, 138, 216, 0.08), transparent 28rem),
    linear-gradient(148deg, var(--hex-bg-deep), var(--hex-bg) 60%, #101426) !important;
}

body.auth-page::after {
  z-index: 0;
  pointer-events: none;
  opacity: 0.11;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(0, 0, 0, 0.2) 3px 4px);
}

body.auth-page .auth-nav {
  min-height: 70px;
  border-bottom: 1px solid var(--hex-border-soft) !important;
  background: rgba(8, 13, 21, 0.95) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

body.auth-page .auth-nav .navbar-brand,
body.auth-page .auth-nav .navbar-brand span {
  color: var(--hex-text) !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.075em;
  text-shadow: 1px 1px 0 rgba(192, 164, 97, 0.16);
}

body.auth-page .auth-nav .brand-mark,
body.auth-page .auth-badge .brand-mark-badge {
  border-radius: 0 !important;
  filter: grayscale(1) sepia(1) saturate(2.1) brightness(0.96) drop-shadow(0 6px 12px rgba(192, 164, 97, 0.16));
}

body.auth-page .auth-nav .nav-link {
  min-height: 44px;
  color: var(--hex-text-soft) !important;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

body.auth-page .auth-nav .nav-link:hover,
body.auth-page .auth-nav .nav-link:focus-visible {
  color: var(--hex-cyan-bright) !important;
  background: rgba(21, 30, 46, 0.56) !important;
}

body.auth-page .auth-nav .auth-nav-register {
  border: 1px solid var(--hex-border) !important;
  border-radius: 1px !important;
  color: var(--hex-cyan) !important;
  background: rgba(11, 17, 29, 0.72) !important;
  box-shadow: none !important;
}

body.auth-page .auth-nav .auth-nav-register:hover,
body.auth-page .auth-nav .auth-nav-register:focus-visible {
  border-color: var(--hex-cyan) !important;
  color: var(--hex-cyan-bright) !important;
  background: rgba(112, 203, 208, 0.07) !important;
}

body.auth-page .auth-shell {
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 520px);
  gap: 1px;
  align-items: center;
  padding: 36px 0 44px;
}

body.auth-page .auth-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--hex-border-soft) !important;
  border-radius: 1px !important;
  color: var(--hex-text) !important;
  background: var(--hex-surface) !important;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.26) !important;
}

body.auth-page .auth-panel::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 38px;
  height: 2px;
  pointer-events: none;
  background: var(--hex-cyan);
}

body.auth-page .auth-panel::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 18px;
  height: 18px;
  pointer-events: none;
  border-right: 1px solid var(--hex-cyan);
  border-bottom: 1px solid var(--hex-cyan);
}

body.auth-page .auth-panel-info {
  min-height: 590px;
  border-right-color: transparent !important;
  background:
    radial-gradient(circle at 20% 20%, rgba(112, 203, 208, 0.1), transparent 23rem),
    linear-gradient(145deg, rgba(17, 24, 39, 0.98), rgba(8, 13, 21, 0.96)) !important;
}

body.auth-page .auth-panel-form {
  background:
    linear-gradient(145deg, rgba(21, 30, 46, 0.78), rgba(11, 17, 29, 0.98)) !important;
}

body.auth-page .auth-badge {
  border: 1px solid var(--hex-border) !important;
  border-radius: 1px !important;
  color: var(--hex-cyan-bright) !important;
  background: rgba(112, 203, 208, 0.07) !important;
  box-shadow: none !important;
}

body.auth-page .auth-title,
body.auth-page .auth-title.title-gradient {
  color: var(--hex-text) !important;
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: currentColor !important;
  text-shadow: 2px 2px 0 rgba(192, 164, 97, 0.16);
}

body.auth-page .auth-copy,
body.auth-page .login-form .group .check + label {
  color: var(--hex-muted) !important;
}

body.auth-page .login-html,
body.auth-page .login-form,
body.auth-page .login-form .group {
  color: var(--hex-text);
  background: transparent !important;
}

body.auth-page .login-html h1,
body.auth-page .login-html h2 {
  color: var(--hex-text) !important;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.035em;
  text-shadow: 1px 1px 0 rgba(192, 164, 97, 0.14);
}

body.auth-page .login-html .tab {
  min-height: 42px;
  border-bottom: 1px solid var(--hex-border-soft);
  border-radius: 0 !important;
  color: var(--hex-muted) !important;
  background: transparent !important;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
}

body.auth-page .login-html .sign-in:checked + .tab,
body.auth-page .login-html .sign-up:checked + .tab {
  border-color: var(--hex-cyan) !important;
  color: var(--hex-cyan-bright) !important;
}

body.auth-page .login-form .group .label {
  color: var(--hex-text-soft) !important;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

body.auth-page .login-form .group .input,
body.auth-page .compact-verify-input,
body.auth-page .auth-modal .form-control {
  min-height: 48px;
  border: 1px solid var(--hex-border) !important;
  border-radius: 1px !important;
  color: var(--hex-text) !important;
  background: rgba(8, 13, 21, 0.8) !important;
  caret-color: var(--hex-cyan-bright);
  box-shadow: inset 0 1px 0 rgba(240, 232, 217, 0.025) !important;
}

body.auth-page .login-form .group .input::placeholder,
body.auth-page .compact-verify-input::placeholder,
body.auth-page .auth-modal .form-control::placeholder {
  color: var(--hex-muted) !important;
  opacity: 1;
}

body.auth-page .login-form .group .input:focus,
body.auth-page .compact-verify-input:focus,
body.auth-page .auth-modal .form-control:focus {
  outline: 2px solid rgba(112, 203, 208, 0.5) !important;
  outline-offset: 1px;
  border-color: var(--hex-cyan) !important;
  color: var(--hex-text) !important;
  background: rgba(11, 17, 29, 0.96) !important;
  box-shadow: none !important;
}

body.auth-page .login-form .group .input:-webkit-autofill,
body.auth-page .login-form .group .input:-webkit-autofill:hover,
body.auth-page .login-form .group .input:-webkit-autofill:focus,
body.auth-page .compact-verify-input:-webkit-autofill,
body.auth-page .auth-modal .form-control:-webkit-autofill {
  -webkit-text-fill-color: var(--hex-text) !important;
  caret-color: var(--hex-cyan-bright);
  box-shadow: 0 0 0 80px var(--hex-bg) inset !important;
  transition: background-color 9999s ease-out 0s;
}

body.auth-page .login-form .group .button,
body.auth-page .login-form .group .button.button,
body.auth-page .compact-verify-submit,
body.auth-page .auth-modal .btn-primary {
  min-height: 48px;
  border: 1px solid var(--hex-cyan) !important;
  border-radius: 1px !important;
  color: var(--hex-bg-deep) !important;
  background: var(--hex-cyan) !important;
  background-image: none !important;
  box-shadow: 0 9px 24px rgba(112, 203, 208, 0.13) !important;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700 !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

body.auth-page .login-form .group .button:hover,
body.auth-page .login-form .group .button:focus-visible,
body.auth-page .compact-verify-submit:hover,
body.auth-page .compact-verify-submit:focus-visible,
body.auth-page .auth-modal .btn-primary:hover,
body.auth-page .auth-modal .btn-primary:focus-visible {
  border-color: var(--hex-cyan-bright) !important;
  color: var(--hex-bg-deep) !important;
  background: var(--hex-cyan-bright) !important;
  background-image: none !important;
  box-shadow: 0 11px 28px rgba(112, 203, 208, 0.16) !important;
}

body.auth-page .login-form .group .button:disabled,
body.auth-page .compact-verify-submit:disabled,
body.auth-page .auth-modal .btn:disabled {
  cursor: not-allowed;
  opacity: 0.46;
  filter: saturate(0.5);
  box-shadow: none !important;
}

body.auth-page .simple-text-link,
body.auth-page .foot-lnk a,
body.auth-page .foot-lnk label,
body.auth-page .compact-verify-resend {
  color: var(--hex-cyan) !important;
}

body.auth-page .simple-text-link:hover,
body.auth-page .simple-text-link:focus-visible,
body.auth-page .foot-lnk a:hover,
body.auth-page .foot-lnk a:focus-visible,
body.auth-page .foot-lnk label:hover,
body.auth-page .foot-lnk label:focus-visible,
body.auth-page .compact-verify-resend:hover,
body.auth-page .compact-verify-resend:focus-visible {
  color: #a6e8eb !important;
  text-decoration-color: rgba(112, 203, 208, 0.65);
}

body.auth-page input[type="checkbox"] {
  accent-color: var(--hex-cyan);
}

body.auth-page .login-form .group label .icon {
  border: 1px solid var(--hex-border) !important;
  border-radius: 1px !important;
  background: var(--hex-bg-deep) !important;
}

body.auth-page .login-form .group label .icon::before,
body.auth-page .login-form .group label .icon::after {
  background: var(--hex-bg-deep) !important;
}

body.auth-page .login-form .group .check:checked + label {
  color: var(--hex-text-soft) !important;
}

body.auth-page .login-form .group .check:checked + label .icon {
  border-color: var(--hex-cyan) !important;
  background: var(--hex-cyan) !important;
}

body.auth-page .login-form .group .input.is-invalid,
body.auth-page .login-form .group .input[aria-invalid="true"],
body.auth-page .login-form .group .input:user-invalid,
body.auth-page .compact-verify-input.is-invalid,
body.auth-page .compact-verify-input[aria-invalid="true"] {
  border-color: var(--hex-danger) !important;
  outline-color: rgba(216, 120, 112, 0.48) !important;
}

body.auth-page .error-message,
body.auth-page .errors,
body.auth-page .text-danger,
body.auth-page .compact-verify-status.text-danger {
  color: #e99a92 !important;
}

body.auth-page .text-success,
body.auth-page .compact-verify-status.text-success,
body.auth-page .alert-success {
  color: var(--hex-cyan-bright) !important;
}

body.auth-page .hr {
  height: 1px;
  background: var(--hex-border-soft) !important;
}

body.auth-page .auth-modal .modal-content {
  border: 1px solid var(--hex-border) !important;
  border-radius: 1px !important;
  color: var(--hex-text) !important;
  background: var(--hex-surface) !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.34) !important;
}

body.auth-page .auth-modal .modal-header {
  border-bottom-color: var(--hex-border-soft) !important;
}

@media (max-width: 767.98px) {
  body.auth-page .auth-nav {
    min-height: 64px;
  }

  body.auth-page .auth-shell {
    min-height: 0;
    grid-template-columns: 1fr;
    align-items: start;
    padding: 12px 0 max(22px, env(safe-area-inset-bottom));
  }

  body.auth-page .auth-panel-info {
    display: none;
  }

  body.auth-page .auth-panel-form {
    width: calc(100% - 28px);
    max-width: 460px;
    margin-inline: auto;
    padding: 18px;
  }

  body.auth-page .login-html .mb-4 {
    margin-bottom: 12px !important;
  }

  body.auth-page .login-html h2 {
    font-size: clamp(1.35rem, 7vw, 1.75rem);
    line-height: 1.12;
  }

  body.auth-page .login-html .tab {
    min-height: 40px;
    margin-bottom: 12px;
    padding-bottom: 7px;
  }

  body.auth-page .login-form .group {
    margin-bottom: 12px;
  }
}

@media (max-width: 420px) {
  body.auth-page .auth-panel-form {
    width: calc(100% - 28px);
    padding: 15px;
  }

  body.auth-page .login-form .group .input,
  body.auth-page .login-form .group .button,
  body.auth-page .compact-verify-submit {
    min-height: 46px;
  }
}

/* ========================================================================
   Final shared component bridge
   Real template classes only. This layer supersedes page-local legacy styles
   without changing Jinja markup, form behavior, routes, or JavaScript hooks.
   ======================================================================== */

html,
body,
.container-scroller,
.page-body-wrapper,
.main-panel,
.content-wrapper {
  max-width: 100%;
  min-width: 0;
}

body,
.container-scroller,
.page-body-wrapper,
.main-panel,
.content-wrapper {
  color: var(--hex-text) !important;
}

.container-scroller {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 2%, rgba(112, 203, 208, 0.065), transparent 28rem),
    linear-gradient(145deg, var(--hex-bg-deep), var(--hex-bg)) !important;
}

.content-wrapper {
  background:
    linear-gradient(rgba(8, 13, 21, 0.72), rgba(11, 17, 29, 0.84)),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(112, 203, 208, 0.025) 39px 40px) !important;
}

.content-wrapper > *,
.row > *,
.card-body,
.item-row > *,
.account-hero-layout > *,
.account-summary-grid > *,
.featured-grid > *,
.public-card-grid > *,
.tools-grid > *,
.url-vip-grid > *,
.url-download-grid > *,
.url-stat-grid > * {
  min-width: 0;
}

.section-title,
.section-heading,
.card-title,
.product-title,
.auth-title,
.account-hero-title,
.error-code {
  color: var(--hex-text) !important;
  background: none !important;
  background-image: none !important;
  -webkit-text-fill-color: currentColor !important;
  font-family: var(--font-heading) !important;
  font-weight: 700 !important;
  text-shadow: 2px 2px 0 rgba(192, 164, 97, 0.13);
}

.section-copy,
.page-copy,
.tool-copy,
.lookup-copy,
.url-search-copy,
.cart-page-copy,
.order-page-copy,
.gift-page-copy,
.status-copy,
.summary-note,
.account-modal-copy,
.reset-note,
.text-muted {
  color: var(--hex-text-soft) !important;
}

.sidebar,
.sidebar-brand-wrapper,
.navbar,
.navbar-brand-wrapper,
.navbar-menu-wrapper {
  background: rgba(8, 13, 21, 0.97) !important;
}

.sidebar,
.sidebar-brand-wrapper {
  border-right: 1px solid var(--hex-border-soft) !important;
}

.sidebar .sidebar-brand-wrapper {
  overflow: visible !important;
  padding: 0 18px !important;
  justify-content: flex-start !important;
}

.sidebar .sidebar-brand-wrapper .sidebar-brand.brand-logo {
  width: 100% !important;
  min-width: 0;
  padding: 0 !important;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  overflow: visible;
  white-space: nowrap;
  font-size: 1.12rem;
  line-height: 1;
}

.sidebar .sidebar-brand-wrapper .brand-mark {
  width: 36px !important;
  height: 36px !important;
  padding: 4px;
  flex: 0 0 36px;
  border: 1px solid var(--hex-gold) !important;
  border-radius: 2px !important;
  background: var(--hex-bg) !important;
  object-fit: contain;
  filter: grayscale(1) sepia(1) saturate(3.2) hue-rotate(355deg) brightness(1.08) contrast(1.08) !important;
  box-shadow: none !important;
}

.sidebar .sidebar-brand-wrapper .sidebar-brand.brand-logo span {
  display: block;
  flex-shrink: 0;
  color: var(--hex-text) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0.085em;
  line-height: 1;
}

.navbar .app-brand-compact .brand-mark-mini {
  width: 28px !important;
  height: 28px !important;
  padding: 3px;
  flex: 0 0 28px;
  border: 1px solid var(--hex-gold) !important;
  border-radius: 2px !important;
  background: var(--hex-bg) !important;
  object-fit: contain;
  filter: grayscale(1) sepia(1) saturate(3.2) hue-rotate(355deg) brightness(1.08) contrast(1.08) !important;
  box-shadow: none !important;
}

.navbar,
.navbar-menu-wrapper {
  border-bottom: 1px solid var(--hex-border-soft) !important;
}

.sidebar .nav .nav-item > .nav-link,
.topbar-nav-links .nav-link,
.navbar .nav-link {
  border-radius: 0 !important;
  color: var(--hex-text-soft) !important;
}

.sidebar .nav .nav-item.active > .nav-link,
.sidebar .nav .nav-item:hover > .nav-link,
.sidebar .nav .nav-item > .nav-link:focus-visible,
.topbar-nav-links .nav-link:hover,
.topbar-nav-links .nav-link:focus-visible,
.navbar .nav-link:hover,
.navbar .nav-link:focus-visible {
  border-color: var(--hex-cyan) !important;
  color: var(--hex-cyan-bright) !important;
  background: var(--hex-surface) !important;
}

.topbar-icon-button,
.search .mdi-magnify {
  color: var(--hex-cyan) !important;
}

.sidebar .menu-title,
.sidebar .nav-category .nav-link {
  color: var(--hex-text-soft) !important;
}

.user-role-badge {
  border: 1px solid rgba(192, 164, 97, 0.46) !important;
  border-radius: 1px !important;
  color: var(--hex-gold-bright) !important;
  background: rgba(192, 164, 97, 0.085) !important;
}

.sidebar .nav .nav-item.profile .profile-desc {
  padding: 0.8rem 1rem !important;
}

.sidebar .nav .nav-item.profile .profile-desc .profile-pic {
  width: 100%;
  min-width: 0;
}

.sidebar .nav .nav-item.profile .profile-desc .profile-name {
  min-width: 0;
  flex: 1 1 auto;
  margin-left: 0.75rem;
}

.sidebar .nav .nav-item.profile .profile-desc .profile-name h5,
.sidebar .nav .nav-item.profile .profile-desc .profile-name span {
  max-width: 100%;
  white-space: normal !important;
  overflow-wrap: anywhere;
}

.sidebar .nav .nav-item.profile .profile-desc .profile-name .premium-username {
  display: block !important;
}

.sidebar-quick-actions {
  width: 100%;
  padding: 0 1rem;
  gap: 8px;
}

.sidebar-quick-actions .btn,
.sidebar-quick-actions form,
.sidebar-quick-actions form .btn {
  width: 100%;
}

.sidebar-balance-pill {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 9px 11px;
  border: 1px solid rgba(112, 203, 208, 0.32) !important;
  border-inline-start: 2px solid var(--hex-cyan) !important;
  border-radius: 1px !important;
  color: var(--hex-text) !important;
  background: rgba(112, 203, 208, 0.065) !important;
}

.sidebar-balance-pill strong {
  color: var(--hex-text) !important;
  text-align: right;
  overflow-wrap: anywhere;
}

.sidebar .nav .nav-item .menu-icon {
  width: 31px;
  height: 31px;
  min-width: 31px;
  border: 1px solid var(--hex-border-soft);
  border-radius: 50% !important;
  color: inherit;
  background: rgba(8, 13, 21, 0.72) !important;
  box-shadow: inset 0 0 0 1px rgba(240, 232, 217, 0.025);
}

.sidebar-icon-only .sidebar-quick-actions {
  display: none;
}

.account-hero-card,
.account-summary-tile,
.hero-card,
.order-card,
.store-card,
.product-card,
.news-card,
.gift-card-shell,
.result-card,
.reset-panel,
.error-panel,
.account-modal,
.balance-modal-panel {
  border: 1px solid var(--hex-border-soft) !important;
  border-radius: 1px !important;
  color: var(--hex-text) !important;
  background:
    linear-gradient(145deg, rgba(21, 30, 46, 0.78), rgba(11, 17, 29, 0.96)) !important;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22) !important;
}

.account-hero-card,
.hero-card,
.reset-panel,
.error-panel,
.account-modal {
  position: relative;
  overflow: hidden;
}

.account-hero-card::before,
.hero-card::before,
.reset-panel::before,
.error-panel::before,
.account-modal::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 42px;
  height: 2px;
  pointer-events: none;
  background: var(--hex-cyan);
}

.account-summary-tile,
.order-card,
.store-card,
.product-card,
.news-card,
.gift-card-shell,
.result-card {
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.account-summary-tile:hover,
.order-card:hover,
.store-card:hover,
.product-card:hover,
.news-card:hover,
.gift-card-shell:hover,
.result-card:hover {
  border-color: rgba(112, 203, 208, 0.54) !important;
  background: var(--hex-surface-raised) !important;
}

.account-summary-tile strong,
.price-stack strong,
.summary-row strong,
.balance-mini-row strong,
.balance-history-row strong,
.url-stat strong {
  color: var(--hex-text) !important;
}

.account-summary-tile span,
.order-status-note,
.price-note,
.availability-note,
.url-vip-balance,
.url-stat span {
  color: var(--hex-muted) !important;
}

.section-pill,
.product-meta span,
.news-meta span,
.order-status-badge,
.gift-meta-pill,
.url-search-chip,
.lookup-chip,
.quantity-badge,
.status-pill,
.badge.bg-primary {
  border: 1px solid var(--hex-border) !important;
  border-radius: 1px !important;
  color: var(--hex-cyan-bright) !important;
  background: rgba(112, 203, 208, 0.07) !important;
  box-shadow: none !important;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.045em;
}

.delivered-callout,
.cart-flash.cart-flash-success,
.lookup-alert.success,
.url-search-alert.success,
.text-success {
  border-color: rgba(112, 203, 208, 0.46) !important;
  color: var(--hex-cyan-bright) !important;
  background: rgba(112, 203, 208, 0.095) !important;
}

.badge.bg-primary,
.url-search-chip,
.lookup-chip {
  border-color: rgba(112, 203, 208, 0.42) !important;
  color: #b8eef0 !important;
  background: rgba(112, 203, 208, 0.08) !important;
}

.cart-flash.cart-flash-error,
.lookup-alert.error,
.url-search-alert.error,
.text-danger,
.alert-danger,
.errors,
.error-message {
  border-color: rgba(216, 120, 112, 0.48) !important;
  color: #f2b3ad !important;
  background: rgba(216, 120, 112, 0.1) !important;
}

.cart-flash.cart-flash-warning,
.alert-warning {
  border-color: rgba(210, 168, 92, 0.48) !important;
  color: #f0d59f !important;
  background: rgba(210, 168, 92, 0.095) !important;
}

.cart-flash.cart-flash-info,
.alert-info {
  border-color: rgba(112, 203, 208, 0.42) !important;
  color: #b8eef0 !important;
  background: rgba(112, 203, 208, 0.08) !important;
}

.cart-flash,
.lookup-alert,
.url-search-alert,
.item-shell,
.delivered-shell,
.balance-summary,
.balance-mini-panel,
.source-card,
.url-stat,
.account-field,
.balance-history-row {
  border: 1px solid var(--hex-border-soft) !important;
  border-radius: 1px !important;
  color: var(--hex-text) !important;
  background: rgba(11, 17, 29, 0.76) !important;
  box-shadow: none !important;
}

.item-row,
.balance-history-row {
  border-color: var(--hex-border-soft) !important;
}

.item-row h5,
.source-card h5,
.url-vip-price,
.summary-row,
.balance-mini-row,
.balance-history-row,
.delivered-shell {
  color: var(--hex-text) !important;
}

.quantity-shell,
.quantity-selector,
.balance-custom-form,
.balance-custom-inline,
.balance-preset-row {
  max-width: 100%;
}

.quantity-button,
.quantity-input,
.form-control,
.search input,
.sidebar-search .form-control,
.balance-custom-form .form-control,
.balance-custom-inline .form-control {
  border: 1px solid var(--hex-border) !important;
  border-radius: 1px !important;
  color: var(--hex-text) !important;
  background: rgba(8, 13, 21, 0.82) !important;
  box-shadow: none !important;
}

.quantity-button:hover,
.quantity-button:focus-visible,
.form-control:focus,
.search input:focus,
.sidebar-search .form-control:focus {
  border-color: var(--hex-cyan) !important;
  color: var(--hex-text) !important;
  background: var(--hex-bg) !important;
  box-shadow: 0 0 0 2px rgba(112, 203, 208, 0.14) !important;
}

.btn-primary,
.checkout-submit,
.url-download-button {
  border: 1px solid var(--hex-gold) !important;
  border-radius: 1px !important;
  color: var(--hex-bg-deep) !important;
  background: var(--hex-gold) !important;
  background-image: none !important;
  box-shadow: 0 9px 24px rgba(192, 164, 97, 0.13) !important;
}

.btn-primary:hover,
.btn-primary:focus-visible,
.checkout-submit:hover,
.checkout-submit:focus-visible,
.url-download-button:hover,
.url-download-button:focus-visible {
  border-color: var(--hex-gold-bright) !important;
  color: var(--hex-bg-deep) !important;
  background: var(--hex-gold-bright) !important;
  background-image: none !important;
}

.btn-outline-light,
.btn-outline-warning,
.admin-entry-button {
  border: 1px solid var(--hex-border) !important;
  border-radius: 1px !important;
  color: var(--hex-cyan) !important;
  background: rgba(8, 13, 21, 0.46) !important;
}

.btn-outline-light:hover,
.btn-outline-light:focus-visible,
.btn-outline-warning:hover,
.btn-outline-warning:focus-visible,
.admin-entry-button:hover,
.admin-entry-button:focus-visible {
  border-color: var(--hex-gold) !important;
  color: var(--hex-gold-bright) !important;
  background: rgba(192, 164, 97, 0.07) !important;
}

.btn-danger,
.logout-link {
  border-color: rgba(216, 120, 112, 0.6) !important;
  border-radius: 1px !important;
  color: #f5c0ba !important;
  background: rgba(216, 120, 112, 0.11) !important;
  background-image: none !important;
}

.btn-danger:hover,
.btn-danger:focus-visible,
.logout-link:hover,
.logout-link:focus-visible {
  border-color: var(--hex-danger) !important;
  color: #ffe0dc !important;
  background: rgba(216, 120, 112, 0.19) !important;
}

.btn:disabled,
.btn.disabled,
button:disabled,
input[type="submit"]:disabled,
input[type="button"]:disabled,
.checkout-submit[disabled] {
  cursor: not-allowed !important;
  opacity: 0.46 !important;
  filter: saturate(0.5);
  box-shadow: none !important;
}

.account-modal .modal-header,
.account-modal .modal-footer {
  border-color: var(--hex-border-soft) !important;
}

.account-modal .modal-title,
.account-field strong {
  color: var(--hex-text) !important;
}

.account-field span {
  color: var(--hex-muted) !important;
}

.loading-bar {
  height: 4px !important;
  border-radius: 0 !important;
  background: linear-gradient(90deg, rgba(112, 203, 208, 0.12), var(--hex-cyan), var(--hex-purple), rgba(112, 203, 208, 0.12)) !important;
  background-size: 220% 100% !important;
}

#map {
  max-width: 100%;
  border: 1px solid var(--hex-border-soft) !important;
  border-radius: 1px !important;
  background: var(--hex-bg) !important;
}

.error-shell,
.reset-page {
  background:
    radial-gradient(circle at 18% 12%, rgba(112, 203, 208, 0.08), transparent 27rem),
    linear-gradient(145deg, var(--hex-bg-deep), var(--hex-bg)) !important;
}

.error-orb {
  border: 1px solid var(--hex-border-soft) !important;
  border-radius: 1px !important;
  background:
    radial-gradient(circle at 50% 50%, rgba(112, 203, 208, 0.13), transparent 44%),
    rgba(11, 17, 29, 0.7) !important;
}

.error-hex {
  border: 1px solid var(--hex-danger) !important;
  background:
    radial-gradient(circle at 50% 50%, rgba(216, 120, 112, 0.18), transparent 48%),
    linear-gradient(145deg, var(--hex-surface-raised), var(--hex-bg-deep)) !important;
  box-shadow: 0 0 54px rgba(112, 203, 208, 0.12) !important;
}

.table-responsive,
.balance-history,
.balance-mini-list {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

table {
  color: var(--hex-text) !important;
}

table th {
  color: var(--hex-cyan-bright) !important;
  background: var(--hex-surface) !important;
}

table td,
table th {
  border-color: var(--hex-border-soft) !important;
}

@media (max-width: 768px) {
  .content-wrapper {
    padding-inline: 14px !important;
  }

  .account-hero-layout,
  .account-summary-grid,
  .featured-grid,
  .balance-mini-grid,
  .balance-topup-grid,
  .url-vip-grid,
  .url-download-grid,
  .url-stat-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .account-hero-card,
  .hero-card,
  .reset-panel,
  .error-panel,
  .card-body {
    padding: 18px !important;
  }

  .item-row {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px;
  }

  .item-row .text-right,
  .order-status-stack {
    min-width: 0 !important;
    align-items: flex-start !important;
    text-align: left !important;
  }

  .balance-custom-form,
  .balance-custom-inline {
    flex-direction: column;
  }

  .balance-custom-form .btn,
  .balance-custom-inline .btn,
  .url-download-button {
    width: 100%;
  }

  .navbar .menu-title,
  .topbar-action,
  .premium-username {
    white-space: nowrap;
  }
}

@media (max-width: 420px) {
  .content-wrapper {
    padding-inline: 14px !important;
  }

  .card,
  .account-hero-card,
  .hero-card,
  .reset-panel,
  .error-panel,
  .account-modal {
    max-width: 100%;
  }

  .card-body,
  .account-hero-card,
  .hero-card,
  .reset-panel,
  .error-panel {
    padding: 15px !important;
  }

  .section-title,
  .section-heading,
  .product-title,
  .card-title {
    overflow-wrap: anywhere;
    text-wrap: balance;
  }

  .btn,
  button,
  input[type="button"],
  input[type="submit"] {
    min-height: 44px !important;
  }

  .quantity-shell,
  .quantity-selector {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .loading-bar,
  .error-hex,
  .account-summary-tile,
  .order-card,
  .store-card,
  .product-card,
  .news-card,
  .gift-card-shell,
  .result-card {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* Centered login and registration card. */
body.auth-page > .container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.auth-page > .auth-nav {
  flex: 0 0 auto;
}

body.auth-page > #auth-content {
  display: flex;
  flex: 1 0 auto;
  min-height: 0;
}

body.auth-page .auth-shell {
  width: 100%;
  max-width: none;
  min-height: 0;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  gap: 0;
  margin: 0;
  padding: clamp(28px, 5vh, 56px) 14px;
}

body.auth-page .auth-panel-form {
  width: min(100%, 660px);
  max-width: 660px;
  min-width: 0;
  justify-self: center;
  margin: 0 auto;
  padding: clamp(26px, 4vw, 36px);
  overflow: hidden;
}

body.auth-page .login-wrap,
body.auth-page .login-html,
body.auth-page .login-form {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

body.auth-page .login-html {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 12px;
  align-items: start;
}

body.auth-page .login-html .mb-4,
body.auth-page .login-form {
  grid-column: 1 / -1;
}

body.auth-page .login-html .mb-4 {
  margin-bottom: 22px !important;
}

body.auth-page .login-html h2 {
  margin: 0 0 8px;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  line-height: 1.12;
}

body.auth-page .login-html .auth-copy {
  max-width: 42ch;
  line-height: 1.55;
}

body.auth-page .login-html .tab {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 22px;
  padding: 0 8px 8px;
  text-align: center;
  white-space: nowrap;
}

body.auth-page .login-form .group {
  margin-bottom: 16px;
}

body.auth-page .login-form .group .input,
body.auth-page .login-form .group .button,
body.auth-page .compact-verify-input,
body.auth-page .compact-verify-submit {
  min-height: 48px;
  max-width: 100%;
}

body.auth-page .hr {
  margin: 24px 0 18px;
}

@media (max-width: 767.98px) {
  body.auth-page .auth-shell {
    min-height: 0;
    align-items: center;
    padding: 14px;
  }

  body.auth-page .auth-panel-form {
    width: min(100%, 660px);
    max-width: 660px;
    max-height: none;
    padding: clamp(18px, 5vw, 24px);
    overflow: visible;
  }

  body.auth-page .login-html .mb-4 {
    margin-bottom: 16px !important;
  }

  body.auth-page .login-html h2 {
    font-size: clamp(1.5rem, 7vw, 1.8rem);
  }

  body.auth-page .login-html .tab {
    min-height: 44px;
    margin-bottom: 16px;
    padding-bottom: 7px;
  }

  body.auth-page .login-form .group {
    margin-bottom: 14px;
  }
}
/* Central Feature Access */
:root {
  --store-sidebar-width-expanded: 276px;
  --store-sidebar-width-collapsed: 70px;
  --store-sidebar-width-current: var(--store-sidebar-width-expanded);
}

body.sidebar-icon-only {
  --store-sidebar-width-current: var(--store-sidebar-width-collapsed);
}

/*
 * The legacy storefront shell gives both flex children a width, but does not
 * constrain their flex basis. Feature badges add non-wrapping content to the
 * sidebar, so its automatic minimum content width must not be allowed to
 * reserve a second horizontal gutter. Keep the sidebar and fixed topbar on
 * one shared coordinate and let the page wrapper consume the remainder.
 */
@media (min-width: 992px) {
  .container-scroller {
    width: 100%;
    min-width: 0;
  }

  .container-scroller > .sidebar {
    flex: 0 0 var(--store-sidebar-width-current);
    width: var(--store-sidebar-width-current);
    min-width: var(--store-sidebar-width-current);
    max-width: var(--store-sidebar-width-current);
  }

  .container-scroller > .store-sidebar-shell.shared-sidebar ~ .page-body-wrapper {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    max-width: none;
    margin-inline: 0;
    padding-inline: 0;
  }

  .page-body-wrapper > .main-panel {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    margin-inline: 0;
  }

  .page-body-wrapper > .navbar,
  .page-body-wrapper > .admin-public-closure-banner {
    left: var(--store-sidebar-width-current);
    right: 0;
    width: auto;
    max-width: none;
  }

  html[dir="rtl"] .page-body-wrapper > .navbar,
  html[dir="rtl"] .page-body-wrapper > .admin-public-closure-banner {
    left: 0;
    right: var(--store-sidebar-width-current);
  }
}

.sidebar .nav,
.sidebar .nav .nav-item,
.sidebar .nav .nav-item > .nav-link,
.sidebar .nav-link > .menu-title {
  min-width: 0;
}

.sidebar .nav-link > .menu-title {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar .nav.store-special-tools-submenu {
  margin-inline-start: -40px;
}

.store-cart-count {
  display: inline-flex;
  min-width: 2.5em;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
  text-align: center;
  white-space: nowrap;
}

.feature-nav-closed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: .16rem;
  margin-inline-start: .3rem;
  padding: .08rem .3rem;
  border: 1px solid rgba(216, 120, 112, .5);
  border-radius: 999px;
  color: #f5c0ba;
  background: rgba(216, 120, 112, .11);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .025);
  font-size: .6rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .025em;
  white-space: nowrap;
  vertical-align: middle;
}

.feature-nav-closed .mdi {
  font-size: .7rem;
  line-height: 1;
}

.feature-closed-label-ar {
  display: none;
  letter-spacing: 0;
}

html[dir="rtl"] .feature-closed-label-en {
  display: none;
}

html[dir="rtl"] .feature-closed-label-ar {
  display: inline;
}

.sidebar .nav-link > .feature-nav-closed {
  margin-inline-start: auto;
}

@media (min-width: 992px) {
  .sidebar-icon-only .sidebar .feature-nav-closed {
    display: none;
  }
}

.is-feature-closed {
  opacity: .72;
}

.admin-public-closure-banner {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  width: auto;
  max-width: 100%;
  z-index: 1035;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 44px;
  padding: .65rem 1rem;
  color: #fff2d2;
  background: #49350f;
  border-bottom: 1px solid rgba(255, 193, 78, .6);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
}

html[lang="en"] .feature-warning-ar,
html:not([lang="ar"]) .feature-warning-ar,
html[lang="ar"] .feature-warning-en {
  display: none;
}

html[dir="rtl"] .admin-public-closure-banner {
  left: 0;
  right: 0;
}

.feature-closed-page {
  min-height: 100vh;
  margin: 0;
  color: var(--hex-text);
  background:
    radial-gradient(circle at 18% 8%, rgba(112, 203, 208, .1), transparent 30rem),
    radial-gradient(circle at 86% 14%, rgba(169, 138, 216, .1), transparent 28rem),
    linear-gradient(148deg, var(--hex-bg-deep), var(--hex-bg) 62%, #100a18);
}

.feature-closed-shell {
  min-height: calc(100vh - 76px);
  min-height: calc(100svh - 76px);
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.feature-closed-card {
  width: min(620px, 100%);
  padding: clamp(1.75rem, 5vw, 3rem);
  text-align: center;
  border: 1px solid rgba(112, 203, 208, .34);
  border-radius: var(--hxl-radius-lg, 20px);
  background: linear-gradient(145deg, rgba(21, 30, 46, .88), rgba(20, 13, 35, .96));
  box-shadow: 0 26px 70px rgba(0, 0, 0, .38);
}

.feature-lock-icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin: 0 auto 1rem;
  border-radius: 22px;
  border: 1px solid rgba(216, 120, 112, .34);
  color: #f5c0ba;
  background: rgba(216, 120, 112, .11);
  font-size: 2.25rem;
}

.closed-badge {
  display: inline-flex;
  padding: .3rem .72rem;
  border-radius: 999px;
  border: 1px solid rgba(216, 120, 112, .4);
  color: #f5c0ba;
  background: rgba(216, 120, 112, .11);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.feature-closed-card h1 { margin: 1rem 0 .65rem; }
.feature-closed-card p { color: var(--hex-muted); line-height: 1.8; }

@media (max-width: 991px) {
  body.store-sidebar-open {
    overflow: hidden;
    padding-inline-end: var(--store-sidebar-scrollbar-compensation, 0px);
  }

  .store-sidebar-backdrop {
    position: fixed;
    inset: 70px 0 0;
    z-index: 1040;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    background: rgba(8, 13, 21, 0.78);
    transition: opacity 160ms ease, visibility 0s linear 160ms;
  }

  .store-sidebar-backdrop.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition-delay: 0s;
  }

  .sidebar-offcanvas.store-sidebar-shell,
  .sidebar-offcanvas.admin-sidebar-shell {
    z-index: 1050;
  }

  .container-scroller > .page-body-wrapper,
  .page-body-wrapper > .main-panel {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-inline: 0;
    padding-inline: 0;
  }

  .page-body-wrapper > .navbar {
    left: 0;
    right: 0;
    width: auto;
  }

  .admin-public-closure-banner,
  html[dir="rtl"] .admin-public-closure-banner {
    left: 0;
    right: 0;
    width: auto;
  }
}

.container-scroller,
.page-body-wrapper,
.main-panel,
.content-wrapper,
.navbar-menu-wrapper,
.navbar-nav,
.navbar-nav-right,
.topbar-nav-links {
  min-inline-size: 0;
  max-inline-size: 100%;
}

@media (max-width: 360px) {
  .navbar-menu-wrapper {
    gap: 4px;
    padding-inline: 6px !important;
  }

  .navbar-toggler,
  .topbar-icon-button,
  .notification-bell {
    flex: 0 0 auto;
  }

  .premium-username,
  .topbar-action,
  .navbar .menu-title {
    min-inline-size: 0;
    max-inline-size: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Keep the premium page gradients without persistent viewport paint layers. */
body::before,
body::after {
  content: none !important;
  display: none !important;
}

/* ==========================================================================
   R3 unified public, marketplace, commerce, and tools experience
   ========================================================================== */
:root {
  --r3-bg: var(--hxl-bg, #080d15);
  --r3-bg-soft: var(--hxl-bg-soft, #0b111d);
  --r3-panel: var(--hxl-surface, #111827);
  --r3-panel-raised: var(--hxl-surface-raised, #151e2e);
  --r3-panel-purple: rgba(47, 31, 70, 0.74);
  --r3-text: var(--hxl-text, #f4f7fa);
  --r3-muted: var(--hxl-muted, #9badc4);
  --r3-cyan: var(--hxl-cyan, #70cbd0);
  --r3-gold: var(--hxl-gold, #d9bd72);
  --r3-purple: var(--hxl-purple, #a98cff);
  --r3-success: var(--hxl-success, #70cbd0);
  --r3-danger: var(--hxl-danger, #f18793);
  --r3-border: var(--hxl-border, rgba(112, 203, 208, 0.18));
  --r3-border-strong: var(--hxl-border-strong, rgba(112, 203, 208, 0.42));
  --r3-radius-sm: var(--hxl-radius-sm, 8px);
  --r3-radius-md: var(--hxl-radius-md, 14px);
  --r3-radius-lg: var(--hxl-radius-lg, 20px);
  --r3-shadow: var(--hxl-shadow, 0 22px 64px rgba(0, 0, 0, 0.32));
  --r3-focus: var(--hxl-focus, #8ce8e4);
}

body.r3-store-page,
body.r3-public-page {
  background:
    radial-gradient(circle at 16% 0%, rgba(87, 213, 210, 0.08), transparent 30rem),
    radial-gradient(circle at 88% 8%, rgba(165, 139, 250, 0.08), transparent 28rem),
    linear-gradient(150deg, var(--r3-bg), var(--r3-bg-soft) 62%, #0a1020);
  color: var(--r3-text);
}

body.r3-store-page .content-wrapper {
  width: 100%;
  max-width: 1540px;
  margin-inline: auto;
  padding: clamp(1rem, 2.4vw, 2.25rem);
}

.r3-orders-workspace {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
}

.r3-orders-workspace > .r3-page-hero {
  min-block-size: 220px;
}

body.r3-store-page main,
body.r3-store-page section,
body.r3-store-page article,
body.r3-store-page header,
body.r3-public-page main,
body.r3-public-page section,
body.r3-public-page article,
body.r3-public-page header,
.r3-product-grid > *,
.r3-cart-layout > *,
.r3-home-grid > *,
.r3-lookup-layout > * {
  min-inline-size: 0;
}

body.r3-store-page :where(a, button, input, select, textarea, summary):focus-visible,
body.r3-public-page :where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--r3-focus) !important;
  outline-offset: 3px;
  box-shadow: none !important;
}

body.r3-store-page :where(.btn, button, input, select, summary),
body.r3-public-page :where(.btn, button, input, select, summary) {
  min-block-size: 44px;
}

body.r3-store-page :where(h1, h2, h3, h4, p, bdi),
body.r3-public-page :where(h1, h2, h3, h4, p, bdi) {
  overflow-wrap: anywhere;
}

.r3-skip-link {
  position: fixed;
  inset-block-start: 0.75rem;
  inset-inline-start: 0.75rem;
  z-index: 3000;
  padding: 0.75rem 1rem;
  border-radius: var(--r3-radius-sm);
  color: var(--hxl-ink, #05070d);
  background: var(--r3-cyan);
  transform: translateY(-180%);
}

.r3-skip-link:focus {
  transform: translateY(0);
}

.r3-page-hero,
.r3-identity-hero,
.r3-result-hero,
.r3-surface {
  position: relative;
  border: 1px solid var(--r3-border) !important;
  border-radius: var(--r3-radius-lg) !important;
  background:
    linear-gradient(145deg, rgba(20, 43, 53, 0.97), rgba(12, 29, 36, 0.98)) !important;
  box-shadow: var(--r3-shadow);
}

.r3-page-hero,
.r3-identity-hero,
.r3-result-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.25rem, 3vw, 3rem);
  margin-block-end: clamp(1rem, 2.4vw, 2rem);
  padding: clamp(1.4rem, 3.5vw, 3rem);
  overflow: hidden;
}

.r3-page-hero::after,
.r3-identity-hero::after,
.r3-result-hero::after {
  position: absolute;
  inset-block-start: -5rem;
  inset-inline-end: -4rem;
  width: 18rem;
  height: 18rem;
  border: 1px solid rgba(87, 213, 210, 0.14);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(87, 213, 210, 0.1), transparent 66%);
  content: "";
  pointer-events: none;
}

.r3-page-hero > *,
.r3-identity-hero > *,
.r3-result-hero > * {
  position: relative;
  z-index: 1;
}

.r3-page-hero--compact {
  padding-block: clamp(1.25rem, 2.8vw, 2.25rem);
}

.r3-page-hero h1,
.r3-identity-hero h1,
.r3-result-hero h1 {
  max-width: 20ch;
  margin: 0.55rem 0 0.65rem;
  color: var(--r3-text);
  font-size: clamp(1.8rem, 3.5vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.r3-page-hero p,
.r3-result-hero p,
.r3-section-heading p,
.r3-category-card p,
.r3-platform-card p,
.r3-surface > p {
  max-width: 68ch;
  margin: 0;
  color: var(--r3-muted) !important;
  line-height: 1.75;
}

.r3-eyebrow,
.r3-card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--r3-cyan);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

html[dir="rtl"] .r3-eyebrow,
html[dir="rtl"] .r3-card-kicker {
  letter-spacing: 0;
}

.r3-page-hero-actions,
.r3-card-actions,
.r3-detail-actions,
.r3-result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.r3-section {
  margin-block: clamp(1rem, 2.4vw, 2rem);
}

.r3-surface,
.r3-section > .r3-empty-state {
  padding: clamp(1.15rem, 2.8vw, 2rem);
}

.r3-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-block-end: 1.25rem;
}

.r3-section-heading h2,
.r3-surface > h2 {
  margin: 0.35rem 0 0.3rem;
  color: var(--r3-text);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.2;
}

.r3-result-count {
  display: inline-flex;
  align-items: center;
  min-block-size: 36px;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--r3-border);
  border-radius: 999px;
  color: var(--r3-muted);
  background: rgba(87, 213, 210, 0.06);
  font-size: 0.84rem;
  white-space: nowrap;
}

.r3-flash-stack {
  display: grid;
  gap: 0.75rem;
  margin-block-end: 1rem;
}

.r3-flash-stack .alert,
.r3-store-page .flash-message {
  margin: 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--r3-border) !important;
  border-radius: var(--r3-radius-md);
  background: var(--r3-panel) !important;
  color: var(--r3-text) !important;
}

.r3-preserve-copy {
  max-inline-size: 100%;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.r3-state {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  max-width: 100%;
  min-block-size: 30px;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--r3-border);
  border-radius: 999px;
  color: var(--r3-muted);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.25;
}

.r3-state--open {
  border-color: rgba(112, 203, 208, 0.34);
  color: var(--r3-cyan);
  background: rgba(112, 203, 208, 0.08);
}

.r3-state--closed {
  border-color: rgba(255, 122, 135, 0.3);
  color: #ffc4ca;
  background: rgba(255, 122, 135, 0.08);
}

.r3-state--attention {
  border-color: rgba(217, 189, 114, 0.36);
  color: var(--r3-gold);
  background: rgba(217, 189, 114, 0.08);
}

.r3-empty-state {
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  min-block-size: 220px;
  place-content: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px dashed var(--r3-border-strong);
  border-radius: var(--r3-radius-lg);
  color: var(--r3-muted);
  background: rgba(10, 26, 31, 0.66);
  text-align: center;
}

.r3-empty-state > i {
  color: var(--r3-cyan);
  font-size: 2rem;
}

.r3-empty-state h2,
.r3-empty-state h3,
.r3-empty-state p {
  margin: 0;
}

.r3-empty-state--compact {
  min-block-size: 150px;
  padding: 1.25rem;
}

.r3-pagination {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  margin-block-start: 1.5rem;
  color: var(--r3-muted);
  text-align: center;
}

.r3-pagination > :first-child {
  justify-self: start;
}

.r3-pagination > :last-child {
  justify-self: end;
}

/* Product and tool catalogs */
.r3-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.4rem);
}

body.r3-store-page .r3-product-card,
body.r3-public-page .r3-product-card {
  display: flex;
  min-inline-size: 0;
  overflow: hidden;
  border: 1px solid var(--r3-border) !important;
  border-radius: var(--r3-radius-lg) !important;
  background: linear-gradient(150deg, rgba(20, 43, 53, 0.96), rgba(12, 28, 36, 0.98)) !important;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.r3-product-card .card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.85rem;
  min-inline-size: 0;
  padding: 1.15rem;
}

.r3-product-media {
  display: block;
  inline-size: 100%;
  min-block-size: 0;
  max-block-size: 260px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-block-end: 1px solid var(--r3-border);
  background: #09191c;
}

.r3-product-media--inset {
  border: 1px solid var(--r3-border);
  border-radius: var(--r3-radius-sm);
}

.r3-product-card .product-image,
.r3-product-detail-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  background: #09191c;
}

.r3-product-media .product-image {
  inline-size: 100%;
  block-size: 100%;
  min-block-size: 0;
  max-block-size: 260px;
  aspect-ratio: auto;
  color: transparent;
  font-size: 0;
  object-fit: cover;
  object-position: center;
  transform: none;
  box-shadow: none;
}

img[data-product-image] {
  color: transparent;
  font-size: 0;
}

.r3-product-card .product-title {
  margin: 0;
  color: var(--r3-text);
  font-size: 1.14rem;
  line-height: 1.35;
}

.r3-product-card .product-title a:hover,
.r3-product-card .product-title a:focus-visible {
  color: var(--r3-cyan);
}

.r3-product-card .product-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  margin: 0;
}

.r3-product-card .product-meta > span:first-child {
  color: var(--r3-muted);
  font-size: 0.78rem;
}

.r3-card-copy {
  margin: 0;
  color: var(--r3-muted) !important;
  line-height: 1.65;
}

.r3-price-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-block-start: auto;
  padding-block-start: 0.9rem;
  border-block-start: 1px solid var(--r3-border);
}

.r3-price-line span {
  color: var(--r3-muted);
  font-size: 0.8rem;
}

.r3-price-line strong,
.r3-result-total,
.r3-cart-item-price strong,
.r3-row-meta strong,
.r3-order-summary > strong {
  color: var(--r3-gold);
  font-variant-numeric: tabular-nums;
}

.r3-purchase-form,
.r3-detail-purchase-form {
  display: grid;
  gap: 0.85rem;
}

.r3-purchase-form .quantity-selector {
  justify-self: start;
}

.r3-card-actions {
  margin-block-start: 0.15rem;
}

.r3-card-actions .btn {
  flex: 1 1 8.5rem;
}

.r3-store-page .quantity-selector {
  display: inline-grid;
  grid-template-columns: 44px minmax(50px, 64px) 44px;
  align-items: stretch;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--r3-border-strong);
  border-radius: var(--r3-radius-sm);
  background: rgba(5, 17, 20, 0.8);
}

.r3-store-page .quantity-button,
.r3-store-page .quantity-input {
  min-width: 0;
  min-block-size: 44px;
  border: 0 !important;
  border-radius: 0 !important;
  color: var(--r3-text) !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: center;
}

.r3-store-page .quantity-button {
  inline-size: 44px;
  min-inline-size: 44px;
}

.r3-store-page .quantity-button:hover:not(:disabled) {
  color: var(--r3-cyan) !important;
  background: rgba(87, 213, 210, 0.08) !important;
}

.r3-store-page .quantity-input {
  border-inline: 1px solid var(--r3-border) !important;
  font-variant-numeric: tabular-nums;
  appearance: textfield;
}

.r3-store-page .quantity-input::-webkit-inner-spin-button,
.r3-store-page .quantity-input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.r3-unavailable-note {
  margin: 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(255, 122, 135, 0.22);
  border-radius: var(--r3-radius-sm);
  color: #ffc4ca !important;
  background: rgba(255, 122, 135, 0.07);
  line-height: 1.55;
}

/* Authenticated home */
.r3-identity-hero {
  align-items: flex-end;
  background:
    linear-gradient(130deg, rgba(19, 49, 54, 0.98), rgba(27, 29, 53, 0.96) 66%, rgba(48, 31, 67, 0.9)) !important;
}

.r3-identity-main {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 1.6rem);
  min-inline-size: 0;
}

.r3-identity-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 88px;
  height: 88px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(87, 213, 210, 0.32);
  border-radius: 28px;
  color: var(--r3-text);
  background: linear-gradient(145deg, rgba(87, 213, 210, 0.16), rgba(165, 139, 250, 0.18));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
  font-size: 2rem;
  font-weight: 800;
}

.r3-identity-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.r3-identity-copy {
  min-inline-size: 0;
}

.r3-identity-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.r3-identity-name-row h1 {
  max-width: none;
  margin-block-end: 0.2rem;
}

.r3-level-badge {
  display: inline-flex;
  align-items: center;
  min-block-size: 32px;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(224, 189, 108, 0.34);
  border-radius: 999px;
  color: var(--r3-gold);
  background: rgba(224, 189, 108, 0.09);
  font-weight: 800;
}

.r3-rank-name {
  margin: 0;
  color: var(--r3-purple) !important;
  font-weight: 750;
}

.r3-xp-block {
  width: min(620px, 100%);
  margin-block-start: 1rem;
}

.r3-xp-summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-block-end: 0.45rem;
  color: var(--r3-muted);
  font-size: 0.82rem;
}

.r3-xp-summary strong {
  color: var(--r3-text);
}

.r3-xp-block progress {
  display: block;
  width: 100%;
  height: 9px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  appearance: none;
}

.r3-xp-block progress::-webkit-progress-bar {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.r3-xp-block progress::-webkit-progress-value {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--r3-cyan), var(--r3-purple));
}

.r3-xp-block progress::-moz-progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--r3-cyan), var(--r3-purple));
}

.r3-xp-block small {
  display: block;
  margin-block-start: 0.45rem;
  color: var(--r3-muted);
}

.r3-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: clamp(1rem, 2vw, 1.4rem);
}

.r3-compact-list,
.r3-activity-list,
.r3-order-list,
.r3-cart-list {
  display: grid;
  gap: 0.8rem;
}

.r3-compact-row {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.85rem;
  min-block-size: 76px;
  padding: 0.8rem;
  border: 1px solid var(--r3-border);
  border-radius: var(--r3-radius-md);
  background: rgba(7, 23, 28, 0.66);
}

.r3-row-icon {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(87, 213, 210, 0.22);
  border-radius: 13px;
  color: var(--r3-cyan);
  background: rgba(87, 213, 210, 0.07);
  font-size: 1.15rem;
}

.r3-row-main h3,
.r3-activity-row h3 {
  margin: 0 0 0.2rem;
  color: var(--r3-text);
  font-size: 0.96rem;
}

.r3-row-main p,
.r3-activity-row p,
.r3-activity-row time {
  margin: 0;
  color: var(--r3-muted) !important;
  font-size: 0.8rem;
}

.r3-row-meta {
  display: grid;
  justify-items: end;
  gap: 0.35rem;
}

.r3-row-link {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 13px;
  color: var(--r3-cyan);
}

.r3-row-link:hover {
  background: rgba(87, 213, 210, 0.08);
}

.r3-activity-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.8rem;
  padding-block: 0.65rem;
  border-block-end: 1px solid var(--r3-border);
}

.r3-activity-row:last-child {
  border-block-end: 0;
}

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

.r3-quick-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  min-block-size: 82px;
  padding: 0.9rem;
  border: 1px solid var(--r3-border);
  border-radius: var(--r3-radius-md);
  color: var(--r3-text);
  background: linear-gradient(145deg, rgba(18, 42, 49, 0.82), rgba(24, 26, 49, 0.76));
}

.r3-quick-link > i:first-child {
  color: var(--r3-cyan);
  font-size: 1.35rem;
}

.r3-quick-link span {
  display: grid;
  gap: 0.15rem;
}

.r3-quick-link small {
  color: var(--r3-muted);
}

.r3-quick-link:hover {
  border-color: rgba(87, 213, 210, 0.34);
  color: var(--r3-text);
  background: linear-gradient(145deg, rgba(21, 52, 58, 0.9), rgba(31, 30, 61, 0.84));
}

/* Tools landing */
.r3-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.r3-category-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
  padding: clamp(1.25rem, 2.8vw, 2rem);
  border: 1px solid var(--r3-border);
  border-radius: var(--r3-radius-lg);
  background: linear-gradient(145deg, rgba(17, 42, 49, 0.94), rgba(27, 25, 50, 0.9));
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18);
}

.r3-category-card--wide {
  grid-column: 1 / -1;
}

.r3-category-card > .btn,
.r3-category-card > .r3-state,
.r3-category-card > .r3-card-actions {
  grid-column: 2;
  justify-self: start;
}

.r3-category-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(87, 213, 210, 0.24);
  border-radius: 16px;
  color: var(--r3-cyan);
  background: rgba(87, 213, 210, 0.08);
  font-size: 1.45rem;
}

.r3-category-card h3 {
  margin: 0.35rem 0 0.45rem;
  color: var(--r3-text);
  font-size: 1.25rem;
}

/* Product detail */
.r3-detail-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-block-end: 1rem;
}

.r3-product-detail {
  display: grid;
  grid-template-columns: minmax(280px, 0.88fr) minmax(0, 1.12fr);
  overflow: hidden;
  border: 1px solid var(--r3-border);
  border-radius: var(--r3-radius-lg);
  background: linear-gradient(145deg, rgba(17, 42, 49, 0.97), rgba(16, 25, 42, 0.98));
  box-shadow: var(--r3-shadow);
}

.r3-product-detail-media {
  display: flex;
  min-inline-size: 0;
  min-block-size: 100%;
  overflow: hidden;
  border-inline-end: 1px solid var(--r3-border);
  background: #071719;
}

.r3-product-detail-media img {
  height: 100%;
  min-height: 420px;
  aspect-ratio: auto;
}

.r3-product-gallery {
  position: relative;
  align-self: flex-start;
  inline-size: 100%;
  min-inline-size: 0;
  max-inline-size: 100%;
  overflow: hidden;
  background: #071719;
}

.r3-product-gallery [hidden] {
  display: none !important;
}

.r3-product-gallery__viewport,
.r3-product-gallery__track,
.r3-product-gallery__slide {
  min-inline-size: 0;
  max-inline-size: 100%;
}

.r3-product-gallery__viewport {
  position: relative;
  overflow: hidden;
}

.r3-product-gallery__track {
  display: flex;
  inline-size: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: inline mandatory;
  scrollbar-color: rgba(103, 232, 249, 0.58) rgba(3, 18, 22, 0.78);
  scrollbar-width: thin;
}

.r3-product-gallery__slide {
  display: grid;
  flex: 0 0 100%;
  inline-size: 100%;
  margin: 0;
  place-items: center;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  background: radial-gradient(circle at center, rgba(18, 58, 65, 0.36), rgba(3, 15, 19, 0.96));
}

.r3-product-detail-media .r3-product-gallery__image {
  display: block;
  inline-size: 100%;
  block-size: clamp(420px, 58vh, 680px);
  min-block-size: 0;
  max-block-size: min(70vh, 720px);
  aspect-ratio: auto;
  border: 0;
  object-fit: contain;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
}

.r3-product-gallery.is-enhanced .r3-product-gallery__track {
  overflow: hidden;
  scroll-snap-type: none;
  touch-action: pan-y pinch-zoom;
}

.r3-product-gallery.is-enhanced .r3-product-gallery__slide.is-active {
  animation: r3-product-gallery-fade 320ms ease both;
}

@keyframes r3-product-gallery-fade {
  from {
    opacity: 0.25;
  }
  to {
    opacity: 1;
  }
}

.r3-product-gallery__arrow,
.r3-product-gallery__autoplay,
.r3-product-gallery__dot {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(148, 214, 223, 0.32);
  color: var(--r3-text);
  background: rgba(4, 19, 24, 0.88);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

.r3-product-gallery__arrow {
  position: absolute;
  z-index: 2;
  inset-block-start: 50%;
  inline-size: 48px;
  block-size: 48px;
  border-radius: 999px;
  font-size: 1.65rem;
  transform: translateY(-50%);
}

.r3-product-gallery__arrow--previous {
  inset-inline-start: 0.75rem;
}

.r3-product-gallery__arrow--next {
  inset-inline-end: 0.75rem;
}

.r3-product-gallery__footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.6rem;
  min-inline-size: 0;
  padding: 0.55rem 0.75rem;
  border-block-start: 1px solid var(--r3-border);
  background: rgba(3, 16, 20, 0.96);
}

.r3-product-gallery__autoplay {
  inline-size: 40px;
  block-size: 40px;
  border-radius: 999px;
  font-size: 1rem;
}

.r3-product-gallery__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  min-inline-size: 0;
  max-inline-size: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}

.r3-product-gallery__dots::-webkit-scrollbar {
  display: none;
}

.r3-product-gallery__dot {
  position: relative;
  inline-size: 34px;
  block-size: 34px;
  border-color: transparent;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
}

.r3-product-gallery__dot::before {
  inline-size: 8px;
  block-size: 8px;
  border: 1px solid rgba(180, 222, 228, 0.58);
  border-radius: inherit;
  background: rgba(134, 170, 178, 0.46);
  content: "";
  transition: inline-size 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.r3-product-gallery__dot.is-active::before,
.r3-product-gallery__dot[aria-current="true"]::before {
  inline-size: 20px;
  border-color: var(--r3-cyan);
  background: var(--r3-cyan);
}

.r3-product-gallery__counter {
  min-inline-size: 54px;
  color: var(--r3-muted);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  text-align: end;
}

.r3-product-gallery__arrow:hover,
.r3-product-gallery__autoplay:hover {
  border-color: var(--r3-cyan);
  color: var(--r3-cyan);
  background: rgba(7, 35, 42, 0.96);
}

.r3-product-gallery :where(button, [tabindex]):focus-visible,
.r3-product-gallery:focus-visible {
  outline: 2px solid var(--r3-cyan);
  outline-offset: 2px;
}

html[dir="rtl"] .r3-product-gallery__arrow i {
  transform: scaleX(-1);
}

.r3-product-detail-content {
  display: grid;
  align-content: start;
  gap: 1.15rem;
  padding: clamp(1.25rem, 3.5vw, 3rem);
}

.r3-product-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.r3-product-detail-meta > span:not(.r3-state) {
  display: inline-flex;
  align-items: center;
  min-block-size: 30px;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--r3-border);
  border-radius: 999px;
  color: var(--r3-muted);
  font-size: 0.76rem;
}

.r3-product-detail-content > h1 {
  margin: 0;
  color: var(--r3-text);
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.r3-product-lead {
  margin: 0;
  color: var(--r3-muted) !important;
  font-size: 1rem;
  line-height: 1.75;
}

.r3-detail-facts,
.r3-result-facts,
.r3-summary-list {
  display: grid;
  gap: 0;
  margin: 0;
  border: 1px solid var(--r3-border);
  border-radius: var(--r3-radius-md);
  background: rgba(6, 20, 24, 0.52);
}

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

.r3-detail-facts > div,
.r3-result-facts > div,
.r3-summary-list > div {
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem;
}

.r3-detail-facts > div + div {
  border-inline-start: 1px solid var(--r3-border);
}

.r3-detail-facts dt,
.r3-result-facts dt,
.r3-summary-list dt {
  color: var(--r3-muted);
  font-size: 0.76rem;
  font-weight: 650;
}

.r3-detail-facts dd,
.r3-result-facts dd,
.r3-summary-list dd {
  margin: 0;
  color: var(--r3-text);
  font-weight: 750;
}

.r3-description-panel {
  padding-block: 0.5rem;
}

.r3-description-panel h2,
.r3-delivery-note h2 {
  margin: 0 0 0.55rem;
  color: var(--r3-text);
  font-size: 1rem;
}

.r3-description-panel p,
.r3-delivery-note p {
  margin: 0;
  color: var(--r3-muted) !important;
  line-height: 1.75;
}

.r3-delivery-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.8rem;
  padding: 0.9rem;
  border: 1px solid rgba(87, 213, 210, 0.18);
  border-radius: var(--r3-radius-md);
  background: rgba(87, 213, 210, 0.05);
}

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

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

/* Cart */
.r3-cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  align-items: start;
  gap: clamp(1rem, 2vw, 1.4rem);
}

.r3-cart-summary {
  position: sticky;
  inset-block-start: 94px;
}

.r3-cart-summary > h2 {
  margin-block-end: 1rem;
}

.r3-cart-item {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr) minmax(150px, auto);
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--r3-border);
  border-radius: var(--r3-radius-md);
  background: rgba(7, 23, 28, 0.66);
}

.r3-cart-item--unavailable {
  border-color: rgba(255, 122, 135, 0.24);
  background: rgba(52, 22, 30, 0.34);
}

.r3-cart-item-media {
  overflow: hidden;
  border-radius: var(--r3-radius-sm);
  background: #071719;
}

.r3-cart-item-media .product-image {
  width: 100%;
  height: 100%;
  min-height: 110px;
  object-fit: cover;
}

.r3-cart-item-copy {
  display: grid;
  align-content: start;
  gap: 0.65rem;
}

.r3-cart-item-copy h3,
.r3-order-card h3,
.r3-order-item h4 {
  margin: 0;
  color: var(--r3-text);
}

.r3-cart-item-copy > p {
  margin: 0;
  color: var(--r3-muted) !important;
  line-height: 1.55;
}

.r3-cart-update-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.r3-locked-quantity {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: fit-content;
  min-block-size: 44px;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--r3-border);
  border-radius: var(--r3-radius-sm);
  color: var(--r3-muted);
}

.r3-cart-item-price {
  display: grid;
  align-content: start;
  justify-items: end;
  gap: 0.75rem;
  text-align: end;
}

.r3-cart-item-price > div {
  display: grid;
  gap: 0.15rem;
}

.r3-cart-item-price span {
  color: var(--r3-muted);
  font-size: 0.75rem;
}

.r3-summary-list > div {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  border-block-end: 1px solid var(--r3-border);
}

.r3-summary-list > div:last-child {
  border-block-end: 0;
}

.r3-summary-total {
  background: rgba(224, 189, 108, 0.05);
}

.r3-summary-list dd {
  color: var(--r3-gold);
  font-variant-numeric: tabular-nums;
  text-align: end;
}

.r3-danger-text {
  color: var(--r3-danger);
}

.r3-cart-summary > :where(.btn, form, .r3-unavailable-note) {
  margin-block-start: 0.85rem;
}

/* Orders workspace and checkout results */
.r3-order-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  width: 100%;
  margin: 0 0 clamp(1.2rem, 2.4vw, 1.8rem);
  padding: 0.45rem;
  border: 1px solid var(--store-border);
  border-radius: 10px;
  background: color-mix(in srgb, var(--store-surface) 88%, transparent);
}

.r3-order-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 0;
  min-height: 44px;
  padding: 0.65rem 0.9rem;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--store-muted);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.r3-order-tab:hover,
.r3-order-tab:focus-visible,
.r3-order-tab.is-active {
  border-color: var(--store-border-strong);
  background: var(--store-surface-soft);
  color: var(--store-text);
  text-decoration: none;
}

.r3-order-tabs > .r3-order-tab:only-child {
  grid-column: 1 / -1;
}

.r3-orders-workspace > .r3-section {
  margin-block-start: 0;
}

.r3-order-card,
.r3-tool-license-card {
  border: 1px solid var(--store-border);
  border-radius: 10px;
  background: linear-gradient(180deg, var(--store-surface-soft), var(--store-surface));
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.r3-order-card {
  overflow: hidden;
}

.r3-tool-license-card {
  padding: 1rem;
}

.r3-order-header,
.r3-order-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
}

.r3-order-header {
  border-block-end: 1px solid var(--r3-border);
}

.r3-order-header h3 {
  margin-block-start: 0.2rem;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.35;
}

.r3-order-header time {
  display: block;
  margin-block-start: 0.35rem;
}

.r3-order-header time,
.r3-order-summary > span:last-child,
.r3-order-footer {
  color: var(--r3-muted);
  font-size: 0.82rem;
}

.r3-order-summary {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem 0.85rem;
  text-align: end;
}

.r3-order-items {
  display: grid;
  gap: 0;
  padding: 0 1rem;
}

.r3-order-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-block-end: 1px solid var(--r3-border);
}

.r3-order-item:last-child {
  border-block-end: 0;
}

.r3-order-item-main p {
  margin: 0.3rem 0 0;
  color: var(--r3-muted) !important;
  font-size: 0.82rem;
}

.r3-order-item-meta {
  display: grid;
  justify-items: end;
  gap: 0.5rem;
  text-align: end;
}

.r3-order-item-subtotal {
  display: grid;
  gap: 0.12rem;
}

.r3-order-item-subtotal > span {
  color: var(--r3-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

html[dir="rtl"] .r3-order-item-subtotal > span {
  letter-spacing: 0;
}

.r3-order-item-actions,
.r3-order-fulfillment,
.r3-order-managed-state {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.r3-order-item-actions {
  justify-content: flex-end;
}

.r3-order-managed-state {
  color: var(--r3-cyan);
  font-weight: 700;
}

.r3-delivery-details {
  grid-column: 1 / -1;
  min-inline-size: 0;
}

.r3-delivery-details summary {
  width: fit-content;
  cursor: pointer;
  color: var(--r3-cyan);
  font-weight: 700;
}

.r3-delivery-details .stock-shell {
  margin-block-start: 0.65rem;
  padding: 0.85rem;
  border: 1px solid var(--r3-border);
  border-radius: var(--r3-radius-sm);
  color: var(--r3-text);
  background: #061417;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  line-height: 1.6;
  direction: ltr;
  text-align: start;
}

.r3-delivery-copy-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-block-start: 0.65rem;
}

.r3-delivery-copy-status {
  min-inline-size: 0;
  color: var(--r3-muted);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.r3-delivery-copy-fallback {
  position: fixed;
  inset-block-start: 0;
  inset-inline-start: -10000px;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.r3-order-footer {
  border-block-start: 1px solid var(--r3-border);
}

.r3-order-footer > .btn {
  flex: 0 0 auto;
}

.r3-result-hero {
  min-block-size: 230px;
}

.r3-result-hero--success {
  background: linear-gradient(135deg, rgba(17, 31, 52, 0.98), rgba(24, 24, 48, 0.97)) !important;
}

.r3-result-hero--pending {
  background: linear-gradient(135deg, rgba(64, 50, 22, 0.98), rgba(28, 34, 49, 0.97)) !important;
}

.r3-result-hero--cancelled {
  max-width: 960px;
  margin-inline: auto;
  background: linear-gradient(135deg, rgba(58, 30, 39, 0.96), rgba(20, 31, 46, 0.97)) !important;
}

.r3-result-icon {
  display: grid;
  flex: 0 0 auto;
  width: 74px;
  height: 74px;
  place-items: center;
  border: 1px solid rgba(112, 203, 208, 0.34);
  border-radius: 24px;
  color: var(--r3-success);
  background: rgba(112, 203, 208, 0.09);
  font-size: 2.3rem;
}

.r3-result-hero--cancelled .r3-result-icon {
  border-color: rgba(255, 122, 135, 0.3);
  color: var(--r3-danger);
  background: rgba(255, 122, 135, 0.08);
}

.r3-result-hero--pending .r3-result-icon {
  border-color: rgba(246, 198, 95, 0.34);
  color: var(--r3-gold);
  background: rgba(246, 198, 95, 0.09);
}

.r3-result-facts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-block-end: 1rem;
}

.r3-result-facts > div + div {
  border-inline-start: 1px solid var(--r3-border);
}

/* Email and URL lookup workspaces */
.r3-lookup-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(1rem, 2vw, 1.4rem);
}

.r3-lookup-column {
  display: grid;
  gap: 1rem;
}

.r3-lookup-form-panel,
.r3-lookup-results,
.r3-vip-panel {
  min-inline-size: 0;
}

.r3-lookup-form-panel > h2,
.r3-vip-panel h2 {
  margin: 0.4rem 0 0.5rem;
}

.r3-lookup-form-panel > p {
  margin-block-end: 1rem;
}

.r3-lookup-page form {
  display: grid;
  gap: 0.8rem;
}

.r3-lookup-page .form-group {
  display: grid;
  gap: 0.45rem;
  margin: 0;
}

.r3-lookup-page .form-group label {
  margin: 0;
  color: var(--r3-text) !important;
  font-weight: 700;
}

.r3-lookup-page .form-control {
  width: 100%;
  min-block-size: 48px;
  border: 1px solid var(--r3-border-strong) !important;
  border-radius: var(--r3-radius-sm) !important;
  color: var(--r3-text) !important;
  background: rgba(5, 17, 21, 0.84) !important;
  box-shadow: none !important;
}

.lookup-alert,
.url-search-alert {
  display: none;
  margin: 0;
  padding: 0.8rem;
  border: 1px solid var(--r3-border);
  border-radius: var(--r3-radius-sm);
  color: var(--r3-text);
  background: rgba(255, 255, 255, 0.04);
  line-height: 1.55;
}

.lookup-alert.visible,
.url-search-alert.visible {
  display: block;
}

.lookup-alert.success,
.url-search-alert.success {
  border-color: rgba(112, 203, 208, 0.34);
  color: var(--r3-cyan);
  background: rgba(112, 203, 208, 0.07);
}

.lookup-alert.error,
.url-search-alert.error {
  border-color: rgba(255, 122, 135, 0.28);
  color: #ffc4ca;
  background: rgba(255, 122, 135, 0.07);
}

.lookup-meta,
.url-search-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-block: 0.75rem;
}

.lookup-chip,
.url-search-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-block-size: 36px;
  padding: 0.4rem 0.65rem;
  border: 1px solid rgba(87, 213, 210, 0.22);
  border-radius: 999px;
  color: #bcefed;
  background: rgba(87, 213, 210, 0.06);
  font-size: 0.78rem;
}

.source-grid {
  display: grid;
  gap: 0.75rem;
}

.source-card {
  padding: 0.9rem;
  border: 1px solid var(--r3-border);
  border-radius: var(--r3-radius-md);
  background: rgba(6, 20, 24, 0.54);
}

.source-card h5 {
  margin: 0 0 0.55rem;
}

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

.url-vip-price {
  color: var(--r3-gold);
  font-weight: 800;
}

.url-vip-balance {
  color: var(--r3-muted);
  font-size: 0.82rem;
}

.url-result-panel {
  display: grid;
  gap: 1rem;
}

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

.url-stat {
  min-inline-size: 0;
  padding: 0.85rem;
  border: 1px solid var(--r3-border);
  border-radius: var(--r3-radius-md);
  background: rgba(6, 20, 24, 0.54);
}

.url-stat span,
.url-stat strong {
  display: block;
}

.url-stat span {
  margin-block-end: 0.3rem;
  color: var(--r3-muted);
  font-size: 0.78rem;
}

.url-stat strong {
  color: var(--r3-text);
  overflow-wrap: anywhere;
}

.url-download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-align: center;
  white-space: normal;
}

/* Logged-out public landing */
.r3-public-page {
  min-height: 100vh;
}

.r3-public-page .premium-shell {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.r3-public-nav {
  border-block-end: 1px solid var(--r3-border);
  background: rgba(8, 13, 21, 0.96);
}

.r3-public-nav .premium-nav-inner {
  min-block-size: 76px;
}

.r3-public-brand-mark {
  flex: 0 0 auto;
  border-radius: 12px;
}

.r3-public-nav .shared-language-selector {
  min-block-size: 44px;
}

.r3-public-nav .premium-mobile-menu .shared-language-selector {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.45rem 0;
}

.r3-public-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  min-block-size: 0;
  padding-block: clamp(4rem, 9vw, 7rem);
}

.r3-public-hero .public-hero-title {
  max-width: 15ch;
  margin: 0.7rem 0 1rem;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 0.98;
}

.r3-public-hero .hero-copy-large {
  max-width: 58ch;
  color: var(--r3-muted) !important;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.75;
}

.r3-public-hero-panel {
  display: grid;
  gap: 0.8rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid var(--r3-border);
  border-radius: var(--r3-radius-lg);
  background: linear-gradient(145deg, rgba(17, 45, 49, 0.88), rgba(31, 27, 53, 0.9));
  box-shadow: var(--r3-shadow);
}

.r3-public-signal {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  min-block-size: 66px;
  padding: 0.7rem;
  border: 1px solid var(--r3-border);
  border-radius: var(--r3-radius-md);
  color: var(--r3-text);
  background: rgba(6, 20, 24, 0.5);
}

.r3-public-signal i,
.r3-tool-glyph {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 13px;
  color: var(--r3-cyan);
  background: rgba(87, 213, 210, 0.08);
  font-size: 1.1rem;
}

.r3-public-section {
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

.r3-public-section .section-heading-premium {
  align-items: flex-end;
  margin-block-end: 1.5rem;
}

.r3-public-section .section-heading-premium h2 {
  margin: 0.35rem 0 0.3rem;
  color: var(--r3-text);
  font-size: clamp(1.6rem, 3.5vw, 2.7rem);
}

.r3-public-section .section-heading-premium p {
  max-width: 65ch;
  margin: 0;
  color: var(--r3-muted) !important;
}

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

.r3-platform-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  gap: 0.9rem;
  min-block-size: 220px;
  padding: 1.2rem;
  border: 1px solid var(--r3-border);
  border-radius: var(--r3-radius-lg);
  background: linear-gradient(145deg, rgba(17, 42, 49, 0.92), rgba(28, 26, 51, 0.86));
}

.r3-platform-card > i {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(87, 213, 210, 0.2);
  border-radius: 13px;
  color: var(--r3-cyan);
  background: rgba(87, 213, 210, 0.07);
  font-size: 1.15rem;
}

.r3-platform-card h3 {
  margin: 0 0 0.35rem;
  color: var(--r3-text);
  font-size: 1.15rem;
}

.r3-platform-card > :where(a, .r3-state) {
  grid-column: 2;
  align-self: end;
  justify-self: start;
}

.r3-platform-card > a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-block-size: 44px;
  color: var(--r3-cyan);
  font-weight: 750;
}

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

.r3-public-footer {
  padding-block: clamp(2rem, 5vw, 4rem);
  border-block-start: 1px solid var(--r3-border);
  background: var(--r3-bg);
}

.r3-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(140px, 0.6fr));
  gap: clamp(1.5rem, 4vw, 4rem);
}

.r3-footer-grid > div {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 0.55rem;
}

.r3-footer-grid h2 {
  margin: 0 0 0.3rem;
  font-size: 0.9rem;
}

.r3-footer-grid p,
.r3-footer-grid a {
  margin: 0;
  color: var(--r3-muted) !important;
}

.r3-footer-grid a {
  min-block-size: 44px;
  display: inline-flex;
  align-items: center;
}

html[dir="rtl"] .r3-directional-icon,
html[dir="rtl"] .r3-row-link > .mdi-chevron-right,
html[dir="rtl"] .r3-quick-link > .mdi-chevron-right {
  transform: rotate(180deg);
}

html[dir="rtl"] .r3-platform-card .bi-arrow-up-right {
  transform: scaleX(-1);
}

html[dir="rtl"] .r3-cart-item-price,
html[dir="rtl"] .r3-order-summary {
  justify-items: start;
  text-align: start;
}

html[dir="rtl"] .r3-delivery-details .stock-shell {
  direction: ltr;
  text-align: left;
}

@media (max-width: 1199.98px) {
  .r3-product-grid,
  .r3-public-preview-grid,
  .r3-platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .r3-cart-layout {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
  }
}

@media (max-width: 991.98px) {
  body.r3-store-page .content-wrapper {
    padding: 1rem;
  }

  .r3-page-hero,
  .r3-identity-hero,
  .r3-result-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .r3-orders-workspace > .r3-page-hero {
    min-block-size: 0;
  }

  .r3-home-grid,
  .r3-cart-layout,
  .r3-lookup-layout,
  .r3-product-detail,
  .r3-public-hero {
    grid-template-columns: 1fr;
  }

  .r3-cart-summary {
    position: static;
  }

  .r3-product-detail-media {
    min-block-size: 280px;
    border-inline-end: 0;
    border-block-end: 1px solid var(--r3-border);
  }

  .r3-product-detail-media img {
    min-height: 280px;
    max-height: 480px;
  }

  .r3-product-detail-media .r3-product-gallery__image {
    block-size: clamp(280px, 62vw, 480px);
    min-block-size: 0;
    max-block-size: min(60vh, 480px);
  }

  .r3-public-hero {
    gap: 2rem;
    padding-block: 3.5rem;
  }

  .r3-public-hero-panel {
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .r3-product-grid,
  .r3-public-preview-grid,
  .r3-platform-grid,
  .r3-category-grid,
  .r3-quick-grid,
  .url-vip-grid,
  .url-download-grid,
  .url-stat-grid,
  .r3-footer-grid {
    grid-template-columns: 1fr;
  }

  .r3-category-card--wide {
    grid-column: auto;
  }

  .r3-product-gallery__arrow {
    inline-size: 44px;
    block-size: 44px;
  }

  .r3-product-gallery__arrow--previous {
    inset-inline-start: 0.45rem;
  }

  .r3-product-gallery__arrow--next {
    inset-inline-end: 0.45rem;
  }

  .r3-product-gallery__footer {
    gap: 0.25rem;
    padding-inline: 0.45rem;
  }

  .r3-cart-item {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .r3-cart-item-price {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
    align-items: end;
    justify-items: start;
    text-align: start;
  }

  .r3-cart-item-price form {
    justify-self: end;
  }

  .r3-compact-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .r3-row-meta {
    grid-column: 2;
    justify-items: start;
  }

  .r3-row-link {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .r3-detail-facts,
  .r3-result-facts {
    grid-template-columns: 1fr;
  }

  .r3-detail-facts > div + div,
  .r3-result-facts > div + div {
    border-inline-start: 0;
    border-block-start: 1px solid var(--r3-border);
  }

  .r3-order-header,
  .r3-order-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .r3-order-summary {
    justify-content: flex-start;
    text-align: start;
  }

  .r3-order-item {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .r3-order-item-actions {
    grid-column: 1 / -1;
    width: 100%;
  }

  .r3-public-nav .public-nav-actions {
    display: none;
  }

  .r3-public-page .premium-shell {
    width: min(100% - 1.25rem, 1180px);
  }
}

@media (max-width: 479.98px) {
  body.r3-store-page .content-wrapper {
    padding: 0.75rem;
  }

  .r3-page-hero,
  .r3-identity-hero,
  .r3-result-hero,
  .r3-surface,
  .r3-category-card,
  .r3-product-detail-content {
    padding: 1rem;
    border-radius: var(--r3-radius-md) !important;
  }

  .r3-page-hero h1,
  .r3-identity-hero h1,
  .r3-result-hero h1 {
    font-size: clamp(1.65rem, 9vw, 2.15rem);
  }

  .r3-orders-workspace .r3-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.7rem;
  }

  .r3-orders-workspace .r3-result-count {
    align-self: flex-start;
  }

  .r3-identity-main {
    align-items: flex-start;
    flex-direction: column;
  }

  .r3-identity-avatar {
    width: 72px;
    height: 72px;
    border-radius: 22px;
  }

  .r3-page-hero-actions,
  .r3-card-actions,
  .r3-detail-actions,
  .r3-result-actions,
  .r3-detail-toolbar {
    width: 100%;
  }

  .r3-page-hero-actions .btn,
  .r3-card-actions .btn,
  .r3-detail-actions .btn,
  .r3-result-actions .btn,
  .r3-detail-toolbar .btn {
    flex: 1 1 100%;
    width: 100%;
  }

  .r3-cart-item {
    grid-template-columns: 1fr;
  }

  .r3-cart-item-media {
    max-height: 180px;
  }

  .r3-cart-item-price {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .r3-cart-item-price form,
  .r3-cart-item-price form .btn {
    justify-self: stretch;
    width: 100%;
  }

  .r3-cart-update-form,
  .r3-cart-update-form > .btn,
  .r3-cart-update-form .quantity-selector {
    width: 100%;
  }

  .r3-cart-update-form .quantity-selector {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }

  .r3-category-card {
    grid-template-columns: 1fr;
  }

  .r3-category-card > .btn,
  .r3-category-card > .r3-state,
  .r3-category-card > .r3-card-actions {
    grid-column: 1;
  }

  .r3-category-card > .btn,
  .r3-category-card > .r3-card-actions,
  .r3-category-card > .r3-card-actions .btn {
    width: 100%;
  }

  .r3-order-item {
    grid-template-columns: 1fr;
  }

  .r3-order-item-meta,
  .r3-order-item-actions,
  .r3-delivery-details {
    grid-column: 1;
  }

  .r3-order-item-meta {
    justify-items: start;
    text-align: start;
  }

  .r3-order-item-actions,
  .r3-order-item-actions .btn,
  .r3-order-footer > .btn {
    width: 100%;
  }

  .r3-pagination {
    gap: 0.45rem;
    font-size: 0.78rem;
  }

  .r3-pagination .btn {
    padding-inline: 0.65rem;
  }

  .r3-public-hero .public-hero-title {
    font-size: clamp(2.15rem, 13vw, 3.25rem);
  }

  .r3-public-hero .hero-actions,
  .r3-public-hero .hero-actions .btn {
    width: 100%;
  }

  .r3-public-hero .hero-actions .btn {
    justify-content: center;
  }
}

@media (max-width: 360px) {
  .r3-public-page .premium-shell {
    width: min(100% - 0.75rem, 1180px);
  }

  body.r3-store-page .content-wrapper {
    padding-inline: 0.5rem;
  }

  .r3-product-gallery__arrow {
    inline-size: 40px;
    block-size: 40px;
  }

  .r3-product-gallery__autoplay {
    inline-size: 36px;
    block-size: 36px;
  }

  .r3-product-gallery__dot {
    inline-size: 30px;
    block-size: 34px;
  }

  .r3-product-gallery__counter {
    min-inline-size: 46px;
    font-size: 0.72rem;
  }

  .r3-order-tabs {
    gap: 0.35rem;
    padding: 0.35rem;
  }

  .r3-order-tab {
    gap: 0.3rem;
    padding-inline: 0.5rem;
    font-size: 0.82rem;
  }

  .r3-page-hero,
  .r3-identity-hero,
  .r3-result-hero,
  .r3-surface,
  .r3-category-card,
  .r3-product-detail-content,
  .r3-product-card .card-body,
  .r3-order-header,
  .r3-order-footer,
  .r3-order-items {
    padding-inline: 0.8rem;
  }

  .r3-compact-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .r3-compact-row > .r3-row-icon {
    display: none;
  }

  .r3-row-meta {
    grid-column: 1;
  }

  .r3-row-link {
    grid-column: 2;
  }

  .r3-summary-list > div {
    grid-template-columns: 1fr;
  }

  .r3-summary-list dd {
    text-align: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.r3-store-page *,
  body.r3-store-page *::before,
  body.r3-store-page *::after,
  body.r3-public-page *,
  body.r3-public-page *::before,
  body.r3-public-page *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .r3-skip-link,
  .r3-directional-icon,
  .r3-row-link > i,
  .r3-quick-link > i {
    transition: none !important;
  }

  .r3-product-gallery__slide,
  .r3-product-gallery__dot::before {
    animation: none !important;
    transition: none !important;
  }
}

@media (prefers-contrast: more) {
  body.r3-store-page,
  body.r3-public-page {
    --r3-border: var(--hxl-border-strong);
    --r3-border-strong: var(--hxl-cyan-strong);
    --r3-muted: var(--hxl-text);
  }
}

@media (forced-colors: active) {
  .r3-page-hero,
  .r3-identity-hero,
  .r3-result-hero,
  .r3-surface,
  .r3-product-card,
  .r3-product-detail,
  .r3-category-card,
  .r3-platform-card,
  .r3-cart-item,
  .r3-order-card,
  .r3-tool-license-card,
  .r3-order-item,
  .r3-order-tabs,
  .r3-quick-link,
  .r3-public-hero-panel {
    border: 1px solid CanvasText !important;
    background: Canvas !important;
    box-shadow: none !important;
  }

  .r3-product-gallery__arrow,
  .r3-product-gallery__autoplay,
  .r3-product-gallery__dot::before {
    border: 1px solid ButtonText !important;
    color: ButtonText !important;
    background: ButtonFace !important;
  }

  .r3-state,
  .r3-order-tab,
  .r3-row-icon,
  .r3-category-icon,
  .r3-result-icon {
    border: 1px solid CanvasText;
    color: CanvasText;
    background: Canvas;
    forced-color-adjust: auto;
  }

  .r3-xp-block progress {
    forced-color-adjust: auto;
  }
}

/* R3.1 brand/authentication and semantic-accent contract. */
.premium-nav-links a:hover,
.premium-nav-links a:focus-visible,
.premium-mobile-menu a:hover,
.premium-mobile-menu a:focus-visible,
.navbar .nav-link:hover,
.navbar .nav-link:focus-visible,
.sidebar .nav .nav-item.active > .nav-link,
.sidebar .nav .nav-item:hover > .nav-link,
.sidebar .nav .nav-item > .nav-link:focus-visible {
  border-color: var(--hex-cyan) !important;
  color: var(--hex-cyan-bright) !important;
}

.card::before,
.account-hero-card::before,
.hero-card::before,
.reset-panel::before,
.error-panel::before,
.account-modal::before {
  background: var(--hex-cyan);
}

.card:hover,
.account-summary-tile:hover,
.order-card:hover,
.store-card:hover,
.product-card:hover,
.news-card:hover,
.gift-card-shell:hover,
.result-card:hover,
.account-hero-card {
  border-color: rgba(112, 203, 208, 0.54) !important;
}

.section-pill,
.product-meta span,
.news-meta span,
.order-status-badge,
.gift-meta-pill,
.url-search-chip,
.lookup-chip,
.quantity-badge,
.status-pill,
.badge.bg-primary {
  border-color: rgba(112, 203, 208, 0.42) !important;
  color: var(--hex-cyan-bright) !important;
  background: rgba(112, 203, 208, 0.08) !important;
}

.status-pill.success,
.status-pill.is-active,
.status-pill.available,
.status-pill.completed {
  border-color: rgba(112, 203, 208, 0.46) !important;
  color: var(--r3-cyan) !important;
  background: rgba(112, 203, 208, 0.095) !important;
}

.btn-outline-light:hover,
.btn-outline-light:focus-visible {
  border-color: var(--hex-cyan) !important;
  color: var(--hex-cyan-bright) !important;
  background: rgba(112, 203, 208, 0.08) !important;
}

.admin-entry-button:hover,
.admin-entry-button:focus-visible {
  border-color: var(--hex-gold) !important;
  color: var(--hex-gold-bright) !important;
  background: rgba(192, 164, 97, 0.08) !important;
}

.price-stack strong,
.product-actions > strong,
.sidebar-balance-pill strong {
  color: var(--hex-gold-bright) !important;
}

.luxury-footer h4,
.r3-public-footer h2 {
  color: var(--hex-cyan-bright) !important;
}

.simple-footer .hxl-brand {
  margin-bottom: 16px;
}

.auth-standalone-header {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(100% - 28px, 1180px);
  min-height: 76px;
  margin-inline: auto;
  padding-block: 12px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--hex-border-soft);
}

body.auth-page .auth-nav .hxl-brand {
  flex: 0 0 auto;
}

body.auth-page .auth-nav .navbar-nav {
  padding-inline-start: 0;
}

body.auth-page .login-html h1,
body.auth-page .login-html h2 {
  margin: 0 0 8px;
  color: var(--hex-text) !important;
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

body.auth-page .login-form .group .button,
body.auth-page .login-form .group .button.button,
body.auth-page .compact-verify-submit,
body.auth-page .auth-modal .btn-primary,
body.auth-page .reset-panel .btn-primary,
body.auth-page .feature-closed-card .btn-primary {
  border-color: var(--hex-cyan) !important;
  color: var(--hex-bg-deep) !important;
  background: var(--hex-cyan) !important;
  box-shadow: 0 9px 24px rgba(112, 203, 208, 0.13) !important;
}

body.auth-page .login-form .group .button:hover,
body.auth-page .login-form .group .button:focus-visible,
body.auth-page .compact-verify-submit:hover,
body.auth-page .compact-verify-submit:focus-visible,
body.auth-page .auth-modal .btn-primary:hover,
body.auth-page .auth-modal .btn-primary:focus-visible,
body.auth-page .reset-panel .btn-primary:hover,
body.auth-page .reset-panel .btn-primary:focus-visible,
body.auth-page .feature-closed-card .btn-primary:hover,
body.auth-page .feature-closed-card .btn-primary:focus-visible {
  border-color: var(--hex-cyan-bright) !important;
  background: var(--hex-cyan-bright) !important;
  box-shadow: 0 11px 28px rgba(112, 203, 208, 0.17) !important;
}

.reset-auth-page .reset-page {
  min-height: calc(100vh - 76px);
  min-height: calc(100svh - 76px);
}

.reset-panel .form-group + .form-group {
  margin-top: 16px;
}

.reset-note {
  border: 1px solid rgba(112, 203, 208, 0.28);
  color: var(--hex-text-soft) !important;
  background: rgba(112, 203, 208, 0.08);
}

.feature-closed-card .btn-primary {
  min-height: 44px;
  margin-top: 0.5rem;
}

html[dir="rtl"] body.auth-page .navbar-nav.ms-auto {
  margin-right: auto !important;
  margin-left: 0 !important;
}

html[dir="rtl"] body.auth-page .auth-nav .nav-link,
html[dir="rtl"] body.auth-page .login-html .tab,
html[dir="rtl"] body.auth-page .login-form .group .label,
html[dir="rtl"] body.auth-page .login-form .group .button,
html[dir="rtl"] .closed-badge {
  letter-spacing: 0;
  text-transform: none;
}

html[dir="rtl"] body.auth-page .login-form .group,
html[dir="rtl"] .reset-panel,
html[dir="rtl"] .feature-closed-card {
  text-align: right;
}

@media (max-width: 991.98px) {
  body.auth-page .auth-nav .navbar-collapse {
    margin-top: 10px;
    padding: 12px;
    border: 1px solid var(--hex-border-soft);
    background: rgba(8, 13, 21, 0.98);
  }

  body.auth-page .auth-nav .shared-language-selector {
    justify-content: flex-start;
  }
}

@media (max-width: 575.98px) {
  .auth-standalone-header {
    width: min(100% - 24px, 1180px);
    min-height: 68px;
    gap: 10px;
  }

  .auth-standalone-header .shared-language-selector__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
  }

  .reset-auth-page .reset-page,
  .feature-closed-shell {
    min-height: calc(100svh - 68px);
    padding: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.auth-page *,
  body.auth-page *::before,
  body.auth-page *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .auth-panel,
  .reset-panel,
  .feature-closed-card,
  .auth-modal .modal-content {
    border: 1px solid CanvasText !important;
    background: Canvas !important;
    box-shadow: none !important;
  }
}
