/* RELOAD23 — кошелёк */

@font-face {
  font-family: "Motiva Sans";
  src: url("../fonts/motiva-sans-400.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Motiva Sans";
  src: url("../fonts/motiva-sans-500.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 500;
}

@font-face {
  font-family: "Motiva Sans Cyrillic";
  src: url("../fonts/motiva-sans-cyrillic-400.otf") format("opentype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
  unicode-range: U+0400-052F, U+1C80-1C8F, U+2DE0-2DFF, U+A640-A69F;
}

.wallet-page {
  min-height: 70vh;
  background: #0b100c;
  font-family: "Motiva Sans Cyrillic", "Motiva Sans", "Inter", Arial, Helvetica, sans-serif;
}

.wal-container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero */

.wal-hero {
  border-bottom: 1px solid rgba(124, 194, 66, 0.1);
  background:
    radial-gradient(ellipse at 10% -20%, rgba(240, 196, 91, 0.12), transparent 55%),
    linear-gradient(180deg, #141d18, #0b100c);
  padding: 40px 0 32px;
}

.wal-hero__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.wal-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #f0c45b;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.wal-eyebrow svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.wal-hero h1 {
  margin: 8px 0 0;
  color: #fff;
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
}

.wal-hero__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wal-action {
  display: flex;
  height: 40px;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-radius: 6px;
  background: #141d18;
  box-shadow: inset 0 0 0 1px rgba(124, 194, 66, 0.14);
  color: #dcdedf;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.wal-action:hover { color: #fff; }

.wal-action svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.wal-refresh {
  display: flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: #141d18;
  box-shadow: inset 0 0 0 1px rgba(124, 194, 66, 0.14);
  color: #8b929a;
  cursor: pointer;
}

.wal-refresh:hover { color: #fff; }
.wal-refresh svg { width: 16px; height: 16px; }

.wal-balance-card {
  margin-top: 24px;
  padding: 24px;
  border-radius: 10px;
  background: linear-gradient(130deg, rgba(240, 196, 91, 0.14), #0f1712 55%);
  box-shadow: inset 0 0 0 1px rgba(240, 196, 91, 0.25);
}

.wal-label {
  margin: 0;
  color: #7d858e;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.wal-balance {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  color: #f0c45b;
  font-size: 48px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.wal-coin {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  background: url("../img/coin.svg") no-repeat center / contain;
}

.wal-note {
  margin: 12px 0 0;
  color: #8b929a;
  font-size: 13px;
}

/* Body */

.wal-body {
  padding: 24px 0 48px;
}

.wal-loading {
  display: flex;
  min-height: 30vh;
  align-items: center;
  justify-content: center;
}

.wal-loading[hidden] { display: none; }

.wal-spinner {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(124, 194, 66, 0.25);
  border-top-color: #7cc242;
  border-radius: 50%;
  animation: wal-spin 0.8s linear infinite;
}

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

/* Daily reward */

.wal-daily {
  margin-bottom: 32px;
  padding: 24px;
  border-radius: 10px;
  background: #0f1712;
  box-shadow: inset 0 0 0 1px rgba(124, 194, 66, 0.12);
}

.wal-daily__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.wal-daily__label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #7cc242;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.wal-daily__label svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.wal-daily h2 {
  margin: 8px 0 0;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.wal-daily__sub {
  max-width: 560px;
  margin: 4px 0 0;
  color: #8b929a;
  font-size: 13px;
  line-height: 20px;
}

.wal-claim {
  display: flex;
  height: 44px;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  border: 0;
  border-radius: 6px;
  background: #3d9c4a;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.wal-claim:hover { background: #46b356; }

.wal-claim:disabled {
  background: rgba(124, 194, 66, 0.1);
  color: #8b929a;
  cursor: default;
}

.wal-claim svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.wal-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
}

.wal-day {
  padding: 10px 4px;
  border-radius: 6px;
  background: #0b100c;
  box-shadow: inset 0 0 0 1px rgba(124, 194, 66, 0.1);
  color: #67707b;
  text-align: center;
}

.wal-day p {
  margin: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wal-day b {
  display: block;
  margin-top: 4px;
  color: inherit;
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.wal-day.is-claimed {
  background: rgba(164, 208, 7, 0.12);
  box-shadow: inset 0 0 0 1px rgba(164, 208, 7, 0.35);
  color: #c3e05a;
}

.wal-day.is-current {
  background: rgba(124, 194, 66, 0.15);
  box-shadow: inset 0 0 0 1px rgba(124, 194, 66, 0.6);
  color: #fff;
}

/* History */

.wal-history__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(124, 194, 66, 0.14);
}

.wal-history__head h2 {
  margin: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.wal-history__head span {
  color: #67707b;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.wal-history__list {
  display: grid;
}

.wal-tx {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(124, 194, 66, 0.08);
}

.wal-tx__icon {
  display: flex;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.wal-tx__icon svg { width: 16px; height: 16px; }

.wal-tx__icon.is-plus {
  background: rgba(164, 208, 7, 0.12);
  color: #a4d007;
}

.wal-tx__icon.is-minus {
  background: rgba(222, 54, 24, 0.12);
  color: #f0a090;
}

.wal-tx__body {
  min-width: 0;
  flex: 1;
}

.wal-tx__body b {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wal-tx__body small {
  display: block;
  overflow: hidden;
  color: #67707b;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wal-tx__side {
  flex: 0 0 auto;
  text-align: right;
}

.wal-tx__amount {
  display: block;
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.wal-tx__amount.is-plus { color: #a4d007; }
.wal-tx__amount.is-minus { color: #f0a090; }

.wal-tx__balance {
  display: block;
  color: #67707b;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.wal-empty {
  margin-top: 16px;
  padding: 56px 24px;
  border: 1px dashed rgba(124, 194, 66, 0.16);
  border-radius: 8px;
  color: #8b929a;
  font-size: 14px;
  text-align: center;
}

.wal-empty[hidden] { display: none; }

.wal-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.wal-more {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(124, 194, 66, 0.24);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.wal-more:hover { background: rgba(124, 194, 66, 0.1); }
.wal-more[hidden] { display: none; }

.wal-more span {
  color: #67707b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 400;
}

/* Guest */

.wal-guest {
  display: flex;
  min-height: 62vh;
  align-items: center;
  justify-content: center;
  padding: 64px 0;
}

.wal-guest__card {
  width: 100%;
  max-width: 420px;
  padding: 32px;
  border-radius: 10px;
  background: #0f1712;
  box-shadow: inset 0 0 0 1px rgba(124, 194, 66, 0.12);
  text-align: center;
}

.wal-guest__card > svg {
  width: 40px;
  height: 40px;
  color: #7cc242;
}

.wal-guest__card h1 {
  margin: 20px 0 0;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
}

.wal-guest__card p {
  margin: 8px 0 0;
  color: #8b929a;
  font-size: 13px;
  line-height: 20px;
}

.wal-login {
  display: flex;
  width: 100%;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  border-radius: 6px;
  background: #3d9c4a;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.wal-login:hover { background: #46b356; }

@media (max-width: 720px) {
  .wal-container { padding: 0 16px; }
  .wal-hero { padding: 28px 0 24px; }
  .wal-hero h1 { font-size: 28px; }
  .wal-balance-card { padding: 20px; }
  .wal-balance { font-size: 38px; }
  .wal-coin { width: 30px; height: 30px; }
  .wal-daily { padding: 20px; }
  .wal-claim { width: 100%; justify-content: center; }
  .wal-days { gap: 4px; }
  .wal-day { padding: 8px 2px; }
  .wal-day p { font-size: 8px; }
  .wal-day b { font-size: 12px; }
  .wal-tx__body b { font-size: 13px; }
  .wal-tx__amount { font-size: 14px; }
}

body.content-page[data-page="wallet"] { background: #0b100c; }
