:root {
  color-scheme: dark;
  --bg: #07090d;
  --app: #090c12;
  --card: rgba(20, 25, 34, 0.82);
  --soft-card: rgba(255, 255, 255, 0.055);
  --line: rgba(255, 255, 255, 0.105);
  --text: #f4f7fb;
  --muted: #8f9aaa;
  --blue: #2b7cff;
  --green: #35c96f;
  --orange: #d7a84f;
  --red: #ff5d5d;
  --gold: #d7a84f;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
  --radius: 14px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin: 0;
}

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

.phone-shell {
  display: grid;
  height: var(--tg-viewport-height, 100vh);
  min-height: var(--tg-viewport-height, 100vh);
  place-items: center;
  background: var(--bg);
}

.app-frame {
  position: relative;
  display: flex;
  width: min(100%, 430px);
  height: var(--tg-viewport-height, 100vh);
  min-height: var(--tg-viewport-height, 100vh);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #dde2ea;
  background: var(--app);
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: start;
  padding: 30px 20px 12px;
  background: var(--app);
}

.brand-lockup {
  min-width: 0;
}

.brand-mark,
.brand-subtitle {
  display: none;
}

.brand-title {
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
}

.sync-label {
  padding-top: 1px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

#screen-title {
  grid-column: 1 / -1;
  margin-top: 14px;
  color: var(--text);
  font-size: 31px;
  font-weight: 800;
  line-height: 38px;
  letter-spacing: 0;
}

html[data-screen="match"] .brand-title,
html[data-screen="match"] .sync-label,
html[data-screen="match"] #screen-title {
  display: none;
}

html[data-screen="match"] .topbar {
  min-height: 18px;
  padding: 0;
}

.screen {
  display: none;
  flex: 1;
  overflow-y: auto;
  padding: 0 18px 96px;
  background: var(--app);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.screen::-webkit-scrollbar {
  display: none;
}

.screen.active {
  display: block;
}

.page-head {
  margin-bottom: 18px;
}

.page-head h2 {
  color: var(--text);
  font-size: 24px;
  font-weight: 790;
  line-height: 30px;
  letter-spacing: 0;
}

#today-screen .page-head h2 {
  display: none;
}

.page-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 15px;
  line-height: 21px;
}

html[data-screen="match"] .page-head {
  margin: 4px 0 34px;
  text-align: center;
}

html[data-screen="match"] .page-head h2 {
  font-size: 23px;
  line-height: 29px;
}

html[data-screen="match"] .page-head p {
  margin-top: 8px;
  font-size: 14px;
}

.fresh-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -4px 0 14px;
  color: var(--muted);
  font-size: 12px;
}

.fresh-line span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green);
}

.fresh-line p {
  font-size: 12px;
  line-height: 16px;
}

.warning-line span {
  background: var(--orange);
}

.loading-line span {
  background: var(--blue);
}

.signal-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.signal-summary div {
  min-height: 88px;
  padding: 15px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.signal-summary span,
.league {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.signal-summary strong {
  display: block;
  margin-top: 12px;
  color: var(--text);
  font-size: 28px;
  font-weight: 790;
  line-height: 32px;
}

.signal-hero {
  display: none;
}

.today-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  overflow-x: auto;
  scrollbar-width: none;
}

.today-filters::-webkit-scrollbar {
  display: none;
}

.today-filters button {
  min-height: 44px;
  flex: 0 0 auto;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  color: #4b5563;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.today-filters button.active {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 20px rgba(21, 94, 239, 0.16);
}

.soft-section-title {
  display: none;
}

.game-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 104px;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.game-time strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  font-weight: 760;
  line-height: 18px;
}

.game-time span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 14px;
  overflow-wrap: anywhere;
}

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

.club-lines {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.club-line {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-width: 0;
}

.club-line span {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 16px;
  font-weight: 690;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-main h3 {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  margin-top: 8px;
  color: var(--text);
  font-size: 15px;
  font-weight: 760;
  line-height: 20px;
}

.game-main h3 b {
  color: var(--muted);
  font-weight: 500;
}

.team-crest {
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid #eef1f5;
  border-radius: 13px;
  background: #fff;
  vertical-align: middle;
}

.team-crest img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
}

.team-crest span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: #eef3ff;
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
}

.recommend-badge {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  margin-top: 11px;
  padding: 0 9px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--blue);
  font-size: 12px;
  font-style: normal;
  font-weight: 650;
}

.game-side {
  display: grid;
  justify-items: end;
  gap: 8px;
  min-width: 72px;
}

.signal {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 740;
  white-space: nowrap;
}

