:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #eef3f8;
  --line: #d9e1ea;
  --text: #172033;
  --muted: #66748a;
  --primary: #136f63;
  --primary-dark: #0c5149;
  --gold: #c49226;
  --danger: #b42318;
  --warning: #9a6700;
  --radius: 8px;
  --shadow: 0 10px 30px rgba(20, 32, 50, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body:not(.admin-mode) .admin-only {
  display: none;
}

body.admin-mode .customer-only {
  display: none;
}

.hidden-admin-tool {
  display: none !important;
}

body.admin-mode #stakingForm {
  display: none;
}

body.admin-mode #stakingView .work-grid {
  grid-template-columns: minmax(0, 1fr);
}

body:not(.admin-mode) {
  background: #f6f8fb;
}

body:not(.admin-mode) .app-shell {
  display: block;
  min-height: 100vh;
}

body:not(.admin-mode) .sidebar,
body:not(.admin-mode) .topbar {
  display: none;
}

body:not(.admin-mode) .main {
  min-height: 100vh;
  padding: 22px;
  display: grid;
  place-items: center;
}

body:not(.admin-mode) #stakingView {
  width: 100%;
}

body:not(.admin-mode) #eventView {
  width: 100%;
}

body:not(.admin-mode) #stakingView .work-grid {
  width: min(100%, 420px);
  margin: 0 auto;
  grid-template-columns: 1fr;
  gap: 0;
}

body:not(.admin-mode) #stakingForm {
  padding: 28px;
  border-color: #e8edf4;
  border-radius: 8px;
  box-shadow: 0 18px 54px rgba(23, 32, 51, 0.12);
}

body:not(.admin-mode) #stakingForm label {
  margin-bottom: 16px;
  color: #3f4b5f;
  font-size: 14px;
  font-weight: 700;
}

body:not(.admin-mode) #stakingForm input,
body:not(.admin-mode) #stakingForm select {
  min-height: 56px;
  border-color: #d8e0ea;
  background: #fbfcfe;
  font-size: 18px;
  font-weight: 700;
}

body:not(.admin-mode) #stakingForm input:focus,
body:not(.admin-mode) #stakingForm select:focus {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(19, 111, 99, 0.12);
}

body:not(.admin-mode) #approveStakingBtn {
  width: 100%;
  min-height: 58px;
  margin-top: 4px;
  font-size: 18px;
}

.customer-staking-list {
  width: 100%;
  margin-top: 14px;
  padding: 18px;
  border: 1px solid #e8edf4;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 42px rgba(23, 32, 51, 0.08);
}

.customer-staking-list[hidden] {
  display: none;
}

.customer-staking-title {
  margin-bottom: 12px;
  color: #172033;
  font-size: 14px;
  font-weight: 800;
}

.customer-staking-items {
  display: grid;
  gap: 10px;
}

.customer-staking-item {
  border: 1px solid #dfe7f0;
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfe;
  display: grid;
  gap: 10px;
}

.customer-staking-item strong,
.customer-staking-item span {
  display: block;
}

.customer-staking-item strong {
  font-size: 15px;
}

.customer-staking-item span {
  margin-top: 3px;
  color: #66748a;
  font-size: 13px;
}

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

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
}

.sidebar {
  background: #111827;
  color: #f9fafb;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f0b429;
  color: #141414;
  font-weight: 800;
}

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

.brand span {
  color: #aab3c2;
  font-size: 12px;
  margin-top: 3px;
}

.nav {
  display: grid;
  gap: 6px;
}

.nav-item {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d8dee9;
  background: transparent;
  text-align: left;
}

.nav-item:hover,
.nav-item.active {
  background: #233047;
  color: #ffffff;
}

.super-admin-only[hidden] {
  display: none !important;
}

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

.topbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.admin-login-panel {
  min-height: calc(100vh - 120px);
  display: grid;
  place-items: center;
  padding: 28px;
}

.admin-login-panel[hidden] {
  display: none;
}

.admin-login-card {
  width: min(100%, 420px);
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.admin-login-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--gold);
  color: #141414;
  font-size: 24px;
  font-weight: 900;
}

.admin-login-card span,
.admin-login-card p {
  color: var(--muted);
}

.admin-login-card h2 {
  margin: 4px 0 6px;
  font-size: 26px;
}

.admin-login-card p {
  line-height: 1.5;
}

.team-badge {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  margin-left: 6px;
  padding: 0 8px;
  border-radius: 999px;
  background: #e8f3ef;
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 900;
  vertical-align: middle;
}

