:root {
  color-scheme: dark;
  --bg-deep: #020203;
  --bg-base: #050506;
  --bg-elevated: #0a0a0c;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-hover: rgba(255, 255, 255, 0.085);
  --text: #ededf0;
  --muted: #8a8f98;
  --subtle: rgba(255, 255, 255, 0.62);
  --accent: #5e6ad2;
  --accent-bright: #707ae6;
  --success: #55d68b;
  --warning: #f4bf75;
  --danger: #ff6b7a;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.12);
  --shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 20px 70px rgba(0, 0, 0, 0.42), 0 0 80px rgba(94, 106, 210, 0.08);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(ellipse at top, #111124 0%, var(--bg-base) 52%, var(--bg-deep) 100%);
  color: var(--text);
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  overflow-x: hidden;
}

button,
input,
select {
  font: inherit;
}

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

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

svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

td {
  color: var(--subtle);
  font-size: 14px;
}

:focus-visible {
  outline: 2px solid rgba(112, 122, 230, 0.9);
  outline-offset: 3px;
}

.icon-sprite {
  display: none;
}

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

.ambient,
.noise,
.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.ambient {
  z-index: -3;
  background:
    radial-gradient(70% 55% at 50% -10%, rgba(94, 106, 210, 0.27), transparent 64%),
    radial-gradient(40% 44% at 10% 25%, rgba(141, 92, 210, 0.14), transparent 70%),
    radial-gradient(42% 38% at 92% 36%, rgba(54, 105, 202, 0.12), transparent 68%),
    linear-gradient(180deg, transparent 0%, rgba(94, 106, 210, 0.08) 78%, transparent 100%);
  animation: ambient-shift 10s var(--ease) infinite alternate;
}

.noise {
  z-index: -2;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

.grid-overlay {
  z-index: -1;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px 32px;
  border-bottom: 1px solid var(--border);
  background: rgba(5, 5, 6, 0.76);
  backdrop-filter: blur(22px);
}

.topbar > *,
.hero > *,
.landing-hero > *,
.data-grid > *,
.api-panel > *,
.offer-row > * {
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  min-width: 0;
}

.brand-mark {
  display: block;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 12px;
  filter: drop-shadow(0 0 14px rgba(94, 106, 210, 0.24));
  line-height: 0;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.auth-home-link {
  width: fit-content;
}

.auth-back-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  transition: transform 180ms var(--ease), background 180ms var(--ease), color 180ms var(--ease);
}

.auth-back-icon svg {
  width: 16px;
  height: 16px;
}

.auth-home-link:hover .auth-back-icon {
  transform: translateX(-2px);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.button,
.icon-button {
  min-height: 44px;
  cursor: pointer;
  transition: transform 220ms var(--ease), background 220ms var(--ease), border-color 220ms var(--ease), box-shadow 220ms var(--ease), color 220ms var(--ease), opacity 220ms var(--ease);
}

.top-actions,
.hero-actions,
.order-actions,
.panel-title,
.section-heading {
  display: flex;
  align-items: center;
}

.top-actions,
.hero-actions,
.order-actions {
  gap: 10px;
}

.top-actions {
  justify-content: flex-end;
}

.risk-badge,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(94, 106, 210, 0.26);
  border-radius: 999px;
  color: var(--subtle);
  background: rgba(94, 106, 210, 0.08);
  font-size: 12px;
  white-space: nowrap;
}

.risk-badge span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 16px rgba(85, 214, 139, 0.8);
}

.button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  color: var(--text);
  font-weight: 650;
}

.button {
  padding: 0 16px;
  font-size: 14px;
}

.button svg {
  width: 17px;
  height: 17px;
}

.button.primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 0 0 1px rgba(94, 106, 210, 0.5), 0 8px 20px rgba(94, 106, 210, 0.35), inset 0 1px rgba(255, 255, 255, 0.2);
}

.button.primary:hover {
  background: var(--accent-bright);
  box-shadow: 0 0 0 1px rgba(112, 122, 230, 0.6), 0 12px 28px rgba(94, 106, 210, 0.42), inset 0 1px rgba(255, 255, 255, 0.22);
}

