:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --accent: #22d3ee;
  --accent-strong: #06b6d4;
  --bg: #070b12;
  --surface: #101827;
  --surface-2: #151f31;
  --surface-3: #0c1320;
  --border: #273449;
  --text: #f8fafc;
  --muted: #94a3b8;
  --danger: #ef4444;
  --success: #22c55e;
  --warning: #f59e0b;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.panel {
  border: 1px solid #263244;
  border-radius: 8px;
  background: var(--surface);
  padding: 28px;
}

.stack {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  color: #cbd5e1;
  font-weight: 700;
}

input {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #020617;
  color: var(--text);
  padding: 12px;
  font: inherit;
}

textarea {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #020617;
  color: var(--text);
  padding: 12px;
  font: inherit;
  resize: vertical;
}

select {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #020617;
  color: var(--text);
  padding: 12px;
  font: inherit;
}

button {
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #021018;
  padding: 12px 14px;
  font-weight: 900;
  cursor: pointer;
}

.button-link {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: #021018;
  margin: 0 0 18px;
  padding: 10px 12px;
  font-weight: 900;
  text-decoration: none;
}

.button-link.secondary {
  background: #1f2937;
  border: 1px solid var(--border);
  color: #e2e8f0;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
}

.error {
  border: 1px solid #991b1b;
  border-radius: 8px;
  background: rgba(127, 29, 29, .24);
  color: #fecaca;
  padding: 10px 12px;
}

.notice {
  background: rgba(34, 197, 94, .1);
  border: 1px solid rgba(34, 197, 94, .35);
  border-radius: 8px;
  color: #86efac;
  padding: 10px 12px;
}

.security-gate {
  background: rgba(245, 158, 11, .1);
  border: 1px solid rgba(245, 158, 11, .55);
  border-radius: 8px;
  color: #fde68a;
  margin: 0 0 22px;
  padding: 16px 18px;
}

.security-gate strong {
  color: #fef3c7;
  display: block;
  font-size: 18px;
}

.security-gate p {
  margin-bottom: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: #67e8f9;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.auth-shell {
  align-items: center;
  display: grid;
  min-height: 100vh;
  padding: 32px;
}

.auth-panel {
  display: grid;
  gap: 0;
  grid-template-columns: minmax(280px, .9fr) minmax(320px, .7fr);
  margin: 0 auto;
  max-width: 1040px;
  width: 100%;
}

.auth-copy,
.auth-card {
  border: 1px solid var(--border);
  min-width: 0;
}

.auth-copy {
  background:
    linear-gradient(135deg, rgba(34, 211, 238, .12), rgba(96, 165, 250, .04)),
    var(--surface);
  border-radius: 8px 0 0 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px;
}

.auth-copy h1 {
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: 0;
  line-height: 1.02;
  margin: 0 0 16px;
}

.auth-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  margin: 0;
  max-width: 560px;
}

.auth-language {
  margin-top: 28px;
}

.auth-card {
  background: var(--surface-2);
  border-left: 0;
  border-radius: 0 8px 8px 0;
  display: grid;
  align-content: center;
  padding: 42px;
}

.auth-form {
  gap: 18px;
}