.signal.candidate {
  background: #e7f8ee;
  color: var(--green);
}

.signal.watchlist {
  background: #fff7e8;
  color: var(--orange);
}

.signal.nopick {
  background: #f3f4f6;
  color: #6b7280;
}

.game-side small {
  color: #9aa2af;
  font-size: 22px;
  font-weight: 300;
}

.bottom-nav {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 10px 10px 18px;
  border-top: 1px solid var(--line);
  background: rgba(251, 252, 254, 0.96);
  backdrop-filter: blur(14px);
}

.nav-item {
  display: grid;
  min-height: 56px;
  place-items: center;
  align-content: center;
  gap: 4px;
  border-radius: 10px;
  background: transparent;
  color: #7c8493;
}

.nav-item.active {
  color: var(--blue);
}

.nav-item b {
  font-size: 12px;
  font-weight: 650;
}

.nav-icon {
  position: relative;
  display: block;
  width: 23px;
  height: 23px;
}

.nav-icon::before {
  position: absolute;
  inset: 3px;
  border: 2px solid currentColor;
  border-radius: 50%;
  content: "";
}

.nav-history::before {
  border-radius: 7px;
}

.nav-premium::before {
  transform: rotate(45deg);
  border-radius: 4px;
}

.nav-profile::before {
  top: 2px;
  right: 7px;
  bottom: auto;
  left: 7px;
  height: 7px;
}

.nav-profile::after {
  position: absolute;
  right: 4px;
  bottom: 3px;
  left: 4px;
  height: 9px;
  border: 2px solid currentColor;
  border-radius: 10px 10px 4px 4px;
  content: "";
}

.floating-back,
.back-button {
  min-height: 36px;
  margin: 4px 0 24px;
  padding: 0;
  background: transparent;
  color: var(--text);
  font-size: 34px;
  font-weight: 300;
  line-height: 30px;
}

.match-detail-card,
.analysis-preview,
.decision-panel,
.market-showcase,
.selected-outcomes,
.outcome-analysis,
.plain-reasons,
.readiness-card,
.admin-diagnostics,
.source-strip,
.premium-nudge,
.agent-card,
.execution-panel,
.market-panel,
.risk-panel,
.warning-list,
.history-panel,
.movement-card,
.market-options,
.clv-panel,
.recommendation-card,
.analysis-breakdown,
.short-note,
.empty-state,
.beginner-guide,
.premium-block,
.profile-card,
.premium-benefits-card,
.profile-premium-card,
.integration-card,
.settings-list,
.decision-system-card,
.final-decision-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.match-detail-card {
  padding: 24px 18px 22px;
  margin-bottom: 24px;
}

.detail-head {
  display: none;
}

.featured-fixture {
  display: grid;
  gap: 24px;
}

.fixture-meta {
  order: 2;
  display: flex;
  justify-content: center;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.fixture-meta span {
  display: none;
}

.fixture-meta b {
  color: var(--muted);
  font-weight: 500;
}

.fixture-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.fixture-team {
  display: grid;
  justify-items: center;
  gap: 12px;
  min-width: 0;
}

.fixture-team .team-crest,
.fixture-team .team-crest span,
.fixture-team .team-crest img {
  width: 62px;
  height: 62px;
}

.fixture-team strong {
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  max-width: 120px;
  overflow-wrap: anywhere;
  text-align: center;
}

.fixture-vs {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 22px;
  font-weight: 500;
}

.fixture-vs span,
.fixture-vs small {
  display: none;
}

.analysis-preview {
  padding: 0;
  overflow: hidden;
}

.analysis-preview > div:first-child {
  padding: 18px;
}

.analysis-preview > div:first-child span,
.decision-panel span,
.section-title span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.analysis-preview > div:first-child strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 18px;
  line-height: 24px;
}

.analysis-preview > div:first-child p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 20px;
}

.context-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}

.context-grid div {
  min-height: 72px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}

.context-grid div:last-child {
  border-bottom: 0;
}

.context-grid span {
  color: var(--text);
  font-size: 16px;
  font-weight: 760;
}

.context-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.primary-button,
.analysis-preview .primary-button,
.decision-panel .primary-button,
.execution-checker button {
  display: inline-flex;
  width: 100%;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-size: 17px;
  font-weight: 760;
  box-shadow: 0 8px 20px rgba(31, 99, 233, 0.18);
}

.analysis-preview .primary-button {
  margin-top: 24px;
}

.market-showcase {
  padding: 18px;
  margin-bottom: 18px;
}

.market-showcase > p {
  margin: 10px 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}

.market-choice-list {
  display: grid;
  gap: 10px;
}