.button.secondary,
.button.ghost,
.icon-button {
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.button.secondary:hover,
.button.ghost:hover,
.icon-button:hover {
  background: rgba(255, 255, 255, 0.085);
}

.button.danger {
  background: rgba(255, 107, 122, 0.12);
  color: #ffd9dd;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 0 0 1px rgba(255, 107, 122, 0.24);
}

.button:active,
.icon-button:active {
  transform: scale(0.98);
}

.button:disabled,
.icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.button.full {
  width: 100%;
}

.icon-button {
  width: 44px;
  padding: 0;
}

.app-body {
  min-height: 100dvh;
}

.auth-body {
  min-height: 100dvh;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(360px, 460px) minmax(0, 520px);
  align-items: stretch;
  justify-content: center;
  gap: 18px;
  width: min(100% - 40px, 1040px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 52px 0;
}

.auth-card,
.auth-side {
  padding: 28px;
}

.auth-card {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.auth-view {
  display: grid;
  gap: 24px;
}

.auth-copy h1 {
  margin-bottom: 12px;
  font-size: 44px;
}

.auth-copy p:last-child,
.auth-side p {
  margin-bottom: 0;
  color: var(--muted);
}

.auth-form {
  display: grid;
  gap: 16px;
}

.passkey-login {
  display: grid;
  gap: 14px;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

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

.auth-check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--subtle);
  font-size: 13px;
}

.auth-check input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  accent-color: var(--accent-bright);
}

.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
}

.auth-links a:hover {
  color: var(--text);
}

.auth-side {
  position: sticky;
  top: 0;
  display: grid;
  align-self: start;
  align-content: start;
  gap: 28px;
}

.auth-side svg {
  width: 30px;
  height: 30px;
  margin-bottom: 24px;
  color: #a7adff;
}

.auth-points {
  display: grid;
  gap: 10px;
}

.auth-points span {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.auth-points strong,
.auth-points small {
  display: block;
}

.auth-points small {
  color: var(--muted);
}

.app-frame {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100dvh;
}

.app-sidebar {
  position: sticky;
  top: 0;
  z-index: 25;
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100dvh;
  padding: 22px;
  border-right: 1px solid var(--border);
  background: rgba(5, 5, 8, 0.78);
  backdrop-filter: blur(22px);
}

.app-brand {
  min-height: 54px;
}

.side-nav {
  display: grid;
  gap: 8px;
}

.side-nav a {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px 12px;
  min-height: 70px;
  padding: 13px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--muted);
  transition: background 220ms var(--ease), border-color 220ms var(--ease), color 220ms var(--ease), transform 220ms var(--ease);
}

.side-nav a:hover,
.side-nav a.active {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.side-nav a:active {
  transform: scale(0.99);
}

.side-nav svg {
  grid-row: span 2;
  margin-top: 2px;
  color: #a7adff;
}

.side-nav span {
  font-weight: 700;
}

.side-nav small {
  color: var(--muted);
  font-size: 12px;
}

.app-main {
  min-width: 0;
  padding: 34px;
}

.app-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.app-header h1 {
  margin-bottom: 10px;
  font-size: 38px;
}

.app-header p:last-child {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
}

.app-header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.app-view {
  display: none;
}

.app-view.active {
  display: block;
}

.metrics.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 18px;
}

.app-menu-button,
.sidebar-scrim {
  display: none;
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 80px;
}

.panel,
.metric-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025));
  box-shadow: var(--shadow);
}

.spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(280px circle at var(--x, 50%) var(--y, 50%), rgba(94, 106, 210, 0.16), transparent 58%);
  transition: opacity 220ms var(--ease);
}

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

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
  min-height: 440px;
  padding: 42px;
}

.landing-shell {
  padding-bottom: 96px;
}

.landing-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 38px;
  align-items: center;
  min-height: 520px;
  padding: 48px;
}

.landing-hero h1 {
  font-size: 50px;
}