.team-summary-card em {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.team-summary-card.active {
  border-color: rgba(19, 111, 99, 0.35);
  box-shadow: 0 0 0 3px rgba(19, 111, 99, 0.1);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 26px;
  line-height: 1.2;
}

h2 {
  font-size: 16px;
  line-height: 1.3;
}

h3 {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.topbar p {
  color: var(--muted);
  margin-top: 6px;
}

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

.primary-button,
.ghost-button,
.icon-button {
  min-height: 38px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0 14px;
  font-weight: 700;
}

.primary-button {
  background: var(--primary);
  color: #ffffff;
}

.primary-button:hover {
  background: var(--primary-dark);
}

.ghost-button,
.icon-button {
  background: #ffffff;
  color: var(--text);
  border-color: var(--line);
}

.icon-button {
  width: 40px;
  padding: 0;
  font-size: 18px;
}

.toast {
  position: fixed;
  right: 24px;
  top: 22px;
  z-index: 10;
  max-width: 360px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #172033;
  color: #ffffff;
  box-shadow: var(--shadow);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(17, 24, 39, 0.48);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  width: min(760px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(17, 24, 39, 0.24);
  padding: 16px;
}

.narrow-modal {
  width: min(520px, 100%);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.modal-head p {
  color: var(--muted);
  margin-top: 5px;
  font-size: 13px;
}

.diagnostic-box,
.error-box {
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: 13px;
  line-height: 1.45;
}

.diagnostic-box {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
}

.error-box {
  border: 1px solid #ffc9c3;
  background: #fff1ef;
  color: var(--danger);
}

.countdown-panel {
  border: 1px solid #b7dfd4;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 14px;
  background: #f0fbf7;
}

.countdown-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}

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

.time-box {
  min-height: 54px;
  border: 1px solid #cfe9e1;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #ffffff;
}

.time-box strong,
.time-box span {
  display: block;
  text-align: center;
}

.time-box strong {
  font-size: 20px;
  line-height: 1;
}

.time-box span {
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}

.countdown-grid.expired .time-box {
  background: #fff4d6;
}

.countdown-line {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid #d5e1ee;
  border-radius: 8px;
  background: #f8fafc;
}

.countdown-days {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  color: var(--primary);
  font-weight: 800;
}

.countdown-days small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.countdown-clock {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  color: var(--text);
  letter-spacing: 0;
}

.countdown-line.expired {
  border-color: #f2d99b;
  background: #fff8e6;
}

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

.wallet-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  align-content: start;
  gap: 10px;
}

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

.wallet-option {
  width: 100%;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-align: left;
}

.wallet-option:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(19, 111, 99, 0.08);
}

.wallet-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-2);
  font-weight: 800;
}

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

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

.compact-label {
  margin-bottom: 0;
}

.field-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.address-box {
  display: block;
  width: 100%;
  min-height: 42px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  overflow-wrap: anywhere;
}

.wallet-launch-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.wallet-launch-row .ghost-button {
  flex: 1 1 140px;
}

.trust-send-button {
  width: 100%;
  margin-top: 8px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

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

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

.metric {
  padding: 18px;
  min-height: 108px;
  display: grid;
  align-content: space-between;
}

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

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

.ops-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.staking-admin-panel {
  padding: 18px;
}

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

.staking-admin-panel .filter-row {
  min-width: min(340px, 100%);
}

.staking-card-list {
  display: grid;
  gap: 12px;
}

.staking-admin-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  display: grid;
  gap: 12px;
  box-shadow: 0 8px 20px rgba(20, 32, 50, 0.05);
}

.staking-card-head,
.staking-card-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.staking-card-title strong,
.staking-card-title span {
  display: block;
}

.staking-card-title strong {
  font-size: 16px;
}

.staking-card-wallet {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.staking-card-wallet span,
.staking-card-field > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.staking-card-wallet strong {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-all;
  line-height: 1.45;
}

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

.staking-card-field {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.staking-card-field strong,
.staking-card-field small {
  display: block;
}

.staking-card-field strong {
  font-size: 15px;
}

.staking-card-countdown .countdown-line {
  width: 100%;
  justify-content: space-between;
}

.staking-card-actions {
  padding-top: 4px;
}

.staking-card-actions .execute-cell {
  width: min(100%, 380px);
}

.staking-card-actions .row-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 18px;
  color: var(--muted);
  background: #fbfcfe;
  text-align: center;
}

.ops-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfe;
}

