:root {
  --bg: #070a0f;
  --panel: #0e131b;
  --panel-soft: #121925;
  --line: #243246;
  --line-soft: rgba(148, 165, 190, 0.14);
  --text: #eef5ff;
  --muted: #93a2b8;
  --cyan: #42d8ff;
  --green: #2fe078;
  --gold: #f1c75b;
  --red: #ff4f72;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(66, 216, 255, 0.08), transparent 32%),
    radial-gradient(circle at 100% 18%, rgba(47, 224, 120, 0.045), transparent 30%),
    #070a0f;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select {
  font: inherit;
}

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

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

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

.compact-text {
  max-width: 520px;
  line-height: 1.55;
}

.item-label {
  margin: 0 0 6px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
}

.portal-logo img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.portal-logo.compact img {
  width: 42px;
  height: 42px;
}

.login-page {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(160deg, #06090e 0%, #08111a 48%, #06090e 100%);
}

.login-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("/alobot-logo.png") center center / min(54vw, 760px) auto no-repeat;
  opacity: 0.082;
  filter:
    drop-shadow(0 0 18px rgba(238, 250, 255, 0.52))
    drop-shadow(0 0 52px rgba(66, 216, 255, 0.58))
    drop-shadow(0 0 96px rgba(47, 224, 120, 0.18));
  animation: loginLogoBreath 3.8s cubic-bezier(0.45, 0, 0.2, 1) infinite;
  will-change: transform, opacity, filter;
}

.login-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(66, 216, 255, 0.06), transparent 38%, rgba(47, 224, 120, 0.035));
}

@keyframes loginLogoBreath {
  0%, 100% {
    transform: scale(0.992);
    opacity: 0.068;
    filter:
      drop-shadow(0 0 14px rgba(238, 250, 255, 0.42))
      drop-shadow(0 0 44px rgba(66, 216, 255, 0.48))
      drop-shadow(0 0 82px rgba(47, 224, 120, 0.14));
  }
  50% {
    transform: scale(1.035);
    opacity: 0.108;
    filter:
      drop-shadow(0 0 26px rgba(245, 252, 255, 0.72))
      drop-shadow(0 0 72px rgba(66, 216, 255, 0.72))
      drop-shadow(0 0 126px rgba(47, 224, 120, 0.24));
  }
}

.login-layout {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  width: min(430px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-panel,
.info-card,
.game-card,
.table-card {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(18, 25, 37, 0.92), rgba(10, 15, 23, 0.92));
  box-shadow: var(--shadow);
}

.login-panel {
  padding: 26px;
}

.clean-login {
  width: 100%;
  padding: 34px 30px 30px;
  border-color: rgba(148, 165, 190, 0.16);
  background:
    linear-gradient(180deg, rgba(18, 25, 37, 0.82), rgba(9, 14, 22, 0.90));
  backdrop-filter: blur(14px);
}

.clean-login h1 {
  margin: 0 0 26px;
  text-align: center;
  font-size: 27px;
  letter-spacing: 0;
}

.panel-head,
.card-title,
.game-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.panel-head h2,
.card-title h2,
.section-head h2 {
  margin: 0;
  font-size: 21px;
}

.icon-badge {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 8px;
  border: 1px solid rgba(66, 216, 255, 0.25);
  background: #0b121b;
  color: var(--cyan);
  display: grid;
  place-items: center;
}

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

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(66, 216, 255, 0.22);
  border-radius: 8px;
  background: #0a1018;
  color: var(--text);
  padding: 0 12px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(66, 216, 255, 0.11);
}

.primary-button,
.danger-button,
.soft-button,
.icon-button,
.copy-button {
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  font: inherit;
}

.primary-button {
  padding: 0 16px;
  background: #0a8f4e;
  border-color: rgba(47, 224, 120, 0.62);
}

.danger-button {
  padding: 0 14px;
  background: rgba(255, 79, 114, 0.13);
  border-color: rgba(255, 79, 114, 0.34);
}

.primary-button:hover {
  background: #0aa75a;
}

.danger-button:hover {
  background: rgba(255, 79, 114, 0.22);
}

.primary-button.full {
  width: 100%;
}

.soft-button,
.icon-button,
.copy-button {
  background: #101823;
  border-color: rgba(148, 165, 190, 0.22);
}

.soft-button {
  padding: 0 14px;
}

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

.copy-button {
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
}

.soft-button:hover,
.icon-button:hover,
.copy-button:hover {
  border-color: rgba(66, 216, 255, 0.48);
}

.soft-button:disabled,
.icon-button:disabled,
.copy-button:disabled,
.soft-button.disabled {
  cursor: not-allowed;
  opacity: 0.48;
  border-color: rgba(148, 165, 190, 0.14);
}

.form-error {
  color: var(--red);
  margin: 0;
}

.dashboard-page {
  position: relative;
  overflow-x: hidden;
  background: linear-gradient(160deg, #070a0f 0%, #0b1018 54%, #080b10 100%);
}

.dashboard-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("/alobot-logo.png") center center / min(50vw, 720px) auto no-repeat;
  opacity: 0.052;
  filter:
    drop-shadow(0 0 16px rgba(238, 250, 255, 0.42))
    drop-shadow(0 0 46px rgba(66, 216, 255, 0.44))
    drop-shadow(0 0 90px rgba(47, 224, 120, 0.12));
  animation: dashboardLogoBreath 4.4s cubic-bezier(0.45, 0, 0.2, 1) infinite;
  will-change: transform, opacity, filter;
}

.dashboard-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at 72% 12%, rgba(66, 216, 255, 0.05), transparent 30%);
}

@keyframes dashboardLogoBreath {
  0%, 100% {
    transform: scale(0.994);
    opacity: 0.04;
    filter:
      drop-shadow(0 0 12px rgba(238, 250, 255, 0.32))
      drop-shadow(0 0 38px rgba(66, 216, 255, 0.34))
      drop-shadow(0 0 76px rgba(47, 224, 120, 0.10));
  }
  50% {
    transform: scale(1.026);
    opacity: 0.072;
    filter:
      drop-shadow(0 0 22px rgba(245, 252, 255, 0.58))
      drop-shadow(0 0 62px rgba(66, 216, 255, 0.56))
      drop-shadow(0 0 112px rgba(47, 224, 120, 0.18));
  }
}

.dashboard-layout {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px 14px;
  background:
    linear-gradient(180deg, rgba(11, 17, 25, 0.98), rgba(6, 9, 14, 0.98));
  border-right: 1px solid rgba(148, 165, 190, 0.13);
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 20px 0 54px rgba(0, 0, 0, 0.22);
}

.mobile-nav-toggle,
.mobile-nav-backdrop {
  display: none;
}

.mobile-nav-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(66, 216, 255, 0.2);
  border-radius: 8px;
  background: rgba(10, 16, 24, 0.82);
  color: var(--text);
  place-items: center;
  align-content: center;
  justify-items: center;
  gap: 4px;
  padding: 0;
  cursor: pointer;
}

.mobile-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

body.mobile-nav-open .mobile-nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

body.mobile-nav-open .mobile-nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.mobile-nav-open .mobile-nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-list {
  display: grid;
  gap: 4px;
}

.nav-item {
  position: relative;
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  padding: 0 12px 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  isolation: isolate;
  transition: color 0.16s ease, transform 0.16s ease;
}