.market-choice {
  display: grid;
  grid-template-columns: 42px 1fr 28px;
  gap: 12px;
  align-items: center;
  min-height: 66px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft-card);
  color: var(--text);
  text-align: left;
}

.market-choice.selected {
  border-color: var(--blue);
  box-shadow: inset 0 0 0 1px rgba(31, 99, 233, 0.35);
}

.market-choice i {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  background: rgba(31, 99, 233, 0.14);
  color: var(--blue);
  font-style: normal;
  font-weight: 800;
}

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

.market-choice strong {
  font-size: 16px;
  line-height: 20px;
}

.market-choice small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.market-choice b {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #fff;
}

.market-choice.selected b {
  border-color: var(--blue);
  background: var(--blue);
}

.selected-outcomes {
  padding: 18px;
  margin-bottom: 18px;
}

.outcome-analysis {
  margin-top: 12px;
  overflow: hidden;
  box-shadow: none;
}

.outcome-analysis summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  cursor: pointer;
  list-style: none;
}

.outcome-analysis summary::-webkit-details-marker {
  display: none;
}

.outcome-analysis summary strong,
.outcome-analysis summary small {
  display: block;
}

.outcome-analysis summary small {
  margin-top: 3px;
  color: var(--muted);
}

.outcome-analysis summary b {
  color: var(--green);
  font-size: 24px;
}

.outcome-body {
  padding: 0 14px 14px;
  border-top: 1px solid var(--line);
}

.outcome-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0;
}

.outcome-metrics div {
  padding: 10px;
  border-radius: 10px;
  background: var(--soft-card);
}

.outcome-metrics span,
.outcome-checklist strong {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.outcome-metrics strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 14px;
}

.outcome-body > p,
.outcome-list p {
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}

.outcome-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.outcome-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.outcome-checklist strong {
  flex-basis: 100%;
}

.outcome-checklist span {
  padding: 7px 9px;
  border-radius: 999px;
  background: var(--soft-card);
  color: var(--muted);
  font-size: 12px;
}

.premium-nudge {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  padding: 14px;
  box-shadow: none;
}

.gold-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  background: #eef3ff;
  color: var(--blue);
}

.premium-nudge strong {
  color: var(--text);
  font-size: 14px;
}

.premium-nudge p {
  margin-top: 3px;
  font-size: 13px;
}

.premium-nudge > span {
  color: var(--muted);
  font-size: 26px;
}

.compact-detail {
  padding: 18px;
  margin-bottom: 18px;
}

.decision-panel {
  padding: 22px 18px;
  margin-bottom: 18px;
}

.readiness-card,
.admin-diagnostics {
  padding: 18px;
  margin-bottom: 18px;
}

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

.readiness-grid div {
  min-height: 58px;
  padding: 10px;
  border-radius: 10px;
  background: var(--soft-card);
}

.readiness-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.readiness-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 14px;
}

.readiness-card p {
  margin-top: 12px;
  font-size: 13px;
  line-height: 19px;
}

.decision-panel > div:first-child > strong,
.muted-decision strong {
  display: block;
  margin-top: 24px;
  color: var(--text);
  font-size: 30px;
  font-weight: 800;
  line-height: 36px;
  overflow-wrap: anywhere;
}

.decision-panel p {
  margin-top: 18px;
  color: #4b5563;
  font-size: 16px;
  line-height: 23px;
}

