:root {
  --bg: #98d5fb;
  --pattern: rgba(38, 129, 190, 0.22);
  --card: rgba(255, 255, 255, 0.86);
  --card-solid: #ffffff;
  --text: #111827;
  --muted: #7b8794;
  --field: #eef3f6;
  --blue: #79b8f3;
  --blue-strong: #2196df;
  --line: #dce7ef;
  --warning: #fff4d8;
  --warning-line: #edc96b;
  --danger: #d93f3f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20px 20px, transparent 0 14px, var(--pattern) 15px 16px, transparent 17px),
    radial-gradient(circle at 68px 60px, transparent 0 18px, var(--pattern) 19px 20px, transparent 21px),
    linear-gradient(135deg, #86ccfb, #d9f7f0);
  background-size: 96px 96px, 120px 120px, auto;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.login-card {
  width: min(460px, 100%);
  min-height: 560px;
  padding: 74px 54px 38px;
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 24px 70px rgba(36, 77, 105, 0.22);
  backdrop-filter: blur(20px);
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 58px;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px 14px 14px 14px;
  background:
    radial-gradient(circle at 36% 38%, #ffffff 0 25%, transparent 26%),
    conic-gradient(from 230deg, #5ee2ff, #2e8df0, #6d38db, #2e8df0, #5ee2ff);
}

.form,
.success {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}

.copy {
  text-align: center;
}

h1 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: 0;
}

p {
  margin: 0;
}

.copy p,
.hint {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.compact-hint {
  text-align: center;
  font-size: 12px;
}

.phone-field {
  min-height: 48px;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--field);
}

.twofa {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #4b5563;
  font-size: 12px;
  font-weight: 700;
}

.twofa input {
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--field);
}

.phone-field:focus-within {
  border-color: var(--blue-strong);
  box-shadow: 0 0 0 4px rgba(33, 150, 223, 0.14);
}

.flag,
.country {
  font-size: 14px;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 44px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.warning {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--warning-line);
  border-radius: 10px;
  background: var(--warning);
  font-size: 12px;
  line-height: 1.35;
}

.warning strong {
  font-size: 13px;
}

.warning.compact {
  margin-top: 4px;
}

.consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  color: #4b5563;
  font-size: 12px;
  line-height: 1.35;
}

.consent input {
  min-height: 18px;
  margin: 0;
  accent-color: var(--blue-strong);
}

.primary,
.secondary,
.back {
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  font-weight: 800;
}

.primary {
  color: white;
  background: var(--blue);
}

.primary:hover {
  background: var(--blue-strong);
}

.secondary,
.back {
  color: var(--blue-strong);
  background: transparent;
}

.back {
  align-self: flex-start;
  min-height: 32px;
  padding: 0;
}

.links {
  display: grid;
  gap: 18px;
  margin-top: 4px;
  justify-items: center;
}

.links button {
  border: 0;
  color: #258cca;
  background: transparent;
  font-weight: 800;
}

.code-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin: 8px 0;
}

.code-input {
  height: 60px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--field);
  text-align: center;
  font-size: 28px;
  font-weight: 900;
}

.error {
  min-height: 17px;
  color: var(--danger);
  text-align: center;
  font-size: 12px;
  line-height: 1.35;
}

.success {
  align-items: center;
  text-align: center;
}

.success-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: #25b76b;
  font-size: 34px;
  font-weight: 900;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: min(420px, calc(100% - 28px));
  padding: 12px 14px;
  border-radius: 12px;
  color: white;
  background: #17212b;
  text-align: center;
  font-weight: 700;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.2);
}

.hidden {
  display: none !important;
}

.admin-card {
  min-height: 0;
}

.admin-brand {
  margin-bottom: 34px;
}

.admin-current {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--field);
  word-break: break-all;
}

.admin-current span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

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

.domain-form input {
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--field);
}

.domain-form .primary {
  padding: 0 16px;
}

.domain-list {
  display: grid;
  gap: 8px;
}

.domain-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.56);
  word-break: break-all;
}

.domain-row button {
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  padding: 0 10px;
  color: #1788cf;
  background: #e6f3ff;
  font-weight: 800;
}

.domain-row button:disabled {
  color: #7b8794;
  background: #eef3f6;
  cursor: default;
}