.ops-card span,
.ops-card strong {
  display: block;
}

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

.ops-card strong {
  margin-top: 6px;
  font-size: 18px;
}

.filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-subgrid {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.sub-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfe;
}

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

.execute-cell {
  display: grid;
  grid-template-columns: minmax(92px, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.inline-amount {
  min-height: 30px;
  padding: 4px 8px;
}

.split-layout,
.work-grid {
  display: grid;
  gap: 16px;
}

.split-layout {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.work-grid {
  grid-template-columns: 320px minmax(0, 1fr);
}

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

.panel {
  padding: 16px;
  min-width: 0;
}

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

.stacked-head {
  margin-top: 18px;
}

.form-panel {
  align-self: start;
}

.customer-admin-field {
  display: none;
}

body.admin-mode .customer-admin-field {
  display: grid;
}

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

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 10px 11px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(19, 111, 99, 0.12);
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.check-row input {
  width: 16px;
  height: 16px;
}

.search {
  max-width: 220px;
  min-height: 36px;
}

.table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.wallet-table {
  min-width: 0;
  table-layout: fixed;
}

.wallet-table th:first-child,
.wallet-table td:first-child {
  width: 180px;
}

.customer-table {
  min-width: 780px;
}

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

.withdrawal-table {
  min-width: 920px;
}

.staking-table {
  min-width: 1260px;
}

.product-table {
  min-width: 560px;
}

th,
td {
  padding: 11px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

th {
  color: var(--muted);
  background: var(--surface-2);
  font-size: 12px;
  text-transform: uppercase;
}

td {
  font-size: 14px;
}

tr:last-child td {
  border-bottom: 0;
}

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

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.wallet-address-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.full-address {
  display: block;
  overflow-wrap: anywhere;
  word-break: break-all;
  line-height: 1.45;
}

.copy-button {
  min-width: 58px;
}

@media (max-width: 720px) {
  .wallet-table th:first-child,
  .wallet-table td:first-child {
    width: 112px;
  }

  .wallet-address-line {
    grid-template-columns: 1fr;
  }

  .wallet-address-line .copy-button {
    justify-self: start;
  }
}

.wallet-balance-cell strong,
.wallet-balance-cell .muted {
  display: block;
  white-space: nowrap;
}

.event-reward-cell strong {
  color: var(--gold);
  display: block;
  white-space: nowrap;
}

.event-reward-cell .muted {
  display: block;
  max-width: 180px;
}

.inline-name-input {
  min-width: 180px;
  max-width: 260px;
  min-height: 34px;
  padding: 7px 9px;
  font-weight: 700;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 9px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.pill.ok {
  background: #e7f8ef;
  color: #087443;
}

.pill.warn {
  background: #fff4d6;
  color: var(--warning);
}

.pill.danger {
  background: #ffebe9;
  color: var(--danger);
}

.queue-list,
.audit-list {
  display: grid;
  gap: 10px;
}

.queue-item,
.audit-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 6px;
  background: #fff;
}

.queue-item strong,
.audit-item strong {
  font-size: 14px;
}

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

.small-button {
  min-height: 30px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0 10px;
  font-weight: 700;
}

.small-button.approve {
  color: var(--primary);
}

.small-button.reject {
  color: var(--danger);
}

@media (max-width: 1180px) {
  .staking-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .staking-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .staking-card-actions {
    display: grid;
    justify-content: stretch;
  }

  .staking-card-actions .execute-cell,
  .staking-card-actions .row-actions {
    width: 100%;
  }

  .staking-card-actions .row-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 1040px) {
  .app-shell {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .brand div:last-child,
  .nav-item span {
    display: none;
  }

  .sidebar {
    padding: 18px 12px;
    align-items: center;
  }

  .nav-item {
    justify-content: center;
    padding: 0;
  }

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

  .split-layout,
  .work-grid,
  .wallet-grid,
  .admin-subgrid,
  .ops-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 5;
    flex-direction: row;
    justify-content: space-between;
    padding: 10px;
  }

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

  .nav-item {
    width: 42px;
    flex: 0 0 42px;
  }

  .main {
    padding: 16px;
  }

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

  .top-actions {
    width: 100%;
  }

  .primary-button {
    flex: 1;
  }

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

  .staking-card-grid,
  .staking-card-wallet {
    grid-template-columns: 1fr;
  }
}

body:not(.admin-mode) {
  --customer-bg: #05090f;
  --customer-panel: rgba(16, 23, 33, 0.9);
  --customer-panel-2: rgba(20, 29, 42, 0.88);
  --customer-line: rgba(255, 218, 61, 0.18);
  --customer-text: #f7f9ff;
  --customer-muted: #9aa4b4;
  --customer-gold: #ffd52e;
  --customer-green: #35e078;
  background:
    linear-gradient(180deg, rgba(5, 9, 15, 0.46), rgba(5, 9, 15, 0.9)),
    url("/assets/staking-bg-gold.png") center top / cover fixed;
  color: var(--customer-text);
}

body:not(.admin-mode) .main {
  padding: 0;
  align-items: start;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 213, 46, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(5, 9, 15, 0.2), rgba(5, 9, 15, 0.86));
}

body:not(.admin-mode) #stakingView .work-grid {
  width: min(100%, 430px);
  min-height: 100vh;
  padding: 20px 16px 28px;
  gap: 14px;
}

body:not(.admin-mode) #stakingForm {
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body:not(.admin-mode) .event-page {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 20px 16px 28px;
}

.customer-app-head {
  min-height: 52px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.customer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--customer-gold);
}

.customer-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.customer-event-pill {
  min-height: 38px;
  border: 1px solid rgba(255, 213, 46, 0.34);
  border-radius: 999px;
  padding: 0 13px;
  background: rgba(255, 213, 46, 0.12);
  color: var(--customer-gold);
  font-weight: 900;
}

.customer-event-pill:hover {
  background: var(--customer-gold);
  color: #11151d;
}

.customer-brand-mark {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

.customer-brand strong {
  font-size: 21px;
  line-height: 1;
}

.customer-wallet-pill {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 213, 46, 0.34);
  background: var(--customer-gold);
  color: #11151d;
  font-weight: 900;
}

.customer-network-dot {
  width: 24px;
  height: 24px;
  display: inline-block;
  border: 2px solid #11151d;
  border-radius: 50%;
  position: relative;
}

.customer-network-dot::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 2px solid #11151d;
  border-radius: 50%;
}