.decision-price-row {
  display: grid;
  grid-template-columns: 1fr;
  margin: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.decision-price-row div {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.decision-price-row div:last-child {
  border-bottom: 0;
}

.decision-price-row span,
.source-strip span {
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
}

.decision-price-row strong,
.source-strip strong {
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
}

.decision-price-row div:nth-child(3) strong {
  color: var(--green);
}

.plain-reasons {
  padding: 18px;
  margin-bottom: 18px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-title strong {
  color: var(--orange);
  font-size: 13px;
  font-weight: 760;
}

.plain-reasons p {
  position: relative;
  padding: 11px 0 11px 30px;
  color: var(--text);
  font-size: 14px;
  line-height: 20px;
}

.plain-reasons p::before {
  position: absolute;
  top: 12px;
  left: 0;
  color: var(--green);
  content: "✓";
  font-size: 17px;
  font-weight: 800;
}

.risk-plain p::before {
  color: var(--text);
  content: "•";
}

.source-strip {
  display: grid;
  grid-template-columns: 1fr;
  margin-bottom: 18px;
  overflow: hidden;
}

.source-strip div {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.source-strip div:last-child {
  border-bottom: 0;
}

.muted-decision button {
  width: 100%;
  min-height: 50px;
  margin-top: 16px;
  border-radius: 10px;
  background: var(--soft-card);
  color: var(--text);
  font-weight: 700;
}

.agent-card,
.market-panel,
.risk-panel,
.warning-list,
.history-panel,
.movement-card,
.market-options,
.clv-panel,
.recommendation-card,
.analysis-breakdown,
.short-note,
.empty-state,
.beginner-guide,
.premium-block,
.profile-card,
.premium-benefits-card,
.profile-premium-card,
.integration-card,
.settings-list,
.decision-system-card,
.final-decision-card {
  padding: 16px;
  margin-bottom: 14px;
}

.agent-card span,
.market-grid span,
.risk-grid span,
.confidence-grid span,
.history-grid span {
  color: var(--muted);
  font-size: 12px;
}

.agent-card strong,
.short-note strong,
.empty-state strong,
.premium-block h3,
.profile-card h3,
.decision-system-card h3,
.final-decision-card h3 {
  display: block;
  color: var(--text);
  font-size: 16px;
  line-height: 21px;
}

.agent-card p,
.short-note p,
.empty-state p,
.warning-list p,
.market-panel p,
.risk-panel p,
.history-panel p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 20px;
}

.market-grid,
.risk-grid,
.confidence-grid,
.history-grid,
.backtest-scoreboard {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.market-grid div,
.risk-grid div,
.confidence-grid div,
.history-grid div,
.backtest-scoreboard div {
  min-height: 62px;
  padding: 10px;
  border-radius: 10px;
  background: var(--soft-card);
}

.market-grid strong,
.risk-grid strong,
.confidence-grid strong,
.history-grid strong,
.backtest-scoreboard strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 15px;
}

.execution-panel {
  padding: 18px;
  margin-bottom: 18px;
}

.execution-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
}

.execution-head span,
.execution-checker label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.execution-head strong,
.execution-result strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
}

.copy-pill {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 16px;
  background: #eef3ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.execution-steps {
  margin-top: 14px;
}

.execution-steps div {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.execution-steps b {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #eef3ff;
  color: var(--blue);
  font-size: 12px;
}

.execution-steps span {
  color: var(--text);
  font-size: 14px;
  line-height: 20px;
}

.execution-checker {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.execution-checker div {
  display: grid;
  gap: 8px;
}

.execution-checker input {
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft-card);
  color: var(--text);
  outline: none;
}

.execution-result {
  margin-top: 12px;
  padding: 12px;
  border-radius: 10px;
  background: var(--soft-card);
}

.execution-result p,
.execution-note,
.notice {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 17px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 10;
  max-width: 390px;
  min-height: 44px;
  padding: 12px 14px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 360px) {
  .screen {
    padding-right: 14px;
    padding-left: 14px;
  }

  .signal-summary {
    gap: 10px;
  }

  .game-row {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 9px;
  }

  .game-side {
    min-width: 58px;
  }

  .signal {
    padding: 0 8px;
    font-size: 11px;
  }
}

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

  .app-frame {
    width: 100%;
    border: 0;
  }
}

.history-summary-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.history-summary-row div {
  min-height: 92px;
  padding: 18px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.history-summary-row span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.history-summary-row strong {
  display: block;
  margin-top: 14px;
  color: var(--text);
  font-size: 31px;
  line-height: 34px;
}

.green-value {
  color: #16a34a !important;
}

.blue-value {
  color: var(--blue) !important;
}

.history-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  overflow-x: auto;
  scrollbar-width: none;
}

.history-filters::-webkit-scrollbar {
  display: none;
}

.history-filters button {
  min-height: 44px;
  flex: 0 0 auto;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  color: var(--text);
  font-size: 16px;
  font-weight: 650;
  white-space: nowrap;
}

.history-filters button.active {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.history-card {
  display: grid;
  grid-template-columns: 1fr 1fr 64px;
  gap: 12px;
  align-items: center;
  min-height: 116px;
  padding: 14px;
  margin-bottom: 12px;
}

.history-date {
  color: var(--muted);
  font-size: 13px;
  line-height: 18px;
}

.history-date span {
  padding: 0 5px;
}

.history-match {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  margin-top: 16px;
}

.history-match strong {
  flex-basis: 100%;
  margin-top: 4px;
  color: var(--text);
  font-size: 14px;
  line-height: 18px;
}

.history-middle span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.history-middle strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 15px;
  line-height: 19px;
}

.history-middle p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 18px;
}

.history-middle b {
  color: var(--text);
}

.history-right {
  display: grid;
  justify-items: end;
  gap: 20px;
}

