body {
  margin: 0;
  color: #ffeccc;
  animation: fadeIn 0.3s ease;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 64, 18, 0.24), transparent 16%),
    radial-gradient(circle at 12% 36%, rgba(255, 55, 20, 0.18), transparent 18%),
    radial-gradient(circle at 85% 42%, rgba(255, 60, 22, 0.14), transparent 18%),
    linear-gradient(180deg, #150106 0%, #090106 50%, #030104 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background:
    repeating-radial-gradient(circle at 50% 68%, rgba(255, 70, 15, 0.07) 0 2px, transparent 2px 22px),
    radial-gradient(circle at 50% -10%, rgba(255, 42, 0, 0.14), transparent 42%);
  mix-blend-mode: screen;
  opacity: 0.75;
}

body::after {
  background:
    linear-gradient(105deg, transparent 0 13%, rgba(255, 83, 24, 0.28) 13.4%, transparent 14.1%),
    linear-gradient(90deg, transparent 0 73%, rgba(255, 68, 22, 0.18) 73.4%, transparent 74.1%);
  opacity: 0.2;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.dashboard {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 18px 14px 110px;
}

.appHeader {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 20px);
  max-width: 520px;
  min-height: 62px;
  padding: 10px 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(52, 11, 14, 0.94), rgba(21, 5, 10, 0.96));
  border: 1px solid rgba(255, 122, 62, 0.18);
  box-shadow:
    inset 0 0 0 1px rgba(255, 111, 49, 0.08),
    0 18px 34px rgba(0, 0, 0, 0.34);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  z-index: 10001;
}

.appHeader::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 101, 41, 0.9), transparent);
  box-shadow: 0 0 14px rgba(255, 89, 25, 0.9);
  pointer-events: none;
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 84px;
}

.header-right {
  justify-content: flex-end;
}

.header-title {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.header-brand {
  display: inline-flex;
  align-items: center;
  position: relative;
  color: inherit;
  text-decoration: none;
  font-family: "Rajdhani", sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  text-shadow:
    0 2px 0 rgba(79, 17, 0, 0.85),
    0 0 16px rgba(255, 110, 42, 0.38);
}

.header-brand::before {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 75, 21, 0.95), rgba(255, 198, 97, 0.85), rgba(255, 75, 21, 0.95), transparent);
  transform: translateY(-50%) rotate(-10deg);
  box-shadow: 0 0 10px rgba(255, 75, 21, 0.8);
}

.header-brand::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 4px;
  width: 0;
  height: 0;
  border-left: 12px solid rgba(255, 186, 73, 0.95);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  transform: rotate(-10deg);
}

.header-brand-primary {
  color: transparent;
  background: linear-gradient(180deg, #fff0a9 0%, #ffd25e 38%, #ff8d2d 75%, #b13503 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-style: italic;
}

.header-brand-secondary {
  color: #f1e5e8;
  margin-left: -4px;
}

.header-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(95, 34, 28, 0.95), rgba(48, 18, 18, 0.92));
  border: 1px solid rgba(255, 146, 90, 0.22);
  color: #ffe8bf;
  text-decoration: none;
  box-shadow: inset 0 0 10px rgba(255, 129, 70, 0.08);
}

.header-btn i {
  font-size: 0.95rem;
}

.logout-btn {
  background: linear-gradient(135deg, #8d0908 0%, #d21310 40%, #ff391b 50%, #b90d0b 100%);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(9, 1, 6, 0.65);
  backdrop-filter: blur(2px);
  z-index: 9998;
}

.reference-shell,
.plan-card,
.panel-card,
.stat-card,
.summary-card,
.mini-card,
.investment-table {
  box-shadow:
    inset 0 0 0 1px rgba(255, 132, 72, 0.14),
    0 18px 36px rgba(0, 0, 0, 0.34);
}

.reference-shell {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(58, 10, 15, 0.96) 0%, rgba(22, 6, 10, 0.98) 100%);
  border: 1px solid rgba(255, 122, 62, 0.16);
}

.reference-shell::before,
.reference-shell::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
}

.reference-shell::before {
  top: 48px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 100, 36, 0.95), transparent);
  box-shadow: 0 0 12px rgba(255, 95, 32, 0.7);
}

