:root {
  color-scheme: light;
  --canvas: #f4f6f7;
  --surface: #ffffff;
  --surface-2: #eef1f3;
  --surface-3: #e5e9ec;
  --ink: #152235;
  --ink-2: #344154;
  --muted: #6d7887;
  --muted-2: #929ba7;
  --line: #dce1e5;
  --line-strong: #cbd2d8;
  --brand: #315ee7;
  --brand-hover: #254bc4;
  --brand-soft: #e9efff;
  --success: #177a55;
  --success-soft: #e5f5ee;
  --warning: #9b6410;
  --warning-soft: #fff3d8;
  --danger: #b43d43;
  --danger-soft: #fdebed;
  --navy: #132136;
  --shadow-sm: 0 1px 2px rgba(21, 34, 53, 0.05);
  --shadow-md: 0 12px 34px rgba(21, 34, 53, 0.1);
  --radius-sm: 7px;
  --radius: 11px;
  --radius-lg: 16px;
  --content: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

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

img,
svg {
  display: block;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(49, 94, 231, 0.25);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -50px;
  z-index: 999;
  padding: 9px 12px;
  border-radius: 6px;
  background: var(--navy);
  color: #fff;
}

.skip-link:focus {
  top: 12px;
}

.ssr-shell {
  min-height: 100vh;
  background: var(--canvas);
}

.ssr-shell > header,
.ssr-shell > main,
.ssr-shell > footer {
  width: min(calc(100% - 40px), var(--content));
  margin-inline: auto;
}

.ssr-shell > header {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}

.ssr-shell nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.ssr-shell > main {
  padding-block: 72px;
}

.ssr-shell h1 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.ssr-shell p {
  max-width: 760px;
  color: var(--ink-2);
  font-size: 17px;
}

.ssr-shell article {
  max-width: 820px;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
}

.ssr-shell > footer {
  padding-block: 28px 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  stroke-width: 1.8;
}

.icon-sm {
  width: 15px;
  height: 15px;
}

.icon-lg {
  width: 22px;
  height: 22px;
}

.muted {
  color: var(--muted);
}

.text-success {
  color: var(--success);
}

.text-danger {
  color: var(--danger);
}

.mono {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  font-weight: 650;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.btn:hover {
  background: var(--surface-2);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-hover);
}

.btn-secondary {
  border-color: var(--line-strong);
  background: var(--surface);
}

.btn-secondary:hover {
  border-color: #b7c0c8;
  background: var(--surface-2);
}

.btn-dark {
  background: var(--navy);
  color: #fff;
}

.btn-dark:hover {
  background: #1d304c;
}

.btn-danger {
  border-color: #f0c8cb;
  background: var(--danger-soft);
  color: var(--danger);
}

.btn-sm {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.btn-lg {
  min-height: 46px;
  padding: 0 19px;
  font-size: 15px;
}

.btn-block {
  width: 100%;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  min-height: 24px;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.badge-success {
  border-color: #c7e8da;
  background: var(--success-soft);
  color: var(--success);
}

.badge-warning {
  border-color: #f1d9a3;
  background: var(--warning-soft);
  color: var(--warning);
}

.badge-danger {
  border-color: #efc7ca;
  background: var(--danger-soft);
  color: var(--danger);
}

.badge-brand {
  border-color: #cbd8ff;
  background: var(--brand-soft);
  color: var(--brand);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.public-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(var(--content), calc(100% - 40px));
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 760;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.brand-domain > span {
  color: var(--brand);
}

.brand-mark {
  width: 29px;
  height: 29px;
  position: relative;
  flex: 0 0 auto;
  border-radius: 8px;
  background: var(--navy);
  overflow: hidden;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  top: 7px;
  width: 8px;
  height: 15px;
  transform: skew(-18deg);
}

.brand-mark::before {
  left: 8px;
  background: #fff;
}

.brand-mark::after {
  right: 7px;
  background: #527bfa;
}

.public-nav {
  display: flex;
  align-items: center;
  gap: 3px;
}

.nav-link {
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
}

.nav-link:hover,
.nav-link.active {
  background: var(--surface-2);
  color: var(--ink);
}

.header-spacer {
  flex: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.language-select {
  position: relative;
}

.language-button {
  min-width: 68px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink-2);
  font-weight: 650;
  cursor: pointer;
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 100;
  width: 290px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

[dir="rtl"] .language-menu {
  right: auto;
  left: 0;
}

.language-option {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 9px;
  border-radius: 6px;
  background: transparent;
  text-align: start;
  cursor: pointer;
}

.language-option:hover,
.language-option.active {
  background: var(--surface-2);
}

.language-option span:first-child {
  width: 25px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.icon-button.mobile-menu-btn {
  display: none;
}

.mobile-menu {
  display: none;
}

.site-main {
  min-height: calc(100vh - 64px);
}

.container {
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
}

.catalog-hero {
  padding: 34px 0 24px;
}

.catalog-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.catalog-title-wrap {
  max-width: 680px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.catalog-intro h1 {
  max-width: 720px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.catalog-intro p {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.hero-stats {
  min-width: 270px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}

.hero-stat {
  padding: 12px 14px;
  background: var(--surface);
}

.hero-stat strong {
  display: block;
  color: var(--navy);
  font-size: 19px;
  line-height: 1.2;
}

.hero-stat span {
  color: var(--muted);
  font-size: 11px;
}

.catalog-shell {
  display: grid;
  grid-template-columns: 234px minmax(0, 1fr) 278px;
  align-items: start;
  gap: 14px;
  padding-bottom: 30px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.filter-panel,
.order-panel {
  position: sticky;
  top: 78px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 15px;
  border-bottom: 1px solid var(--line);
}

.panel-heading h2,
.panel-heading h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 760;
}

.panel-body {
  padding: 14px;
}

.input-wrap {
  position: relative;
}

.input-wrap .icon {
  position: absolute;
  top: 50%;
  left: 11px;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}

[dir="rtl"] .input-wrap .icon {
  left: auto;
  right: 11px;
}

.input {
  width: 100%;
  min-height: 39px;
  padding: 8px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface);
  transition: border 150ms ease, box-shadow 150ms ease;
}

.input-with-icon {
  padding-left: 37px;
}

[dir="rtl"] .input-with-icon {
  padding-left: 11px;
  padding-right: 37px;
}

.input:focus {
  border-color: var(--brand);
  outline: none;
  box-shadow: 0 0 0 3px rgba(49, 94, 231, 0.12);
}

.label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 700;
}

.hint {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
}

.field + .field {
  margin-top: 15px;
}

.service-list {
  max-height: 490px;
  margin-top: 10px;
  overflow: auto;
  scrollbar-width: thin;
}

.service-toggle {
  width: 100%;
  margin-top: 10px;
}

.service-item {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 8px;
  border-radius: 7px;
  background: transparent;
  color: var(--ink-2);
  text-align: start;
  cursor: pointer;
}

.service-item:hover,
.service-item.active {
  background: var(--surface-2);
  color: var(--ink);
}

.service-item.active {
  box-shadow: inset 3px 0 0 var(--brand);
}

[dir="rtl"] .service-item.active {
  box-shadow: inset -3px 0 0 var(--brand);
}

.service-logo {
  width: 27px;
  height: 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 7px;
  background: var(--service-bg, var(--surface-3));
  color: var(--service-color, var(--ink));
  font-size: 11px;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.service-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-count {
  color: var(--muted-2);
  font-size: 10px;
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.catalog-results {
  min-width: 0;
  overflow: hidden;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.catalog-toolbar .input-wrap {
  flex: 1;
}

.select {
  min-height: 39px;
  padding: 0 32px 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface);
  cursor: pointer;
}

[dir="rtl"] .select {
  padding: 0 10px 0 32px;
}

.catalog-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 15px;
  background: #fafbfb;
  color: var(--muted);
  font-size: 12px;
}

.catalog-summary strong {
  color: var(--ink);
}

.catalog-table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: start;
}

.data-table th {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-align: start;
  text-transform: uppercase;
  white-space: nowrap;
}

.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #edf0f2;
  vertical-align: middle;
}

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

.data-table tbody tr {
  transition: background 130ms ease;
}

.data-table tbody tr:hover,
.data-table tbody tr.selected {
  background: #f7f9fe;
}

.country-cell {
  min-width: 145px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.flag {
  width: 28px;
  height: 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  font-size: 16px;
  line-height: 1;
}

.country-name {
  font-size: 12px;
  font-weight: 700;
}

.country-code {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.stock {
  min-width: 80px;
}

.stock-number {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  color: var(--ink-2);
  font-size: 11px;
}

.stock-bar {
  height: 3px;
  border-radius: 99px;
  background: var(--surface-3);
  overflow: hidden;
}

.stock-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--success);
}

.delivery {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.price {
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.order-empty {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.empty-icon {
  width: 43px;
  height: 43px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--ink-2);
}

.order-empty strong {
  margin-bottom: 5px;
  color: var(--ink);
}

.order-empty p {
  max-width: 200px;
  margin: 0;
  font-size: 12px;
}

.order-selection {
  padding: 14px;
}

.selection-service {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.selection-service .service-logo {
  width: 35px;
  height: 35px;
}

.selection-service strong {
  display: block;
}

.selection-service span {
  color: var(--muted);
  font-size: 11px;
}

.order-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  color: var(--muted);
  font-size: 12px;
}

.order-line strong {
  color: var(--ink);
}

.order-total {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
}

.order-total strong {
  font-size: 18px;
}

.order-note {
  display: flex;
  gap: 8px;
  margin: 12px 0;
  padding: 9px 10px;
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 10px;
}

.catalog-more {
  display: flex;
  justify-content: center;
  padding: 12px 15px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.catalog-footnote {
  padding: 13px 15px;
  border-top: 1px solid var(--line);
  background: #fafbfb;
  color: var(--muted);
  font-size: 10px;
}

.reliability-strip {
  padding: 18px 0 44px;
}

.reliability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.reliability-item {
  min-height: 92px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px;
  border-right: 1px solid var(--line);
}

[dir="rtl"] .reliability-item {
  border-right: 0;
  border-left: 1px solid var(--line);
}

.reliability-item:last-child {
  border-right: 0;
  border-left: 0;
}

.reliability-icon {
  color: var(--brand);
}

.reliability-item strong {
  display: block;
  margin-bottom: 3px;
  color: var(--navy);
  font-size: 12px;
}

.reliability-item span {
  color: var(--muted);
  font-size: 11px;
}

.developer-band {
  padding: 52px 0;
  background: var(--navy);
  color: #fff;
}

.developer-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 70px;
}

.developer-copy h2 {
  max-width: 480px;
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.developer-copy p {
  max-width: 500px;
  margin: 14px 0 22px;
  color: #aeb9ca;
  font-size: 14px;
}

.developer-actions {
  display: flex;
  gap: 9px;
}

.developer-band .btn-primary {
  background: #fff;
  color: var(--navy);
}

.developer-band .btn-primary:hover {
  background: #edf1f6;
}

.developer-band .btn-secondary {
  border-color: #40516c;
  background: transparent;
  color: #fff;
}

.code-card {
  position: relative;
  border: 1px solid #334661;
  border-radius: 10px;
  background: #0c1829;
  overflow: hidden;
  box-shadow: 0 22px 50px rgba(2, 10, 20, 0.3);
}

.code-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 13px;
  border-bottom: 1px solid #2c3c55;
  color: #98a7bd;
  font-size: 11px;
}

.code-dots {
  display: flex;
  gap: 5px;
}

.code-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #42536b;
}

.code-block {
  margin: 0;
  padding: 18px;
  overflow: auto;
  color: #e5ebf4;
  font: 11px/1.8 "SFMono-Regular", Consolas, monospace;
  white-space: pre;
}

.code-key { color: #91b6ff; }
.code-string { color: #9dd9b6; }
.code-comment { color: #61728a; }

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 46px;
  padding: 48px 0 38px;
}

.footer-brand p {
  max-width: 270px;
  margin: 14px 0;
  color: var(--muted);
  font-size: 12px;
}

.footer-column h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-column a {
  display: block;
  width: fit-content;
  margin: 8px 0;
  color: var(--muted);
  font-size: 12px;
}

.footer-column a:hover {
  color: var(--ink);
}

.footer-bottom {
  min-height: 57px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.page-hero {
  padding: 58px 0 44px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.page-hero-inner {
  max-width: 760px;
}

.page-hero h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.page-hero p {
  max-width: 650px;
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.page-section {
  padding: 48px 0;
}

.page-section + .page-section {
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 670px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: 27px;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.section-heading p {
  margin: 9px 0 0;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feature-card {
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.feature-card-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand);
}

.feature-card h3 {
  margin: 0 0 7px;
  font-size: 15px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.coverage-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.coverage-card strong {
  display: block;
  font-size: 12px;
}

.coverage-card span:last-child {
  color: var(--muted);
  font-size: 10px;
}

.status-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid #c7e8da;
  border-radius: var(--radius);
  background: var(--success-soft);
  color: var(--success);
}

.status-summary strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
}

.status-summary span {
  color: var(--success);
  font-size: 12px;
}

.status-list {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.status-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 15px 17px;
  border-bottom: 1px solid var(--line);
}

.status-row:last-child {
  border-bottom: 0;
}

.status-row strong {
  display: block;
  font-size: 12px;
}

.status-row span {
  color: var(--muted);
  font-size: 11px;
}

.faq-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  gap: 42px;
}

.faq-nav {
  position: sticky;
  top: 88px;
  align-self: start;
}

.faq-nav button {
  width: 100%;
  display: flex;
  padding: 9px 10px;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  text-align: start;
  cursor: pointer;
}

.faq-nav button:hover,
.faq-nav button.active {
  background: var(--surface-2);
  color: var(--ink);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  background: transparent;
  color: var(--ink);
  font-weight: 720;
  text-align: start;
  cursor: pointer;
}

.faq-question .icon {
  transition: transform 180ms ease;
}

.faq-item.open .faq-question .icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 38px 18px 0;
  color: var(--muted);
  font-size: 13px;
}

[dir="rtl"] .faq-answer {
  padding: 0 0 18px 38px;
}

.faq-item.open .faq-answer {
  display: block;
}

.legal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  gap: 54px;
}

.legal-nav {
  position: sticky;
  top: 90px;
  align-self: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}

.legal-nav a {
  display: block;
  padding: 8px;
  border-radius: 5px;
  color: var(--muted);
  font-size: 11px;
}

.legal-nav a:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.prose h2 {
  margin: 38px 0 12px;
  color: var(--navy);
  font-size: 21px;
  letter-spacing: -0.025em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin: 23px 0 9px;
  font-size: 15px;
}

.prose p,
.prose li {
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.75;
}

.prose ul {
  padding-left: 20px;
}

[dir="rtl"] .prose ul {
  padding-right: 20px;
  padding-left: 0;
}

.notice {
  display: flex;
  gap: 11px;
  padding: 13px;
  border: 1px solid #cbd8ff;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--ink-2);
  font-size: 12px;
}

.notice .icon {
  color: var(--brand);
}

.api-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.api-sidebar {
  position: sticky;
  top: 84px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}

.api-sidebar strong {
  display: block;
  padding: 7px 8px;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.api-sidebar a {
  display: block;
  padding: 7px 8px;
  border-radius: 5px;
  color: var(--muted);
  font-size: 11px;
}

.api-sidebar a:hover,
.api-sidebar a.active {
  background: var(--surface-2);
  color: var(--ink);
}

.api-docs {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.api-docs h1 {
  margin: 0 0 9px;
  font-size: 28px;
  letter-spacing: -0.035em;
}

.api-docs h2 {
  margin: 36px 0 10px;
  font-size: 19px;
}

.api-docs p {
  color: var(--muted);
  font-size: 13px;
}

.endpoint {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 15px 0 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
  overflow-x: auto;
}

.method {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 45px;
  min-height: 23px;
  border-radius: 5px;
  background: var(--brand);
  color: #fff;
  font-size: 9px;
  font-weight: 850;
}

.method.post {
  background: var(--success);
}

.api-code {
  position: relative;
  margin: 12px 0;
  border-radius: 8px;
  background: var(--navy);
  color: #dfe7f2;
  overflow: auto;
}

.api-code pre {
  margin: 0;
  padding: 16px;
  font: 11px/1.7 "SFMono-Regular", Consolas, monospace;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(460px, 0.8fr);
  background: var(--surface);
}

.auth-side {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 42px;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}

.auth-side::after {
  content: "";
  position: absolute;
  right: -140px;
  bottom: -160px;
  width: 440px;
  height: 440px;
  border: 85px solid rgba(78, 120, 249, 0.16);
  border-radius: 50%;
}

.auth-side .brand {
  color: #fff;
}

.auth-quote {
  position: relative;
  z-index: 1;
  max-width: 520px;
}

.auth-quote p {
  margin: 0;
  color: #e1e7f0;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.auth-quote span {
  display: block;
  margin-top: 18px;
  color: #8797af;
  font-size: 12px;
}

.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

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

.auth-card h1 {
  margin: 0;
  color: var(--navy);
  font-size: 29px;
  letter-spacing: -0.04em;
}

.auth-card > p {
  margin: 7px 0 25px;
  color: var(--muted);
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: 11px;
}

.checkbox-row input {
  margin-top: 2px;
  accent-color: var(--brand);
}

.auth-switch {
  margin-top: 22px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.auth-switch a {
  color: var(--brand);
  font-weight: 700;
}

.dashboard-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  background: var(--canvas);
}

.dash-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 60;
  width: 232px;
  display: flex;
  flex-direction: column;
  padding: 19px 13px 14px;
  border-right: 1px solid var(--line);
  background: var(--surface);
}

[dir="rtl"] .dash-sidebar {
  inset: 0 0 0 auto;
  border-right: 0;
  border-left: 1px solid var(--line);
}

.dash-sidebar .brand {
  padding: 0 8px 18px;
}

.workspace-switcher {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  margin-bottom: 16px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
}

.workspace-avatar {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: var(--navy);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.workspace-switcher strong {
  display: block;
  font-size: 11px;
}

.workspace-switcher span {
  display: block;
  color: var(--muted);
  font-size: 9px;
}

.dash-nav-label {
  padding: 9px 10px 5px;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dash-nav-link {
  min-height: 39px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 1px 0;
  padding: 7px 10px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.dash-nav-link:hover,
.dash-nav-link.active {
  background: var(--surface-2);
  color: var(--ink);
}

.dash-nav-link.active {
  box-shadow: inset 3px 0 0 var(--brand);
}

[dir="rtl"] .dash-nav-link.active {
  box-shadow: inset -3px 0 0 var(--brand);
}

.dash-nav-link .nav-badge {
  min-width: 19px;
  margin-left: auto;
  padding: 1px 5px;
  border-radius: 99px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 9px;
  font-weight: 800;
  text-align: center;
}

[dir="rtl"] .dash-nav-link .nav-badge {
  margin-right: auto;
  margin-left: 0;
}

.dash-sidebar-bottom {
  margin-top: auto;
}

.sidebar-balance {
  margin: 10px 0;
  padding: 12px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
}

.sidebar-balance span {
  display: block;
  color: #9cabc0;
  font-size: 9px;
  text-transform: uppercase;
}

.sidebar-balance strong {
  display: block;
  margin: 3px 0 10px;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.sidebar-balance .btn {
  min-height: 30px;
  background: #fff;
  color: var(--navy);
  font-size: 10px;
}

.dash-content {
  grid-column: 2;
  min-width: 0;
}

.dash-topbar {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.icon-button.dash-mobile-menu {
  display: none;
}

.dash-breadcrumb {
  color: var(--muted);
  font-size: 12px;
}

.dash-breadcrumb strong {
  color: var(--ink);
}

.dash-top-spacer {
  flex: 1;
}

.icon-button {
  width: 35px;
  height: 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}

.icon-button:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.user-button {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 4px 8px 4px 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
}

.user-avatar {
  width: 27px;
  height: 27px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #e8ecef;
  color: var(--ink-2);
  font-size: 9px;
  font-weight: 800;
}

.user-button strong {
  font-size: 10px;
}

.dash-page {
  width: min(1180px, calc(100% - 56px));
  margin: 0 auto;
  padding: 30px 0 50px;
}

.dash-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.dash-page-header h1 {
  margin: 0;
  color: var(--navy);
  font-size: 25px;
  letter-spacing: -0.04em;
}

.dash-page-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.header-button-row {
  display: flex;
  gap: 8px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.metric-card {
  min-height: 132px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.metric-icon {
  width: 29px;
  height: 29px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--ink-2);
}

.metric-value {
  display: block;
  margin-top: 17px;
  color: var(--navy);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.metric-trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
}

.metric-trend.positive {
  color: var(--success);
}

.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
  gap: 14px;
}

.dash-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.dash-card-header {
  min-height: 51px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 15px;
  border-bottom: 1px solid var(--line);
}

.dash-card-header h2,
.dash-card-header h3 {
  margin: 0;
  font-size: 13px;
}

.dash-card-header a,
.link-button {
  background: transparent;
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.dash-card-body {
  padding: 15px;
}

.chart-wrap {
  padding: 16px 15px 10px;
}

.chart-summary {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
}

.chart-summary strong {
  font-size: 21px;
}

.chart-summary span {
  color: var(--muted);
  font-size: 10px;
}

.chart {
  width: 100%;
  height: 145px;
}

.chart-grid-line {
  stroke: #e7ebee;
  stroke-width: 1;
}

.chart-area {
  fill: rgba(49, 94, 231, 0.08);
}

.chart-line {
  fill: none;
  stroke: var(--brand);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.chart-labels {
  display: flex;
  justify-content: space-between;
  padding-top: 7px;
  color: var(--muted-2);
  font-size: 9px;
}

.activity-list {
  display: grid;
}

.activity-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  border-bottom: 1px solid #edf0f2;
}

.activity-item:last-child {
  border-bottom: 0;
}

.activity-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--ink-2);
}

.activity-item strong {
  display: block;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-item span {
  display: block;
  color: var(--muted);
  font-size: 9px;
}

.activity-amount {
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.quick-action {
  min-height: 88px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 10px;
  font-weight: 700;
  text-align: start;
  cursor: pointer;
}

.quick-action:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.orders-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.orders-toolbar .input-wrap {
  max-width: 280px;
  flex: 1;
}

.order-id {
  color: var(--ink-2);
  font: 10px "SFMono-Regular", Consolas, monospace;
}

.table-service {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 125px;
}

.table-service .service-logo {
  width: 26px;
  height: 26px;
}

.phone-number {
  font: 11px "SFMono-Regular", Consolas, monospace;
  white-space: nowrap;
}

.sms-code {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 7px;
  border-radius: 5px;
  background: var(--surface-2);
  font: 11px "SFMono-Regular", Consolas, monospace;
  font-weight: 750;
}

.wallet-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.7fr);
  gap: 14px;
}

.balance-card {
  position: relative;
  min-height: 206px;
  padding: 25px;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}

.balance-card::after {
  content: "";
  position: absolute;
  right: -45px;
  bottom: -80px;
  width: 230px;
  height: 230px;
  border: 45px solid rgba(82, 123, 250, 0.15);
  border-radius: 50%;
}

.balance-label {
  color: #9daabe;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.balance-amount {
  display: block;
  margin: 11px 0 25px;
  font-size: 42px;
  font-weight: 750;
  letter-spacing: -0.05em;
}

.balance-card .btn {
  position: relative;
  z-index: 1;
  background: #fff;
  color: var(--navy);
}

.wallet-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.wallet-stat {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}

.wallet-stat span {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.wallet-stat strong {
  display: block;
  margin-top: 7px;
  font-size: 18px;
}

.payment-method-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}

.crypto-mark {
  width: 37px;
  height: 37px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: #e9efff;
  color: var(--brand);
}

.payment-method-card strong {
  display: block;
  font-size: 12px;
}

.payment-method-card span {
  color: var(--muted);
  font-size: 10px;
}

.settings-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 700px);
  gap: 28px;
}

.settings-nav {
  align-self: start;
}

.settings-nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.settings-nav a:hover,
.settings-nav a.active {
  background: var(--surface-2);
  color: var(--ink);
}

.settings-section {
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.settings-section-header {
  padding: 15px 17px;
  border-bottom: 1px solid var(--line);
}

.settings-section-header h2 {
  margin: 0;
  font-size: 13px;
}

.settings-section-header p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.settings-section-body {
  padding: 17px;
}

.settings-section-footer {
  display: flex;
  justify-content: flex-end;
  padding: 11px 17px;
  border-top: 1px solid var(--line);
  background: #fafbfb;
}

.api-key-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
}

.api-key-box code {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--ink-2);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.key-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.key-meta-item {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.key-meta-item span {
  display: block;
  color: var(--muted);
  font-size: 9px;
}

.key-meta-item strong {
  display: block;
  margin-top: 3px;
  font-size: 10px;
}

.webhook-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.webhook-row:last-child {
  border-bottom: 0;
}

.webhook-row strong {
  display: block;
  font-size: 11px;
}

.webhook-row code {
  color: var(--muted);
  font-size: 9px;
}

.toggle {
  width: 35px;
  height: 20px;
  position: relative;
  border-radius: 99px;
  background: var(--line-strong);
  cursor: pointer;
}

.toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.16);
  transition: transform 160ms ease;
}

.toggle.on {
  background: var(--brand);
}

.toggle.on::after {
  transform: translateX(15px);
}

[dir="rtl"] .toggle::after {
  left: auto;
  right: 3px;
}

[dir="rtl"] .toggle.on::after {
  transform: translateX(-15px);
}

.empty-state {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  color: var(--muted);
  text-align: center;
}

.empty-state h3 {
  margin: 10px 0 4px;
  color: var(--ink);
  font-size: 14px;
}

.empty-state p {
  max-width: 310px;
  margin: 0 0 15px;
  font-size: 11px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(10, 20, 33, 0.52);
  backdrop-filter: blur(3px);
  animation: fade-in 140ms ease;
}

.modal {
  width: min(100%, 460px);
  max-height: calc(100vh - 36px);
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: 0 28px 80px rgba(7, 18, 32, 0.28);
  overflow: auto;
  animation: modal-in 180ms ease;
}

.modal-lg {
  width: min(100%, 580px);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.modal-header h2 {
  margin: 0;
  font-size: 17px;
}

.modal-header p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  background: #fafbfb;
}

.amount-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin: 9px 0 16px;
}

.amount-preset {
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.amount-preset:hover,
.amount-preset.active {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
}

.payment-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  margin-top: 15px;
  padding: 12px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 10px;
}

.invoice-box {
  padding: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: #fafbfb;
}

.invoice-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 6px 0;
  color: var(--muted);
  font-size: 11px;
}

.invoice-row strong,
.invoice-row code {
  color: var(--ink);
}

.crypto-address {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding: 9px;
  border-radius: 6px;
  background: var(--surface-2);
}

.crypto-address code {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 800;
  display: grid;
  gap: 8px;
}

[dir="rtl"] .toast-stack {
  right: auto;
  left: 18px;
}

.toast {
  width: min(360px, calc(100vw - 36px));
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  animation: toast-in 200ms ease;
}

.toast-icon {
  width: 27px;
  height: 27px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: var(--success-soft);
  color: var(--success);
}

.toast strong {
  display: block;
  font-size: 11px;
}

.toast span {
  display: block;
  color: var(--muted);
  font-size: 9px;
}

@keyframes fade-in {
  from { opacity: 0; }
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(9px) scale(0.985); }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
}

@media (max-width: 1120px) {
  .public-nav .nav-link:nth-child(4) {
    display: none;
  }

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

  .order-panel {
    position: static;
    grid-column: 1 / -1;
  }

  .order-empty {
    min-height: 150px;
  }

  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .public-nav,
  .header-actions > .btn,
  .header-actions > .language-select {
    display: none;
  }

  .icon-button.mobile-menu-btn {
    display: inline-flex;
  }

  .mobile-menu.open {
    display: grid;
    gap: 4px;
    padding: 10px 20px 16px;
    border-top: 1px solid var(--line);
    background: var(--surface);
  }

  .mobile-menu .nav-link {
    padding: 10px;
  }

  .mobile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 7px;
  }

  .catalog-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-stats {
    width: 100%;
  }

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

  .filter-panel,
  .order-panel {
    position: static;
    width: 100%;
    min-width: 0;
  }

  .service-list {
    width: 100%;
    min-width: 0;
    max-height: none;
    display: flex;
    gap: 6px;
    padding-bottom: 4px;
    overflow-x: auto;
  }

  .service-item {
    width: auto;
    min-width: max-content;
    padding: 5px 9px;
    border: 1px solid var(--line);
  }

  .service-item.active {
    border-color: var(--brand);
    box-shadow: none;
  }

  .service-count {
    display: none;
  }

  .reliability-grid {
    grid-template-columns: 1fr 1fr;
  }

  .reliability-item:nth-child(2) {
    border-right: 0;
  }

  .reliability-item:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .developer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .footer-brand {
    grid-row: span 2;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .coverage-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .dashboard-shell {
    display: block;
  }

  .dash-sidebar {
    transform: translateX(-105%);
    box-shadow: var(--shadow-md);
    transition: transform 180ms ease;
  }

  [dir="rtl"] .dash-sidebar {
    transform: translateX(105%);
  }

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

  .dash-content,
  [dir="rtl"] .dash-content {
    grid-column: auto;
  }

  .icon-button.dash-mobile-menu {
    display: inline-flex;
  }

  .dash-grid,
  .wallet-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .header-inner,
  .container {
    width: min(100% - 28px, var(--content));
  }

  .header-inner {
    height: 58px;
  }

  .catalog-hero {
    padding-top: 25px;
  }

  .catalog-intro h1 {
    font-size: 34px;
  }

  .catalog-intro p {
    font-size: 14px;
  }

  .catalog-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-toolbar .select {
    width: 100%;
  }

  .data-table th:nth-child(3),
  .data-table td:nth-child(3) {
    display: none;
  }

  .reliability-grid,
  .feature-grid,
  .coverage-grid {
    grid-template-columns: 1fr;
  }

  .reliability-item,
  .reliability-item:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  [dir="rtl"] .reliability-item {
    border-left: 0;
  }

  .reliability-item:last-child {
    border-bottom: 0;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    padding: 15px 0;
  }

  .footer-meta {
    flex-wrap: wrap;
  }

  .page-hero {
    padding: 42px 0 32px;
  }

  .page-section {
    padding: 34px 0;
  }

  .faq-layout,
  .legal-layout,
  .api-layout,
  .settings-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .settings-layout > *,
  .settings-nav {
    min-width: 0;
  }

  .faq-nav,
  .legal-nav,
  .api-sidebar {
    position: static;
  }

  .faq-nav {
    display: flex;
    overflow-x: auto;
  }

  .faq-nav button {
    width: auto;
    min-width: max-content;
  }

  .legal-nav,
  .api-sidebar {
    display: none;
  }

  .api-docs {
    padding: 19px;
  }

  .auth-page {
    display: block;
  }

  .auth-side {
    min-height: auto;
    padding: 22px;
  }

  .auth-quote {
    display: none;
  }

  .auth-main {
    padding: 38px 20px;
  }

  .dash-topbar {
    padding: 0 14px;
  }

  .dash-topbar .language-select {
    display: none;
  }

  .user-button strong,
  .user-button > .icon {
    display: none;
  }

  .dash-page {
    width: calc(100% - 28px);
    padding-top: 22px;
  }

  .dash-page-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-button-row {
    width: 100%;
  }

  .header-button-row .btn {
    flex: 1;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

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

  .orders-toolbar .input-wrap {
    max-width: none;
  }

  .wallet-stat-grid,
  .quick-actions,
  .key-meta {
    grid-template-columns: 1fr;
  }

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

  .amount-presets {
    grid-template-columns: 1fr 1fr;
  }

  .modal-footer {
    flex-direction: column-reverse;
  }

  .modal-footer .btn {
    width: 100%;
  }
}

@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;
  }
}