.customer-hero-card,
.stake-field,
.customer-event-reward,
.customer-countdown-preview,
.customer-staking-list {
  border: 1px solid rgba(255, 213, 46, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(21, 31, 45, 0.94), rgba(10, 16, 25, 0.92)),
    rgba(12, 18, 28, 0.94);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
}

.customer-hero-card {
  padding: 20px 18px;
  margin-bottom: 14px;
}

.customer-event-reward {
  margin-bottom: 14px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.customer-event-reward[hidden] {
  display: none;
}

.customer-event-reward span,
.customer-event-reward small {
  display: block;
  color: var(--customer-muted);
}

.customer-event-reward strong {
  color: var(--customer-gold);
  font-size: 20px;
  white-space: nowrap;
}

.customer-event-reward small {
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.35;
}

.hero-status-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-check {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--customer-gold);
  color: #11151d;
  font-size: 30px;
  font-weight: 900;
}

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

.hero-status-row strong {
  color: var(--customer-text);
  font-size: 21px;
  line-height: 1.15;
}

.hero-status-row small {
  margin-top: 5px;
  color: var(--customer-muted);
  font-size: 13px;
}

.hero-active-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--customer-green);
  font-size: 13px;
  font-weight: 800;
}

.hero-active-dot::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 16px currentColor;
}

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

.hero-metrics span {
  min-width: 0;
  padding: 17px 8px 0;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-metrics span:last-child {
  border-right: 0;
}

.hero-metrics small,
.hero-metrics strong,
.hero-metrics em {
  display: block;
}

.hero-metrics small {
  color: var(--customer-muted);
  font-size: 11px;
}

.hero-metrics strong {
  margin-top: 8px;
  color: var(--customer-gold);
  font-size: 23px;
  line-height: 1.05;
}

.hero-metrics em {
  margin-top: 6px;
  color: var(--customer-muted);
  font-size: 11px;
  font-style: normal;
}

body:not(.admin-mode) #stakingForm label {
  margin-bottom: 14px;
  color: var(--customer-text);
  font-size: 14px;
}

body:not(.admin-mode) #stakingForm .customer-name-field input {
  min-height: 54px;
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(8, 12, 20, 0.72);
  color: var(--customer-text);
  font-size: 18px;
  font-weight: 800;
}