.auth-form button {
  margin-top: 4px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  background: #090f1a;
  border-right: 1px solid var(--border);
  padding: 22px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.brand {
  align-items: center;
  color: var(--text);
  display: flex;
  gap: 10px;
  font-weight: 900;
  margin-bottom: 26px;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: #fff;
  border-radius: 8px;
  display: inline-flex;
  height: 32px;
  justify-content: center;
  overflow: hidden;
  width: 32px;
}

.brand-mark img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.nav-group {
  display: grid;
  gap: 4px;
  margin-bottom: 18px;
}

.nav-group p {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  margin: 10px 10px 6px;
  text-transform: uppercase;
}

.sidebar-link {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #cbd5e1;
  display: flex;
  gap: 10px;
  padding: 9px 10px;
  text-decoration: none;
}

.sidebar-link:hover,
.sidebar-link.active {
  background: rgba(34, 211, 238, .08);
  border-color: rgba(34, 211, 238, .22);
  color: #f8fafc;
}

.nav-marker {
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  width: 30px;
}

.admin-main {
  min-width: 0;
}

.admin-topbar {
  align-items: center;
  background: rgba(7, 11, 18, .92);
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 4;
}

.topbar-search {
  flex: 1;
  max-width: 520px;
}

.topbar-search input,
.table-search {
  background: var(--surface-3);
  border: 1px solid var(--border);
  color: var(--text);
  width: 100%;
}

.topbar-actions {
  align-items: center;
  display: flex;
  gap: 12px;
}

.language-switcher {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: inline-flex;
  padding: 3px;
}

.lang-link {
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  padding: 6px 8px;
  text-decoration: none;
}

.lang-link.active {
  background: var(--accent);
  color: #03131a;
}

.admin-identity {
  display: grid;
  gap: 2px;
  min-width: 150px;
}

.admin-identity strong {
  font-size: 13px;
}

.admin-identity span {
  color: var(--muted);
  font-size: 12px;
  text-transform: capitalize;
}

.button,
.button-link {
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.button.secondary,
button.secondary {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
}

.admin-content {
  padding: 28px;
}

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

.page-header h1 {
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0 0 10px;
}

.page-header p {
  color: var(--muted);
  margin: 0;
  max-width: 760px;
}

.page-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.page-actions .button-link {
  margin: 0;
}

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

.metric-card,
.card,
.data-card,
.empty-state,
.form-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
}

.metric-card {
  padding: 18px;
}

.metric-card p,
.metric-card span {
  color: var(--muted);
  margin: 0;
}

.metric-card strong {
  display: block;
  font-size: 30px;
  margin: 8px 0 4px;
}

.dashboard-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
}

.card {
  padding: 20px;
}

.card h2,
.empty-state h2 {
  margin: 0 0 12px;
}

.quick-actions {
  display: grid;
  gap: 10px;
}

.quick-actions .button-link {
  justify-content: center;
  margin: 0;
}

.data-card {
  overflow: hidden;
}

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

.table-search {
  max-width: 360px;
}

.filter-pill {
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  padding: 8px 10px;
}

.data-table tbody tr:hover {
  background: rgba(148, 163, 184, .05);
}

.badge {
  border: 1px solid var(--border);
  border-radius: 999px;
  color: #cbd5e1;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  padding: 6px 9px;
  white-space: nowrap;
}

.badge-active,
.badge-ready,
.badge-paid,
.badge-overpaid,
.badge-processed,
.badge-sent,
.badge-verified,
.badge-configured {
  background: rgba(34, 197, 94, .12);
  border-color: rgba(34, 197, 94, .28);
  color: #86efac;
}

.badge-pending,
.badge-warning,
.badge-created,
.badge-requires-action,
.badge-received,
.badge-ignored,
.badge-verification-sent,
.badge-test {
  background: rgba(245, 158, 11, .12);
  border-color: rgba(245, 158, 11, .28);
  color: #fcd34d;
}

.badge-failed,
.badge-blocked,
.badge-disabled,
.badge-cancelled,
.badge-expired,
.badge-invalid-signature,
.badge-revoked,
.badge-unverified,
.badge-missing {
  background: rgba(239, 68, 68, .12);
  border-color: rgba(239, 68, 68, .28);
  color: #fca5a5;
}

.badge-refunded,
.badge-partially-refunded,
.badge-consumed {
  background: rgba(96, 165, 250, .12);
  border-color: rgba(96, 165, 250, .28);
  color: #93c5fd;
}

.badge-deleted {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.34);
  color: #fca5a5;
}

.empty-state {
  color: var(--muted);
  padding: 34px;
  text-align: center;
}