.landing-service-strip {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.landing-service-strip > span {
  color: var(--muted);
  font-size: 12px;
}

.landing-service-logos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 18px;
  margin-top: 14px;
}

.landing-service-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: var(--subtle);
  font-size: 13px;
}

.landing-service-logo img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.landing-preview {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(6, 6, 9, 0.7);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 30px 80px rgba(0, 0, 0, 0.38);
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
}

.preview-grid div {
  min-height: 128px;
  padding: 22px;
  background: rgba(12, 12, 16, 0.96);
}

.preview-grid small,
.api-list code {
  color: var(--muted);
}

.preview-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
}

.landing-board {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.board-head,
.board-row,
.board-status {
  display: grid;
  grid-template-columns: 1fr 0.8fr 0.7fr;
  align-items: center;
  gap: 12px;
}

.board-head,
.board-status {
  color: var(--muted);
  font-size: 12px;
}

.board-row {
  min-height: 58px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.board-service {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.board-service img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.board-service span {
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-row.active {
  border-color: rgba(94, 106, 210, 0.42);
  background: rgba(94, 106, 210, 0.12);
}

.board-row span {
  color: var(--muted);
}

.board-row em {
  color: var(--text);
  font-style: normal;
  font-weight: 800;
}

.board-status {
  grid-template-columns: 1fr auto;
  padding: 4px 2px 0;
}

.board-status strong {
  color: var(--subtle);
  font-weight: 700;
}

.landing-section {
  scroll-margin-top: 86px;
  padding: 44px 0;
  border-top: 1px solid var(--border);
}

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

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

.feature-card,
.split-panel .panel,
.api-panel {
  padding: 24px;
}

.feature-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.022));
  box-shadow: var(--shadow);
}

.feature-card svg {
  width: 24px;
  height: 24px;
  margin-bottom: 28px;
  color: #a7adff;
}

.feature-card p,
.split-panel p,
.api-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.api-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: center;
}

.api-list {
  display: grid;
  gap: 10px;
}

.api-list code {
  display: block;
  min-height: 44px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #a7adff;
  font-size: 12px;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 650px;
  margin-bottom: 18px;
  font-size: 56px;
  line-height: 1.04;
  font-weight: 720;
  letter-spacing: 0;
  background: linear-gradient(180deg, white 0%, #ededf0 58%, rgba(237, 237, 240, 0.68) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  overflow-wrap: anywhere;
  word-break: break-word;
}

h2 {
  margin-bottom: 0;
  font-size: 30px;
  line-height: 1.18;
}

h3 {
  margin-bottom: 0;
  font-size: 18px;
}

.hero-copy {
  max-width: 650px;
  color: var(--muted);
  font-size: 18px;
}

.hero-console {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(6, 6, 9, 0.68);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 30px 80px rgba(0, 0, 0, 0.38);
}

.console-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
}

.console-bar span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}

.console-bar strong {
  margin-left: 8px;
  font-weight: 600;
}

.state-flow {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 22px;
  list-style: none;
}

.state-flow li {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
}

.state-flow li.done {
  color: #b8f7cf;
  border-color: rgba(85, 214, 139, 0.22);
}

.state-flow li.active {
  color: white;
  border-color: rgba(94, 106, 210, 0.45);
  box-shadow: 0 0 28px rgba(94, 106, 210, 0.18);
}

.code-lines {
  padding: 0 22px 22px;
}