body:not(.admin-mode) #stakingForm:not(.has-product-selected) .stake-amount-field,
body:not(.admin-mode) #stakingForm:not(.has-product-selected) #customerCountdownPreview,
body:not(.admin-mode) #stakingForm:not(.has-product-selected) #approveStakingBtn {
  display: none;
}

.stake-field {
  padding: 20px 18px;
}

.stake-field-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  color: var(--customer-text);
  font-size: 21px;
  font-weight: 800;
}

.stake-field-title::before {
  content: "";
  width: 28px;
  height: 28px;
  border: 2px solid var(--customer-gold);
  border-radius: 50%;
  box-shadow: inset 0 -8px 0 rgba(255, 213, 46, 0.18);
}

.stake-amount-control {
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 44px 44px;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(7, 11, 19, 0.78);
}

body:not(.admin-mode) #stakingForm .stake-amount-control input {
  min-height: 56px;
  border: 0 !important;
  background: transparent !important;
  color: var(--customer-text) !important;
  padding: 0 4px;
  font-size: 33px;
  font-weight: 600;
}

body:not(.admin-mode) #stakingForm .stake-amount-control input:focus,
body:not(.admin-mode) #stakingForm .customer-name-field input:focus {
  border-color: rgba(255, 213, 46, 0.45);
  background: rgba(10, 15, 24, 0.88) !important;
  box-shadow: 0 0 0 3px rgba(255, 213, 46, 0.12);
}

body:not(.admin-mode) #stakingForm .stake-amount-control input::placeholder,
body:not(.admin-mode) #stakingForm .customer-name-field input::placeholder {
  color: rgba(222, 228, 239, 0.72);
}

.asset-unit {
  color: #dce2ec;
  font-size: 18px;
  font-weight: 900;
}

.amount-step {
  width: 44px;
  height: 44px;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(28, 39, 55, 0.86);
  color: #e8edf6;
  font-size: 26px;
}

.stake-range-copy {
  display: flex;
  justify-content: space-between;
  margin: 14px 0 10px;
  color: var(--customer-muted);
}

.stake-range-copy small {
  font-size: 13px;
}

.stake-range {
  accent-color: var(--customer-gold);
  height: 7px;
  padding: 0;
}

.amount-preset-row,
.period-chip-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 16px;
}

.amount-preset-row button,
.period-chip-row button {
  min-height: 46px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(8, 12, 20, 0.66);
  color: #d9e0eb;
  font-weight: 800;
}

.period-chip-row button {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  justify-items: start;
  gap: 5px;
  padding: 12px 14px;
  text-align: left;
}

.period-chip-row button.event-staking {
  border-color: rgba(255, 213, 46, 0.44);
  background:
    linear-gradient(135deg, rgba(255, 213, 46, 0.17), rgba(8, 12, 20, 0.72)),
    rgba(8, 12, 20, 0.74);
}

.period-chip-row button.has-countdown {
  min-height: 84px;
}

.period-event-mark {
  display: inline-flex;
  min-height: 20px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 999px;
  background: #ffcc26;
  color: #131821;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.period-chip-main {
  display: grid;
  gap: 4px;
}

.period-chip-main small,
.period-chip-terms,
.event-complete-text {
  color: var(--customer-muted);
  font-size: 12px;
}

.period-chip-row button.active .period-event-mark,
.period-chip-row button:hover .period-event-mark {
  background: #15110a;
  color: #ffcc26;
}

.period-chip-label {
  display: block;
  line-height: 1.1;
}

.period-chip-terms {
  justify-self: end;
  color: var(--customer-gold);
  font-weight: 900;
  white-space: nowrap;
}

.event-complete-stamp {
  justify-self: end;
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 3px solid #ef4444;
  border-radius: 50%;
  color: #ef4444;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  transform: rotate(-14deg);
  box-shadow: inset 0 0 0 2px rgba(239, 68, 68, 0.16);
}

.period-chip-row button.event-completed {
  opacity: 0.78;
}

.event-complete-text {
  justify-self: end;
  color: #ffdf6b;
  font-weight: 900;
}

.event-progress-text {
  justify-self: end;
  color: #ffe99b;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.period-chip-countdown {
  display: inline-grid;
  justify-items: center;
  gap: 3px;
  width: 100%;
}

.event-participation-modal,
.event-name-modal,
.staking-notice-modal {
  max-width: 430px;
  color: #152032;
}

.event-participation-modal .modal-head h2,
.event-name-modal .modal-head h2,
.staking-notice-modal .modal-head h2 {
  color: #152032;
}