.empty-icon {
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--accent);
  display: inline-flex;
  font-size: 22px;
  height: 48px;
  justify-content: center;
  margin-bottom: 14px;
  width: 48px;
}

.form-shell {
  max-width: 840px;
  padding: 22px;
}

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

.form-section {
  background: rgba(15, 23, 42, .42);
  border: 1px solid rgba(39, 52, 73, .72);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  padding: 18px;
}

.form-section h2 {
  font-size: 16px;
  margin: 0;
}

.form-fields {
  display: grid;
  gap: 12px;
}

.form-field {
  background: rgba(15, 23, 42, .55);
  border: 1px solid rgba(39, 52, 73, .7);
  border-radius: 8px;
  padding: 14px;
}

.field-label {
  color: #e2e8f0;
  font-weight: 800;
}

.help-text {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.form-shell textarea {
  min-height: 132px;
}

.sensitive-config,
.form-shell textarea.sensitive-config {
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  min-height: 168px;
}

.sensitive-section {
  border-color: rgba(245, 158, 11, .28);
}

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

.form-actions .button-link {
  margin: 0;
}

.mono,
code {
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

.compact-id {
  word-break: keep-all;
}

.admin-shell {
  padding-top: 28px;
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 22px;
}

.admin-nav a {
  border: 1px solid #334155;
  border-radius: 8px;
  color: #e2e8f0;
  padding: 8px 10px;
  text-decoration: none;
}

.admin-nav a:hover {
  border-color: #22d3ee;
  color: #67e8f9;
}

.table-wrap {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #475569 #111827;
}

.table-wrap::-webkit-scrollbar {
  height: 8px;
}

.table-wrap::-webkit-scrollbar-track {
  background: #111827;
}

.table-wrap::-webkit-scrollbar-thumb {
  background: #475569;
  border-radius: 8px;
}

.data-table {
  table-layout: fixed;
}

.data-table th,
.data-table td {
  overflow-wrap: anywhere;
}

.data-table th:last-child,
.data-table td:last-child {
  width: 190px;
}

.payload {
  background: #111827;
  color: #f9fafb;
  border-radius: 6px;
  overflow-x: auto;
  padding: 1rem;
  line-height: 1.45;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  border-bottom: 1px solid #263244;
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}

th {
  color: #93c5fd;
  font-size: 12px;
  text-transform: uppercase;
}

td {
  color: #e2e8f0;
}

.muted {
  color: #94a3b8;
}

.inline-form {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(180px, 1fr) auto;
  min-width: 320px;
}

.inline-form input {
  padding: 8px 10px;
}

.inline-form button {
  padding: 9px 10px;
}

.link-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.link-actions.compact {
  min-width: 0;
}

.payment-url-actions {
  max-width: 280px;
}

.delivery-actions {
  max-width: 260px;
}

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

.stacked-cell {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.compact-button {
  padding: 8px 10px;
}

.inline-action-form {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inline-action-form input {
  background: #070d19;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  max-width: 100%;
  min-width: min(180px, 100%);
  padding: 9px 10px;
}

.inline-action-form button {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.42);
  border-radius: 8px;
  color: #fecaca;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 10px 12px;
}

.inline-action-form.neutral button {
  background: #1e293b;
  border-color: var(--border);
  color: var(--text);
}

.support-actions {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 18px 0 26px;
  padding: 18px;
}

.support-actions h2 {
  margin-top: 0;
}

.detail-related {
  display: grid;
  gap: 10px;
  margin: 12px 0 24px;
  padding-left: 18px;
}

.copy-value {
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  display: inline-block;
  max-width: 340px;
  overflow: hidden;
  padding: 8px 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkout-body {
  background:
    radial-gradient(circle at 20% 12%, rgba(34, 211, 238, 0.12), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(34, 197, 94, 0.08), transparent 24%),
    var(--bg);
}

.checkout-shell {
  align-items: center;
  display: grid;
  min-height: 100vh;
  padding: clamp(14px, 3vw, 30px);
}

.checkout-card {
  background: linear-gradient(145deg, rgba(16, 24, 39, 0.98), rgba(7, 11, 18, 0.98));
  border: 1px solid rgba(39, 52, 73, 0.96);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  color: var(--text);
  margin: 0 auto;
  max-width: 700px;
  padding: clamp(20px, 3vw, 30px);
  width: min(100%, 700px);
}

.checkout-lang {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  margin-bottom: 14px;
}

.checkout-lang a {
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  padding: 7px 10px;
  text-decoration: none;
}

.checkout-lang a.active,
.checkout-lang a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #04111f;
}

.checkout-eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.checkout-card h1 {
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1;
  margin: 0;
  overflow-wrap: anywhere;
}

.checkout-lead,
.checkout-note {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.checkout-price {
  align-items: end;
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
  margin: 18px 0;
  padding: 14px 0;
}

.checkout-price span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.checkout-price strong {
  font-size: clamp(32px, 6vw, 48px);
  line-height: 0.9;
}

.checkout-flow,
.checkout-panel,
.checkout-state {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
}

.checkout-panel.success,
.checkout-state.paid {
  background: rgba(20, 83, 45, 0.22);
  border-color: rgba(34, 197, 94, 0.44);
}

.checkout-flow span,
.checkout-panel span,
.checkout-state span {
  color: var(--muted);
  line-height: 1.5;
}

.checkout-brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  margin-bottom: 16px;
  max-width: 100%;
}

.checkout-brand img {
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid var(--border);
  border-radius: 8px;
  height: 38px;
  object-fit: contain;
  padding: 4px;
  width: 38px;
}

.checkout-brand div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.checkout-brand strong {
  color: var(--text);
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkout-brand span {
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.checkout-form label {
  display: grid;
  gap: 8px;
}

.checkout-form label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.checkout-form input,
.checkout-form select {
  background: #070d19;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  padding: 14px 16px;
}

.checkout-form select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-repeat: no-repeat;
  background-size: 6px 6px;
  padding-right: 42px;
}

.checkout-form small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.checkout-form input:focus,
.checkout-form select:focus {
  border-color: var(--accent);
  outline: 2px solid rgba(34, 211, 238, 0.2);
  outline-offset: 2px;
}

.checkout-form button,
.checkout-button,
.checkout-secondary {
  align-items: center;
  background: var(--accent);
  border: 0;
  border-radius: 8px;
  color: #04111f;
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  text-decoration: none;
}

.checkout-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.checkout-form button:hover,
.checkout-button:hover,
.checkout-secondary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.checkout-summary-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

.checkout-summary-item {
  background: rgba(7, 13, 25, 0.72);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 11px;
}

.checkout-summary-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.checkout-summary-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkout-state {
  align-items: center;
  grid-template-columns: auto minmax(0, 1fr) auto;
  overflow: hidden;
  position: relative;
}

.checkout-state.waiting::before {
  animation: checkout-scan 2.4s ease-in-out infinite;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.08), transparent);
  content: "";
  inset: 0;
  position: absolute;
  transform: translateX(-100%);
}

.checkout-verification {
  align-items: center;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.34);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr);
  margin-top: 14px;
  padding: 12px 14px;
}