.settlement {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 750;
}

.settlement.won {
  background: #dcfce7;
  color: #16a34a;
}

.settlement.lost {
  background: #fee2e2;
  color: #dc2626;
}

.settlement.pending {
  background: #eaf1ff;
  color: var(--blue);
}

.settlement.void {
  background: var(--soft-card);
  color: var(--muted);
}

.history-right small {
  color: var(--muted);
  font-size: 30px;
}

.history-help {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  padding: 18px;
  margin-top: 18px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #eff6ff;
}

.history-help::before {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 2px solid var(--blue);
  border-radius: 50%;
  color: var(--blue);
  content: "i";
  font-weight: 800;
}

.history-help strong {
  color: var(--text);
  font-size: 16px;
}

.history-help p {
  margin-top: 8px;
  color: var(--text);
  font-size: 14px;
  line-height: 20px;
}

.premium-hero-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 22px;
  align-items: center;
  padding: 26px 24px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.premium-crown,
.premium-benefit i,
.access-row i,
.settings-list i,
.admin-entry i {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fbf4e8;
}

.premium-crown {
  width: 82px;
  height: 82px;
}

.premium-crown::before,
.premium-benefit i::before,
.access-row.gold i::before {
  color: #d59a2f;
  content: "♕";
  font-size: 36px;
}

.premium-crown.small {
  width: 48px;
  height: 48px;
  background: #dda52b;
}

.premium-crown.small::before {
  color: #fff;
  font-size: 24px;
}

.premium-hero-card strong {
  color: var(--text);
  font-size: 40px;
  line-height: 44px;
}

.premium-hero-card strong span {
  color: var(--muted);
  font-size: 18px;
  font-weight: 500;
}

.premium-hero-card p {
  margin-top: 14px;
  font-size: 18px;
  line-height: 26px;
}

.premium-benefits-card {
  padding: 24px;
}

.premium-benefits-card h3,
.access-card h3 {
  margin-bottom: 18px;
  color: var(--text);
  font-size: 23px;
  line-height: 29px;
}

.premium-benefit {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.premium-benefit:last-child {
  border-bottom: 0;
}

.premium-benefit i {
  width: 44px;
  height: 44px;
}

.premium-benefit i::before {
  font-size: 20px;
}

.premium-benefit strong {
  color: var(--text);
  font-size: 17px;
  line-height: 22px;
}

.premium-benefit p {
  margin-top: 5px;
  font-size: 14px;
  line-height: 20px;
}

.premium-active-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  align-items: center;
  padding: 20px;
  margin-top: 22px;
  border: 1px solid #f2d79a;
  border-radius: 14px;
  background: #fffaf0;
}

.premium-active-card strong {
  color: var(--text);
  font-size: 18px;
}

.premium-active-card p {
  margin-top: 6px;
  color: #4b5563;
  font-size: 17px;
}

.premium-active-card span {
  display: block;
  margin-top: 14px;
  color: #6b7280;
  font-size: 14px;
  line-height: 20px;
}

.profile-hero {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 22px 18px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.avatar {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border-radius: 50%;
  background: #dbeafe;
  color: var(--blue);
  font-size: 24px;
  font-weight: 850;
}

.profile-hero h2 {
  color: var(--text);
  font-size: 22px;
  line-height: 28px;
}

.profile-hero span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 16px;
}

.profile-hero b {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  margin-top: 8px;
  padding: 0 12px;
  border-radius: 10px;
  background: #eaf1ff;
  color: var(--blue);
  font-size: 15px;
}

.profile-hero small,
.admin-entry strong,
.settings-list button strong {
  color: var(--muted);
  font-size: 30px;
  font-weight: 300;
}