.event-participation-modal .modal-head p,
.event-name-modal .modal-head p,
.staking-notice-modal .modal-head p,
.event-participation-body p {
  color: #475569;
}

.event-participation-body {
  display: grid;
  gap: 12px;
  line-height: 1.55;
}

.event-participation-body strong {
  color: var(--primary-dark);
  font-size: 18px;
}

.staking-notice-body {
  display: grid;
  gap: 12px;
  color: #1f2937;
  line-height: 1.55;
}

.staking-notice-body strong {
  color: #b45309;
  font-size: 24px;
}

.staking-notice-body p {
  margin: 0;
  color: #475569;
}

.staking-notice-body dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.staking-notice-body dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.staking-notice-body dt {
  color: #64748b;
  font-weight: 800;
}

.staking-notice-body dd {
  margin: 0;
  color: #0f172a;
  font-weight: 900;
  text-align: right;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.period-chip-countdown .countdown-line {
  width: 100%;
  justify-content: center;
  gap: 4px;
  padding: 4px 5px;
  border-color: rgba(255, 213, 46, 0.22);
  background: rgba(255, 213, 46, 0.16);
  color: #ffe99b;
}

.period-chip-countdown .countdown-clock {
  color: #fff3c4;
  font-size: 11px;
}

.period-chip-countdown .countdown-days {
  color: var(--customer-gold);
}

.period-chip-countdown .countdown-days small {
  color: #f4e4a2;
}

.period-chip-countdown > small {
  color: var(--customer-gold);
  font-size: 10px;
  font-weight: 900;
}

.period-chip-row button.active .period-chip-countdown .countdown-line,
.period-chip-row button:hover .period-chip-countdown .countdown-line {
  background: rgba(17, 21, 29, 0.16);
  border-color: rgba(17, 21, 29, 0.24);
}

.period-chip-row button.active .period-chip-countdown .countdown-clock,
.period-chip-row button:hover .period-chip-countdown .countdown-clock,
.period-chip-row button.active .period-chip-countdown .countdown-days,
.period-chip-row button:hover .period-chip-countdown .countdown-days,
.period-chip-row button.active .period-chip-countdown .countdown-days small,
.period-chip-row button:hover .period-chip-countdown .countdown-days small {
  color: #15110a;
}

.period-chip-row button.active .period-chip-countdown > small,
.period-chip-row button:hover .period-chip-countdown > small {
  color: #15110a;
}

.amount-preset-row button:hover,
.period-chip-row button:hover,
.period-chip-row button.active {
  border-color: transparent;
  background: var(--customer-gold);
  color: #15110a;
}

.amount-preset-row button:disabled,
.period-chip-row button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

body:not(.admin-mode) .stake-period-field select {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.period-hint {
  display: block;
  margin-top: 14px;
  color: var(--customer-muted);
  font-size: 13px;
}

.period-hint::before {
  content: "☆ ";
  color: var(--customer-gold);
}

.event-card {
  padding: 22px 18px 20px;
  border: 1px solid rgba(255, 213, 46, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(21, 31, 45, 0.96), rgba(7, 12, 20, 0.95)),
    rgba(12, 18, 28, 0.94);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.event-card-head {
  display: grid;
  gap: 5px;
  text-align: center;
}

.event-card-head span {
  color: var(--customer-gold);
  font-size: 12px;
  font-weight: 900;
}

.event-card-head strong {
  color: var(--customer-text);
  font-size: 30px;
  line-height: 1.05;
}

.event-card-head small {
  color: var(--customer-muted);
  font-size: 13px;
}

.roulette-shell {
  width: min(100%, 330px);
  aspect-ratio: 1;
  margin: 28px auto 22px;
  position: relative;
  display: grid;
  place-items: center;
}

.roulette-pointer {
  position: absolute;
  top: 20px;
  z-index: 4;
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 24px solid var(--customer-gold);
  border-bottom: 0;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
  animation: pointerPulse 0.8s ease-in-out infinite alternate;
}

.roulette-wheel {
  width: 100%;
  height: 100%;
  border: 10px solid rgba(255, 213, 46, 0.9);
  border-radius: 50%;
  position: relative;
  background:
    radial-gradient(circle at center, rgba(8, 12, 20, 0.95) 0 21%, transparent 22%),
    conic-gradient(
      #ffda35 0deg 36deg,
      #141d2b 36deg 72deg,
      #f2b631 72deg 108deg,
      #0c1421 108deg 144deg,
      #ffcf2b 144deg 180deg,
      #172234 180deg 216deg,
      #ffd64d 216deg 252deg,
      #10192a 252deg 288deg,
      #efb923 288deg 324deg,
      #192438 324deg 360deg
    );
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
  will-change: transform;
}

.roulette-wheel::before {
  content: "";
  position: absolute;
  inset: 17px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.roulette-wheel::after {
  content: "";
  position: absolute;
  inset: 41%;
  border-radius: 50%;
  background:
    radial-gradient(circle, #ffffff 0 12%, var(--customer-gold) 13% 58%, #8f6510 60% 100%);
  box-shadow: 0 0 18px rgba(255, 213, 46, 0.34);
}

.roulette-wheel.is-spinning {
  filter: saturate(1.18) brightness(1.06);
}

.roulette-wheel span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  margin-left: -32px;
  margin-top: -12px;
  transform: rotate(calc(var(--i) * 36deg + 18deg)) translateY(-112px) rotate(calc((var(--i) * -36deg) - 18deg));
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.54);
}

.roulette-spin-button {
  width: 92px;
  height: 92px;
  border: 0;
  border-radius: 50%;
  position: absolute;
  z-index: 3;
  background: var(--customer-gold);
  color: #10151d;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 8px 28px rgba(255, 213, 46, 0.25);
}

.roulette-spin-button:disabled {
  opacity: 0.86;
  cursor: not-allowed;
}

.roulette-lights {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, #fff4aa 0 5px, transparent 6px),
    radial-gradient(circle at 93% 25%, #fff4aa 0 5px, transparent 6px),
    radial-gradient(circle at 93% 75%, #fff4aa 0 5px, transparent 6px),
    radial-gradient(circle at 50% 100%, #fff4aa 0 5px, transparent 6px),
    radial-gradient(circle at 7% 75%, #fff4aa 0 5px, transparent 6px),
    radial-gradient(circle at 7% 25%, #fff4aa 0 5px, transparent 6px);
  animation: rouletteLights 0.7s steps(2, end) infinite;
  opacity: 0.9;
}

.roulette-ball {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.48), 0 0 12px rgba(255, 255, 255, 0.55);
  transform: rotate(0deg) translateY(-139px);
  transform-origin: center center;
  z-index: 2;
  will-change: transform;
}

.roulette-ball.is-spinning {
  animation: ballPulse 0.18s linear infinite alternate;
}

.event-notice {
  margin: -6px 0 14px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 213, 46, 0.15);
  border-radius: 8px;
  background: rgba(255, 213, 46, 0.08);
  color: #d8deea;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.event-result {
  min-height: 108px;
  display: grid;
  place-items: center;
  gap: 5px;
  padding: 16px;
  border: 1px solid rgba(255, 213, 46, 0.16);
  border-radius: 8px;
  background: rgba(6, 10, 17, 0.62);
  text-align: center;
}

.event-result span,
.event-result small {
  color: var(--customer-muted);
}

.event-result strong {
  color: var(--customer-gold);
  font-size: 30px;
  line-height: 1;
}

@keyframes rouletteLights {
  0% {
    filter: brightness(0.7);
  }
  100% {
    filter: brightness(1.45);
  }
}

@keyframes pointerPulse {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-4px);
  }
}

@keyframes ballPulse {
  from {
    filter: brightness(0.92);
  }
  to {
    filter: brightness(1.35);
  }
}

body:not(.admin-mode) #approveStakingBtn {
  width: 100%;
  min-height: 68px;
  margin: 10px 0 12px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffe45a, #ffd01e);
  color: #141414;
  box-shadow: 0 12px 30px rgba(255, 208, 30, 0.24);
  font-size: 21px;
  font-weight: 900;
}

body:not(.admin-mode) #approveStakingBtn::after {
  content: "";
}

.customer-countdown-preview {
  padding: 12px 16px 14px;
}

.preview-head {
  display: grid;
  gap: 3px;
  margin-bottom: 10px;
}

.preview-head span {
  color: var(--customer-gold);
  font-size: 19px;
  font-weight: 800;
}

.preview-head strong {
  color: var(--customer-muted);
  font-size: 13px;
}

.selected-product-countdowns {
  display: grid;
  gap: 8px;
}

.selected-countdown-item {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(7, 11, 19, 0.58);
}

.selected-countdown-item > span {
  min-width: 0;
  color: var(--customer-text);
  font-size: 13px;
  font-weight: 800;
}

.selected-countdown-item .countdown-line {
  justify-self: end;
  background: rgba(255, 210, 35, 0.16);
  border-color: rgba(255, 210, 35, 0.34);
}

.selected-countdown-item .countdown-clock {
  color: #fff3c4;
}

.selected-countdown-item .countdown-days {
  color: var(--customer-gold);
}

.selected-countdown-item .countdown-days small {
  color: #f4e4a2;
}

body:not(.admin-mode) .countdown-grid {
  gap: 0;
}

body:not(.admin-mode) .time-box {
  min-height: 60px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  background: transparent;
}

body:not(.admin-mode) .time-box:last-child {
  border-right: 0;
}

body:not(.admin-mode) .time-box strong {
  color: var(--customer-gold);
  font-size: 29px;
}

body:not(.admin-mode) .time-box span {
  color: var(--customer-muted);
  font-size: 12px;
}

body:not(.admin-mode) .customer-staking-list {
  margin-top: 0;
  padding: 17px 14px;
  color: var(--customer-text);
}

body:not(.admin-mode) .customer-staking-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--customer-text);
  font-size: 20px;
}

