/* Shared shell */
.dashboard,
.plan-page {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 96px 0 110px;
  overflow-x: hidden;
  position: relative;
  z-index: 1;
}

.dashboard-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 86px;
}

.appHeader,
.header {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 460px;
  border-radius: 28px;
  background: rgba(36, 31, 25, 0.92);
  color: #fff7ed;
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(25, 18, 10, 0.24);
  z-index: 1000;
}

.appHeader {
  height: 74px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dashboard-topbar {
  padding: 14px;
}

.header-left,
.header-right {
  width: 44px;
  display: flex;
  align-items: center;
}

.header-title {
  flex: 1;
  text-align: center;
}

.app-header-copy {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.app-header-copy small {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 247, 237, 0.58);
}

.app-header-copy span {
  font-size: 16px;
  font-weight: 800;
  color: #fffaf2;
}

.header-title img {
  max-height: 34px;
  width: auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile img {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  padding: 7px;
}

.profile-copy {
  display: flex;
  flex-direction: column;
}

.profile-copy small {
  font-size: 11px;
  color: rgba(255, 247, 237, 0.62);
}

.profile-copy span {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
}

.header-btn {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: background 0.22s ease, transform 0.22s ease;
}

.header-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.balance-card {
  padding: 20px;
  border-radius: 24px;
  text-align: left;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 30%),
    linear-gradient(135deg, #0f766e, #115e59);
  color: #f8fffd;
}

.balance-card span {
  display: block;
  font-size: 12px;
  opacity: 0.8;
  margin-bottom: 6px;
}

.balance-card h1 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.05em;
  margin: 0;
}

.dashboard-balance {
  width: calc(100% - 24px);
  margin: 10px auto 0;
  box-shadow: 0 20px 36px rgba(15, 118, 110, 0.18);
}

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

.balance-meta div {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
}

.balance-meta small {
  display: block;
  font-size: 11px;
  color: rgba(248, 255, 253, 0.78);
  margin-bottom: 4px;
}

.balance-meta strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
}

.hero-stack,
.section-block,
.feature-grid {
  padding: 0 12px;
}

.section-heading {
  margin-bottom: 12px;
}

.section-heading span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7e6a55;
  margin-bottom: 4px;
}

.section-heading h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #2b2218;
  letter-spacing: -0.04em;
}

.feature-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 28px;
  text-decoration: none;
  box-shadow: 0 20px 34px rgba(43, 34, 24, 0.12);
}

.feature-banner + .feature-banner {
  margin-top: 12px;
}