.nav-item::before {
  content: "";
  position: absolute;
  inset: 4px 0 4px 0;
  z-index: -1;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(66, 216, 255, 0.12), rgba(66, 216, 255, 0.025));
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.nav-item::after {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 2px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(66, 216, 255, 0.72);
  opacity: 0;
  transform: scaleY(0.55);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.nav-item svg {
  width: 17px;
  height: 17px;
  color: #8fa0b8;
  transition: color 0.16s ease, filter 0.16s ease, transform 0.16s ease;
}

.nav-item:hover,
.nav-item.active {
  color: var(--text);
}

.nav-item:hover::before {
  opacity: 0.55;
  transform: translateX(0);
}

.nav-item.active {
  color: #f6fbff;
  font-weight: 800;
}

.nav-item.active::before {
  opacity: 1;
  transform: translateX(0);
}

.nav-item.active::after {
  opacity: 1;
  transform: scaleY(1);
}

.nav-item:hover svg,
.nav-item.active svg {
  color: var(--cyan);
}

.nav-item.active svg {
  filter: drop-shadow(0 0 9px rgba(66, 216, 255, 0.46));
}

.nav-item.logout {
  margin-top: auto;
  color: #ff9aae;
}

.nav-item.logout::before {
  background: linear-gradient(90deg, rgba(255, 79, 114, 0.11), rgba(255, 79, 114, 0.02));
}

.nav-item.logout::after {
  background: var(--red);
  box-shadow: 0 0 14px rgba(255, 79, 114, 0.52);
}

.nav-item.logout:hover svg {
  color: #ff9aae;
}

.dashboard-main {
  width: min(1280px, calc(100% - 44px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.dashboard-header {
  min-height: 64px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.dashboard-header h1 {
  margin: 0;
  font-size: 28px;
}

.header-message {
  flex-basis: 100%;
  margin: -8px 0 0;
  font-size: 13px;
}

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

.section {
  display: none;
}

.section.active {
  display: grid;
  gap: 16px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.buy-overview-grid,
.purchase-layout,
.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

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

.info-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
}

.info-card::before,
.game-card::after,
.order-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(66, 216, 255, 0.08), transparent 40%, rgba(47, 224, 120, 0.035));
  opacity: 0.68;
}

.info-card > *,
.order-card > *,
.game-card > * {
  position: relative;
  z-index: 1;
}

.account-card,
.access-card {
  min-height: 192px;
}

.access-card {
  border-color: rgba(66, 216, 255, 0.24);
}

.slim-card {
  max-width: 760px;
}

.data-list,
.metric-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.data-list div,
.metric-list div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  border-top: 1px solid rgba(148, 165, 190, 0.12);
  padding-top: 8px;
}

.data-list span,
.metric-list dt {
  color: var(--muted);
}

.data-list strong,
.metric-list dd {
  margin: 0;
  color: var(--text);
  text-align: right;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.pill {
  min-height: 26px;
  border: 1px solid rgba(148, 165, 190, 0.22);
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--muted);
  background: #0b121b;
  font-size: 12px;
  white-space: nowrap;
}

.pill.ok {
  color: #b6ffd1;
  border-color: rgba(47, 224, 120, 0.38);
  background: rgba(47, 224, 120, 0.06);
}

.pill.warn {
  color: #ffe5a3;
  border-color: rgba(241, 199, 91, 0.38);
  background: rgba(241, 199, 91, 0.07);
}

.pill.danger {
  color: #ffd0da;
  border-color: rgba(255, 79, 114, 0.42);
  background: rgba(255, 79, 114, 0.07);
}

.overview-status-list {
  display: grid;
  gap: 0;
  margin-top: 16px;
  border-top: 1px solid rgba(148, 165, 190, 0.14);
}

.overview-status-list .status-line {
  min-height: 34px;
  border-bottom: 1px solid rgba(148, 165, 190, 0.1);
}

.slot-apply-card {
  display: grid;
  align-content: start;
  gap: 14px;
}

.slot-apply-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.slot-application-list {
  display: grid;
  gap: 8px;
  margin-top: 2px;
  min-height: 0;
}

.slot-application-title {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.slot-application-scroll {
  display: grid;
  gap: 8px;
  max-height: 148px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 3px;
}

.slot-application-item,
.slot-application-empty {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  border: 1px solid rgba(148, 165, 190, 0.12);
  border-radius: 8px;
  background: rgba(7, 10, 15, 0.36);
  padding: 8px;
}

.slot-application-item strong,
.slot-application-item small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slot-application-item strong {
  color: var(--text);
  font-size: 12px;
}

.slot-application-item small {
  color: var(--muted);
  font-size: 11px;
}

.slot-application-empty {
  grid-template-columns: 1fr;
  color: var(--muted);
  font-size: 12px;
}

.slot-application-state {
  justify-self: end;
  font-size: 12px;
  font-weight: 800;
}

.slot-application-state.ok {
  color: var(--green);
}

.slot-application-state.warn {
  color: var(--gold);
}

.slot-application-state.danger {
  color: var(--red);
}

.slot-application-state.muted {
  color: var(--muted);
}

.slot-application-more {
  color: var(--muted);
  font-size: 11px;
  padding: 2px 1px 0;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(295px, 1fr));
  gap: 14px;
}

.game-card {
  position: relative;
  min-height: 192px;
  padding: 16px;
  overflow: hidden;
  display: grid;
  align-content: space-between;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.game-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--game-image);
  background-size: cover;
  background-position: center;
  opacity: 0.13;
  filter: saturate(1.05);
}

.game-card.active {
  border-color: rgba(47, 224, 120, 0.24);
}

.game-card.locked {
  border-color: rgba(148, 165, 190, 0.12);
}

.game-card:hover,
.order-card:hover,
.info-card:hover {
  border-color: rgba(66, 216, 255, 0.28);
}

.game-card-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  justify-content: initial;
}

.game-card-top img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.game-card-top h3 {
  margin: 0;
  font-size: 20px;
}

.game-card-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.game-status-note {
  margin: 10px 0 0;
  padding: 8px 10px;
  border: 1px solid rgba(66, 216, 255, 0.16);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(5, 11, 18, 0.42);
  font-size: 12px;
}

.state-dot {
  width: 10px;
  height: 10px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 16px currentColor;
}

.state-dot.ok {
  background: var(--green);
}

.state-dot.warn {
  background: var(--gold);
}

.inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 14px;
}

.purchase-card {
  display: grid;
  gap: 14px;
  align-content: start;
  border-color: rgba(66, 216, 255, 0.22);
}

.buy-overview-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.buy-access-card,
.buy-slot-card {
  min-height: 190px;
  display: grid;
  gap: 14px;
  align-content: start;
}

.buy-access-card {
  border-color: rgba(47, 224, 120, 0.22);
}

.buy-slot-card {
  border-color: rgba(241, 199, 91, 0.22);
}

.status-lines {
  display: grid;
  gap: 9px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}

.status-lines.compact {
  gap: 7px;
}

.status-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
  font-size: 13px;
}

.status-line span {
  min-width: 0;
  color: var(--muted);
}

.status-value {
  min-width: 0;
  text-align: right;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.status-value.ok {
  color: var(--green);
}

.status-value.warn {
  color: var(--gold);
}

.status-value.danger {
  color: var(--red);
}

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

.buy-slot-applications {
  margin-top: 2px;
  max-height: 178px;
  overflow-y: auto;
  padding-right: 3px;
}

.payment-card {
  display: grid;
  gap: 13px;
  align-content: start;
  min-height: 246px;
}

.payment-body {
  display: grid;
  grid-template-columns: 204px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.payment-details {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.coin-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  flex: 0 0 42px;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}

.coin-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.coin-mark.purchase {
  color: #70dfff;
  border: 1px solid rgba(54, 201, 239, 0.3);
  background: rgba(54, 201, 239, 0.08);
}

.coin-mark.purchase svg {
  width: 20px;
  height: 20px;
}

.coin-mark.ltc {
  background: transparent;
}

.coin-mark.btc {
  background: transparent;
}

.qr-panel {
  min-height: 204px;
  border-radius: 16px;
  border: 1px solid rgba(66, 216, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(66, 216, 255, 0.10), transparent 42%),
    #f8fbff;
  display: grid;
  place-items: center;
  color: #0f172a;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06), 0 20px 44px rgba(0, 0, 0, 0.18);
}

.qr-panel img {
  width: 100%;
  max-width: 194px;
  height: auto;
  display: block;
  padding: 10px;
}

.qr-panel span {
  color: #1f2a3a;
  font-size: 12px;
  font-weight: 700;
}

.qr-error {
  color: var(--red) !important;
}

.loader-ring {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid rgba(15, 23, 42, 0.16);
  border-top-color: #42d8ff;
  animation: spin 0.85s linear infinite;
}

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

.empty-card {
  background:
    linear-gradient(135deg, rgba(66, 216, 255, 0.045), transparent 46%),
    rgba(14, 19, 27, 0.56);
  border-style: dashed;
}

.payment-line {
  display: grid;
  gap: 6px;
}

.payment-line > span {
  color: var(--muted);
  font-size: 12px;
}

.payment-line > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.payment-line code {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid rgba(66, 216, 255, 0.18);
  background: #081018;
  color: #dff8ff;
}

.payment-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.order-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(390px, 1fr));
  gap: 16px;
}

.order-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 165, 190, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(140deg, rgba(66, 216, 255, 0.08), transparent 45%),
    rgba(14, 19, 27, 0.86);
  box-shadow: var(--shadow);
  padding: 16px;
  display: grid;
  gap: 14px;
}

.order-card.ok {
  border-color: rgba(47, 224, 120, 0.26);
  background:
    linear-gradient(140deg, rgba(47, 224, 120, 0.08), transparent 48%),
    rgba(14, 19, 27, 0.88);
}

.order-card.warn {
  border-color: rgba(241, 199, 91, 0.28);
  background:
    linear-gradient(140deg, rgba(241, 199, 91, 0.08), transparent 48%),
    rgba(14, 19, 27, 0.88);
}

.order-card.danger {
  border-color: rgba(255, 79, 114, 0.28);
  background:
    linear-gradient(140deg, rgba(255, 79, 114, 0.08), transparent 48%),
    rgba(14, 19, 27, 0.88);
}

.order-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.order-card h3 {
  margin: 0;
  font-size: 18px;
}

.order-card-head small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.order-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.order-meta div {
  min-width: 0;
  border: 1px solid rgba(148, 165, 190, 0.12);
  border-radius: 12px;
  background: rgba(7, 10, 15, 0.45);
  padding: 10px;
}

.order-meta span,
.key-box > span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 5px;
}