.code-lines p {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  color: var(--subtle);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.code-lines span {
  color: var(--muted);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 18px 0 58px;
}

.metric-card {
  display: grid;
  gap: 6px;
  min-height: 132px;
  padding: 22px;
}

.metric-card span,
.sms-box span {
  color: var(--muted);
  font-size: 13px;
}

.metric-card strong {
  font-size: 28px;
  line-height: 1.1;
}

.metric-card small,
.form-note,
.sms-box p {
  color: var(--muted);
  font-size: 13px;
}

.workspace {
  scroll-margin-top: 86px;
  padding: 34px 0;
  border-top: 1px solid var(--border);
}

.section-heading {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.market-panel {
  padding: 24px;
}

.market-legend,
.offer-row {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.7fr 0.7fr auto;
  align-items: center;
  gap: 14px;
}

.market-legend {
  position: relative;
  z-index: 1;
  padding: 0 14px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.offer-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
}

.offer-row {
  width: 100%;
  min-height: 68px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  text-align: left;
}

.offer-row:hover {
  border-color: rgba(112, 122, 230, 0.34);
  background: rgba(255, 255, 255, 0.06);
}

.offer-service {
  display: flex;
  align-items: center;
  gap: 12px;
}

.offer-logo {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(94, 106, 210, 0.3);
  border-radius: 10px;
  background: rgba(94, 106, 210, 0.12);
  color: #c6caff;
  font-size: 12px;
  font-weight: 800;
}

.offer-logo img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.offer-service strong,
.offer-service small {
  display: block;
}

.offer-service small,
.offer-country,
.offer-stock {
  color: var(--muted);
  font-size: 13px;
}

.offer-price {
  font-size: 18px;
}

.offer-action {
  justify-self: end;
  min-width: 64px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(94, 106, 210, 0.16);
  color: #dce0ff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.data-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 18px;
}

.profile-panel,
.profile-summary,
.current-order,
.table-panel {
  padding: 24px;
}

.profile-summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.profile-summary p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.profile-avatar {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  border: 1px solid rgba(94, 106, 210, 0.4);
  border-radius: 18px;
  background: rgba(94, 106, 210, 0.14);
  color: #dce0ff;
  font-size: 20px;
  font-weight: 800;
}

.profile-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

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

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

.profile-list,
.toggle-row {
  position: relative;
  z-index: 1;
}

.profile-list {
  display: grid;
  gap: 10px;
}

.profile-list span,
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.profile-list strong,
.profile-list small,
.toggle-row strong,
.toggle-row small {
  display: block;
}

.profile-list small,
.toggle-row small {
  color: var(--muted);
  font-size: 12px;
}

.profile-list small {
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: right;
}

.profile-list + .button.full {
  margin-top: 16px;
}

.toggle-row {
  margin-bottom: 10px;
  color: var(--text);
}

.toggle-row input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  flex: 0 0 auto;
  accent-color: var(--accent-bright);
}

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

.field[hidden] {
  display: none;
}

.field label {
  color: var(--subtle);
  font-size: 13px;
  font-weight: 650;
}

input,
select {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: #0f0f12;
  color: var(--text);
}

input:focus,
select:focus {
  border-color: rgba(94, 106, 210, 0.8);
  box-shadow: 0 0 0 4px rgba(94, 106, 210, 0.16);
  outline: 0;
}

.form-note {
  margin: 14px 0 0;
}

.workbench-empty {
  display: grid;
  min-height: 480px;
  place-items: center;
  align-content: center;
  padding: 48px 24px;
  text-align: center;
}

.workbench-empty[hidden],
.workbench-content[hidden] {
  display: none;
}

.workbench-empty > p:not(.eyebrow) {
  max-width: 420px;
  margin: 8px auto 22px;
  color: var(--muted);
}

.empty-state-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  place-items: center;
  border: 1px solid rgba(94, 106, 210, 0.32);
  border-radius: 8px;
  color: #cdd1ff;
  background: rgba(94, 106, 210, 0.1);
}

.empty-state-icon svg {
  width: 24px;
  height: 24px;
}

.workbench-content {
  display: grid;
  gap: 18px;
}