.reference-shell::after {
  bottom: -78px;
  left: -18%;
  right: -18%;
  height: 200px;
  border-top: 2px solid rgba(255, 82, 22, 0.65);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(255, 82, 22, 0.45);
  transform: rotate(-7deg);
}

.reference-topbar,
.reference-hero,
.hero-banner,
.stats-grid,
.investment-table,
.plan-grid,
.split-layout,
.summary-grid,
.mini-grid,
.ref-modern {
  position: relative;
  z-index: 1;
}

.reference-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  position: relative;
  font-family: "Rajdhani", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  text-shadow:
    0 2px 0 rgba(79, 17, 0, 0.85),
    0 0 16px rgba(255, 110, 42, 0.38);
}

.brand-mark::before {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  top: 50%;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255, 75, 21, 0.95), rgba(255, 198, 97, 0.85), rgba(255, 75, 21, 0.95), transparent);
  transform: translateY(-50%) rotate(-10deg);
  box-shadow: 0 0 10px rgba(255, 75, 21, 0.8);
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: -11px;
  top: 5px;
  width: 0;
  height: 0;
  border-left: 13px solid rgba(255, 186, 73, 0.95);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  transform: rotate(-10deg);
}

.brand-primary {
  color: transparent;
  background: linear-gradient(180deg, #fff0a9 0%, #ffd25e 38%, #ff8d2d 75%, #b13503 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-style: italic;
}

.brand-secondary {
  color: #f1e5e8;
  margin-left: -4px;
}

.account-widget {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(47, 20, 24, 0.96), rgba(27, 12, 16, 0.98));
  border: 1px solid rgba(255, 135, 73, 0.18);
}

.account-bell,
.menu-trigger {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 95, 29, 0.12);
  color: #ffc86a;
  text-decoration: none;
  flex: 0 0 auto;
}

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

.account-copy span {
  display: block;
  color: rgba(255, 223, 180, 0.7);
  font-size: 0.72rem;
  white-space: nowrap;
}

.account-copy strong {
  display: block;
  color: #fff0ce;
  font-size: 0.9rem;
  white-space: nowrap;
}

.account-widget img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 154, 96, 0.28);
}