.customer-staking-title small {
  color: var(--customer-gold);
  font-size: 13px;
}

body:not(.admin-mode) .customer-staking-items {
  gap: 12px;
}

body:not(.admin-mode) .customer-staking-item {
  grid-template-columns: minmax(0, 1.2fr) minmax(92px, 0.72fr) minmax(0, 1.25fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(9, 14, 23, 0.76);
}

.stake-item-main,
.stake-item-period,
.stake-item-time {
  min-width: 0;
}

.stake-item-main {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.live-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--customer-green);
  box-shadow: 0 0 12px var(--customer-green);
}

body:not(.admin-mode) .stake-item-main strong,
body:not(.admin-mode) .stake-item-period strong {
  color: var(--customer-text);
  font-size: 19px;
}

body:not(.admin-mode) .stake-item-main strong small {
  font-size: 12px;
}

body:not(.admin-mode) .stake-item-main span,
body:not(.admin-mode) .stake-item-period span,
body:not(.admin-mode) .stake-item-time span,
body:not(.admin-mode) .stake-item-time small {
  color: var(--customer-muted);
  font-size: 12px;
}

.stake-item-period strong {
  color: var(--customer-gold) !important;
}

.stake-item-period em {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  margin-top: 7px;
  padding: 0 10px;
  border-radius: 6px;
  background: rgba(53, 224, 120, 0.14);
  color: var(--customer-green);
  font-style: normal;
  font-weight: 800;
}