.panel-title {
  position: relative;
  z-index: 1;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.phone-box,
.sms-box {
  position: relative;
  z-index: 1;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.phone-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 14px;
  padding: 18px;
}

.phone-box span {
  color: var(--text);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 26px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.sms-box {
  display: grid;
  gap: 7px;
  min-height: 112px;
  margin-top: 14px;
  padding: 18px;
}

.sms-box strong {
  color: white;
  font-size: 24px;
}

.sms-box p {
  margin-bottom: 0;
}

.timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.timeline span {
  display: grid;
  width: 44px;
  height: 44px;
  min-height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.timeline svg {
  width: 18px;
  height: 18px;
}

.timeline span.active,
.timeline span.done {
  color: white;
  border-color: rgba(94, 106, 210, 0.42);
  background: rgba(94, 106, 210, 0.12);
}

.timeline span.done {
  color: #b8f7cf;
  border-color: rgba(85, 214, 139, 0.25);
  background: rgba(85, 214, 139, 0.08);
}

.table-panel {
  min-width: 0;
}

.table-wrap {
  position: relative;
  z-index: 1;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.table-wrap table {
  min-width: 620px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
}

.tag.success {
  color: #b8f7cf;
  border-color: rgba(85, 214, 139, 0.24);
}

.tag.warning {
  color: #ffe0b0;
  border-color: rgba(244, 191, 117, 0.24);
}

.tag.danger {
  color: #ffd9dd;
  border-color: rgba(255, 107, 122, 0.24);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  max-width: min(360px, calc(100vw - 44px));
  padding: 14px 16px;
  border: 1px solid rgba(94, 106, 210, 0.36);
  border-radius: 12px;
  background: rgba(11, 12, 18, 0.92);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42), 0 0 50px rgba(94, 106, 210, 0.14);
  color: var(--text);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 220ms var(--ease), transform 220ms var(--ease);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes ambient-shift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(0, -18px, 0) scale(1.03);
  }
}

.landing-offers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.landing-offers > .state-inline {
  grid-column: 1 / -1;
}

.landing-offer {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  min-height: 78px;
  padding: 14px 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  transition: background 180ms var(--ease), border-color 180ms var(--ease), transform 180ms var(--ease);
}

.landing-offer:hover {
  border-color: rgba(94, 106, 210, 0.36);
  background: rgba(255, 255, 255, 0.065);
  transform: translateY(-1px);
}

.landing-offer strong,
.landing-offer small {
  display: block;
}

.landing-offer small,
.landing-offer-stock {
  color: var(--muted);
  font-size: 12px;
}

.landing-offer > strong:last-child {
  color: #f5f5f7;
  white-space: nowrap;
}

.landing-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 28px 0 0;
  padding: 0;
  border-block: 1px solid var(--border);
  list-style: none;
}

.landing-steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  padding: 26px 24px;
  border-left: 1px solid var(--border);
}

.landing-steps li:first-child {
  border-left: 0;
}

.step-index {
  color: #a7adff;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
}

.landing-steps p,
.landing-access-copy > p {
  margin: 10px 0 0;
  color: var(--muted);
}

.landing-access-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 44px;
}

.landing-access-list {
  display: grid;
  margin: 24px 0 28px;
  border-top: 1px solid var(--border);
}

.landing-access-list > span {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}

.landing-access-list svg {
  width: 20px;
  height: 20px;
  color: #a7adff;
}

.landing-access-list strong,
.landing-access-list small {
  display: block;
}

.landing-access-list small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.api-code-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: #09090c;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06), 0 26px 70px rgba(0, 0, 0, 0.34);
}

.api-code-panel pre {
  margin: 0;
  padding: 24px;
  overflow-x: auto;
}

.api-code-panel code {
  color: #d9dcf6;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  line-height: 1.75;
  white-space: pre;
}

.section-heading > div > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.landing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(100% - 40px, 1180px);
  margin: 64px auto 0;
  padding: 24px 0 34px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
}

.landing-footer-copy {
  display: grid;
  gap: 4px;
}

.landing-footer-copy strong {
  color: var(--subtle);
  font-size: 13px;
}

.landing-footer-nav {
  display: flex;
  gap: 24px;
}

.landing-footer-nav a:hover,
.info-nav a:hover {
  color: var(--text);
}

.info-body {
  min-height: 100dvh;
}

.info-shell {
  padding-top: 72px;
  padding-bottom: 80px;
}

.info-heading {
  max-width: 760px;
  margin-bottom: 44px;
}