.order-meta strong {
  display: block;
  min-width: 0;
  color: var(--text);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.instruction-box,
.key-box {
  border-radius: 14px;
  border: 1px solid rgba(66, 216, 255, 0.14);
  background: rgba(8, 16, 24, 0.72);
  padding: 12px;
}

.instruction-box strong {
  display: block;
  margin-bottom: 6px;
}

.instruction-box p {
  margin: 4px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.key-box > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.key-box code {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 10px;
  border-radius: 10px;
  background: #081018;
  border: 1px solid rgba(47, 224, 120, 0.22);
  color: #d9ffe8;
}

.table-card {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid rgba(148, 165, 190, 0.12);
  color: var(--muted);
}

.data-table th {
  color: var(--text);
  background: #111722;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.data-table strong {
  color: var(--text);
}

.stack-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.stack-item,
.empty-state {
  border: 1px solid rgba(148, 165, 190, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(66, 216, 255, 0.045), transparent 46%),
    #0a1018;
  padding: 12px;
  color: var(--muted);
}

.stack-item strong,
.stack-item span,
.stack-item small {
  display: block;
}

.stack-item strong {
  color: var(--text);
}

.remote-control-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.remote-launcher-card,
.remote-workbench {
  background: rgba(12, 17, 25, 0.94);
}

.remote-launcher-card {
  position: relative;
}

.remote-workbench {
  min-height: 0;
}

.remote-slot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
  max-height: none;
  overflow: visible;
  padding: 0;
}

.remote-slot-grid[hidden],
.remote-slot-detail[hidden],
.slot-settings-popover[hidden] {
  display: none;
}

.remote-slot-detail {
  margin-top: 16px;
  display: grid;
  gap: 14px;
}

.remote-detail-head {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  border-bottom: 1px solid rgba(148, 165, 190, 0.12);
  padding-bottom: 12px;
}

.remote-detail-head > div:not(.remote-detail-controls) {
  min-width: 0;
}

.remote-detail-head h2,
.remote-detail-head p {
  margin: 0;
}

.remote-detail-head .soft-button {
  min-width: 86px;
}

.remote-detail-controls {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.remote-state-toggle {
  min-height: 34px;
  border: 1px solid rgba(66, 216, 255, 0.28);
  border-radius: 8px;
  background: rgba(11, 22, 32, 0.78);
  color: var(--text);
  padding: 0 14px;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.remote-state-toggle:hover {
  border-color: rgba(66, 216, 255, 0.58);
  color: var(--cyan);
}

.remote-state-toggle.active {
  color: #9dffc0;
  border-color: rgba(47, 224, 120, 0.46);
  background: rgba(12, 92, 48, 0.35);
}

.remote-state-toggle.danger {
  color: #ff9aad;
  border-color: rgba(255, 79, 114, 0.48);
  background: rgba(99, 21, 38, 0.38);
}

.remote-state-toggle:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.slot-settings-popover {
  position: absolute;
  right: 18px;
  top: 82px;
  z-index: 20;
  width: min(520px, calc(100% - 36px));
  border: 1px solid rgba(66, 216, 255, 0.28);
  border-radius: 8px;
  background: rgba(8, 13, 20, 0.98);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(66, 216, 255, 0.06) inset;
  padding: 14px;
}

.slot-settings-popover-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.slot-settings-popover-head strong,
.slot-settings-popover-head span {
  display: block;
}

.slot-settings-popover-head span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.slot-settings-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.remote-slot-card {
  position: relative;
  border: 1px solid rgba(148, 165, 190, 0.13);
  border-radius: 8px;
  background: rgba(8, 12, 18, 0.78);
  padding: 12px;
  display: grid;
  gap: 10px;
  min-height: 194px;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.remote-slot-card.running::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--green);
  box-shadow: 0 0 16px rgba(47, 224, 120, 0.46);
}

.remote-slot-card:hover,
.remote-slot-card.selected {
  border-color: rgba(66, 216, 255, 0.48);
  background: rgba(10, 18, 27, 0.96);
}

.remote-slot-card.selected {
  box-shadow:
    0 0 0 1px rgba(66, 216, 255, 0.2) inset,
    0 14px 34px rgba(0, 0, 0, 0.2);
}

.remote-slot-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.remote-slot-number {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--cyan);
  background: rgba(66, 216, 255, 0.13);
  border: 1px solid rgba(66, 216, 255, 0.36);
  font-weight: 700;
}

.remote-slot-card.running .remote-slot-number {
  color: #9bffbf;
  background: rgba(47, 224, 120, 0.14);
  border-color: rgba(47, 224, 120, 0.45);
}

.remote-slot-title {
  display: grid;
  gap: 3px;
  min-width: 0;
  flex: 1 1 auto;
}

.remote-slot-title > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.remote-slot-card h3 {
  margin: 0;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.remote-slot-title strong {
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  max-width: 118px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.remote-slot-card small {
  display: block;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.remote-slot-card small.ok {
  color: var(--green);
}

.remote-slot-gear {
  width: 31px;
  height: 31px;
  border-radius: 8px;
  border: 1px solid rgba(148, 165, 190, 0.2);
  background: rgba(20, 28, 40, 0.82);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: 0 0 auto;
}

.remote-slot-gear:hover {
  color: var(--cyan);
  border-color: rgba(66, 216, 255, 0.42);
  background: rgba(66, 216, 255, 0.08);
}

.remote-slot-gear svg,
.slot-action svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.remote-slot-state {
  height: 30px;
  border: 1px solid rgba(148, 165, 190, 0.16);
  border-radius: 8px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(16, 22, 32, 0.74);
  min-width: 0;
}

.remote-slot-state span,
.vital-row span,
.remote-slot-currency em {
  color: var(--muted);
  font-style: normal;
}

.remote-slot-state strong {
  color: var(--text);
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.remote-slot-vitals {
  display: grid;
  gap: 4px;
}

.vital-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}

.vital-row strong {
  color: var(--text);
  font-weight: 600;
}

.slot-progress {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(20, 29, 42, 0.96);
}

.slot-progress i {
  display: block;
  height: 100%;
  min-width: 0;
  border-radius: inherit;
  background: var(--cyan);
}

.slot-progress.hp i {
  background: var(--green);
}

.remote-slot-currency {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.remote-slot-currency span {
  min-width: 0;
  border: 1px solid rgba(66, 216, 255, 0.22);
  border-radius: 8px;
  background: rgba(11, 21, 31, 0.85);
  padding: 7px 10px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.remote-slot-currency span:last-child {
  border-color: rgba(255, 184, 77, 0.24);
}

.remote-slot-currency strong {
  color: var(--text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.remote-slot-actions,
.remote-editor-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.remote-slot-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 0;
}

.remote-editor-head select,
.remote-editor-head input {
  width: auto;
  min-width: 170px;
}

.slot-action {
  width: 42px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(148, 165, 190, 0.17);
  color: var(--text);
  background: rgba(20, 28, 40, 0.76);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.slot-action:hover {
  border-color: rgba(66, 216, 255, 0.44);
  color: var(--cyan);
}

.slot-action.start {
  color: #7cffab;
  background: rgba(15, 118, 58, 0.42);
  border-color: rgba(47, 224, 120, 0.45);
}

.slot-action.danger {
  color: #ff6b87;
  background: rgba(137, 27, 49, 0.38);
  border-color: rgba(255, 85, 119, 0.42);
}

@media (max-width: 1260px) {
  .remote-slot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.remote-tabbar,
.config-tabbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 0 12px;
  margin: 0 0 16px;
  border-bottom: 1px solid rgba(148, 165, 190, 0.1);
  overflow-x: auto;
}

.remote-tab,
.config-tab {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
}

.remote-tab:hover,
.config-tab:hover {
  color: var(--text);
  background: rgba(66, 216, 255, 0.07);
}

.remote-tab.active,
.config-tab.active {
  color: var(--text);
  background: rgba(66, 216, 255, 0.11);
  box-shadow: 0 0 0 1px rgba(66, 216, 255, 0.18) inset;
}

.remote-panel {
  display: none;
}

.remote-panel.active {
  display: block;
}

.form-grid,
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

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

.config-form .settings-grid,
.config-form .delay-table,
.config-form .editor-section,
.slot-settings-popover .form-grid {
  border: 1px solid rgba(148, 165, 190, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(66, 216, 255, 0.035), transparent 42%),
    rgba(7, 11, 17, 0.72);
  padding: 14px;
}

.switch-row {
  min-height: 42px;
  border: 1px solid rgba(148, 165, 190, 0.14);
  border-radius: 8px;
  background: #0a1018;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.alo-switch-row {
  justify-content: flex-start;
}

.switch-row.wide {
  grid-column: 1 / -1;
}

.alo-switch-row input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch-visual {
  width: 36px;
  height: 20px;
  flex: 0 0 36px;
  border-radius: 999px;
  border: 1px solid rgba(148, 165, 190, 0.18);
  background: rgba(22, 31, 45, 0.92);
  position: relative;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.switch-visual::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #92a2b7;
  transition: transform 0.16s ease, background 0.16s ease;
}

.alo-switch-row input[type="checkbox"]:checked + .switch-visual {
  border-color: rgba(66, 216, 255, 0.62);
  background: rgba(20, 98, 122, 0.62);
  box-shadow: 0 0 18px rgba(66, 216, 255, 0.16);
}

.alo-switch-row input[type="checkbox"]:checked + .switch-visual::after {
  transform: translateX(16px);
  background: #4bdcff;
}

.mini-check input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  accent-color: var(--cyan);
}

.config-form {
  min-height: 490px;
}

.editor-section {
  margin-top: 16px;
  border: 1px solid rgba(148, 165, 190, 0.13);
  border-radius: 8px;
  background: rgba(7, 13, 20, 0.58);
  padding: 12px;
}

.section-mini-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.section-mini-head h3 {
  margin: 0;
  font-size: 15px;
}

.small {
  min-height: 32px;
  padding-inline: 10px;
}

.rule-table,
.delay-table {
  display: grid;
  gap: 6px;
  overflow-x: auto;
}

.rule-head,
.rule-row,
.delay-head,
.delay-row {
  display: grid;
  gap: 8px;
  align-items: center;
}

.rule-head,
.rule-row {
  grid-template-columns: minmax(150px, 1.35fr) 80px minmax(110px, 1fr) minmax(110px, 1fr) minmax(110px, 1fr) 78px 42px;
  min-width: 850px;
}

.autobuy-table .rule-head,
.autobuy-table .rule-row {
  grid-template-columns: 54px minmax(180px, 1.5fr) minmax(110px, 1fr) minmax(110px, 1fr) minmax(110px, 1fr) 42px;
}

.boost-table .rule-head,
.boost-table .rule-row {
  grid-template-columns: 54px minmax(110px, 0.9fr) minmax(150px, 1fr) minmax(120px, 1fr) minmax(100px, 0.85fr) 54px minmax(120px, 1fr) minmax(120px, 1fr);
  min-width: 980px;
}

.boost-table .rule-row small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
}

.delay-head,
.delay-row {
  grid-template-columns: minmax(180px, 1fr) 140px 140px;
}

.rule-head,
.delay-head {
  color: var(--muted);
  font-size: 12px;
  border-bottom: 1px solid rgba(148, 165, 190, 0.14);
  padding-bottom: 6px;
}

.rule-row,
.delay-row {
  min-height: 42px;
}

.rule-row input,
.rule-row select,
.delay-row input {
  min-height: 36px;
}

.schedule-toolbar {
  display: grid;
  grid-template-columns: minmax(170px, 0.9fr) minmax(190px, 1fr) auto auto auto;
  gap: 10px;
  align-items: end;
}

.schedule-switch {
  min-height: 42px;
  padding-inline: 12px;
}

.remote-schedule-timeline {
  margin-top: 16px;
  border: 1px solid rgba(148, 165, 190, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(66, 216, 255, 0.045), transparent),
    #080f17;
  padding: 14px;
}

.timeline-editor {
  display: grid;
  gap: 6px;
}

.timeline-head {
  position: relative;
  height: 24px;
  color: var(--muted);
  font-size: 12px;
}

.timeline-head span {
  position: absolute;
  transform: translateX(-50%);
}

.timeline-track {
  position: relative;
  height: 136px;
  border-radius: 8px;
  overflow: hidden;
  background:
    repeating-linear-gradient(90deg, rgba(148, 165, 190, 0.08) 0 1px, transparent 1px calc(100% / 24)),
    rgba(12, 18, 27, 0.85);
  user-select: none;
}

.timeline-track i {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(148, 165, 190, 0.12);
}

.timeline-block {
  position: absolute;
  top: 32px;
  height: 72px;
  min-width: 16px;
  border: 1px solid rgba(66, 216, 255, 0.48);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(66, 216, 255, 0.34), rgba(21, 105, 130, 0.58));
  color: var(--text);
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) 34px 8px;
  align-items: stretch;
  gap: 2px;
  padding: 0;
  text-align: left;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.timeline-block.pause {
  border-color: rgba(241, 199, 91, 0.45);
  background: linear-gradient(180deg, rgba(241, 199, 91, 0.26), rgba(95, 68, 25, 0.62));
}

.timeline-block.disabled {
  opacity: 0.42;
}

.timeline-block.selected {
  border-color: rgba(66, 216, 255, 0.92);
  box-shadow: 0 0 0 2px rgba(66, 216, 255, 0.12), 0 16px 32px rgba(0, 0, 0, 0.28);
}

.timeline-block:hover {
  transform: translateY(-1px);
}

.timeline-block-copy {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 0 6px;
}

.timeline-block-copy strong,
.timeline-block-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-block-copy span {
  color: rgba(238, 245, 255, 0.76);
  font-size: 12px;
}

.timeline-block-gear {
  width: 30px;
  height: 30px;
  align-self: center;
  justify-self: center;
  border: 1px solid rgba(148, 165, 190, 0.18);
  border-radius: 8px;
  color: var(--text);
  background: rgba(5, 10, 16, 0.52);
  display: grid;
  place-items: center;
}

.timeline-block-gear:hover {
  color: var(--cyan);
  border-color: rgba(66, 216, 255, 0.36);
}

.timeline-resize-handle {
  display: block;
  width: 8px;
  height: 100%;
  cursor: ew-resize;
  background: rgba(255, 255, 255, 0.12);
  opacity: 0.75;
}

.timeline-resize-handle.start {
  border-radius: 8px 0 0 8px;
}

.timeline-resize-handle.end {
  border-radius: 0 8px 8px 0;
}

.timeline-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
}

.schedule-popover {
  margin-top: 12px;
  border: 1px solid rgba(66, 216, 255, 0.18);
  border-radius: 8px;
  background: rgba(8, 14, 22, 0.96);
  padding: 12px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.schedule-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.schedule-popover-head strong,
.schedule-popover-head span {
  display: block;
}

.schedule-popover-head span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.schedule-popover-grid {
  display: grid;
  grid-template-columns: 150px repeat(5, minmax(120px, 1fr));
  gap: 10px;
  align-items: end;
}

.schedule-popover-grid label {
  min-width: 0;
}

.schedule-popover-grid select,
.schedule-popover-grid input[type="time"] {
  width: 100%;
}

.schedule-block-list {
  display: none;
  gap: 10px;
  margin-top: 16px;
}

.schedule-block {
  display: grid;
  grid-template-columns: 130px 110px 110px 110px minmax(150px, 1fr) 120px 42px;
  gap: 8px;
  align-items: end;
  border: 1px solid rgba(148, 165, 190, 0.14);
  border-radius: 8px;
  background: #0a1018;
  padding: 10px;
  overflow-x: auto;
}

.schedule-block.pulse {
  border-color: rgba(66, 216, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(66, 216, 255, 0.1);
}

.code-editor {
  width: 100%;
  min-height: 360px;
  margin-top: 12px;
  resize: vertical;
  border: 1px solid rgba(66, 216, 255, 0.18);
  border-radius: 8px;
  background: #070d14;
  color: #dff8ff;
  padding: 12px;
  font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  outline: none;
}

.code-editor.small {
  min-height: 240px;
}

.code-editor:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(66, 216, 255, 0.1);
}

.stack-list.compact {
  max-height: 320px;
  overflow: auto;
}

@media (max-width: 960px) {
  body.mobile-nav-open {
    overflow: hidden;
  }

  .login-layout {
    grid-template-columns: 1fr;
    width: min(620px, calc(100% - 32px));
    padding: 32px 0;
  }

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

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 80;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 12px;
    background: rgba(6, 10, 16, 0.96);
    border-right: 0;
    border-bottom: 1px solid rgba(148, 165, 190, 0.13);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  }

  .portal-logo.compact {
    flex: 0 0 auto;
  }

  .portal-logo.compact img {
    width: 36px;
    height: 36px;
  }

  .mobile-nav-toggle {
    display: grid;
    margin-left: auto;
    flex: 0 0 auto;
  }

  .mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(1, 5, 10, 0.66);
    backdrop-filter: blur(5px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
  }

  body.mobile-nav-open .mobile-nav-backdrop {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-list {
    position: fixed;
    left: 0;
    top: 57px;
    bottom: 0;
    z-index: 70;
    width: min(310px, 84vw);
    display: flex;
    flex-direction: column;
    gap: 5px;
    overflow-y: auto;
    padding: 16px 14px 84px;
    background:
      linear-gradient(180deg, rgba(11, 17, 25, 0.99), rgba(5, 8, 13, 0.99));
    border-right: 1px solid rgba(148, 165, 190, 0.14);
    box-shadow: 24px 0 54px rgba(0, 0, 0, 0.42);
    transform: translateX(-105%);
    transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  body.mobile-nav-open .nav-list {
    transform: translateX(0);
  }

  .remote-tabbar::-webkit-scrollbar,
  .config-tabbar::-webkit-scrollbar {
    display: none;
  }

  .nav-item {
    min-height: 46px;
    padding: 0 14px;
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .nav-item::after {
    left: 0;
    right: auto;
    top: 10px;
    bottom: 10px;
    width: 2px;
    height: auto;
    transform: scaleY(0.55);
    transform-origin: center;
  }

  .nav-item.active::after {
    transform: scaleY(1);
  }

  .nav-item.logout {
    position: fixed;
    left: 14px;
    bottom: 14px;
    z-index: 72;
    width: calc(min(310px, 84vw) - 28px);
    margin-left: 0;
    margin-top: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-112%);
    transition: opacity 0.16s ease, transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  body.mobile-nav-open .nav-item.logout {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }

  .dashboard-main {
    width: min(100% - 22px, 1220px);
    padding: 16px 0 34px;
  }

  .dashboard-header {
    min-height: 52px;
    margin-bottom: 14px;
  }

  .dashboard-header h1 {
    font-size: 24px;
  }

  .info-card,
  .game-card,
  .table-card {
    padding: 14px;
  }

  .summary-grid,
  .buy-overview-grid,
  .purchase-layout,
  .account-grid,
  .remote-control-layout,
  .form-grid,
  .settings-grid,
  .schedule-toolbar,
  .payment-body {
    grid-template-columns: 1fr;
  }

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

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

  .remote-workbench {
    min-height: 0;
  }

  .remote-slot-grid {
    max-height: none;
  }

  .remote-tabbar,
  .config-tabbar {
    gap: 6px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    scrollbar-width: none;
  }

  .remote-tab,
  .config-tab {
    min-height: 40px;
    padding: 0 11px;
  }

  .remote-editor-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
  }

  .remote-editor-head select,
  .remote-editor-head input {
    width: 100%;
    min-width: 0;
  }

  .remote-editor-head .soft-button,
  .remote-editor-head .primary-button,
  .remote-editor-head .danger-button {
    min-height: 42px;
  }

  .schedule-block {
    grid-template-columns: 1fr;
  }

  .remote-schedule-timeline {
    overflow-x: auto;
  }

  .timeline-editor {
    min-width: 860px;
  }

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

@media (max-width: 620px) {
  .login-copy h1 {
    font-size: 42px;
  }

  .login-layout {
    width: min(100% - 22px, 430px);
  }

  .clean-login {
    padding: 28px 22px 24px;
  }

  .sidebar {
    padding: 8px 9px;
  }

  .portal-logo.compact img {
    width: 34px;
    height: 34px;
  }

  .nav-item {
    min-height: 38px;
    gap: 7px;
    padding: 0 10px;
    font-size: 13px;
  }

  .nav-item svg {
    width: 16px;
    height: 16px;
  }

  .nav-item.logout {
    padding-inline: 9px;
  }

  .dashboard-header,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .header-actions .soft-button {
    flex: 1 1 auto;
    justify-content: center;
  }

  .dashboard-main {
    width: min(100% - 16px, 1220px);
    padding-top: 12px;
  }

  .summary-grid,
  .game-grid {
    gap: 10px;
  }

  .card-title {
    align-items: flex-start;
  }

  .icon-badge {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .panel-head h2,
  .card-title h2,
  .section-head h2 {
    font-size: 18px;
  }

  .game-card-top {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .game-card-top .pill {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .metric-list div,
  .status-line {
    gap: 10px;
  }

  .remote-slot-grid {
    grid-template-columns: 1fr;
    max-height: none;
    padding-right: 2px;
  }

  .remote-slot-card {
    padding: 10px;
  }

  .remote-editor-head {
    grid-template-columns: 1fr;
  }

  .schedule-popover-grid {
    grid-template-columns: 1fr;
  }

  .timeline-block {
    height: 66px;
  }

  .remote-tabbar,
  .config-tabbar {
    margin-left: -2px;
    margin-right: -2px;
  }

  .remote-tab,
  .config-tab {
    min-height: 38px;
    font-size: 13px;
  }

  .remote-tab span,
  .config-tab span {
    width: 16px;
    height: 16px;
  }

  .form-stack,
  .form-grid,
  .settings-grid,
  .config-form,
  .editor-section {
    gap: 10px;
  }

  input,
  select,
  button,
  .soft-button,
  .primary-button,
  .danger-button {
    min-height: 44px;
  }

  .switch-row {
    min-height: 44px;
  }

  .remote-schedule-timeline {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .timeline-track {
    min-width: 720px;
  }

  .schedule-toolbar button,
  .schedule-toolbar label {
    width: 100%;
  }

  .inline-form,
  .payment-line > div {
    grid-template-columns: 1fr;
  }

  .order-meta {
    grid-template-columns: 1fr;
  }

  .payment-body {
    gap: 12px;
  }

  .payment-qr {
    justify-self: center;
  }
}

/* Purchase workspace */
.purchase-section {
  max-width: 1180px;
}

.purchase-heading {
  min-height: 64px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
  padding-bottom: 15px;
  border-bottom: 1px solid #1b2836;
}

.purchase-heading h2,
.purchase-heading p,
.purchase-block-head h3,
.purchase-block-head p {
  margin: 0;
}

.purchase-heading h2 {
  font-size: 23px;
  line-height: 1.15;
}

.purchase-heading p {
  margin-top: 5px;
  color: #8493a7;
  font-size: 12px;
}

.purchase-status {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 2px;
  color: #9aa8ba;
  font-size: 11px;
}

.purchase-status > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #35d878;
  box-shadow: 0 0 9px rgba(53, 216, 120, 0.45);
}

.purchase-surface {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  overflow: hidden;
  border: 1px solid #1d2b3a;
  border-radius: 7px;
  background: #090f16;
  animation: purchase-enter 220ms ease-out both;
}

@keyframes purchase-enter {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.purchase-config {
  min-width: 0;
  border-right: 1px solid #1d2b3a;
  background: #0c1219;
}

.purchase-block {
  padding: 22px 24px 24px;
  border-bottom: 1px solid #192534;
}

.purchase-block:last-of-type {
  border-bottom: 0;
}

.purchase-block-head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  margin-bottom: 15px;
}

.purchase-block-head > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #25394b;
  border-radius: 5px;
  color: #55d9fa;
  background: #0b1821;
}

.purchase-block-head > span svg {
  width: 17px;
  height: 17px;
}

.purchase-block-head h3 {
  color: #ecf3fb;
  font-size: 13px;
  font-weight: 700;
}

.purchase-block-head p {
  margin-top: 3px;
  color: #7f8ea2;
  font-size: 11px;
}

.checkout-game-options,
.checkout-plan-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.purchase-option {
  min-width: 0;
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border: 1px solid #253446;
  border-radius: 6px;
  color: #dce7f5;
  background: #090f16;
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.purchase-option:hover {
  border-color: #3a576e;
  background: #0d1720;
  transform: translateY(-1px);
}

.purchase-option.selected {
  border-color: #34c8ee;
  background: #0a1a23;
  box-shadow: inset 3px 0 #34c8ee;
}

.purchase-option > span:not(.plan-price) {
  min-width: 0;
  flex: 1;
}

.purchase-option strong,
.purchase-option small {
  display: block;
}

.purchase-option strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.purchase-option small {
  margin-top: 3px;
  color: #7f8ea2;
  font-size: 10px;
}

.purchase-option.game-choice img {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 5px;
  object-fit: cover;
}

.purchase-option.game-choice i {
  width: 18px;
  height: 18px;
  color: #54d9fa;
}

.purchase-option.game-choice i svg {
  width: 18px;
  height: 18px;
}

.purchase-option .plan-price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-left: auto;
}

.purchase-option .plan-price s {
  color: #68788d;
  font-size: 11px;
}

.purchase-option .plan-price b {
  color: #f3f7fc;
  font-size: 18px;
}

.currency-block .crypto-toolbar,
.currency-block .checkout-crypto-options,
.currency-block .refund-address-field,
.currency-block .altcoin-quote {
  margin-left: 45px;
}

.currency-block .crypto-toolbar {
  margin-bottom: 11px;
}

.currency-block .crypto-search {
  max-width: none;
  min-height: 41px;
  background: #080e14;
}

.currency-block .crypto-search > span {
  width: 17px;
  height: 17px;
}

.currency-block .crypto-search svg {
  width: 16px;
  height: 16px;
}

.currency-block .checkout-crypto-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-height: 260px;
  padding-right: 5px;
  overflow: auto;
  scrollbar-width: thin;
}

.currency-block .crypto-choice {
  min-height: 60px;
  border-radius: 6px;
  background: #090f16;
}

.currency-block .crypto-choice:hover {
  transform: translateY(-1px);
}

.currency-block .crypto-choice.selected {
  background: #0a1921;
  box-shadow: inset 3px 0 #35c8ed;
}

.currency-block .coin-image {
  border-radius: 50%;
}

.currency-block .refund-address-field,
.currency-block .altcoin-quote {
  border: 1px solid #223247;
  border-left: 3px solid #3c5d74;
  border-radius: 5px;
  background: #09121a;
}

.currency-block .refund-address-field {
  margin-top: 14px;
}

.currency-block .altcoin-quote {
  margin-top: 9px;
  border-left-color: #35c8ed;
}

.quote-prompt {
  min-height: 55px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 14px;
}

.quote-prompt strong,
.quote-prompt small {
  display: block;
}

.quote-prompt strong {
  color: #dae6f4;
  font-size: 12px;
}

.quote-prompt small {
  color: #7f8ea2;
  font-size: 10px;
}

.purchase-summary {
  position: sticky;
  top: 18px;
  min-width: 0;
  padding: 24px;
  background: #090f16;
}

.purchase-summary .summary-product {
  padding: 20px 0 17px;
}

.purchase-summary .summary-total {
  padding: 19px 0;
}

.purchase-summary .checkout-submit {
  min-height: 47px;
}

.purchase-config > .form-error {
  margin: 0 24px 22px;
}

.purchase-surface > .checkout-payment-view {
  grid-column: 1 / -1;
}

@media (max-width: 1040px) {
  .purchase-surface {
    grid-template-columns: minmax(0, 1fr) 310px;
  }

  .currency-block .checkout-crypto-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .purchase-surface {
    grid-template-columns: 1fr;
  }

  .purchase-config {
    border-right: 0;
    border-bottom: 1px solid #1d2b3a;
  }

  .purchase-summary {
    position: static;
  }
}

@media (max-width: 620px) {
  .purchase-heading {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .purchase-block {
    padding: 18px;
  }

  .checkout-game-options,
  .checkout-plan-options,
  .currency-block .checkout-crypto-options,
  .currency-block .refund-address-field,
  .quote-ready {
    grid-template-columns: 1fr;
  }

  .currency-block .crypto-toolbar,
  .currency-block .checkout-crypto-options,
  .currency-block .refund-address-field,
  .currency-block .altcoin-quote {
    margin-left: 0;
  }

  .purchase-summary {
    padding: 18px;
  }

  .purchase-config > .form-error {
    margin: 0 18px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .purchase-surface,
  .purchase-option,
  .currency-block .crypto-choice {
    animation: none;
    transition: none;
  }
}

@media (max-width: 420px) {
  .portal-logo.compact span {
    display: none;
  }

  .dashboard-header h1 {
    font-size: 21px;
  }

}

/* Dashboard v3 ----------------------------------------------------------- */
.dashboard-v3 {
  --bg: #080b10;
  --panel: #0d1219;
  --panel-soft: #111821;
  --line: #202b39;
  --line-soft: #18222f;
  background: var(--bg);
}

.dashboard-v3::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url("/alobot-logo.png") 72% 58% / min(42vw, 600px) auto no-repeat;
  opacity: 0.018;
}

.dashboard-v3 .dashboard-layout {
  grid-template-columns: 218px minmax(0, 1fr);
}

.dashboard-v3 .sidebar {
  width: 218px;
  padding: 20px 14px 16px;
  background: #090d13;
  border-right-color: #1b2633;
}

.dashboard-v3 .portal-logo.compact {
  min-height: 48px;
  padding: 0 10px 18px;
  border-bottom: 1px solid #192330;
  margin-bottom: 16px;
}

.dashboard-v3 .portal-logo.compact img {
  width: 38px;
  height: 38px;
}

.dashboard-v3 .nav-list {
  gap: 2px;
}

.dashboard-v3 .nav-item {
  min-height: 44px;
  border-radius: 4px;
  padding: 0 12px;
  font-size: 14px;
}

.dashboard-v3 .nav-item::before {
  inset: 0;
  border-radius: 4px;
  background: #101b24;
}

.dashboard-v3 .nav-item::after {
  top: 8px;
  bottom: 8px;
  border-radius: 0;
}

.dashboard-v3 .dashboard-main {
  width: min(1180px, calc(100% - 48px));
  padding: 28px 0 48px;
}

.dashboard-v3 .dashboard-header {
  min-height: 58px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid #1a2532;
}

.dashboard-v3 .dashboard-header h1 {
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: 0;
}

.section-label,
.dashboard-v3 .panel-label {
  margin: 0 0 5px;
  color: #42d8ff;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dashboard-v3 .panel-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.dashboard-v3 .panel-label svg {
  width: 16px;
  height: 16px;
}

.dashboard-v3 .section.active {
  gap: 18px;
}

.dashboard-v3 .section-head {
  min-height: 46px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid #192330;
}

.dashboard-v3 .section-head h2 {
  margin: 0;
  font-size: 21px;
  letter-spacing: 0;
}

.dashboard-v3 .compact-head {
  margin-top: 4px;
}

.account-overview,
.status-panel,
.redeem-strip,
.checkout-panel,
.payment-panel,
.settings-panel,
.dashboard-v3 .orders-surface,
.dashboard-v3 .game-card,
.dashboard-v3 .info-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  box-shadow: none;
}

.account-overview {
  display: grid;
  grid-template-columns: minmax(210px, 0.7fr) minmax(0, 1.7fr);
  align-items: center;
  gap: 24px;
  padding: 16px 18px;
}

.account-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.account-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #62ddff;
  border: 1px solid #235368;
  border-radius: 5px;
  background: #0b1820;
}

.account-identity span:not(.account-avatar) {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.account-identity strong {
  display: block;
  margin-top: 2px;
  font-size: 17px;
}

.account-facts {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.7fr;
  gap: 0;
  margin: 0;
}

.account-facts div {
  min-width: 0;
  padding: 0 16px;
  border-left: 1px solid #1c2734;
}

.account-facts dt {
  color: var(--muted);
  font-size: 11px;
}

.account-facts dd {
  overflow: hidden;
  margin: 5px 0 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.status-panel,
.settings-panel,
.checkout-panel,
.payment-panel {
  padding: 18px;
}

.status-panel h2,
.payment-panel h2 {
  margin: 0 0 7px;
  font-size: 19px;
}

.status-panel > .muted,
.payment-panel > .muted {
  margin: 0;
  min-height: 38px;
  line-height: 1.45;
}

.dashboard-v3 .overview-status-list {
  margin-top: 14px;
}

.dashboard-v3 .status-line {
  min-height: 36px;
}

.dashboard-v3 .status-value {
  font-size: 12px;
}

.dashboard-v3 .pill,
.dashboard-v3 .status-value {
  border-radius: 3px;
}

.dashboard-v3 .pill {
  min-height: 24px;
  padding: 3px 7px;
  background: #0b1017;
}

.dashboard-v3 .game-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-v3 .game-card {
  min-height: 230px;
  padding: 18px;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.dashboard-v3 .game-card::after,
.dashboard-v3 .info-card::before,
.dashboard-v3 .order-card::before {
  display: none;
}

.dashboard-v3 .game-card::before {
  inset: 0 0 0 auto;
  width: 46%;
  background-position: center;
  opacity: 0.075;
  -webkit-mask-image: linear-gradient(to right, transparent, black 45%);
  mask-image: linear-gradient(to right, transparent, black 45%);
}

.dashboard-v3 .game-card:hover {
  transform: none;
  background: #0f151e;
}

.dashboard-v3 .game-card-top img {
  width: 44px;
  height: 44px;
  border-radius: 5px;
}

.dashboard-v3 .game-card-top h3 {
  font-size: 18px;
}

.dashboard-v3 .metric-list {
  gap: 0;
  margin-top: 18px;
}

.dashboard-v3 .metric-list div {
  min-height: 32px;
  padding-top: 0;
}

.dashboard-v3 .game-card-footer {
  justify-content: flex-start;
}

.redeem-strip {
  display: grid;
  grid-template-columns: minmax(250px, 0.8fr) minmax(360px, 1.2fr);
  align-items: center;
  gap: 18px 28px;
  padding: 16px 18px;
}

.redeem-strip > div:first-child {
  display: flex;
  align-items: center;
  gap: 12px;
}

.redeem-strip > div:first-child > span {
  color: var(--cyan);
}

.redeem-strip strong,
.redeem-strip small {
  display: block;
}

.redeem-strip small {
  margin-top: 3px;
  color: var(--muted);
}

.redeem-strip .inline-form {
  margin: 0;
}

.redeem-strip > p {
  grid-column: 2;
  margin: -10px 0 0;
}

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

.dashboard-v3 .purchase-context .info-card {
  min-height: 0;
  padding: 14px 16px;
}

.dashboard-v3 .purchase-context .card-title {
  gap: 10px;
}

.dashboard-v3 .purchase-context .icon-badge {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
}

.dashboard-v3 .purchase-context h2 {
  font-size: 15px;
}

.dashboard-v3 .purchase-context p.compact-text {
  margin: 7px 0 0 42px;
  font-size: 12px;
}

.dashboard-v3 .purchase-layout {
  grid-template-columns: minmax(300px, 0.75fr) minmax(420px, 1.25fr);
  align-items: start;
}

.checkout-fields {
  display: grid;
  gap: 13px;
  margin-bottom: 16px;
}

.checkout-fields label,
.settings-panel label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.dashboard-v3 input,
.dashboard-v3 select {
  border-radius: 4px;
  background: #0a1017;
}

.dashboard-v3 button,
.dashboard-v3 .soft-button,
.dashboard-v3 .primary-button,
.dashboard-v3 .danger-button {
  border-radius: 4px;
}

.payment-panel {
  min-height: 330px;
}

.dashboard-v3 .payment-card,
.dashboard-v3 .payment-panel {
  border-color: var(--line);
}

.dashboard-v3 .payment-body {
  grid-template-columns: 180px minmax(0, 1fr);
}

.orders-surface {
  min-height: 240px;
  padding: 8px;
}

.dashboard-v3 .order-grid {
  gap: 8px;
}

.dashboard-v3 .order-card {
  border-radius: 4px;
  background: #0c1118;
}

.dashboard-v3 .account-grid {
  align-items: start;
}

.settings-panel .form-stack {
  margin-top: 6px;
}

.dashboard-v3 .account-access-panel {
  width: 100%;
}

.dashboard-v3 .purchase-context.single {
  grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 960px) {
  .dashboard-v3 .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-v3 .sidebar {
    width: auto;
    padding: 9px 12px;
  }

  .dashboard-v3 .portal-logo.compact {
    padding: 0;
    border: 0;
    margin: 0;
  }

  .account-overview,
  .redeem-strip {
    grid-template-columns: 1fr;
  }

  .redeem-strip > p {
    grid-column: 1;
  }

  .dashboard-v3 .dashboard-main {
    width: min(100% - 24px, 1180px);
  }
}

@media (max-width: 700px) {
  .account-facts,
  .overview-grid-v3,
  .dashboard-v3 .game-grid,
  .purchase-context,
  .dashboard-v3 .purchase-layout,
  .dashboard-v3 .account-grid {
    grid-template-columns: 1fr;
  }

  .account-facts div {
    padding: 10px 0;
    border-left: 0;
    border-top: 1px solid #1c2734;
  }

  .redeem-strip .inline-form {
    grid-template-columns: 1fr;
  }

  .dashboard-v3 .dashboard-header {
    flex-direction: row;
    align-items: center;
  }
}

@media (max-width: 460px) {
  .dashboard-v3 .dashboard-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-v3 .header-actions {
    width: 100%;
  }

  .dashboard-v3 #launcherDownload {
    flex: 1;
    justify-content: center;
  }
}

/* Premium checkout */
.dashboard-v3 [hidden] {
  display: none !important;
}

.checkout-title > span {
  color: var(--muted);
  font-size: 12px;
}

.buy-checkout-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
  border: 1px solid #1d2a39;
  border-radius: 7px;
  overflow: hidden;
  background: #0b1017;
}

.buy-checkout-main {
  min-width: 0;
  border-right: 1px solid #1d2a39;
  background: #0d131b;
}

.checkout-step {
  padding: 24px;
  border-bottom: 1px solid #1a2634;
}

.checkout-step:last-of-type {
  border-bottom: 0;
}

.checkout-step-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.checkout-step-title > span {
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  display: grid;
  place-items: center;
  border: 1px solid #285369;
  border-radius: 50%;
  color: #79e4ff;
  background: #0b1a23;
  font-size: 12px;
  font-weight: 750;
}

.checkout-step-title strong,
.checkout-step-title small {
  display: block;
}

.checkout-step-title strong {
  font-size: 14px;
}

.checkout-step-title small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.checkout-game-options,
.checkout-plan-options,
.checkout-payment-options,
.checkout-crypto-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.checkout-payment-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.checkout-crypto-options {
  position: relative;
  margin: 12px 0 0 46px;
  padding-left: 14px;
  border-left: 2px solid #1c4b60;
}

.checkout-choice,
.crypto-choice {
  position: relative;
  min-width: 0;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid #253244;
  border-radius: 6px;
  padding: 11px 13px;
  color: var(--text);
  background: #0a0f16;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.checkout-choice:hover,
.crypto-choice:hover {
  border-color: #37627a;
  background: #0d1720;
}

.checkout-choice.selected,
.crypto-choice.selected {
  border-color: #36c9ef;
  background: #0b1b24;
  box-shadow: 0 0 0 1px rgba(54, 201, 239, 0.13) inset;
}

.checkout-choice:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.checkout-choice > span:not(.method-icon),
.crypto-choice > span:last-child {
  min-width: 0;
  flex: 1;
}

.checkout-choice strong,
.checkout-choice small,
.crypto-choice strong,
.crypto-choice small {
  display: block;
}

.checkout-choice strong,
.crypto-choice strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkout-choice small,
.crypto-choice small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.game-choice img {
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  border-radius: 5px;
  object-fit: cover;
}

.game-choice i {
  width: 20px;
  height: 20px;
  color: #5edfff;
}

.game-choice i svg,
.method-icon svg {
  width: 18px;
  height: 18px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex: 0 0 auto !important;
}

.plan-price s {
  color: #718096;
  font-size: 12px;
  text-decoration-thickness: 1px;
}

.plan-choice .plan-price b {
  color: #f3f7fc;
  font-size: 17px;
  font-weight: 750;
}

.method-icon {
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  color: #64defe;
  background: #111c27;
  font-size: 15px;
  font-weight: 800;
}

.button-brand-icon {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.method-choice em {
  align-self: flex-start;
  border-radius: 3px;
  padding: 3px 6px;
  color: #61ef96;
  background: rgba(47, 224, 120, 0.1);
  font-size: 10px;
  font-style: normal;
  font-weight: 750;
}

.method-choice > .method-badges {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  gap: 4px;
}

.method-choice em.always-available {
  color: #72dfff;
  background: rgba(54, 201, 239, 0.1);
}

.method-choice em.fee {
  color: #ffc76a;
  background: rgba(255, 176, 56, 0.11);
}

.crypto-choice {
  min-height: 58px;
  padding-right: 42px;
}

.crypto-choice.selected {
  border-color: #31596b;
  background: #0b171f;
  box-shadow: none;
}

.crypto-choice.selected::after {
  content: "✓";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #071019;
  background: #4bd9fc;
  font-size: 12px;
  font-weight: 800;
  transform: translateY(-50%);
}

.buy-checkout-summary {
  position: sticky;
  top: 18px;
  padding: 24px;
}

.summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 15px;
  border-bottom: 1px solid #1c2836;
}

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

.summary-head strong {
  color: #dce8f7;
  font-size: 12px;
}

.summary-product {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
}

.summary-product img {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  object-fit: cover;
}

.summary-product strong,
.summary-product span {
  display: block;
}

.summary-product strong {
  font-size: 14px;
}

.summary-product span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.summary-lines {
  margin: 0;
  padding: 0 0 12px;
  border-bottom: 1px solid #1c2836;
}

.summary-lines > div,
.summary-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.summary-lines > div {
  min-height: 31px;
  color: var(--muted);
  font-size: 12px;
}

.summary-lines dt,
.summary-lines dd {
  margin: 0;
}

.summary-lines dd {
  color: #dfe9f6;
  font-weight: 650;
}

.summary-lines .discount dd {
  color: #52e88b;
}

.summary-lines .discount dt span {
  margin-left: 5px;
  border-radius: 3px;
  padding: 2px 5px;
  color: #59ed91;
  background: rgba(47, 224, 120, 0.1);
  font-size: 9px;
  font-weight: 750;
}

.summary-total {
  padding: 18px 0;
}

.summary-total span {
  font-size: 13px;
  font-weight: 650;
}

.summary-total strong {
  font-size: 25px;
  letter-spacing: 0;
}

.checkout-submit {
  min-height: 46px;
}

.checkout-note {
  margin: 10px 0 0;
  color: #77869b;
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}

.buy-checkout-main > .form-error {
  margin: 0 24px 22px;
}

.checkout-payment-view {
  grid-column: 1 / -1;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #0d131b;
}

.payment-view-head {
  min-height: 76px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid #1d2a39;
}

.payment-view-head > div span,
.payment-view-head > div strong {
  display: block;
}

.payment-view-head > div span {
  color: var(--muted);
  font-size: 11px;
}

.payment-view-head > div strong {
  margin-top: 3px;
  font-size: 15px;
}

.checkout-payment-view .payment-body {
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  padding: 28px;
}

.checkout-payment-view .qr-panel {
  width: 240px;
  min-height: 240px;
  align-self: start;
}

.payment-product {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 17px;
  border-bottom: 1px solid #1c2836;
}

.payment-product strong,
.payment-product span {
  display: block;
}

.payment-product > div > span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.payment-instructions {
  padding: 14px 16px;
  border: 1px solid #243346;
  border-radius: 5px;
  background: #0a1119;
}

.payment-instructions > strong {
  display: block;
  margin-bottom: 8px;
  color: #e5eef9;
  font-size: 12px;
}

.payment-instructions ol {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
  color: #96a7bb;
  font-size: 12px;
  line-height: 1.4;
}

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

.payment-expiry strong {
  color: #dce8f7;
}

.payment-expiry > div {
  text-align: right;
}

.payment-expiry > div strong,
.payment-expiry > div small {
  display: block;
}

.payment-expiry > div strong {
  color: #f3c95e;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}

.payment-expiry > div strong.expired {
  color: var(--red);
}

.payment-expiry > div small {
  margin-top: 3px;
  color: #728197;
  font-size: 10px;
}

@media (max-width: 900px) {
  .buy-checkout-shell {
    grid-template-columns: 1fr;
  }

  .buy-checkout-main {
    border-right: 0;
    border-bottom: 1px solid #1d2a39;
  }

  .buy-checkout-summary {
    position: static;
  }
}

@media (max-width: 620px) {
  .checkout-game-options,
  .checkout-plan-options,
  .checkout-payment-options,
  .checkout-crypto-options,
  .checkout-payment-view .payment-body {
    grid-template-columns: 1fr;
  }

  .checkout-step,
  .buy-checkout-summary {
    padding: 18px;
  }

  .checkout-crypto-options {
    margin-left: 0;
    padding-left: 12px;
  }

  .checkout-payment-view .qr-panel {
    width: min(100%, 280px);
    min-height: 0;
    aspect-ratio: 1;
    justify-self: center;
  }

  .payment-view-head {
    grid-template-columns: 1fr auto;
  }

  .payment-view-head > .pill {
    display: none;
  }
}

/* Crypto checkout */
.crypto-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px 39px;
}

.crypto-search {
  min-width: 0;
  max-width: 430px;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #263548;
  border-radius: 6px;
  color: #72849a;
  background: #080e15;
}

.crypto-search:focus-within {
  border-color: #37c9ed;
  box-shadow: 0 0 0 2px rgba(55, 201, 237, 0.09);
}

.crypto-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font: inherit;
}

.crypto-count {
  color: #728197;
  font-size: 11px;
  white-space: nowrap;
}

.checkout-crypto-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-height: 292px;
  margin: 0 0 0 39px;
  padding: 0 5px 0 0;
  overflow: auto;
  border: 0;
  scrollbar-width: thin;
}

.crypto-choice {
  min-height: 62px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 9px 10px;
  border-color: #243244;
  background: #090f16;
}

.crypto-choice.selected {
  border-color: #35c8ed;
  background: #0a1921;
  box-shadow: inset 3px 0 #35c8ed;
}

.crypto-choice.selected::after {
  content: none;
}

.coin-image {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #111a24;
}

.coin-image img {
  width: 31px;
  height: 31px;
  object-fit: contain;
}

.coin-image b,
.coin-mark b {
  color: #c7eafa;
  font-size: 10px;
  letter-spacing: 0;
}

.coin-copy {
  min-width: 0;
}

.coin-tags {
  display: grid;
  justify-items: end;
  gap: 3px;
}

.coin-tags em {
  border-radius: 3px;
  padding: 2px 5px;
  color: #61e997;
  background: rgba(47, 224, 120, 0.1);
  font-size: 9px;
  font-style: normal;
  font-weight: 750;
}

.coin-tags em.fee {
  color: #ffc76a;
  background: rgba(255, 176, 56, 0.1);
}

.crypto-empty {
  grid-column: 1 / -1;
  padding: 20px;
  border: 1px dashed #2a394b;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.altcoin-quote,
.refund-address-field {
  margin: 13px 0 0 39px;
  border-left: 2px solid #35c8ed;
  background: #09121a;
}

.quote-loading,
.quote-error,
.quote-ready {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
}

.quote-loading .loader-ring {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.quote-loading strong,
.quote-loading small,
.quote-error strong,
.quote-error small,
.quote-ready span,
.quote-ready strong {
  display: block;
}

.quote-loading strong,
.quote-error strong,
.quote-ready strong {
  font-size: 12px;
}

.quote-loading small,
.quote-error small,
.quote-ready span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.quote-error {
  border-left-color: var(--red);
  color: #ff9aad;
}

.quote-ready {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quote-ready > div + div {
  padding-left: 12px;
  border-left: 1px solid #203044;
}

.refund-address-field {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-left-color: #445871;
}

.field-heading label,
.field-heading small {
  display: block;
}

.field-heading label {
  font-size: 12px;
  font-weight: 650;
}

.field-heading label span {
  margin-left: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.field-heading small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.refund-address-input {
  position: relative;
}

.refund-address-input input {
  width: 100%;
  min-height: 39px;
  padding: 0 70px 0 11px;
  border: 1px solid #293a4e;
  border-radius: 5px;
  outline: 0;
  color: var(--text);
  background: #070d13;
  font: inherit;
}

.refund-address-input input:focus {
  border-color: #35c8ed;
}

.refund-address-input span {
  position: absolute;
  right: 10px;
  top: 50%;
  color: var(--muted);
  font-size: 10px;
  transform: translateY(-50%);
}

.refund-address-input span.valid { color: #57e28c; }
.refund-address-input span.invalid { color: #ff8297; }

.checkout-submit:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

@media (max-width: 1120px) {
  .checkout-crypto-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .crypto-toolbar,
  .checkout-crypto-options,
  .altcoin-quote,
  .refund-address-field {
    margin-left: 0;
  }

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

  .checkout-crypto-options,
  .quote-ready,
  .refund-address-field {
    grid-template-columns: 1fr;
  }

  .quote-ready > div + div {
    padding: 8px 0 0;
    border-top: 1px solid #203044;
    border-left: 0;
  }
}

/* Final purchase layout overrides. Keep these last so old dashboard rules cannot restyle it. */
.dashboard-v3 .dashboard-header {
  min-height: 58px;
  align-items: center;
  padding: 12px 0;
}

.header-account {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.header-account span {
  color: #718198;
  font-size: 11px;
}

.header-account strong {
  overflow: hidden;
  color: #dce6f2;
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.purchase-section {
  max-width: 1180px;
}

.purchase-surface {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  overflow: hidden;
  border: 1px solid #1d2b3a;
  border-radius: 7px;
  background: #090f16;
}

.purchase-config {
  min-width: 0;
  border-right: 1px solid #1d2b3a;
  background: #0c1219;
}

.purchase-option {
  border-radius: 6px;
}

.purchase-option.selected,
.currency-block .crypto-choice.selected {
  border-color: #34c8ee;
  background: #0a1a23;
  box-shadow: inset 3px 0 #34c8ee;
}

.purchase-option.selected::after,
.currency-block .crypto-choice.selected::after {
  content: none;
}

.currency-block .checkout-crypto-options {
  position: static;
  margin: 0 0 0 45px;
  padding: 0 5px 0 0;
  border: 0;
}

.purchase-summary {
  position: sticky;
  top: 18px;
  min-width: 0;
  padding: 24px;
  background: #090f16;
}

@media (max-width: 820px) {
  .purchase-surface {
    grid-template-columns: 1fr;
  }

  .purchase-config {
    border-right: 0;
    border-bottom: 1px solid #1d2b3a;
  }

  .purchase-summary {
    position: static;
  }
}

@media (max-width: 620px) {
  .dashboard-v3 .dashboard-header {
    align-items: center;
    flex-direction: row;
  }

  .header-account {
    flex: 1;
  }

  .currency-block .checkout-crypto-options {
    margin-left: 0;
  }
}

/* Checkout flow */
.purchase-config {
  min-height: 570px;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.checkout-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid #1d2b3a;
  background: #080e14;
}

.checkout-steps button {
  position: relative;
  min-width: 0;
  min-height: 72px;
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 10px;
  padding: 13px 18px;
  border: 0;
  border-right: 1px solid #192635;
  color: #718197;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease;
}

.checkout-steps button:last-child {
  border-right: 0;
}

.checkout-steps button::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: #36cbee;
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.checkout-steps button:hover,
.checkout-steps button.complete {
  color: #aebdce;
  background: #0b131b;
}

.checkout-steps button.current {
  color: #edf6ff;
  background: #0b1821;
}

.checkout-steps button.current::after {
  transform: scaleX(1);
}

.checkout-steps button > span {
  grid-row: 1 / 3;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  align-self: center;
  border: 1px solid #2b3c50;
  border-radius: 5px;
  color: #8799ae;
  font-size: 11px;
  font-weight: 750;
}

.checkout-steps button.current > span,
.checkout-steps button.complete > span {
  border-color: #2eaed0;
  color: #69dcf8;
  background: rgba(53, 200, 237, 0.08);
}

.checkout-steps strong,
.checkout-steps small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkout-steps strong {
  font-size: 12px;
}

.checkout-steps small {
  margin-top: 2px;
  font-size: 9px;
}

.checkout-stage[hidden] {
  display: none !important;
}

.checkout-stage.active {
  min-height: 410px;
  border-bottom: 0;
  animation: checkout-stage-in 190ms ease-out both;
}

@keyframes checkout-stage-in {
  from { opacity: 0; transform: translateX(7px); }
  to { opacity: 1; transform: translateX(0); }
}

.checkout-stage-footer {
  min-height: 53px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 24px;
  border-top: 1px solid #1b2837;
  color: #728197;
  background: #090f16;
  font-size: 10px;
}

.checkout-back {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid #29394b;
  border-radius: 5px;
  color: #c5d1de;
  background: #101720;
  cursor: pointer;
}

.checkout-back:hover {
  border-color: #3a586e;
  background: #131e29;
}

.checkout-back svg {
  width: 15px;
  height: 15px;
}

.currency-block .checkout-crypto-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-height: 194px;
}

.currency-block .crypto-choice {
  min-height: 58px;
}

.currency-block .coin-tags em:not(.fee) {
  color: #90a4b9;
  background: #111d28;
}

.checkout-network-field {
  margin: 14px 0 0 45px;
  padding-top: 13px;
  border-top: 1px solid #1e2d3d;
}

.checkout-network-field[hidden] {
  display: none !important;
}

.checkout-network-field .field-heading {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-bottom: 9px;
}

.checkout-network-field .field-heading small {
  margin: 0;
}

.checkout-network-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.network-choice {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid #273749;
  border-radius: 5px;
  color: #91a1b5;
  background: #090f16;
  font: inherit;
  font-size: 10px;
  cursor: pointer;
  transition: border-color 140ms ease, color 140ms ease, background-color 140ms ease;
}

.network-choice:hover {
  border-color: #3b566c;
  color: #d9e5f2;
}

.network-choice.selected {
  border-color: #34c8ee;
  color: #e8f8ff;
  background: #0a1a23;
}

.network-choice svg {
  width: 13px;
  height: 13px;
  color: #50dcf9;
}

.purchase-summary .summary-lines dd {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1040px) {
  .currency-block .checkout-crypto-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .purchase-config {
    min-height: 0;
  }

  .checkout-steps button {
    min-height: 62px;
    grid-template-columns: 23px minmax(0, 1fr);
    padding: 10px 8px;
    column-gap: 6px;
  }

  .checkout-steps button > span {
    width: 23px;
    height: 23px;
  }

  .checkout-steps small {
    display: none;
  }

  .checkout-stage.active {
    min-height: 0;
  }

  .checkout-stage-footer {
    padding: 8px 18px;
  }

  .currency-block .checkout-crypto-options {
    grid-template-columns: 1fr 1fr;
    max-height: 252px;
  }

  .checkout-network-field {
    margin-left: 0;
  }
}

@media (max-width: 420px) {
  .checkout-steps strong {
    font-size: 10px;
  }

  .currency-block .checkout-crypto-options {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .checkout-stage.active,
  .checkout-steps button::after {
    animation: none;
    transition: none;
  }
}

/* Exchange-style asset picker */
.crypto-picker {
  margin: 0 0 0 45px;
}

.crypto-picker-label {
  display: block;
  margin-bottom: 7px;
  color: #7e8fa3;
  font-size: 10px;
  font-weight: 650;
}

.crypto-picker-toggle {
  width: 100%;
  min-height: 64px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 9px 13px;
  border: 1px solid #2a3a4d;
  border-radius: 6px;
  color: #e6eef8;
  background: #080e15;
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.crypto-picker-toggle:hover,
.crypto-picker-toggle.open {
  border-color: #38c8ed;
  background: #0a151d;
  box-shadow: 0 0 0 2px rgba(56, 200, 237, 0.07);
}

.crypto-picker-toggle .coin-image {
  width: 42px;
  height: 42px;
  background: #101a24;
}

.crypto-picker-toggle .coin-image img {
  width: 36px;
  height: 36px;
}

.selected-coin-copy {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  column-gap: 9px;
}

.selected-coin-copy small {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  color: #718298;
  font-size: 9px;
}

.selected-coin-copy strong {
  color: #edf5ff;
  font-size: 15px;
}

.selected-coin-copy em {
  min-width: 0;
  overflow: hidden;
  color: #8596aa;
  font-size: 10px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-coin-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #8fa1b5;
  font-size: 10px;
}

.selected-coin-action svg {
  width: 15px;
  height: 15px;
  transition: transform 150ms ease;
}

.crypto-picker-toggle.open .selected-coin-action svg {
  transform: rotate(180deg);
}

.crypto-picker-panel {
  margin-top: 7px;
  overflow: hidden;
  border: 1px solid #263649;
  border-radius: 6px;
  background: #080e15;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
  animation: crypto-picker-in 150ms ease-out both;
}

.crypto-picker-panel[hidden] {
  display: none !important;
}

@keyframes crypto-picker-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.currency-block .crypto-picker-panel .crypto-toolbar {
  margin: 0;
  padding: 9px;
  border-bottom: 1px solid #1d2a39;
}

.currency-block .crypto-picker-panel .crypto-search {
  max-width: none;
  min-height: 36px;
  border-color: #243448;
  background: #0c141d;
}

.currency-block .crypto-picker-panel .checkout-crypto-options {
  max-height: 282px;
  display: block;
  margin: 0;
  padding: 0;
  overflow-y: auto;
}

.currency-block .crypto-picker-panel .crypto-choice {
  width: 100%;
  min-height: 54px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 11px;
  padding: 8px 12px;
  border: 0;
  border-bottom: 1px solid #172433;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.currency-block .crypto-picker-panel .crypto-choice:last-child {
  border-bottom: 0;
}

.currency-block .crypto-picker-panel .crypto-choice:hover {
  background: #0d1822;
}

.currency-block .crypto-picker-panel .crypto-choice.selected {
  border-color: #172433;
  background: #0b1b24;
  box-shadow: inset 3px 0 #36c9ef;
}

.currency-block .crypto-picker-panel .coin-image {
  width: 38px;
  height: 38px;
}

.currency-block .crypto-picker-panel .coin-image img {
  width: 33px;
  height: 33px;
}

.coin-list-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #73869a;
}

.coin-list-meta small {
  margin: 0;
  color: #718297;
  font-size: 9px;
  white-space: nowrap;
}

.coin-list-meta svg {
  width: 15px;
  height: 15px;
}

.crypto-choice.selected .coin-list-meta svg {
  color: #4fdaf8;
}

.currency-block .crypto-picker-panel .crypto-empty {
  border: 0;
  padding: 24px;
}

@media (max-width: 620px) {
  .crypto-picker {
    margin-left: 0;
  }

  .crypto-picker-toggle {
    grid-template-columns: 38px minmax(0, 1fr) auto;
  }

  .selected-coin-action {
    font-size: 0;
  }

  .currency-block .crypto-picker-panel .crypto-toolbar {
    flex-direction: row;
  }

  .coin-list-meta small {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .crypto-picker-panel,
  .selected-coin-action svg {
    animation: none;
    transition: none;
  }
}