.webapp-body {
  min-height: 100vh;
  background: var(--card-solid);
}

.webapp-page {
  min-height: 100vh;
  padding: 18px;
  background:
    radial-gradient(circle at 18px 18px, transparent 0 13px, rgba(38, 129, 190, 0.14) 14px 15px, transparent 16px),
    linear-gradient(135deg, #eaf7ff, #f7fbf8);
  background-size: 88px 88px, auto;
}

.webapp-shell {
  width: min(520px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.webapp-brand {
  margin: 16px 0 18px;
}

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

.metric-card,
.webapp-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.metric-card {
  min-height: 86px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 14px;
}

.metric-card span,
.muted-line,
.account-row span {
  color: var(--muted);
  font-size: 12px;
}

.metric-card strong {
  font-size: 30px;
  line-height: 1;
}

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

.webapp-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-head h1 {
  margin: 0;
  font-size: 16px;
}

.small-button {
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  color: #1788cf;
  background: #e6f3ff;
  font-weight: 800;
}

.account-list {
  display: grid;
  gap: 8px;
}

.account-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid #e7eef4;
  border-radius: 8px;
  background: #f8fbfd;
}

.account-row div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.account-row strong,
.account-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-row b {
  color: #25a763;
  font-size: 12px;
}

.empty-state {
  padding: 18px 10px;
  color: var(--muted);
  text-align: center;
  font-weight: 700;
}

.export-button {
  width: 100%;
}

.export-button:disabled,
.small-button:disabled {
  opacity: 0.58;
  cursor: default;
}

.webapp-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.tab-button {
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  color: #4b5563;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
}

.tab-button.active {
  color: #0f75b8;
  background: #e6f3ff;
}

.link-box,
.qr-command {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfd;
  color: #344054;
  font-size: 12px;
  line-height: 1.35;
  word-break: break-all;
  white-space: pre-wrap;
}

.link-open {
  min-height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: white;
  text-decoration: none;
  font-weight: 800;
}

.row-button {
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  padding: 0 10px;
  color: #1788cf;
  background: #e6f3ff;
  font-size: 12px;
  font-weight: 800;
}

.row-button:disabled {
  color: #25a763;
  background: #e8f8ef;
  cursor: default;
}

.danger-text {
  color: #d93f3f;
  background: #fff0f0;
}

.feature-list {
  display: grid;
  gap: 8px;
}

.feature-item {
  padding: 10px;
  border: 1px solid #e7eef4;
  border-radius: 8px;
  background: #f8fbfd;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

.feature-item a {
  color: #8d3ee2;
  font-weight: 900;
  text-decoration: none;
}

.webapp-actions {
  display: grid;
  gap: 8px;
}

.danger-button {
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  color: #d93f3f;
  background: #fff0f0;
  font-weight: 800;
}

.danger-button:disabled {
  opacity: 0.58;
  cursor: default;
}

.admin-field {
  display: grid;
  gap: 7px;
  color: #4b5563;
  font-size: 12px;
  font-weight: 800;
}

.admin-field input,
.admin-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  color: var(--text);
  background: #f8fbfd;
  resize: vertical;
}

.webapp-body {
  --app-bg: #fbf3ff;
  --app-surface: rgba(255, 255, 255, 0.9);
  --app-surface-strong: #ffffff;
  --app-border: #ead8f4;
  --app-soft: #f7eafa;
  --app-text: #231529;
  --app-muted: #8b7895;
  --app-blue: #9a4dff;
  --app-green: #d83bbd;
  --app-amber: #ff6aa2;
  --app-red: #e04483;
  color: var(--app-text);
  background: var(--app-bg);
}

.webapp-page {
  min-height: 100vh;
  padding: 16px 14px 150px;
  background:
    linear-gradient(180deg, rgba(252, 230, 255, 0.94), rgba(253, 247, 255, 0.98) 42%, #fff7fb),
    radial-gradient(circle at 18% 6%, rgba(154, 77, 255, 0.18), transparent 34%),
    radial-gradient(circle at 88% 16%, rgba(255, 106, 162, 0.2), transparent 30%);
  background-attachment: fixed;
}

.webapp-shell {
  width: min(540px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.webapp-hero {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(219, 231, 240, 0.76);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(253, 234, 255, 0.9)),
    var(--app-surface-strong);
  box-shadow: 0 18px 42px rgba(95, 40, 120, 0.14);
}

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

.hero-brand .brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 13px 17px 17px 17px;
  flex: 0 0 auto;
  box-shadow: 0 10px 20px rgba(154, 77, 255, 0.24);
}

.hero-brand div:last-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.hero-brand span {
  color: var(--app-muted);
  font-size: 12px;
  font-weight: 800;
}

.hero-brand strong {
  font-size: 32px;
  line-height: 1;
  letter-spacing: 0;
}

.ghost-button {
  min-width: 92px;
  color: var(--app-blue);
  background: rgba(154, 77, 255, 0.1);
}

.metric-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-areas:
    "opens conversion"
    "registrations conversion";
  gap: 12px;
}

.metric-card,
.webapp-panel {
  border: 1px solid var(--app-border);
  border-radius: 16px;
  background: var(--app-surface);
  box-shadow: 0 12px 30px rgba(95, 40, 120, 0.09);
}

.metric-card {
  min-height: 98px;
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 0;
  isolation: isolate;
}

.metric-card::after {
  content: "";
  position: absolute;
  inset: auto -24px -46px 22%;
  z-index: -1;
  height: 88px;
  border-radius: 999px;
  filter: blur(8px);
  opacity: 0.42;
}

.metric-total::before {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: -1;
  width: 84px;
  height: 84px;
  border: 12px solid rgba(154, 77, 255, 0.1);
  border-top-color: rgba(224, 68, 189, 0.42);
  border-right-color: rgba(255, 106, 162, 0.34);
  border-radius: 50%;
}

.metric-accounts {
  grid-area: opens;
  color: #ffffff;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.28), transparent 26%),
    linear-gradient(135deg, #8c46ff, #d83bbd 68%, #ff6aa2);
  box-shadow: 0 18px 36px rgba(154, 77, 255, 0.24);
}

.metric-accounts::after {
  background: rgba(255, 255, 255, 0.42);
}

.metric-today {
  grid-area: registrations;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 241, 250, 0.96));
}

.metric-today::after {
  background: rgba(224, 68, 189, 0.22);
}

.metric-total {
  grid-area: conversion;
  background:
    radial-gradient(circle at 86% 14%, rgba(154, 77, 255, 0.18), transparent 28%),
    linear-gradient(160deg, #ffffff, #fff2fb 72%, #ffeaf7);
}

.metric-total::after {
  background: rgba(154, 77, 255, 0.2);
}

.metric-card span {
  width: fit-content;
  max-width: 100%;
  padding: 6px 8px;
  border-radius: 999px;
  color: #7d6687;
  background: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.metric-accounts span {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.18);
}

.metric-card strong {
  color: #201127;
  font-size: 34px;
  line-height: 0.9;
  letter-spacing: 0;
}

.metric-accounts strong {
  color: #ffffff;
  font-size: 42px;
  text-shadow: 0 8px 22px rgba(76, 22, 103, 0.24);
}

.metric-total strong {
  font-size: 38px;
}

.metric-total span {
  background: rgba(154, 77, 255, 0.08);
}

.metric-card.wide {
  grid-column: auto;
}

.webapp-tabs {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 12px;
  z-index: 20;
  width: min(540px, calc(100% - 20px));
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  overflow: visible;
  gap: 5px;
  padding: 7px;
  border: 1px solid rgba(234, 216, 244, 0.88);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 246, 253, 0.88)),
    rgba(255, 255, 255, 0.88);
  box-shadow:
    0 18px 42px rgba(80, 30, 105, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(22px);
  scrollbar-width: none;
}

.webapp-tabs::-webkit-scrollbar {
  display: none;
}

.tab-button {
  flex: 1 1 82px;
  min-height: 46px;
  border: 0;
  border-radius: 16px;
  color: #6b5974;
  background: transparent;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  overflow: hidden;
  padding: 0 4px;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition:
    color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.tab-button:not(.active):hover {
  color: #8d3ee2;
  background: rgba(154, 77, 255, 0.07);
}

.tab-button.active {
  color: #ffffff;
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.34), transparent 28%),
    linear-gradient(135deg, #9a4dff, #e044bd 58%, #ff6aa2);
  box-shadow:
    0 12px 24px rgba(154, 77, 255, 0.3),
    0 4px 12px rgba(224, 68, 189, 0.2);
  transform: translateY(-1px);
}

.webapp-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.panel-head {
  align-items: flex-start;
}

.panel-head h1 {
  font-size: 17px;
  line-height: 1.2;
}

.panel-badge,
.muted-line {
  color: var(--app-muted);
  font-size: 12px;
  line-height: 1.35;
}

.panel-badge {
  max-width: 48%;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--app-soft);
  text-align: right;
}