.info-heading h1 {
  font-size: 50px;
}

.info-heading > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
}

.info-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 56px;
  border-top: 1px solid var(--border);
}

.info-nav {
  position: sticky;
  top: 92px;
  display: grid;
  align-self: start;
  padding-top: 20px;
}

.info-nav a {
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.info-nav a.active {
  color: var(--text);
  font-weight: 700;
}

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

.info-content section {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.info-content h2 {
  margin-bottom: 12px;
  font-size: 24px;
}

.info-content p,
.info-content li {
  color: var(--muted);
  line-height: 1.8;
}

.info-content p:last-child {
  margin-bottom: 0;
}

.info-content ul {
  margin: 16px 0 0;
  padding-left: 20px;
}

.info-content li + li {
  margin-top: 8px;
}

.auth-view[hidden],
.state-panel[hidden] {
  display: none;
}

.form-message {
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 107, 122, 0.28);
  border-radius: 8px;
  background: rgba(255, 107, 122, 0.1);
  color: #ffd9dd;
  font-size: 13px;
}

.form-message.success {
  border-color: rgba(85, 214, 139, 0.28);
  background: rgba(85, 214, 139, 0.1);
  color: #c9f8dc;
}

.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.text-button:hover {
  color: var(--text);
}

.text-button.align-left {
  justify-self: start;
}

.auth-market {
  display: grid;
  gap: 10px;
}

.auth-offer {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--border);
}

.auth-service-logo {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #cdd1ff;
  font-size: 11px;
  font-weight: 800;
}

.auth-service-logo img {
  width: 21px;
  height: 21px;
  object-fit: contain;
}

.auth-service-copy strong,
.auth-service-copy small {
  display: block;
}

.auth-service-copy small {
  color: var(--muted);
}

.auth-offer em {
  color: var(--success);
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
}

.market-tools {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 150px 150px auto 44px;
  align-items: center;
  gap: 10px;
  margin: 20px 0 14px;
}

.search-field {
  position: relative;
  display: block;
}

.search-field svg {
  position: absolute;
  top: 50%;
  left: 14px;
  z-index: 2;
  width: 16px;
  height: 16px;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.search-field input {
  width: 100%;
  padding-left: 40px;
}

.stock-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--subtle);
  font-size: 13px;
  white-space: nowrap;
}

.stock-toggle input {
  width: 16px;
  height: 16px;
  min-height: 16px;
  padding: 0;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--accent-bright);
}

.stock-toggle input:focus {
  box-shadow: none;
}

.offer-row:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.offer-row:disabled:hover {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.025);
}

.offer-stock.out {
  color: var(--warning);
}

.profile-panel.wide {
  grid-column: 1 / -1;
}

.profile-panel > .button.full + .button.full,
.profile-panel > .button.full + .profile-list {
  margin-top: 12px;
}

.security-actions {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.api-create-row,
.webhook-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.key-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.key-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.key-row strong,
.key-row small {
  display: block;
}

.key-row small,
.key-last-used,
.state-inline {
  color: var(--muted);
  font-size: 12px;
}

.key-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(94, 106, 210, 0.24);
  border-radius: 8px;
  color: #cdd1ff;
  background: rgba(94, 106, 210, 0.1);
}

.state-inline {
  padding: 16px;
  border: 1px dashed var(--border-strong);
  border-radius: 8px;
  text-align: center;
}

.order-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.active-order-tabs {
  display: flex;
  gap: 8px;
  margin: 14px 0;
  overflow-x: auto;
}

.active-order-tabs[hidden] {
  display: none;
}

.active-order-tabs button {
  flex: 0 0 auto;
  min-width: 116px;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}

.active-order-tabs button.active {
  border-color: rgba(94, 106, 210, 0.42);
  background: rgba(94, 106, 210, 0.12);
  color: var(--text);
}

.active-order-tabs strong,
.active-order-tabs small {
  display: block;
}

.active-order-tabs small {
  font-size: 11px;
}

.order-meta strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.filter-bar input,
.filter-bar select {
  min-width: 170px;
}