.stake-item-time .compact-countdown {
  max-width: none;
}

.stake-item-time .countdown-line {
  margin-top: 6px;
  background: rgba(255, 210, 35, 0.16);
  border-color: rgba(255, 210, 35, 0.34);
  color: #ffe99b;
}

.stake-item-time .countdown-clock {
  color: #fff3c4;
}

.stake-item-time .countdown-days {
  color: var(--customer-gold);
}

.stake-item-time .countdown-days small {
  color: #f4e4a2;
}

.stake-item-time .compact-countdown .time-box {
  min-height: 34px;
}

.stake-item-time .compact-countdown .time-box strong {
  font-size: 16px;
}

.stake-progress {
  height: 8px;
  margin-top: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.stake-progress i {
  display: block;
  height: 100%;
  min-width: 8px;
  border-radius: inherit;
  background: var(--customer-gold);
}

@media (max-width: 430px) {
  body:not(.admin-mode) #stakingView .work-grid {
    padding: 17px 14px 24px;
  }

  .hero-status-row {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .hero-active-dot {
    grid-column: 2;
  }

  .hero-check {
    width: 44px;
    height: 44px;
  }

  .hero-metrics small {
    font-size: 10px;
  }

  .hero-metrics strong {
    font-size: 20px;
  }

  .customer-event-reward {
    grid-template-columns: 1fr;
  }

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

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

  .period-chip-row button {
    grid-template-columns: minmax(0, 1fr);
  }

  .period-chip-terms,
  .event-complete-stamp,
  .event-complete-text,
  .event-progress-text {
    justify-self: start;
  }

  body:not(.admin-mode) .customer-staking-item {
    grid-template-columns: 1fr;
  }

  .selected-countdown-item {
    grid-template-columns: 1fr;
  }

  .selected-countdown-item .countdown-line {
    justify-self: stretch;
    justify-content: center;
  }
}