.small-button,
.row-button {
  border-radius: 10px;
  color: var(--app-blue);
  background: rgba(154, 77, 255, 0.1);
}

.link-box,
.qr-command,
.admin-field input,
.admin-field textarea,
.admin-field select {
  border-color: var(--app-border);
  border-radius: 12px;
  background: #f8fbfd;
}

.topup-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}

.topup-row .primary {
  min-height: 44px;
  padding: 0 18px;
}

.link-box {
  max-height: 96px;
  overflow: auto;
}

.link-open,
.primary {
  background: linear-gradient(135deg, #9a4dff, #e044bd);
  box-shadow: 0 12px 24px rgba(154, 77, 255, 0.25);
}

.link-open:hover,
.primary:hover {
  background: linear-gradient(135deg, #8538ef, #c934a8);
}

.account-list,
.feature-list {
  gap: 10px;
}

.account-row,
.feature-item,
.empty-state {
  border: 1px solid #e5edf4;
  border-radius: 14px;
  background: #f9fbfd;
}

.account-row {
  min-height: 68px;
  padding: 12px;
}

.account-row strong {
  font-size: 14px;
}

.account-row span {
  color: var(--app-muted);
  font-size: 12px;
}

.row-button:disabled {
  color: var(--app-green);
  background: rgba(34, 164, 102, 0.1);
}

.danger-text,
.danger-button {
  color: var(--app-red);
  background: rgba(224, 68, 131, 0.11);
}

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

.export-button,
.danger-button {
  min-height: 48px;
  border-radius: 14px;
}

.danger-button {
  border: 1px solid rgba(214, 66, 66, 0.12);
}

.admin-field {
  color: #445266;
}

.error {
  min-height: 20px;
  padding: 0 8px;
}

.link-head {
  align-items: center;
}

.link-showcase,
.link-insights,
.account-summary,
.config-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.link-showcase div,
.link-insights div,
.account-summary div,
.config-item,
.conversion-card,
.qr-helper,
.config-lock {
  border: 1px solid #ead8f4;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff, #fff5fb);
}

.link-showcase div,
.link-insights div,
.account-summary div,
.config-item {
  min-height: 74px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 12px;
}

.link-showcase span,
.link-insights span,
.account-summary span,
.config-item span,
.conversion-card span,
.qr-helper span,
.config-lock span {
  color: var(--app-muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
}

.link-showcase strong,
.link-insights strong,
.account-summary strong,
.config-item strong {
  min-width: 0;
  overflow: hidden;
  color: var(--app-text);
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.link-actions .small-button {
  min-height: 42px;
  padding: 0 14px;
}

.report-button {
  min-height: 42px;
  justify-self: stretch;
}

.qr-helper,
.config-lock {
  display: grid;
  gap: 6px;
  padding: 13px;
}

.qr-helper strong,
.config-lock strong {
  font-size: 14px;
}

.conversion-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.conversion-card > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.conversion-card strong {
  font-size: 22px;
}

.conversion-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #f2dff5;
}

.conversion-track span {
  width: 0;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #9a4dff, #e044bd, #ff6aa2);
  transition: width 240ms ease;
}

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

.config-item strong {
  color: var(--app-red);
  font-size: 15px;
}

.config-item.is-active strong {
  color: var(--app-blue);
}

.guide-hero-card,
.guide-note,
.guide-step,
.admin-panel-card {
  border: 1px solid #ead8f4;
  background: linear-gradient(135deg, #ffffff, #fff4fb);
  box-shadow: 0 14px 30px rgba(103, 38, 126, 0.08);
}

.guide-hero-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 18px;
}

.guide-hero-card span,
.admin-kicker {
  width: fit-content;
  padding: 5px 8px;
  border-radius: 999px;
  color: #9a4dff;
  background: rgba(154, 77, 255, 0.1);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.guide-hero-card strong {
  color: var(--app-text);
  font-size: 20px;
  line-height: 1.15;
}

.guide-hero-card p,
.guide-step p,
.guide-note span,
.admin-panel-card p {
  margin: 0;
  color: var(--app-muted);
  font-size: 13px;
  line-height: 1.45;
}

.guide-steps,
.admin-dashboard {
  display: grid;
  gap: 10px;
}

.guide-step {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: flex-start;
  padding: 13px;
  border-radius: 16px;
}

.guide-step b {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #9a4dff, #e044bd);
  box-shadow: 0 10px 18px rgba(154, 77, 255, 0.22);
}

.guide-step div {
  display: grid;
  gap: 5px;
}

.guide-step strong,
.guide-note strong,
.admin-panel-card strong {
  color: var(--app-text);
  font-size: 15px;
}

.guide-note {
  display: grid;
  gap: 7px;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff7e7, #fff4fb);
}

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

.admin-wide {
  grid-column: 1 / -1;
}

.admin-panel-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
}

.admin-panel-card > div:first-child {
  display: grid;
  gap: 7px;
}

.admin-panel-card .small-button,
.admin-panel-card .danger-button {
  width: 100%;
}

.domain-current {
  padding: 10px 12px;
  border: 1px solid #ead8f4;
  border-radius: 12px;
  color: #6b5974;
  background: rgba(154, 77, 255, 0.07);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  word-break: break-all;
}

.domain-row-item {
  display: grid;
  gap: 9px;
}

.domain-row-item b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.domain-row-item div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

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

.purchase-actions {
  display: grid;
  grid-template-columns: auto auto;
  gap: 8px;
}

.qr-upload input {
  padding: 11px;
}

.admin-user-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
}

.admin-user-row div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.admin-user-row span,
.admin-user-details span {
  color: var(--app-muted);
  font-size: 12px;
  line-height: 1.35;
}

.admin-user-details {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #ead8f4;
  border-radius: 14px;
  color: #6b5974;
  background: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  font-weight: 800;
}

.admin-user-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.admin-user-metrics div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffffff, #fff4fb);
}

.admin-user-metrics strong {
  min-width: 0;
  overflow: hidden;
  color: var(--app-text);
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.stat-grid div {
  min-height: 76px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 12px;
  border: 1px solid #ead8f4;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff, #fff5fb);
}

.stat-grid span {
  color: var(--app-muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.stat-grid strong {
  font-size: 24px;
}

@media (max-width: 520px) {
  .page {
    padding: 16px;
  }

  .login-card {
    min-height: auto;
    padding: 48px 24px 28px;
  }

  .brand {
    margin-bottom: 42px;
  }

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

  .webapp-page {
    padding: 12px 12px 150px;
  }

  .webapp-tabs {
    width: calc(100% - 16px);
    bottom: 8px;
    gap: 3px;
    padding: 6px;
    border-radius: 20px;
  }

  .tab-button {
    flex-basis: 76px;
    min-height: 44px;
    border-radius: 14px;
    padding: 0 3px;
    font-size: 9px;
  }

  .webapp-hero {
    min-height: 78px;
    padding: 14px;
    border-radius: 16px;
  }

  .hero-brand strong {
    font-size: 28px;
  }

  .metric-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 10px;
  }

  .metric-card {
    min-height: 92px;
    padding: 13px;
  }

  .metric-card strong {
    font-size: 30px;
  }

  .metric-accounts strong {
    font-size: 38px;
  }

  .metric-total strong {
    font-size: 32px;
  }

  .metric-card span {
    padding: 5px 7px;
    font-size: 9px;
  }

  .panel-badge {
    max-width: 52%;
    font-size: 11px;
  }

  .link-showcase,
  .link-insights,
  .account-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .admin-dashboard {
    grid-template-columns: 1fr;
  }

  .admin-user-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-step {
    grid-template-columns: 34px 1fr;
    gap: 10px;
  }

  .guide-step b {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }

  .link-showcase strong,
  .link-insights strong,
  .account-summary strong {
    font-size: 15px;
  }

  .link-actions {
    grid-template-columns: 1fr;
  }
}