.view-tabs {
  display: inline-flex;
  gap: 4px;
  margin: 0 0 16px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.view-tabs button {
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.view-tabs button.active {
  background: rgba(94, 106, 210, 0.16);
  color: var(--text);
}

.wallet-pane[hidden],
.recharge-method[hidden],
.payment-qr-card[hidden] {
  display: none;
}

.load-more {
  display: flex;
  margin: 18px auto 0;
}

.dialog-tabs {
  width: 100%;
  margin-top: 20px;
}

.dialog-tabs button {
  flex: 1;
}

.payment-qr-card {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.payment-qr {
  position: relative;
  display: grid;
  width: 168px;
  aspect-ratio: 1;
  place-items: center;
  border: 12px solid white;
  border-radius: 4px;
  background: repeating-conic-gradient(#111218 0 25%, #fff 0 50%) 0 0 / 14px 14px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.32);
}

.payment-qr::before,
.payment-qr::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  border: 8px solid #111218;
  background: white;
}

.payment-qr::before { top: 8px; left: 8px; }
.payment-qr::after { top: 8px; right: 8px; }

.payment-qr img {
  position: relative;
  z-index: 1;
  padding: 5px;
  border-radius: 7px;
  background: white;
}

.payment-qr-card > div:last-child {
  display: grid;
  justify-items: start;
  gap: 9px;
}

.payment-qr-card small {
  color: var(--muted);
}

.payment-qr-card strong {
  font-size: 28px;
}

.table-action {
  width: 36px;
  min-height: 36px;
}

.ledger-note {
  color: var(--warning);
}

.state-panel {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 34px 18px;
  color: var(--muted);
  text-align: center;
}

.state-panel svg {
  width: 24px;
  height: 24px;
  color: var(--accent-bright);
}

.state-panel strong {
  color: var(--text);
}

.state-panel span {
  font-size: 13px;
}

.state-panel.error svg {
  color: var(--danger);
}

.skeleton-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 0.7fr;
  gap: 12px;
  min-height: 68px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.skeleton-row span {
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(255,255,255,0.035), rgba(255,255,255,0.09), rgba(255,255,255,0.035));
  background-size: 220% 100%;
  animation: skeleton-shift 1.2s linear infinite;
}

.icon-button.is-loading svg {
  animation: spin 800ms linear infinite;
}

.app-dialog {
  width: min(560px, calc(100% - 28px));
  padding: 26px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: #0b0b0e;
  color: var(--text);
  box-shadow: var(--shadow);
}

.app-dialog::backdrop {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.app-dialog > div > p:last-child {
  color: var(--muted);
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
}

.dialog-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.recovery-codes {
  margin: 22px 0;
  padding: 18px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: #08080b;
  color: #dce0ff;
  font-family: "SFMono-Regular", Consolas, monospace;
  line-height: 1.8;
  text-align: center;
  white-space: pre-line;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--border);
}

.detail-grid span {
  min-width: 0;
  padding: 14px;
  background: #0f0f12;
}

.detail-grid small,
.detail-grid strong {
  display: block;
}

.detail-grid small {
  margin-bottom: 4px;
  color: var(--muted);
}

.detail-grid strong {
  overflow-wrap: anywhere;
}

@keyframes skeleton-shift {
  to { background-position: -220% 0; }
}

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

@media (max-width: 980px) {
  .auth-side {
    position: static;
  }

  .app-body::before {
    content: "";
    position: fixed;
    inset: 0 0 auto;
    z-index: 40;
    height: 62px;
    border-bottom: 1px solid var(--border);
    background: rgba(5, 5, 6, 0.9);
    backdrop-filter: blur(18px);
  }

  .app-body::after {
    content: "SMS Panel";
    position: fixed;
    top: 18px;
    left: 20px;
    z-index: 44;
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    pointer-events: none;
  }

  .app-frame {
    display: block;
  }

  .app-menu-button {
    position: fixed;
    top: 9px;
    right: 16px;
    z-index: 45;
    display: inline-flex;
  }

  .app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(310px, calc(100vw - 56px));
    transform: translateX(-105%);
    transition: transform 240ms var(--ease);
  }

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

  .sidebar-scrim {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: block;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
  }

  .sidebar-scrim[hidden] {
    display: none;
  }

  .app-main {
    padding: 76px 20px 34px;
  }

  .app-header,
  .app-header-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    grid-template-columns: 1fr auto;
    padding: 12px 20px;
  }

  .hero,
  .landing-hero,
  .data-grid,
  .api-panel,
  .auth-shell,
  .profile-summary,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .metrics,
  .metrics.compact,
  .feature-grid,
  .split-panel {
    grid-template-columns: repeat(2, 1fr);
  }

  h1 {
    font-size: 42px;
  }

  .landing-hero h1 {
    font-size: 46px;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 28px, 1180px);
    padding-top: 28px;
  }

  .app-main {
    padding-inline: 14px;
  }

  .app-header h1 {
    font-size: 32px;
  }

  .hero,
  .landing-hero,
  .market-panel,
  .auth-card,
  .auth-side,
  .profile-panel,
  .profile-summary,
  .current-order,
  .table-panel,
  .feature-card,
  .split-panel .panel,
  .api-panel {
    padding: 18px;
  }

  h1 {
    font-size: 34px;
  }

  .landing-hero h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 25px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .landing-preview {
    display: none;
  }

  .hero-actions,
  .order-actions,
  .section-heading,
  .profile-summary,
  .profile-badges {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .metrics,
  .metrics.compact,
  .feature-grid,
  .split-panel,
  .preview-grid,
  .board-head,
  .board-row,
  .board-status {
    grid-template-columns: 1fr;
  }

  .phone-box span {
    font-size: 20px;
  }

  .market-legend {
    display: none;
  }

  .offer-row {
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 8px 12px;
    padding: 14px;
  }

  .offer-country,
  .offer-price,
  .offer-stock {
    grid-column: 1;
  }

  .offer-action {
    grid-column: 2;
    grid-row: 1 / span 4;
    align-self: center;
  }
}