.checkout-verification.verified {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.38);
}

.checkout-verification-mark {
  background: var(--warning);
  border-radius: 999px;
  box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.12);
  height: 10px;
  width: 10px;
}

.checkout-verification.verified .checkout-verification-mark {
  background: var(--success);
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.12);
}

.checkout-verification div {
  display: grid;
  gap: 4px;
}

.checkout-verification span {
  color: var(--muted);
  line-height: 1.5;
}

.checkout-inline-form {
  margin-top: 6px;
}

.checkout-inline-form button {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 10px 14px;
}

.checkout-inline-form button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.verification-result {
  position: relative;
}

.verification-result-mark {
  background: var(--success);
  border-radius: 999px;
  box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.12);
  height: 14px;
  margin-bottom: 24px;
  width: 14px;
}

.verification-result.error .verification-result-mark {
  background: var(--danger);
  box-shadow: 0 0 0 8px rgba(239, 68, 68, 0.12);
}

.verification-result .checkout-button {
  margin-top: 8px;
}

.checkout-orbit {
  border: 2px solid rgba(34, 211, 238, 0.18);
  border-radius: 999px;
  box-shadow: inset 0 0 24px rgba(34, 211, 238, 0.12);
  height: 54px;
  position: relative;
  width: 54px;
}

.checkout-orbit span:first-child {
  animation: checkout-spin 1s linear infinite;
  border: 3px solid transparent;
  border-right-color: var(--success);
  border-radius: inherit;
  border-top-color: var(--accent);
  inset: -3px;
  position: absolute;
}