.reference-hero {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  margin-top: 16px;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.side-nav-btn,
.referral-side-card {
  border-radius: 8px;
  text-decoration: none;
}

.side-nav-btn {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  background: linear-gradient(180deg, rgba(78, 24, 24, 0.96), rgba(42, 15, 17, 0.98));
  border: 1px solid rgba(255, 121, 58, 0.2);
  color: #fff0d8;
  font-family: "Rajdhani", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.side-nav-btn i {
  color: #ffbe62;
  width: 14px;
}

.side-nav-btn.active {
  background: linear-gradient(135deg, #8d0908 0%, #d21310 40%, #ff391b 50%, #b90d0b 100%);
}

.referral-side-card {
  margin-top: 4px;
  padding: 12px 10px;
  background: linear-gradient(180deg, rgba(113, 28, 19, 0.98), rgba(63, 16, 13, 0.98));
  border: 1px solid rgba(255, 135, 73, 0.2);
  color: #fff0dc;
  display: block;
}

.referral-side-title {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: rgba(255, 224, 181, 0.84);
}

.referral-side-card strong {
  display: block;
  margin-top: 8px;
  font-family: "Rajdhani", sans-serif;
  font-size: 2rem;
  line-height: 1;
}

.referral-side-card small {
  display: block;
  margin-top: 4px;
  color: #ffdca0;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.referral-side-card em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  margin-top: 12px;
  padding: 0 10px;
  border-radius: 6px;
  background: linear-gradient(135deg, #8d0908 0%, #d21310 40%, #ff391b 50%, #b90d0b 100%);
  color: #fff0dc;
  font-style: normal;
  font-family: "Rajdhani", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

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

.hero-banner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 12px;
  align-items: center;
  min-height: 172px;
  padding: 10px 4px 8px;
}

.hero-copy h1 {
  margin: 0;
  color: #ffd993;
  font-size: 1.9rem;
  line-height: 1.02;
}

.hero-copy p {
  margin: 10px 0 0;
  color: rgba(255, 224, 181, 0.78);
  font-size: 0.9rem;
  line-height: 1.45;
  max-width: 250px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  min-height: 40px;
  margin-top: 16px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid rgba(255, 132, 72, 0.34);
  background: linear-gradient(135deg, #8d0908 0%, #d21310 40%, #ff391b 50%, #b90d0b 100%);
  color: #fff0d6;
  font-family: "Rajdhani", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
}

.hero-art {
  position: relative;
  min-height: 170px;
}

.chart-bars {
  position: absolute;
  right: 8px;
  bottom: 38px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 96px;
}

.chart-bars span {
  width: 10px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, rgba(255, 195, 89, 0.25), rgba(255, 84, 24, 0.95));
  box-shadow: 0 0 10px rgba(255, 86, 24, 0.28);
}

.chart-bars span:nth-child(1) { height: 28px; }
.chart-bars span:nth-child(2) { height: 44px; }
.chart-bars span:nth-child(3) { height: 58px; }
.chart-bars span:nth-child(4) { height: 70px; }
.chart-bars span:nth-child(5) { height: 84px; }
.chart-bars span:nth-child(6) { height: 94px; }

.chart-arrow {
  position: absolute;
  right: 22px;
  top: 18px;
  width: 160px;
  height: 106px;
  clip-path: polygon(0 78%, 28% 58%, 48% 66%, 76% 34%, 76% 22%, 100% 0, 82% 32%, 71% 32%, 44% 78%, 28% 72%, 6% 92%);
  background: linear-gradient(90deg, rgba(255, 169, 78, 0.8), rgba(255, 78, 21, 1));
  filter: drop-shadow(0 0 10px rgba(255, 91, 22, 0.6));
}

.coin-stack {
  position: absolute;
  bottom: 12px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff1b2 0%, #ffcf53 28%, #ff952e 60%, #8f3d03 100%);
  box-shadow: 0 0 22px rgba(255, 166, 70, 0.28);
}

.coin-stack::before,
.coin-stack::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 240, 176, 0.95), rgba(242, 176, 58, 0.8));
}

.coin-stack::before { top: -4px; }
.coin-stack::after { bottom: -4px; opacity: 0.8; }

.coin-a { right: 18px; width: 54px; height: 72px; }
.coin-b { right: 64px; width: 46px; height: 58px; }
.coin-c { right: 102px; width: 38px; height: 44px; }

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

.stat-card {
  min-height: 92px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 122, 62, 0.16);
  background: linear-gradient(180deg, rgba(82, 21, 20, 0.96), rgba(44, 15, 17, 0.98));
  color: #fff1d8;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -24px 30%;
  height: 70px;
  border-top: 2px solid rgba(255, 84, 25, 0.25);
  border-radius: 50%;
  transform: rotate(-8deg);
}

.stat-card span,
.stat-card strong {
  position: relative;
  z-index: 1;
}

.stat-card span {
  display: block;
  color: rgba(255, 224, 181, 0.68);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-card strong {
  display: block;
  margin-top: 14px;
  color: #ffd58d;
  font-size: 1.55rem;
  line-height: 1.05;
}

.stat-card-briefcase::before {
  content: "\f0b1";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 10px;
  bottom: 10px;
  color: rgba(255, 193, 104, 0.34);
  font-size: 1.8rem;
}

.dashboard-section {
  margin-top: 18px;
}

.section-heading {
  margin-bottom: 10px;
  color: #ffd38f;
  font-family: "Rajdhani", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
}

.section-heading::after {
  content: "";
  position: absolute;
  left: 148px;
  right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 124, 62, 0.5), transparent);
}

.section-heading.small {
  font-size: 0.98rem;
}

.section-heading.small::after {
  left: 120px;
}

.section-heading.with-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.section-heading.with-link::after {
  left: 170px;
  right: 90px;
}

.section-heading.with-link a {
  position: relative;
  z-index: 1;
  color: #ffd699;
  text-decoration: none;
  font-family: "Rajdhani", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.investment-table {
  display: block;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 120, 58, 0.18);
  background: linear-gradient(180deg, rgba(72, 19, 19, 0.96), rgba(35, 13, 15, 0.98));
  color: #fff1d8;
  text-decoration: none;
}