@media (max-width: 980px) {
  .profile-panel.wide {
    grid-column: auto;
  }

  .info-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .info-nav {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding-top: 0;
  }

  .landing-offers {
    grid-template-columns: 1fr;
  }

  .landing-steps,
  .landing-access-grid {
    grid-template-columns: 1fr;
  }

  .landing-steps li {
    padding-inline: 0;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .landing-steps li:first-child {
    border-top: 0;
  }

  .market-tools {
    grid-template-columns: minmax(200px, 1fr) repeat(2, minmax(130px, auto));
  }

  .market-tools .stock-toggle {
    grid-column: 1 / 3;
  }
}

@media (max-width: 620px) {
  .topbar {
    gap: 12px;
    padding-inline: 14px;
  }

  .top-actions .button {
    width: auto;
    white-space: nowrap;
  }

  .top-actions .button.secondary {
    display: none;
  }

  .landing-offer {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .landing-offer-stock {
    display: none;
  }

  .landing-footer {
    align-items: stretch;
    flex-direction: column;
  }

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

  .info-heading {
    margin-bottom: 32px;
  }

  .info-heading h1 {
    font-size: 34px;
  }

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

  .api-code-panel pre {
    padding: 18px;
  }

  .api-code-panel code {
    font-size: 12px;
  }

  .market-tools,
  .api-create-row,
  .webhook-row,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .market-tools .stock-toggle {
    grid-column: auto;
  }

  .market-tools .icon-button {
    width: 100%;
  }

  .filter-bar {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .filter-bar input,
  .filter-bar select {
    min-width: 0;
    width: 100%;
  }

  .key-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .key-last-used {
    display: none;
  }

  .view-tabs {
    display: flex;
    width: 100%;
  }

  .view-tabs button {
    flex: 1;
    padding-inline: 10px;
  }

  .payment-qr-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .payment-qr-card > div:last-child {
    justify-items: center;
  }
}

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