.access-card {
  padding: 22px 18px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.access-row,
.settings-list button,
.admin-entry {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 72px;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
}

.access-row:last-child,
.settings-list button:last-child {
  border-bottom: 0;
}

.access-row i,
.settings-list i,
.admin-entry i {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #eef3ff;
}

.access-row i::before,
.settings-list i::before,
.admin-entry i::before {
  color: var(--blue);
  content: "□";
  font-size: 18px;
}

.settings-list i,
.admin-entry i {
  background: var(--soft-card);
}

.settings-list i::before {
  color: var(--text);
}

.access-row span,
.settings-list span,
.admin-entry span {
  color: var(--text);
  font-size: 17px;
}

.access-row strong {
  color: var(--blue);
  font-size: 20px;
}

.settings-list,
.admin-entry,
.integration-card {
  padding: 0 18px;
  margin-bottom: 18px;
}

.admin-entry {
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #f3f8ff;
}

.admin-entry span,
.admin-entry strong {
  color: var(--blue);
  font-weight: 750;
}

.integration-card h3 {
  margin-bottom: 12px;
}

.integration-card div {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
}

.integration-card span {
  color: var(--text);
}

.integration-card strong {
  color: var(--green);
}

.admin-panel {
  padding: 16px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.loading-state,
.empty-state,
.short-note,
.history-help,
.onboarding-card {
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}

.loading-state {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.loading-state i {
  width: 28px;
  height: 28px;
  border: 3px solid #dbeafe;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: lior-spin 0.8s linear infinite;
}

.loading-state strong,
.empty-state strong,
.short-note strong,
.history-help strong {
  color: var(--text);
  font-size: 18px;
  font-weight: 780;
}

.loading-state p,
.empty-state p,
.short-note p,
.history-help p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 20px;
}

.admin-grant {
  display: grid;
  grid-template-columns: 1fr 82px;
  gap: 8px;
  margin: 12px 0;
}

.admin-grant input,
.admin-signal input {
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft-card);
  color: var(--text);
}

.admin-grant button {
  min-height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  background: #eef3ff;
  color: var(--blue);
  font-weight: 750;
}

.admin-grant button:nth-of-type(1),
.admin-grant button:nth-of-type(2),
.admin-grant button:nth-of-type(3) {
  grid-column: 1 / -1;
}

.admin-status-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 12px 0;
}

.admin-status-grid div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft-card);
}

.admin-status-grid span,
.admin-signal-metrics span,
.history-middle span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.admin-status-grid strong,
.admin-signal-metrics strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 13px;
}

.admin-warning {
  padding: 10px 12px;
  margin: 10px 0;
  border-radius: 10px;
  background: #fff7ed;
  color: var(--orange);
  font-size: 13px;
}

.admin-user,
.admin-signal {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.admin-user {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.admin-user strong,
.admin-signal strong {
  display: block;
  color: var(--text);
  font-size: 14px;
}

.admin-user span,
.admin-signal span {
  color: var(--muted);
  font-size: 12px;
}

.admin-user button,
.admin-signal-actions button {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--blue);
  color: white;
  font-size: 12px;
  font-weight: 750;
}

.admin-signal-metrics,
.admin-signal-grid,
.admin-signal-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.admin-signal-metrics div {
  padding: 8px;
  border-radius: 8px;
  background: var(--soft-card);
}

.admin-signal-grid {
  grid-template-columns: 1fr;
}

.admin-signal-actions {
  grid-template-columns: repeat(3, 1fr);
}

.muted-copy {
  font-size: 13px;
  line-height: 19px;
}

.onboarding-card {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.onboarding-card h3 {
  color: var(--text);
  font-size: 20px;
  line-height: 25px;
}

.onboarding-card p,
.status-copy {
  font-size: 14px;
  line-height: 20px;
}

.onboarding-card label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text);
  font-size: 14px;
  line-height: 20px;
}

.onboarding-card input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--blue);
}

.onboarding-card input[type="text"] {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft-card);
  color: var(--text);
}

.onboarding-card .primary-button:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
}

.step-pill {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef3ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 760;
}

.referral-code-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #f3f8ff;
}

.referral-code-box span {
  color: var(--muted);
  font-size: 12px;
}

.referral-code-box strong {
  color: var(--text);
  font-size: 22px;
}

.referral-code-box button {
  grid-row: 1 / 3;
  grid-column: 2;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 9px;
  background: var(--blue);
  color: white;
  font-size: 12px;
  font-weight: 750;
}

/* Premium dark redesign */
body {
  background:
    radial-gradient(circle at 50% -10%, rgba(43, 124, 255, 0.22), transparent 34%),
    linear-gradient(180deg, #05070b 0%, #090c12 42%, #05070b 100%);
}

.app-frame {
  border-color: rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(16, 21, 31, 0.98), rgba(7, 9, 13, 0.98)),
    var(--app);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.topbar,
.screen {
  background: transparent;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(215, 168, 79, 0.42);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(215, 168, 79, 0.22), rgba(255, 255, 255, 0.035));
  color: var(--gold);
  font-weight: 850;
}

.brand-lockup {
  display: flex;
  gap: 10px;
  align-items: center;
}

.brand-title {
  color: var(--text);
  font-size: 15px;
  letter-spacing: 0.02em;
}

.brand-subtitle {
  display: block;
  margin-top: 2px;
  color: var(--green);
  font-size: 11px;
  font-weight: 650;
}

.sync-label,
.league,
.signal-summary span,
.page-head p {
  color: var(--muted);
}