.checkout-orbit span:last-child {
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 0 18px var(--accent);
  height: 10px;
  left: 50%;
  position: absolute;
  top: 3px;
  transform: translateX(-50%);
  width: 10px;
}

.checkout-dots {
  display: flex;
  gap: 6px;
}

.checkout-dots span {
  animation: checkout-dots 1.2s ease-in-out infinite;
  background: var(--accent);
  border-radius: 999px;
  height: 7px;
  opacity: 0.35;
  width: 7px;
}

.checkout-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.checkout-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

.checkout-check {
  background: linear-gradient(135deg, var(--success), var(--accent));
  border-radius: 999px;
  color: #04111f;
  display: inline-grid;
  font-weight: 1000;
  height: 48px;
  place-items: center;
  width: 48px;
}

.checkout-error {
  background: rgba(127, 29, 29, 0.24);
  border: 1px solid rgba(239, 68, 68, 0.44);
  border-radius: 8px;
  color: #fecaca;
  padding: 14px;
}

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

@keyframes checkout-dots {
  50% {
    opacity: 1;
    transform: translateY(-5px);
  }
}

@keyframes checkout-scan {
  55%,
  100% {
    transform: translateX(100%);
  }
}

.refund-form {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(86px, 0.7fr) minmax(110px, 0.8fr) minmax(150px, 1fr) minmax(160px, 1fr) auto;
  min-width: 0;
  width: 100%;
}

.refund-form input,
.refund-form select,
.refund-form button {
  min-width: 0;
  padding: 8px 10px;
}

.compact-refund-form {
  max-width: 980px;
}

.totp-qr {
  background: #ffffff;
  display: inline-flex;
  margin: 8px 0 12px;
  padding: 10px;
}

.totp-qr svg {
  display: block;
  height: auto;
  max-width: 100%;
}

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

  .auth-panel {
    grid-template-columns: 1fr;
  }

  .auth-copy {
    border-radius: 8px 8px 0 0;
  }

  .auth-card {
    border-left: 1px solid var(--border);
    border-radius: 0 0 8px 8px;
  }

  .admin-sidebar {
    height: auto;
    position: static;
  }

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

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

  .admin-topbar,
  .page-header,
  .topbar-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-search {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .shell,
  .admin-content {
    width: auto;
    padding: 18px;
  }

  .auth-shell {
    padding: 18px;
  }

  .auth-copy,
  .auth-card {
    padding: 24px;
  }

  .admin-sidebar nav,
  .refund-form,
  .inline-form {
    grid-template-columns: 1fr;
    min-width: 0;
  }

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

  .checkout-shell {
    align-items: start;
    min-height: 100svh;
    padding: 14px;
  }

  .checkout-card {
    padding: 22px;
  }

  .checkout-summary-grid,
  .checkout-state {
    grid-template-columns: 1fr;
  }

  .checkout-lang {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .checkout-state.waiting::before,
  .checkout-orbit span:first-child,
  .checkout-dots span {
    animation: none;
  }
}