.investment-table-head,
.investment-table-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.9fr 0.8fr;
  gap: 10px;
  align-items: center;
}

.investment-table-head {
  color: rgba(255, 224, 181, 0.62);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.investment-table-row {
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 122, 62, 0.14);
  background: linear-gradient(180deg, rgba(90, 22, 20, 0.96), rgba(45, 15, 16, 0.98));
}

.investment-plan {
  display: flex;
  align-items: center;
  gap: 10px;
}

.investment-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255, 212, 122, 0.95), rgba(199, 146, 53, 0.9));
  color: #5d2805;
}

.investment-value {
  color: #ffd58d;
  font-weight: 700;
}

.investment-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border-radius: 6px;
  background: rgba(114, 141, 55, 0.32);
  border: 1px solid rgba(177, 200, 101, 0.36);
  color: #d8ef9b;
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}

.investment-table-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  color: rgba(255, 223, 180, 0.72);
  font-size: 0.78rem;
}

.investment-table-foot strong {
  color: #ffd58d;
}

.investment-table-foot em {
  margin-left: auto;
  color: rgba(255, 223, 180, 0.6);
  font-style: normal;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.plan-card {
  position: relative;
  overflow: hidden;
  min-height: 196px;
  padding: 14px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 125, 63, 0.22);
  color: #fff2d8;
  text-decoration: none;
}

.plan-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.07) 0 22%, transparent 22% 100%),
    radial-gradient(circle at 84% 12%, rgba(255, 120, 43, 0.24), transparent 20%);
  pointer-events: none;
}

.plan-card.silver { background: linear-gradient(180deg, rgba(66, 57, 65, 0.96), rgba(35, 28, 34, 0.98)); }
.plan-card.gold { background: linear-gradient(180deg, rgba(146, 71, 10, 0.98), rgba(74, 32, 10, 0.98)); }
.plan-card.vip { background: linear-gradient(180deg, rgba(150, 24, 16, 0.98), rgba(79, 16, 14, 0.98)); }

.plan-name,
.plan-rate,
.plan-detail,
.plan-meta,
.plan-button {
  position: relative;
  z-index: 1;
}

.plan-name {
  color: #f3ede3;
  font-family: "Rajdhani", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
}

.plan-rate {
  margin-top: 18px;
  color: #fff0cc;
  font-family: "Rajdhani", sans-serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 0.95;
  text-transform: uppercase;
}

.plan-detail {
  margin-top: 8px;
  color: rgba(255, 236, 206, 0.94);
  font-size: 0.86rem;
  line-height: 1.35;
  min-height: 34px;
  text-transform: uppercase;
}

.plan-meta {
  margin-top: 14px;
  color: #ffd89d;
  font-size: 0.9rem;
}

.plan-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 106px;
  min-height: 34px;
  margin-top: 16px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 136, 76, 0.36);
  background: linear-gradient(135deg, #8d0908 0%, #d21310 40%, #ff391b 50%, #b90d0b 100%);
  color: #fff0dc;
  font-family: "Rajdhani", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
}

.panel-card {
  padding: 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 122, 62, 0.16);
  background: linear-gradient(180deg, rgba(63, 16, 18, 0.96), rgba(31, 10, 14, 0.98));
}

.chart-card {
  min-height: 230px;
}

.split-layout {
  display: grid;
  gap: 14px;
}

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

.mini-card {
  min-height: 78px;
  border-radius: 10px;
  border: 1px solid rgba(255, 122, 62, 0.16);
  background: linear-gradient(180deg, rgba(85, 22, 20, 0.96), rgba(42, 15, 16, 0.98));
  color: #fff0d8;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  text-align: center;
  font-weight: 700;
}

.mini-card i {
  color: #ffc66d;
  font-size: 1.1rem;
}

.live-bet-btn {
  cursor: pointer;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22ef7f;
  box-shadow: 0 0 10px rgba(34, 239, 127, 0.45);
}

.ref-modern {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 123, 62, 0.14);
  background: rgba(18, 10, 15, 0.76);
}

.ref-text {
  flex: 1;
  color: #ffe9bf;
  font-size: 0.84rem;
  line-height: 1.45;
  word-break: break-all;
}