.feature-banner-warm {
  background: linear-gradient(135deg, #f59e0b, #fcd34d);
  color: #2b2218;
}

.feature-banner-dark {
  background: linear-gradient(135deg, #2b2621, #17120f);
  color: #fffaf2;
}

.feature-badge,
.feature-arrow {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

.feature-banner-warm .feature-badge,
.feature-banner-warm .feature-arrow {
  background: rgba(255, 255, 255, 0.22);
}

.feature-banner-dark .feature-badge,
.feature-banner-dark .feature-arrow {
  background: rgba(255, 255, 255, 0.1);
}

.feature-copy span {
  display: block;
  font-size: 12px;
  opacity: 0.82;
}

.feature-copy strong {
  display: block;
  font-size: 26px;
  letter-spacing: -0.04em;
  margin-top: 2px;
}

.actions {
  display: grid;
  gap: 12px;
}

.actions-primary {
  grid-template-columns: repeat(2, 1fr);
}

.action-btn,
.game-btn,
.history-btn {
  min-height: 110px;
  padding: 18px 14px;
  border-radius: 26px;
  text-align: left;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  position: relative;
  box-shadow: 0 18px 28px rgba(43, 34, 24, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.action-btn i,
.game-btn i,
.history-btn i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-size: 16px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.16);
}

.action-btn:hover,
.game-btn:hover,
.history-btn:hover,
.summary-card:hover,
.method-card:hover,
.feature-banner:hover,
.info-panel:hover,
.resource-tile:hover {
  transform: translateY(-3px);
}

.deposit-btn {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
}

.withdraw-btn {
  background: linear-gradient(135deg, #c2410c, #f97316);
}

.history-btn {
  background: linear-gradient(135deg, #f59e0b, #facc15);
  color: #2b2218;
}

.history-btn i {
  background: rgba(43, 34, 24, 0.12);
}

.team-btn {
  background: linear-gradient(135deg, #334155, #0f172a);
}

.card {
  text-align: left;
}

.card h3,
.card .title {
  color: #2b2218;
}

.chart-card {
  padding: 20px;
}

.game-page .feature-grid {
  padding: 0 12px;
}

.game-card,
.game-balance-card {
  padding: 20px;
}

.game-balance-card .panel-copy span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.game-balance-card .panel-copy strong {
  display: block;
  font-size: 32px;
  letter-spacing: -0.05em;
  color: var(--text);
}

.coin-container {
  perspective: 1000px;
  width: 170px;
  height: 170px;
  margin: 20px auto;
}

.coin3d {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 2s ease-in-out;
}

.side {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  backface-visibility: hidden;
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.12);
}

.front {
  background: linear-gradient(135deg, var(--primary), #60a5fa);
}

.back {
  background: linear-gradient(135deg, var(--danger), #db2777);
  transform: rotateY(180deg);
}

.flip-buttons {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.flip-buttons button {
  flex: 1;
}

.result-box {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  text-align: center;
  font-size: 14px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(92, 72, 46, 0.08);
}

#wheel-container {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 16px auto 0;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid #d97706;
  box-shadow: 0 20px 34px rgba(43, 34, 24, 0.12);
}

#wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transition: transform 4s cubic-bezier(0.33, 1, 0.68, 1);
}

.segment {
  position: absolute;
  width: 50%;
  height: 50%;
  top: 50%;
  left: 50%;
  transform-origin: 0% 0%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 10px;
  font-weight: 700;
  color: #fff;
}

#pointer {
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 25px solid var(--danger);
  margin: 14px auto 0;
}

.dashboard > .card:first-child:not(.chart-card):not(.referral-card):not(.summary-shell) {
  position: relative;
  overflow: hidden;
}

.dashboard > .card:first-child:not(.chart-card):not(.referral-card):not(.summary-shell)::after {
  content: "";
  position: absolute;
  inset: auto -40px -40px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(20, 184, 166, 0.08);
}

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

.info-panel {
  min-height: 112px;
  border-radius: 26px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  box-shadow: 0 18px 30px rgba(43, 34, 24, 0.12);
}

.panel-gold {
  background: linear-gradient(135deg, #f59e0b, #fcd34d);
  color: #2b2218;
}

.panel-dark {
  background: linear-gradient(135deg, #2b2621, #17120f);
  color: #fffaf2;
}

.panel-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.16);
  font-size: 16px;
}

.panel-copy span {
  display: block;
  font-size: 12px;
  opacity: 0.82;
  margin-bottom: 4px;
}

.panel-copy strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

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

.resource-tile {
  min-height: 112px;
  padding: 18px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 18px 30px rgba(43, 34, 24, 0.12);
}

.resource-tile i {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.14);
}

.resource-tile small {
  display: block;
  font-size: 11px;
  opacity: 0.8;
  margin-bottom: 4px;
}

.resource-tile strong {
  display: block;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.resource-whatsapp {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
}

.resource-orange {
  background: linear-gradient(135deg, #c2410c, #f97316);
}

.resource-gold {
  background: linear-gradient(135deg, #f59e0b, #facc15);
  color: #2b2218;
}

.resource-gold i {
  background: rgba(43, 34, 24, 0.12);
}

.resource-dark {
  background: linear-gradient(135deg, #334155, #0f172a);
}

.referral-card,
.summary-shell {
  padding: 20px;
}

.ref-modern {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  margin-top: 12px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(92, 72, 46, 0.08);
}

.ref-text {
  flex: 1;
  font-size: 12px;
  color: #7e6a55;
  overflow: hidden;
  word-break: break-all;
}

.copy-btn-modern {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  border: none;
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  cursor: pointer;
  flex-shrink: 0;
}

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

.summary-card {
  min-height: 108px;
  padding: 16px;
  border-radius: 24px;
  color: #fff;
  box-shadow: 0 14px 26px rgba(43, 34, 24, 0.14);
  transition: transform 0.22s ease;
}

.summary-card h3 {
  font-size: 11px;
  font-weight: 700;
  margin: 0;
  opacity: 0.82;
}

.summary-card h2 {
  font-size: 18px;
  font-weight: 800;
  margin-top: 10px;
  letter-spacing: -0.03em;
}

.team-card {
  background: linear-gradient(135deg, #134e4a, #0f766e);
}

.deposit-card {
  background: linear-gradient(135deg, #15803d, #4ade80);
}

.withdraw-card {
  background: linear-gradient(135deg, #9a3412, #f97316);
}

.bonus-card {
  background: linear-gradient(135deg, #ca8a04, #facc15);
  color: #2b2218;
}

.status-icon {
  width: 78px;
  height: 78px;
  margin: 0 auto 16px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
}

.status-icon.success {
  background: linear-gradient(135deg, #15803d, #4ade80);
}

.status-icon.error {
  background: linear-gradient(135deg, #c2410c, #f97316);
}

.status-icon.warning {
  background: linear-gradient(135deg, #f59e0b, #facc15);
  color: #2b2218;
}

.withdraw-title {
  font-size: 18px;
  font-weight: 800;
}

.withdraw-sub {
  font-size: 12px;
  color: #7e6a55;
  margin-top: 4px;
}

.method-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.method-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-radius: 22px;
  background: rgba(36, 31, 25, 0.9);
  color: #fff;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.method-card:hover {
  box-shadow: 0 18px 32px rgba(43, 34, 24, 0.2);
}

.method-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.method-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
}

.method-icon img {
  width: 24px;
}

.method-name {
  font-size: 14px;
  font-weight: 700;
}

.method-arrow {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  position: relative;
}

.method-card.loading {
  opacity: 0.6;
  pointer-events: none;
}

.method-arrow.btn-loading .arrow-icon {
  visibility: hidden;
}

.method-arrow.btn-loading::after,
.game-btn.loading::after,
.history-btn.loading::after {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: spin 0.65s linear infinite;
}

.game-grid,
.history-grid {
  display: flex;
  gap: 12px;
  padding: 0 12px;
  margin-top: 12px;
}

.game-btn {
  flex: 1;
  background: rgba(36, 31, 25, 0.88);
}

.game-btn.loading i,
.game-btn.loading span,
.history-btn.loading i,
.history-btn.loading span {
  opacity: 0;
}

.live-bet-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: calc(100% - 24px);
  margin: 14px auto 0;
  padding: 14px;
  border-radius: 22px;
  background: linear-gradient(135deg, #1f2937, #0f172a);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.2);
}

.live-dot {
  width: 9px;
  height: 9px;
  background: #34d399;
  border-radius: 50%;
  animation: blink 1s infinite;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(43, 34, 24, 0.34);
  display: none;
  z-index: 9998;
}

.sidebar {
  position: fixed;
  top: 0;
  left: -300px;
  width: 280px;
  height: 100%;
  background: rgba(36, 31, 25, 0.94);
  color: #f7f1e8;
  backdrop-filter: blur(18px);
  transition: left 0.3s ease;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  box-shadow: 18px 0 40px rgba(0, 0, 0, 0.22);
}

.sidebar.active {
  left: 0;
}

.sidebar-header {
  padding: 22px 18px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-header h3 {
  font-size: 18px;
}

.sidebar-header button {
  background: none;
  border: none;
  font-size: 22px;
  color: #fff;
}

.sidebar-menu {
  padding: 12px;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  color: #f7f1e8;
  font-size: 14px;
  transition: background 0.22s ease, transform 0.22s ease;
}

.sidebar-menu a:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(3px);
}

.sidebar-menu .logout {
  margin-top: 10px;
  background: linear-gradient(135deg, #c2410c, #ea580c);
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 460px;
  z-index: 1000;
}

.appNavBar {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 460px;
  height: 78px;
  padding: 10px;
  border-radius: 28px;
  background: rgba(36, 31, 25, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 18px 40px rgba(25, 18, 10, 0.24);
  z-index: 9999;
}

.navLink {
  flex: 1;
  text-align: center;
  color: rgba(255, 247, 237, 0.72);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  position: relative;
  transition: color 0.22s ease, transform 0.22s ease;
}

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

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

.navLink.active {
  color: #fff;
  transform: translateY(-2px);
}

.navLink.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  width: 18px;
  height: 4px;
  border-radius: 999px;
  background: #f59e0b;
}

.navLink.center {
  top: -20px;
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  border-radius: 20px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #fff;
  box-shadow: 0 18px 30px rgba(245, 158, 11, 0.28);
}

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

.navLink.center p,
.badge-dot {
  display: none;
}

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

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.25;
  }
}

@media (max-width: 480px) {
  .dashboard,
  .plan-page {
    max-width: 100%;
  }

  .appHeader,
  .header,
  .appNavBar {
    width: calc(100% - 14px);
  }

  .feature-copy strong {
    font-size: 22px;
  }

  .actions-primary,
  .balance-meta,
  .feature-grid,
  .resource-grid,
  .summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .action-btn,
  .resource-tile,
  .summary-card {
    min-height: 102px;
    padding: 14px 12px;
    border-radius: 22px;
  }

  .resource-tile strong {
    font-size: 14px;
  }

  .summary-card h2 {
    font-size: 16px;
  }
}