.signal-summary div,
.game-row,
.match-detail-card,
.analysis-preview,
.decision-panel,
.plain-reasons,
.readiness-card,
.admin-diagnostics,
.source-strip,
.premium-nudge,
.agent-card,
.execution-panel,
.market-panel,
.risk-panel,
.warning-list,
.history-panel,
.movement-card,
.market-options,
.clv-panel,
.recommendation-card,
.analysis-breakdown,
.short-note,
.empty-state,
.beginner-guide,
.premium-block,
.profile-card,
.premium-benefits-card,
.profile-premium-card,
.integration-card,
.settings-list,
.decision-system-card,
.final-decision-card,
.premium-hero-card,
.profile-hero,
.access-card,
.admin-panel,
.loading-state,
.history-help,
.onboarding-card {
  border-color: var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.028)),
    var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.game-row {
  min-height: 98px;
  border-radius: 18px;
}

.game-row:active,
.signal-hero:active,
.premium-nudge:active {
  transform: translateY(1px);
}

.team-crest {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.92);
}

.recommend-badge,
.copy-pill,
.step-pill,
.signal {
  background: rgba(43, 124, 255, 0.15);
  color: #8db8ff;
}

.signal.candidate {
  background: rgba(53, 201, 111, 0.13);
  color: var(--green);
}

.signal.watchlist {
  background: rgba(215, 168, 79, 0.14);
  color: var(--gold);
}

.signal.nopick {
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
}