.copy-btn-modern {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #8d0908 0%, #d21310 40%, #ff391b 50%, #b90d0b 100%);
  color: #fff0d8;
  cursor: pointer;
  flex: 0 0 auto;
}

.download-strip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 123, 62, 0.14);
  background: linear-gradient(180deg, rgba(85, 22, 20, 0.96), rgba(42, 15, 16, 0.98));
  color: #fff0d8;
  text-decoration: none;
}

.download-strip i {
  color: #ffc76f;
}

.download-strip strong {
  color: #ffd58d;
  font-size: 0.92rem;
}

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

.summary-card {
  min-height: 92px;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 120, 58, 0.18);
  background: linear-gradient(180deg, rgba(82, 21, 20, 0.96), rgba(44, 15, 17, 0.98));
  color: #fff1d8;
  text-decoration: none;
}

.summary-card span {
  display: block;
  color: rgba(255, 224, 181, 0.68);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.summary-card strong {
  display: block;
  margin-top: 14px;
  color: #ffd58d;
  font-size: 1.1rem;
  line-height: 1.15;
}

.game-btn.loading > *,
.history-btn.loading > * {
  opacity: 0;
}

.game-btn.loading::after,
.history-btn.loading::after {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid #fff1d4;
  border-top: transparent;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.appNavBar {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 20px);
  max-width: 520px;
  height: 66px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(95, 34, 28, 0.95), rgba(48, 18, 18, 0.92));
  border: 1px solid rgba(255, 121, 58, 0.16);
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.45);
  z-index: 9999;
}

.navLink {
  position: relative;
  flex: 1;
  text-align: center;
  text-decoration: none;
  color: rgba(255, 225, 190, 0.72);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.navLink i {
  font-size: 18px;
  margin-bottom: 2px;
}

.navLink p {
  margin: 0;
  font-size: 10px;
}

.navLink.active {
  color: #ffbe62;
}

.navLink.active::after {
  content: "";
  position: absolute;
  bottom: 6px;
  width: 18px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff541d, #ffbe62);
}

.navLink.center {
  position: relative;
  top: -14px;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8d0908 0%, #d21310 40%, #ff391b 50%, #b90d0b 100%);
  box-shadow: 0 10px 20px rgba(255, 69, 16, 0.35);
}

.navLink.center i {
  font-size: 22px;
  margin-bottom: 0;
}

.navLink.center p {
  display: none;
}

.sidebar {
  position: fixed;
  top: 0;
  left: -280px;
  width: 260px;
  height: 100%;
  background: linear-gradient(180deg, rgba(53, 14, 16, 0.98), rgba(21, 7, 12, 0.98));
  backdrop-filter: blur(18px);
  transition: 0.3s;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 125, 63, 0.12);
}

.sidebar.active {
  left: 0;
}

.sidebar-header {
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 125, 63, 0.12);
}

.sidebar-header h3 {
  margin: 0;
  color: #ffe6bd;
}

.sidebar-header button {
  background: transparent;
  border: 0;
  color: #ffe6bd;
  font-size: 22px;
}

.sidebar-menu {
  padding: 10px;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  color: #ffe6bd;
  text-decoration: none;
  font-size: 13px;
  transition: 0.2s;
}

.sidebar-menu a:hover {
  background: rgba(255, 88, 20, 0.12);
}

.sidebar-menu .logout {
  margin-top: 8px;
  background: rgba(255, 88, 20, 0.16);
}

@media (max-width: 460px) {
  .dashboard {
    padding-left: 10px;
    padding-right: 10px;
  }

  .appHeader {
    max-width: calc(100% - 16px);
    padding: 10px;
  }

  .header-left,
  .header-right {
    min-width: 76px;
  }

  .header-brand {
    font-size: 1.4rem;
  }

  .reference-hero,
  .hero-banner,
  .plan-grid,
  .stats-grid,
  .investment-table-head,
  .investment-table-row {
    grid-template-columns: 1fr;
  }

  .section-heading::after,
  .section-heading.with-link::after,
  .section-heading.small::after {
    display: none;
  }

  .investment-table-foot {
    flex-wrap: wrap;
  }

  .investment-table-foot em {
    margin-left: 0;
  }
}
