/* upgrader simulator additions: badge, provider buttons, sheet, bonuses, streamer, deposit rate, demo bar */
:root {
  --sim-bg: #17181c;
  --sim-panel: #202022;
  --sim-line: rgba(255, 255, 255, 0.08);
  --sim-text: #ffffff;
  --sim-muted: rgba(255, 255, 255, 0.55);
  --sim-yellow: #FBD506;
}

/* header badge: next to the UPGRADER logo, simulator look only */
.sim-badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.12rem 0.4rem;
  border-radius: 0.3rem;
  background: var(--sim-yellow);
  color: #17181c;
  font: 700 0.62rem/1.2 "Exo 2", "Exo2", sans-serif;
  letter-spacing: 0.08em;
  vertical-align: middle;
  white-space: nowrap;
}

/* the VIP tab is not sold in the simulator */
body.sim-on [data-testid="main-menu-vip"] { display: none !important; }

/* login modal: the two buttons sit under Steam and look like it */
.sim-auth { display: flex; flex-direction: column; gap: 0.75rem; width: 100%; margin-top: 0.75rem; }
.sim-auth[hidden] { display: none; }
.sim-auth__btn {
  font-family: "Exo 2", "Exo2", sans-serif;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  height: 3rem; width: 100%; padding: 0 1rem;
  border-radius: 0.75rem; border: 1px solid transparent;
  font-size: 1rem; font-weight: 600; cursor: pointer;
  transition: background-color 0.2s, opacity 0.2s;
}
.sim-auth__btn svg { width: 1.25rem; height: 1.25rem; flex: none; }
.sim-auth__btn[hidden] { display: none; }
/* look 1: dimmed like the disabled Steam button (boxes not ticked yet) */
.sim-auth.is-off .sim-auth__btn { background: rgba(255, 255, 255, 0.05); color: rgba(255, 255, 255, 0.3); cursor: default; }
/* look 2: live like an enabled Steam button */
.sim-auth.is-live .sim-auth__btn { background: #FFFFFF0D; color: #fff; }
.sim-auth.is-live .sim-auth__btn:hover { background: rgba(255, 255, 255, 0.14); }
.sim-auth__btn--telegram.is-live,
.sim-auth.is-live .sim-auth__btn--telegram { background: #2AABEE; color: #fff; }
.sim-auth.is-live .sim-auth__btn--telegram:hover { background: #229ED9; }
.sim-auth__open { color: var(--sim-yellow); font-size: 0.85rem; text-align: center; }
.sim-auth__open[hidden] { display: none; }
.sim-msg { min-height: 1.1em; font-size: 0.85rem; color: #ff7b7b; text-align: center; }
.sim-msg--ok { color: var(--sim-yellow); }

/* sheets: «Бонусы», streamer, onboarding */
body.sim-sheet-open { overflow: hidden; }
.sim-sheet {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0, 0, 0, 0.7);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 2rem 1rem; overflow-y: auto;
}
.sim-sheet__panel {
  width: 100%; max-width: 46rem;
  background: var(--sim-bg); color: var(--sim-text);
  border: 1px solid var(--sim-line); border-radius: 1rem;
  padding: 1.25rem 1.25rem 1.5rem;
  font-family: "Exo 2", "Exo2", sans-serif;
}
.sim-sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.sim-sheet__title { margin: 0; font-size: 1.5rem; font-weight: 700; font-family: "Tektur", "Exo 2", sans-serif; }
.sim-sheet__x {
  width: 2rem; height: 2rem; border-radius: 0.5rem; border: 0; cursor: pointer;
  background: var(--sim-panel); color: #fff; font-size: 1.25rem; line-height: 1;
}
.sim-sheet__intro { margin: 0.5rem 0 1rem; color: var(--sim-muted); font-size: 0.95rem; }
.sim-sheet__body { display: flex; flex-direction: column; gap: 0.75rem; }
.sim-loading, .sim-muted { color: var(--sim-muted); font-size: 0.9rem; }
.sim-onb__text { margin: 0; line-height: 1.5; }

.sim-btn {
  font-family: "Exo 2", "Exo2", sans-serif;
  display: inline-flex; align-items: center; justify-content: center;
  height: 2.5rem; padding: 0 1rem; border-radius: 0.6rem; border: 1px solid var(--sim-line);
  background: var(--sim-panel); color: #fff; font-weight: 600; cursor: pointer; text-decoration: none;
}
.sim-btn:hover { border-color: rgba(255, 255, 255, 0.25); }
.sim-btn--yellow { background: var(--sim-yellow); color: #17181c; border-color: var(--sim-yellow); }
.sim-btn--yellow:hover { filter: brightness(1.06); }
.sim-btn--ghost { background: transparent; }

.sim-card { background: var(--sim-panel); border: 1px solid var(--sim-line); border-radius: 0.75rem; padding: 0.9rem 1rem; }
.sim-card__title { font-weight: 700; font-size: 1.05rem; }
.sim-card__desc { color: var(--sim-muted); font-size: 0.88rem; margin-top: 0.25rem; }
.sim-card__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 0.7rem; }
.sim-card__foot .sim-msg { flex-basis: 100%; text-align: left; }
.sim-link { color: var(--sim-yellow); font-size: 0.9rem; }
.sim-input {
  flex: 1 1 12rem; min-width: 0; height: 2.5rem; padding: 0 0.75rem;
  border-radius: 0.6rem; border: 1px solid var(--sim-line); background: var(--sim-bg); color: #fff;
  font-family: inherit; font-size: 0.9rem;
}

/* streamer: entry on the profile page, plans */
.sim-streamer-entry {
  margin: 0 0 1rem; width: 100%; height: 2.75rem;
  border-color: var(--sim-yellow); color: var(--sim-yellow); background: transparent;
}
.sim-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 0.75rem; }
.sim-plan {
  background: var(--sim-panel); border: 1px solid var(--sim-line); border-radius: 0.75rem;
  padding: 1rem; display: flex; flex-direction: column; gap: 0.6rem;
}
.sim-plan--best { border-color: var(--sim-yellow); }
.sim-plan__title { font-weight: 600; color: var(--sim-muted); }
.sim-plan__price { font-size: 1.6rem; font-weight: 700; font-family: "Tektur", "Exo 2", sans-serif; }

/* demo bar: streamer look only, while demoUntil is set */
.sim-demo {
  position: fixed; left: 0; right: 0; top: 0; z-index: 8000;
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  padding: 0.45rem 1rem; background: var(--sim-yellow); color: #17181c;
  font: 600 0.9rem "Exo 2", "Exo2", sans-serif;
}
.sim-demo__end { background: #17181c; color: #fff; border: 0; border-radius: 0.4rem; padding: 0.3rem 0.7rem; cursor: pointer; font: inherit; }

/* deposit window: rate line and offer */
.sim-rate { margin-top: 0.35rem; font: 700 0.95rem "Exo 2", "Exo2", sans-serif; color: var(--sim-yellow); }
.sim-offer { margin-top: 0.25rem; font-size: 0.82rem; color: var(--sim-muted); }
.sim-offer:empty { display: none; }

/* low-balance hint next to the top-up button */
.sim-lowbal {
  margin-left: 0.5rem; height: 2rem; padding: 0 0.7rem; border-radius: 0.5rem;
  border: 1px solid var(--sim-yellow); background: transparent; color: var(--sim-yellow);
  font: 600 0.8rem "Exo 2", "Exo2", sans-serif; cursor: pointer; white-space: nowrap;
}

@media (max-width: 640px) {
  .sim-sheet { padding: 1rem 0.75rem; }
  .sim-sheet__panel { padding: 1rem; }
  .sim-sheet__title { font-size: 1.25rem; }
}

/* bonus banner above the page content (caser's free-coins banner) */
.sim-topbanner {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 0.75rem;
  margin: 0.5rem 1rem; padding: 0.55rem 2.5rem 0.55rem 1rem;
  border-radius: 0.75rem; border: 1px solid var(--sim-yellow);
  background: linear-gradient(90deg, rgba(251, 213, 6, 0.18), rgba(251, 213, 6, 0.04));
  color: #fff; font: 600 0.95rem "Exo 2", "Exo2", sans-serif; text-decoration: none; cursor: pointer;
}
.sim-topbanner__text { text-align: center; }
.sim-topbanner__cta {
  flex: none; padding: 0.3rem 0.8rem; border-radius: 0.5rem;
  background: var(--sim-yellow); color: #17181c; font-weight: 700; white-space: nowrap;
}
.sim-topbanner__x {
  position: absolute; right: 0.5rem; top: 50%; transform: translateY(-50%);
  width: 1.75rem; height: 1.75rem; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; font-size: 1.1rem;
}

/* floating pill, bottom left */
.sim-pill {
  position: fixed; left: 1rem; bottom: 1rem; z-index: 8500;
  display: flex; align-items: center; gap: 0.6rem; max-width: calc(100vw - 2rem);
  padding: 0.55rem 0.7rem 0.55rem 1rem; border-radius: 999px;
  background: var(--sim-yellow); color: #17181c; border: 0; cursor: pointer;
  font: 700 0.88rem "Exo 2", "Exo2", sans-serif; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.sim-pill--guest, .sim-pill--bonus { background: #202022; color: #fff; border: 1px solid var(--sim-yellow); }
.sim-pill__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sim-pill__close { flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.15); }

/* bonus count on the nav link */
.sim-nav-bonuses { position: relative; }
.sim-nav-bonuses[data-sim-count]::after {
  content: attr(data-sim-count); position: absolute; top: -0.45rem; right: -0.8rem;
  min-width: 1.1rem; height: 1.1rem; padding: 0 0.25rem; border-radius: 999px;
  background: var(--sim-yellow); color: #17181c; font: 700 0.7rem/1.1rem "Exo 2", "Exo2", sans-serif; text-align: center;
}

/* onboarding (first visit) */
.sim-onb {
  position: fixed; inset: 0; z-index: 9100; background: rgba(0, 0, 0, 0.72);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.sim-onb__card {
  width: 100%; max-width: 30rem; background: var(--sim-bg); border: 1px solid var(--sim-yellow);
  border-radius: 1rem; padding: 1.25rem; color: #fff; font-family: "Exo 2", "Exo2", sans-serif;
}
.sim-onb__title { margin: 0 0 0.75rem; font: 700 1.35rem "Tektur", "Exo 2", sans-serif; color: var(--sim-yellow); }
.sim-onb__list { margin: 0 0 1rem; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.sim-onb__row { position: relative; padding-left: 1.2rem; line-height: 1.4; }
.sim-onb__row::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--sim-yellow); }
.sim-onb__actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }

/* deposit offer: first-deposit line and ladder chips */
.sim-offer { margin-top: 0.4rem; display: flex; flex-direction: column; gap: 0.35rem; }
.sim-offer:empty { display: none; }
.sim-offer__first { font-size: 0.85rem; color: #fff; }
.sim-ladder { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.sim-ladder__step { padding: 0.2rem 0.5rem; border-radius: 0.4rem; border: 1px solid var(--sim-line); background: var(--sim-panel); font-size: 0.78rem; color: var(--sim-muted); }
.sim-ladder__step--popular, .sim-ladder__step--best { border-color: var(--sim-yellow); color: var(--sim-yellow); }