.primary-button,
.analysis-preview .primary-button,
.decision-panel .primary-button,
.execution-checker button,
.today-filters button.active {
  background: linear-gradient(180deg, #3386ff, #1768e8);
  color: white;
  box-shadow: 0 14px 30px rgba(23, 104, 232, 0.28);
}

.secondary-button,
.muted-decision button,
.admin-grant button,
.admin-user button,
.admin-signal-actions button {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.today-filters button {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
}

.bottom-nav {
  border-color: rgba(255, 255, 255, 0.095);
  background: rgba(6, 8, 12, 0.9);
  box-shadow: 0 -18px 36px rgba(0, 0, 0, 0.28);
}

.nav-item {
  color: #687386;
}

.nav-item.active {
  color: var(--blue);
}

.decision-panel p,
.history-help p,
.plain-reasons p,
.access-row span,
.settings-list span,
.admin-entry span,
.integration-card span,
.context-grid span,
.execution-steps span {
  color: rgba(244, 247, 251, 0.9);
}

.context-grid div,
.decision-price-row,
.decision-price-row div,
.source-strip div,
.premium-benefit,
.access-row,
.settings-list button,
.admin-entry,
.admin-user,
.admin-signal {
  border-color: var(--line);
}

.context-grid div,
.readiness-grid div,
.market-grid div,
.risk-grid div,
.confidence-grid div,
.history-grid div,
.backtest-scoreboard div,
.execution-result,
.admin-status-grid div,
.admin-signal-metrics div {
  background: rgba(255, 255, 255, 0.045);
}

.premium-hero-card {
  background:
    radial-gradient(circle at 20% 0%, rgba(215, 168, 79, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
}

.premium-crown,
.premium-benefit i,
.access-row.gold i {
  background: rgba(215, 168, 79, 0.14);
}

.premium-crown::before,
.premium-benefit i::before,
.access-row.gold i::before {
  color: var(--gold);
}

.premium-active-card,
.premium-nudge.is-active {
  border-color: rgba(215, 168, 79, 0.38);
  background: linear-gradient(135deg, rgba(215, 168, 79, 0.12), rgba(255, 255, 255, 0.04));
}

.referral-code-box {
  border-color: rgba(53, 201, 111, 0.22);
  background: rgba(53, 201, 111, 0.08);
}

.onboarding-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.postback-status {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.postback-status span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.postback-status span.done {
  background: rgba(53, 201, 111, 0.18);
  color: var(--green);
}

.postback-status p {
  align-self: center;
  color: rgba(244, 247, 251, 0.82);
  font-size: 13px;
  line-height: 18px;
}

.manual-fallback {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.manual-fallback summary {
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
}

.onboarding-card input[type="text"],
.execution-checker input,
.admin-grant input,
.admin-signal input {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
}

.onboarding-card .primary-button:disabled,
.onboarding-card .secondary-button:disabled {
  background: rgba(255, 255, 255, 0.08);
  color: #687386;
}

.toast {
  border-color: var(--line);
  background: rgba(17, 22, 31, 0.96);
  color: var(--text);
}

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

/* Product polish: dark Telegram header, smart search, richer Premium/Profile */
.app-frame {
  border-color: rgba(255, 255, 255, 0.045);
}

.match-search {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 50px;
  margin: 0 0 14px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.095);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.028)),
    rgba(20, 25, 34, 0.82);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.match-search span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 11px;
  background: rgba(43, 124, 255, 0.12);
}

.match-search span::before {
  color: #8db8ff;
  content: "⌕";
  font-size: 18px;
  font-weight: 800;
}

.match-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}

.match-search input::placeholder {
  color: rgba(143, 154, 170, 0.86);
  font-weight: 500;
}

.match-search button {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
}

.premium-hero-card {
  position: relative;
  overflow: hidden;
  grid-template-columns: 74px 1fr;
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 8%, rgba(215, 168, 79, 0.2), transparent 34%),
    linear-gradient(145deg, rgba(23, 29, 39, 0.96), rgba(9, 12, 18, 0.94));
}

.premium-hero-card::after {
  position: absolute;
  right: -34px;
  bottom: -48px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(215, 168, 79, 0.14);
  border-radius: 50%;
  content: "";
}

.premium-eyebrow {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.02em;
}

.premium-hero-card strong {
  font-size: 36px;
  line-height: 40px;
}

.premium-hero-card p {
  max-width: 280px;
  font-size: 15px;
  line-height: 21px;
}

.premium-crown {
  width: 64px;
  height: 64px;
  background: linear-gradient(145deg, rgba(215, 168, 79, 0.24), rgba(255, 255, 255, 0.055));
  box-shadow: inset 0 0 0 1px rgba(215, 168, 79, 0.28);
}

.premium-crown::before {
  color: #f4c767;
  content: "♕";
  font-size: 34px;
}

.premium-plan-stack {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.premium-plan {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 70px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.premium-plan.selected {
  border-color: rgba(215, 168, 79, 0.82);
  box-shadow: 0 0 0 1px rgba(215, 168, 79, 0.16), 0 16px 34px rgba(215, 168, 79, 0.08);
}

.premium-plan i {
  width: 24px;
  height: 24px;
  border: 2px solid #7b8493;
  border-radius: 50%;
}

.premium-plan.selected i {
  border-color: var(--gold);
  background: radial-gradient(circle, var(--gold) 0 42%, transparent 45%);
}

.premium-plan strong,
.premium-plan b {
  color: var(--text);
  font-size: 17px;
}

.premium-plan span {
  display: block;
  margin-top: 3px;
  color: var(--gold);
  font-size: 12px;
}

.premium-benefits-card,
.access-card,
.settings-list,
.integration-card,
.profile-hero,
.profile-stats {
  border-radius: 20px;
}

.premium-benefit i,
.access-row i,
.settings-list i,
.admin-entry i {
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.premium-benefit i::before,
.access-row i::before,
.settings-list i::before,
.admin-entry i::before {
  color: #d9e6ff;
  content: attr(data-icon);
  font-size: 17px;
  font-weight: 850;
}

.premium-benefit i[data-icon="✦"]::before,
.access-row.gold i::before {
  color: var(--gold);
}

.premium-active-card {
  border-color: rgba(215, 168, 79, 0.48);
  background:
    linear-gradient(135deg, rgba(215, 168, 79, 0.14), rgba(255, 255, 255, 0.035)),
    rgba(20, 25, 34, 0.9);
}

.premium-active-card p,
.premium-active-card span {
  color: rgba(244, 247, 251, 0.72);
}

.profile-hero {
  grid-template-columns: 76px 1fr auto;
  border-radius: 22px;
  background:
    radial-gradient(circle at 10% 0%, rgba(43, 124, 255, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
}

.avatar {
  background:
    linear-gradient(145deg, rgba(215, 168, 79, 0.24), rgba(43, 124, 255, 0.12)),
    rgba(255, 255, 255, 0.06);
  color: #f5d48a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.profile-hero b {
  background: rgba(215, 168, 79, 0.13);
  color: #f4c767;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.055);
}

.profile-stats div {
  min-height: 74px;
  padding: 14px 8px;
  background: rgba(9, 12, 18, 0.76);
  text-align: center;
}

.profile-stats strong {
  display: block;
  color: var(--text);
  font-size: 20px;
  line-height: 24px;
}

.profile-stats span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 13px;
}

.settings-list button {
  grid-template-columns: 46px minmax(0, 1fr) auto;
}

.settings-list span small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.integration-card {
  background:
    linear-gradient(135deg, rgba(53, 201, 111, 0.1), rgba(43, 124, 255, 0.08)),
    rgba(255, 255, 255, 0.04);
}
