/* 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: var(--nav-bg);
  color: #fcfaff;
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 22px 44px rgba(53, 34, 96, 0.24);
  z-index: 1000;
}

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

.dashboard-topbar {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  left: auto;
  transform: none;
  width: calc(100% - 24px);
  margin: 0 auto 6px;
  padding: 14px 16px;
  z-index: 100;
}

.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(252, 250, 255, 0.68);
}

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

.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.14);
  padding: 7px;
}

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

.profile-copy small {
  font-size: 11px;
  color: rgba(252, 250, 255, 0.72);
}

.profile-copy span {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

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

.dashboard-page {
  padding-top: 22px;
}

.balance-card {
  padding: 20px;
  border-radius: 30px;
  text-align: left;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.24), transparent 30%),
    linear-gradient(135deg, #ffbf5a, #ff944d);
  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 24px 42px rgba(255, 148, 77, 0.26);
}

.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.18);
}

.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: #d9d0ef;
  margin-bottom: 4px;
}

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

.card .section-heading span {
  color: var(--muted-2);
}

.card .section-heading h3 {
  color: var(--text);
}

.feature-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 28px;
  text-decoration: none;
  box-shadow: 0 22px 36px rgba(56, 38, 99, 0.18);
}

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

.feature-banner-warm {
  background: linear-gradient(135deg, #b794f4, #8b5cf6);
  color: #fff;
}

.feature-banner-dark {
  background: linear-gradient(135deg, #34d399, #10b981);
  color: #fff;
}

.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.18);
}

.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, #ae8bff, #8b5cf6);
}

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

.history-btn {
  background: linear-gradient(135deg, #ffcd70, #ffb347);
  color: #432d1f;
}

.history-btn i {
  background: rgba(67, 45, 31, 0.1);
}

.team-btn {
  background: linear-gradient(135deg, #2fd3b2, #12b981);
}

.card {
  text-align: left;
}

.card h3,
.card .title {
  color: var(--text);
}

.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, #ffcd70, #ffb347);
  color: #432d1f;
}

.panel-dark {
  background: linear-gradient(135deg, #b794f4, #8b5cf6);
  color: #fff;
}

.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, #2fd3b2, #12b981);
}

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

.resource-gold {
  background: linear-gradient(135deg, #ffcd70, #ffb347);
  color: #432d1f;
}

.resource-gold i {
  background: rgba(67, 45, 31, 0.12);
}

.resource-dark {
  background: linear-gradient(135deg, #ae8bff, #8b5cf6);
}

.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(246, 240, 255, 0.88);
  border: 1px solid rgba(139, 92, 246, 0.08);
}

.ref-text {
  flex: 1;
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  word-break: break-all;
}

.copy-btn-modern {
  background: linear-gradient(135deg, #8b5cf6, #c084fc);
  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, #2fd3b2, #12b981);
}

.deposit-card {
  background: linear-gradient(135deg, #5ea7ff, #3b82f6);
}

.withdraw-card {
  background: linear-gradient(135deg, #ff8a65, #ff6b6b);
}

.bonus-card {
  background: linear-gradient(135deg, #ffcd70, #ffb347);
  color: #432d1f;
}

.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: var(--muted);
  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(255, 255, 255, 0.92);
  color: var(--text);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.method-card:hover {
  box-shadow: 0 18px 32px rgba(81, 54, 138, 0.18);
}

.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(139, 92, 246, 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, #8b5cf6, #c084fc);
  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: linear-gradient(135deg, #b794f4, #8b5cf6);
}

.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, #5b4a87, #403260);
  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: #ffd56a;
  border-radius: 50%;
  animation: blink 1s infinite;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(49, 35, 84, 0.38);
  display: none;
  z-index: 9998;
}

.sidebar {
  position: fixed;
  top: 0;
  left: -300px;
  width: 280px;
  height: 100%;
  background: rgba(91, 74, 135, 0.96);
  color: #fcfaff;
  backdrop-filter: blur(18px);
  transition: left 0.3s ease;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  box-shadow: 18px 0 40px rgba(47, 28, 91, 0.24);
}

.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: #fcfaff;
  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, var(--danger), var(--danger-2));
}

/* Light current-theme sidebar */
.sidebar-overlay {
  background: rgba(3, 19, 51, 0.45);
  backdrop-filter: blur(2px);
}

.sidebar {
  left: -320px;
  width: min(308px, 86vw);
  background:
    linear-gradient(110deg, transparent 0 52%, rgba(34, 198, 238, 0.08) 52% 70%, transparent 70% 100%),
    #eef6ff;
  color: #031333;
  border-radius: 0 22px 22px 0;
  box-shadow: 18px 0 42px rgba(3, 19, 51, 0.24);
  overflow-y: auto;
}

.sidebar-header {
  min-height: 84px;
  padding: 18px 12px 14px 18px;
  align-items: center;
  border-bottom: 0;
}

.sidebar-user {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-avatar {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(145deg, #168dff, #0aa6ff);
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
  flex: 0 0 48px;
}

.sidebar-header h3 {
  margin: 0;
  color: #031333;
  font-size: 15px;
  line-height: 1.15;
  font-weight: 900;
}

.sidebar-header small {
  display: block;
  margin-top: 4px;
  color: #60708f;
  font-size: 11px;
  line-height: 1.1;
  font-weight: 800;
}

.sidebar-header button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(145deg, #ff5d82, #ff3c68);
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
  box-shadow: 0 12px 22px rgba(255, 60, 104, 0.24);
}

.sidebar-menu {
  padding: 0 12px 18px 18px;
}

.sidebar-menu a,
.sidebar-menu .logout {
  min-height: 54px;
  margin: 0 0 10px;
  padding: 8px 10px 8px 12px;
  border: 1.5px solid rgba(8, 120, 250, 0.12);
  border-radius: 16px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  color: #031333;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 22px rgba(8, 120, 250, 0.08);
}

.sidebar-menu a:hover,
.sidebar-menu .logout:hover {
  background: #ffffff;
  transform: translateX(3px);
}

.sidebar-menu a span {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2f6bff;
  background: #eef6ff;
}

.sidebar-menu a strong {
  min-width: 0;
  color: #031333;
  font-size: 14px;
  line-height: 1.1;
  font-weight: 900;
}

.sidebar-menu .menu-arrow {
  color: #031333;
  font-size: 16px;
}

.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: var(--nav-bg);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 22px 42px rgba(53, 34, 96, 0.24);
  z-index: 9999;
}

.navLink {
  flex: 1;
  text-align: center;
  color: rgba(252, 250, 255, 0.78);
  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: #fff;
}

.navLink.center {
  top: -20px;
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  border-radius: 20px;
  background: linear-gradient(135deg, #8b5cf6, #ffb347);
  color: #fff;
  box-shadow: 0 18px 30px rgba(139, 92, 246, 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);
  }

  .balance-meta,
  .summary,
  .actions-primary {
    grid-template-columns: 1fr;
  }

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

/* Dashboard redesign layer */
.dashboard-page {
  gap: 16px;
}

.dashboard-page > * {
  animation: dashRise 0.52s ease both;
}

.dashboard-page > *:nth-child(2) { animation-delay: 0.04s; }
.dashboard-page > *:nth-child(3) { animation-delay: 0.08s; }
.dashboard-page > *:nth-child(4) { animation-delay: 0.12s; }
.dashboard-page > *:nth-child(5) { animation-delay: 0.16s; }
.dashboard-page > *:nth-child(6) { animation-delay: 0.2s; }
.dashboard-page > *:nth-child(7) { animation-delay: 0.24s; }
.dashboard-page > *:nth-child(8) { animation-delay: 0.28s; }

.dashboard-page .dashboard-hero-card {
  position: relative;
  overflow: hidden;
  padding: 24px 22px 20px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 84% 16%, rgba(255, 255, 255, 0.24), transparent 22%),
    radial-gradient(circle at 16% 10%, rgba(255, 255, 255, 0.12), transparent 18%),
    linear-gradient(145deg, #ffc66d, #ff9a55 58%, #ff7e68);
  box-shadow: 0 32px 52px rgba(255, 143, 92, 0.28);
}

.dashboard-page .dashboard-hero-card::before,
.dashboard-page .dashboard-hero-card::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.dashboard-page .dashboard-hero-card::before {
  width: 190px;
  height: 190px;
  top: -90px;
  right: -52px;
  background: rgba(255, 255, 255, 0.14);
}

.dashboard-page .dashboard-hero-card::after {
  width: 118px;
  height: 118px;
  right: 16px;
  bottom: -42px;
  background: rgba(255, 255, 255, 0.1);
}

.dashboard-page .dashboard-hero-card > span {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-page .dashboard-hero-card h1 {
  max-width: 270px;
  font-size: 38px;
  line-height: 1;
  margin-top: 2px;
}

.dashboard-page .dashboard-hero-card .balance-meta {
  margin-top: 20px;
  gap: 12px;
}

.dashboard-page .dashboard-hero-card .balance-meta div {
  padding: 14px 14px 13px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.dashboard-page .dashboard-games {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 12px;
}

.dashboard-page .dashboard-games .feature-banner {
  min-height: 142px;
  border-radius: 30px;
  position: relative;
  overflow: hidden;
}

.dashboard-page .dashboard-games .feature-banner::before {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  right: -18px;
  top: -20px;
  border-radius: 32px;
  transform: rotate(18deg);
  background: rgba(255, 255, 255, 0.14);
}

.dashboard-page .dashboard-games .feature-banner-warm {
  background: linear-gradient(145deg, #caa7ff, #8b5cf6 62%, #7446ea);
}

.dashboard-page .dashboard-games .feature-banner-dark {
  background: linear-gradient(145deg, #48dfbf, #14b8a6 58%, #0b9a8a);
  margin-top: 26px;
}

.dashboard-page .dashboard-games .feature-copy strong {
  max-width: 120px;
  font-size: 24px;
}

.dashboard-page .dashboard-actions-block .actions-primary {
  gap: 14px;
}

.dashboard-page .dashboard-actions-block .action-btn {
  min-height: 122px;
  border-radius: 30px;
  padding: 18px 16px 16px;
  overflow: hidden;
}

.dashboard-page .dashboard-actions-block .action-btn::before {
  content: "";
  position: absolute;
  right: -14px;
  bottom: -14px;
  width: 74px;
  height: 74px;
  border-radius: 24px;
  transform: rotate(22deg);
  background: rgba(255, 255, 255, 0.12);
}

.dashboard-page .dashboard-actions-block .action-btn i,
.dashboard-page .dashboard-insights .info-panel .panel-icon,
.dashboard-page .resource-grid .resource-tile i {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.dashboard-page .dashboard-chart-card {
  padding: 22px 20px 18px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(246, 240, 255, 0.93));
  box-shadow: 0 28px 44px rgba(69, 42, 121, 0.14);
}

.dashboard-page .dashboard-chart-card canvas {
  margin-top: 10px;
}

.dashboard-page .dashboard-insights .info-panel {
  min-height: 126px;
  border-radius: 30px;
  position: relative;
  overflow: hidden;
}

.dashboard-page .dashboard-insights .info-panel::after {
  content: "";
  position: absolute;
  width: 92px;
  height: 92px;
  right: -26px;
  bottom: -30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.dashboard-page .dashboard-support-block .resource-grid {
  gap: 14px;
}

.dashboard-page .dashboard-support-block .section-heading span {
  color: #ffb347;
}

.dashboard-page .dashboard-support-block .section-heading h3 {
  color: #ff8a65;
}

.task-spotlight-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin: 0 0 14px;
  padding: 16px 18px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(145deg, #ffb347, #ff8a65);
  color: #fff;
  box-shadow: 0 18px 34px rgba(255, 138, 101, 0.24);
}

.task-spotlight-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,0.22) 50%, transparent 80%);
  transform: translateX(-120%);
  animation: taskShine 2.8s linear infinite;
}

.task-spotlight-icon,
.task-spotlight-copy {
  position: relative;
  z-index: 1;
}

.task-spotlight-icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  font-size: 16px;
}

.task-spotlight-copy {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.task-spotlight-copy small {
  display: block;
  font-size: 11px;
  opacity: 0.86;
  margin-bottom: 4px;
}

.task-spotlight-copy strong {
  display: block;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.task-spotlight-pulse {
  position: relative;
  z-index: 1;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55);
  animation: taskPulse 1.8s infinite;
}

.dashboard-page .dashboard-support-block .resource-tile {
  min-height: 128px;
  border-radius: 28px;
  position: relative;
  overflow: hidden;
}

.dashboard-page .dashboard-support-block .resource-tile::before {
  content: "";
  position: absolute;
  width: 84px;
  height: 84px;
  right: -18px;
  top: -18px;
  border-radius: 28px;
  transform: rotate(22deg);
  background: rgba(255, 255, 255, 0.12);
}

.dashboard-page .dashboard-referral-card,
.dashboard-page .dashboard-summary-card {
  border-radius: 32px;
}

.dashboard-page .dashboard-referral-card .ref-modern {
  padding: 16px;
  border-radius: 22px;
}

.dashboard-page .dashboard-summary-card .summary {
  gap: 14px;
}

.dashboard-page .dashboard-summary-card .summary-card {
  min-height: 116px;
  border-radius: 28px;
  position: relative;
  overflow: hidden;
}

.dashboard-page .dashboard-summary-card .summary-card::after {
  content: "";
  position: absolute;
  width: 78px;
  height: 78px;
  right: -18px;
  bottom: -18px;
  border-radius: 24px;
  transform: rotate(18deg);
  background: rgba(255, 255, 255, 0.12);
}

.dashboard-page .dashboard-summary-card .summary-card:nth-child(1),
.dashboard-page .dashboard-summary-card .summary-card:nth-child(4),
.dashboard-page .dashboard-summary-card .summary-card:nth-child(7) {
  transform: translateY(-4px);
}

.dashboard-page .dashboard-summary-card .summary-card:nth-child(2),
.dashboard-page .dashboard-summary-card .summary-card:nth-child(5) {
  transform: translateY(8px);
}

@keyframes dashRise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes taskPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55);
  }

  70% {
    box-shadow: 0 0 0 14px rgba(255, 255, 255, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

@keyframes taskShine {
  100% {
    transform: translateX(120%);
  }
}

@media (max-width: 480px) {
  .dashboard-page .dashboard-games,
  .dashboard-page .dashboard-actions-block .actions-primary,
  .dashboard-page .dashboard-summary-card .summary {
    grid-template-columns: 1fr;
  }

  .dashboard-page .dashboard-games .feature-banner-dark,
  .dashboard-page .dashboard-summary-card .summary-card:nth-child(1),
  .dashboard-page .dashboard-summary-card .summary-card:nth-child(2),
  .dashboard-page .dashboard-summary-card .summary-card:nth-child(4),
  .dashboard-page .dashboard-summary-card .summary-card:nth-child(5),
  .dashboard-page .dashboard-summary-card .summary-card:nth-child(7) {
    margin-top: 0;
    transform: none;
  }
}

/* Reference-image dashboard */
.dashboard.dashboard-page {
  width: calc(100% - 24px);
  max-width: 420px;
  margin: 14px auto 0;
  padding: 18px 14px 140px;
  border-radius: 38px;
  background:
    radial-gradient(circle at top right, rgba(168, 126, 255, 0.14), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 244, 255, 0.96));
  box-shadow: 0 38px 70px rgba(50, 30, 91, 0.28);
}

.dashboard-page > * {
  animation: none;
}

.dashboard-page .dashboard-topbar {
  position: relative;
  top: auto;
  width: 100%;
  margin: 0 0 14px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
}

.dashboard-page .topbar {
  gap: 10px;
}

.dashboard-page .profile {
  gap: 10px;
}

.dashboard-page .profile img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  padding: 0;
  background: linear-gradient(145deg, #c5acff, #8b5cf6);
  border: 3px solid rgba(139, 92, 246, 0.14);
}

.dashboard-page .profile-copy small {
  color: #8d80ad;
  font-size: 11px;
}

.dashboard-page .profile-copy span {
  max-width: 150px;
  color: #2e2546;
  font-size: 16px;
  font-weight: 700;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.balance-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(145deg, #b07cff, #8b5cf6);
  color: #fff;
  box-shadow: 0 12px 24px rgba(139, 92, 246, 0.22);
  font-size: 12px;
  font-weight: 700;
}

.balance-pill i {
  font-size: 11px;
  opacity: 0.9;
}

.dashboard-page .header-btn {
  width: 34px;
  height: 34px;
  border-radius: 14px;
  background: #f0e9ff;
  color: #8b5cf6;
  box-shadow: none;
}

.shortcut-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.shortcut-card {
  min-height: 118px;
  padding: 16px 12px;
  border-radius: 22px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 30px rgba(67, 44, 120, 0.14);
}

.shortcut-card::before {
  content: "";
  position: absolute;
  width: 74px;
  height: 74px;
  right: -18px;
  bottom: -18px;
  border-radius: 24px;
  transform: rotate(22deg);
  background: rgba(255, 255, 255, 0.12);
}

.shortcut-purple {
  background: linear-gradient(145deg, #c8a6ff, #8b5cf6);
}

.shortcut-green {
  background: linear-gradient(145deg, #45dfc1, #14b8a6);
}

.shortcut-orange {
  background: linear-gradient(145deg, #ff975a, #ff6b5f);
}

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

.shortcut-card .feature-copy {
  position: relative;
  z-index: 1;
}

.shortcut-card .feature-copy span {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  opacity: 0.88;
}

.shortcut-card .feature-copy strong {
  display: block;
  max-width: none;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.dashboard-page .dashboard-hero-card.featured-cta-card {
  width: 100%;
  margin: 0 0 16px;
  min-height: 168px;
  padding: 24px 22px;
  border-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.24), transparent 18%),
    linear-gradient(145deg, #ffc861, #fcae45 62%, #f99a32);
  box-shadow: 0 22px 40px rgba(249, 154, 50, 0.26);
}

.featured-cta-card .featured-copy {
  position: relative;
  z-index: 1;
}

.featured-cta-card .featured-copy span {
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.92;
}

.featured-cta-card .featured-copy h1 {
  margin: 8px 0;
  font-size: 36px;
  line-height: 1;
  max-width: 190px;
}

.featured-cta-card .featured-copy p {
  max-width: 180px;
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  line-height: 1.45;
}

.featured-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #613c14;
  font-size: 12px;
  font-weight: 700;
}

.featured-visual {
  position: relative;
  width: 120px;
  height: 120px;
  flex: 0 0 120px;
}

.featured-ring {
  position: absolute;
  border-radius: 50%;
  border: 10px solid rgba(255, 255, 255, 0.9);
}

.ring-one {
  width: 76px;
  height: 76px;
  top: 14px;
  left: 10px;
  border-color: #22c55e transparent #facc15 #8b5cf6;
  transform: rotate(-18deg);
}

.ring-two {
  width: 48px;
  height: 48px;
  right: 14px;
  bottom: 18px;
  border-width: 8px;
  border-color: #14b8a6 #ff8a65 #c084fc transparent;
  transform: rotate(26deg);
}

.featured-dot {
  position: absolute;
  top: 50px;
  left: 54px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    -22px 20px 0 0 #8b5cf6,
    26px -8px 0 0 #22c55e,
    28px 28px 0 0 #facc15;
}

.class-explorer-card {
  width: 100%;
  margin: 0 0 16px;
  padding: 18px 18px 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 34px rgba(67, 44, 120, 0.1);
}

.class-explorer-card .section-heading {
  margin-bottom: 14px;
}

.class-explorer-card .section-heading span {
  color: #a190c7;
}

.class-explorer-card .section-heading h3 {
  color: #2e2546;
  font-size: 26px;
}

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

.class-chip {
  min-height: 84px;
  padding: 14px 16px;
  border-radius: 20px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 12px 24px rgba(67, 44, 120, 0.12);
}

.class-chip small {
  display: block;
  font-size: 11px;
  opacity: 0.82;
  margin-bottom: 5px;
}

.class-chip strong {
  display: block;
  font-size: 15px;
  letter-spacing: -0.03em;
}

.chip-purple { background: linear-gradient(145deg, #be96ff, #8b5cf6); }
.chip-orange { background: linear-gradient(145deg, #ffca69, #f6a73a); }
.chip-blue { background: linear-gradient(145deg, #71b9ff, #3b82f6); }
.chip-green { background: linear-gradient(145deg, #48dfbf, #10b981); }

.dashboard-page .dashboard-chart-card,
.dashboard-page .dashboard-insights,
.dashboard-page .dashboard-support-block,
.dashboard-page .dashboard-referral-card,
.dashboard-page .dashboard-summary-card {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.dashboard-page .dashboard-chart-card,
.dashboard-page .dashboard-referral-card,
.dashboard-page .dashboard-summary-card {
  border-radius: 24px;
}

.appNavBar {
  left: 50%;
  bottom: 18px;
  width: min(390px, calc(100% - 46px));
  height: 76px;
  padding: 10px 12px;
  border-radius: 26px;
  background: rgba(164, 133, 224, 0.86);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 22px 42px rgba(63, 38, 112, 0.26);
}

.navLink {
  color: rgba(255, 255, 255, 0.82);
  font-size: 10px;
}

.navLink i {
  font-size: 17px;
  margin-bottom: 3px;
}

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

.navLink.active {
  color: #ffffff;
  transform: translateY(0);
}

.navLink.active::after {
  display: none;
}

.navLink.center {
  top: -22px;
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  border-radius: 50%;
  background: linear-gradient(145deg, #b07cff, #8b5cf6);
  box-shadow: 0 18px 34px rgba(139, 92, 246, 0.34);
}

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

@media (max-width: 480px) {
  .dashboard.dashboard-page {
    width: calc(100% - 24px);
    margin: 10px auto 0;
    max-width: none;
    padding: 16px 12px 136px;
    border-radius: 32px;
  }

  .shortcut-strip,
  .class-chip-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .shortcut-strip .shortcut-card:last-child {
    grid-column: span 2;
    min-height: 92px;
  }

  .dashboard-page .dashboard-hero-card.featured-cta-card {
    min-height: 154px;
    padding: 20px 18px;
  }

  .featured-cta-card .featured-copy h1 {
    font-size: 31px;
  }

  .featured-visual {
    width: 96px;
    height: 96px;
    flex-basis: 96px;
  }

  .ring-one {
    width: 62px;
    height: 62px;
  }

  .ring-two {
    width: 40px;
    height: 40px;
  }

  .featured-dot {
    top: 38px;
    left: 40px;
  }

  .appNavBar {
    width: calc(100% - 28px);
    bottom: 10px;
  }
}

/* Blue wave finance dashboard */
.finance-dashboard-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 0 74%, rgba(52, 62, 158, 0.36), transparent 24%),
    radial-gradient(circle at 100% 82%, rgba(52, 62, 158, 0.28), transparent 24%),
    linear-gradient(145deg, #111748 0%, #141b53 46%, #080d31 100%);
}

.finance-dashboard {
  width: min(100% - 28px, 430px);
  max-width: 430px;
  margin: 16px auto 0;
  padding: 0 0 124px;
  border-radius: 34px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 34px 74px rgba(0, 4, 34, 0.45);
}

.finance-hero {
  min-height: 270px;
  position: relative;
  padding: 34px 26px 92px;
  color: #ffffff;
  background: linear-gradient(135deg, #19dce2 0%, #0878fa 100%);
}

.finance-hero::before,
.finance-hero::after,
.finance-ribbon {
  content: "";
  position: absolute;
  pointer-events: none;
}

.finance-hero::before {
  left: -12%;
  right: -8%;
  bottom: -42px;
  height: 118px;
  border-radius: 52% 48% 0 0 / 72% 64% 0 0;
  background: #ffffff;
  transform: rotate(7deg);
  z-index: 0;
}

.finance-hero::after {
  width: 280px;
  height: 260px;
  right: -60px;
  top: 0;
  border-radius: 0 0 0 88%;
  background: linear-gradient(135deg, rgba(31, 235, 231, 0.22), rgba(255, 255, 255, 0));
  transform: rotate(8deg);
}

.finance-ribbon {
  width: 270px;
  height: 138px;
  right: -20px;
  bottom: 22px;
  border-radius: 0 0 0 100%;
  background: linear-gradient(145deg, rgba(0, 224, 229, 0.46), rgba(0, 104, 250, 0.42));
  transform: rotate(-12deg);
}

.finance-topbar,
.finance-welcome {
  position: relative;
  z-index: 1;
}

.finance-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 42px;
}

.finance-menu,
.finance-bell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.finance-menu {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  font-size: 34px;
  line-height: 1;
}

.finance-top-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.finance-bell {
  width: 42px;
  height: 42px;
  position: relative;
  font-size: 31px;
}

.finance-bell span {
  position: absolute;
  top: 5px;
  right: 3px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff4d56;
  border: 2px solid #18c6f1;
}

.finance-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.28);
}

.finance-welcome h1 {
  margin: 0;
  max-width: 330px;
  color: #ffffff;
  font-size: clamp(34px, 9vw, 46px);
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: 0;
}

.finance-welcome p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
}

.finance-welcome small {
  display: inline-block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
}

.finance-content {
  position: relative;
  z-index: 1;
  margin-top: -32px;
  padding: 0 24px 26px;
  background: #ffffff;
}

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

.finance-section-title h2 {
  margin: 0;
  color: #111633;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0;
}

.finance-section-title a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0878fa;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.finance-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.finance-stat-card {
  min-height: 144px;
  position: relative;
  overflow: hidden;
  padding: 18px 14px;
  border: 1px solid rgba(10, 25, 55, 0.08);
  border-radius: 20px;
  color: #111633;
  background: #f7fbff;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
}

.finance-stat-card::after {
  content: "";
  position: absolute;
  right: -14px;
  bottom: -20px;
  width: 106px;
  height: 62px;
  border-top: 3px solid currentColor;
  border-radius: 60% 40% 0 0;
  opacity: 0.68;
  transform: rotate(-12deg);
}

.finance-stat-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.finance-stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 50px;
  color: #ffffff;
  font-size: 20px;
}

.finance-stat-head small {
  display: block;
  margin: 4px 0 8px;
  color: #151936;
  font-size: 13px;
  font-weight: 500;
}

.finance-stat-head strong {
  display: block;
  color: #121632;
  font-size: 21px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: 0;
  word-break: break-word;
}

.finance-stat-meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 24px;
  font-size: 13px;
  font-weight: 600;
}

.finance-stat-meta span {
  color: #5e6377;
  font-weight: 500;
}

.finance-stat-meta.up {
  color: #19bf68;
}

.finance-stat-meta.down {
  color: #ff3e3e;
}

.stat-blue {
  color: #0878fa;
  background: linear-gradient(145deg, #f7fbff, #edf6ff);
}

.stat-green {
  color: #19bf68;
  background: linear-gradient(145deg, #f8fffb, #ecfbf2);
}

.stat-purple {
  color: #855cf5;
  background: linear-gradient(145deg, #fbf9ff, #f4efff);
}

.stat-orange {
  color: #ff9100;
  background: linear-gradient(145deg, #fffdf8, #fff4e8);
}

.stat-blue .finance-stat-icon { background: linear-gradient(145deg, #18a6ff, #0878fa); }
.stat-green .finance-stat-icon { background: linear-gradient(145deg, #35d982, #19bf68); }
.stat-purple .finance-stat-icon { background: linear-gradient(145deg, #a177ff, #855cf5); }
.stat-orange .finance-stat-icon { background: linear-gradient(145deg, #ffb12a, #ff8a00); }

.finance-transaction-list {
  margin-bottom: 24px;
  padding: 0 22px;
  border: 1px solid rgba(10, 25, 55, 0.09);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
}

.finance-transaction {
  min-height: 72px;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 14px;
  color: #111633;
  border-bottom: 1px solid rgba(10, 25, 55, 0.09);
}

.finance-transaction:last-child {
  border-bottom: 0;
}

.transaction-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.tx-green { color: #18b963; background: #c9f6dc; }
.tx-blue { color: #0878fa; background: #d8ecff; }
.tx-orange { color: #ff7b2f; background: #ffe0d0; }
.tx-purple { color: #855cf5; background: #e8ddff; }

.finance-transaction strong {
  display: block;
  color: #111633;
  font-size: 15px;
  font-weight: 700;
}

.finance-transaction small {
  display: block;
  margin-top: 3px;
  color: #71778b;
  font-size: 12px;
}

.finance-transaction b {
  color: #111633;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.finance-cta {
  min-height: 118px;
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding: 20px 18px;
  border-radius: 20px;
  color: #ffffff;
  background: linear-gradient(135deg, #16d7e1 0%, #0878fa 100%);
  box-shadow: 0 18px 36px rgba(8, 120, 250, 0.22);
}

.finance-cta-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  font-size: 26px;
}

.finance-cta strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 700;
}

.finance-cta small {
  display: block;
  max-width: 160px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  line-height: 1.35;
}

.finance-cta em {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #0878fa;
  background: #ffffff;
  font-style: normal;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.finance-chart-card,
.finance-referral-card,
.finance-summary-card {
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid rgba(10, 25, 55, 0.08);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
}

.finance-resource-grid {
  margin-bottom: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.finance-resource-grid .resource-tile {
  min-height: 94px;
  padding: 14px;
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.09);
}

.finance-resource-grid .resource-tile i {
  width: 36px;
  height: 36px;
  border-radius: 13px;
}

.finance-resource-grid .resource-tile strong {
  font-size: 15px;
}

.finance-resource-grid .resource-tile,
.finance-resource-grid .resource-tile.resource-orange,
.finance-resource-grid .resource-tile.resource-gold,
.finance-resource-grid .resource-tile.resource-dark,
.finance-resource-grid .resource-tile.resource-whatsapp {
  min-height: 96px;
  padding: 10px 8px;
  border: 2px solid transparent;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  color: #08072d;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, #8b5cf6 0%, #9a63f4 46%, #ffb347 100%) border-box;
  box-shadow: none;
}

.finance-resource-grid .resource-tile:hover {
  box-shadow: 0 12px 26px rgba(139, 92, 246, 0.14);
}

.finance-resource-grid .resource-tile img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
  margin: 0 auto 2px;
}

.finance-resource-grid .resource-tile div {
  width: 100%;
}

.finance-resource-grid .resource-tile small {
  margin: 0 0 2px;
  color: #8b87a4;
  font-size: 10px;
  line-height: 1.1;
  opacity: 1;
}

.finance-resource-grid .resource-tile strong {
  color: #08072d;
  font-size: 13px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0;
}

.finance-referral-card h3,
.finance-summary-card h3 {
  margin: 0;
  color: #111633;
  font-size: 20px;
  font-weight: 700;
}

.finance-referral-card .ref-modern {
  background: #f4f8ff;
  border-color: rgba(8, 120, 250, 0.08);
}

.finance-referral-card .copy-btn-modern {
  background: linear-gradient(135deg, #16d7e1 0%, #0878fa 100%);
}

.finance-summary-card .summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.finance-summary-card .summary-card {
  min-height: 96px;
  padding: 14px;
  border-radius: 18px;
  box-shadow: 0 10px 20px rgba(17, 24, 39, 0.08);
}

.finance-summary-card .summary-card h3 {
  color: inherit;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 700;
  opacity: 0.92;
}

.finance-summary-card .summary-card h2 {
  margin-top: 10px;
  color: inherit;
  font-size: 16px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0;
}

.finance-summary-card .team-card {
  background: linear-gradient(145deg, #39dcae 0%, #18b985 100%);
}

.finance-summary-card .deposit-card {
  background: linear-gradient(145deg, #64b5ff 0%, #2f7df4 100%);
}

.finance-summary-card .withdraw-card {
  background: linear-gradient(145deg, #ff8f7c 0%, #ff5c5c 100%);
}

.finance-summary-card .bonus-card {
  background: linear-gradient(145deg, #ffd36d 0%, #ffac37 100%);
  color: #2d2630;
}

.finance-dashboard-body .appNavBar {
  left: 50%;
  bottom: 18px;
  width: min(390px, calc(100% - 46px));
  height: 76px;
  padding: 10px 12px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(10, 25, 55, 0.08);
  box-shadow: 0 18px 38px rgba(0, 4, 34, 0.18);
}

.finance-dashboard-body .navLink {
  color: #73788b;
}

.finance-dashboard-body .navLink.active,
.finance-dashboard-body .navLink:hover {
  color: #0878fa;
}

.finance-dashboard-body .navLink.center {
  top: -22px;
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  border-radius: 50%;
  background: linear-gradient(145deg, #18d5e1, #0878fa);
  color: #ffffff;
  box-shadow: 0 18px 34px rgba(8, 120, 250, 0.34);
}

@media (max-width: 430px) {
  .finance-dashboard {
    width: calc(100% - 20px);
    margin-top: 10px;
    border-radius: 30px;
  }

  .finance-hero {
    min-height: 244px;
    padding: 28px 22px 82px;
  }

  .finance-topbar {
    margin-bottom: 34px;
  }

  .finance-avatar {
    width: 52px;
    height: 52px;
  }

  .finance-welcome h1 {
    font-size: 34px;
  }

  .finance-welcome p {
    font-size: 17px;
  }

  .finance-content {
    padding: 0 20px 24px;
  }

  .finance-overview-grid {
    gap: 12px;
  }

  .finance-stat-card {
    min-height: 132px;
    padding: 15px 12px;
  }

  .finance-stat-head {
    gap: 10px;
  }

  .finance-stat-icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border-radius: 16px;
    font-size: 17px;
  }

  .finance-stat-head small {
    font-size: 11px;
  }

  .finance-stat-head strong {
    font-size: 17px;
  }

  .finance-stat-meta {
    margin-top: 20px;
    font-size: 11px;
  }

  .finance-transaction-list {
    padding: 0 14px;
  }

  .finance-transaction {
    grid-template-columns: 42px 1fr auto;
    gap: 10px;
  }

  .finance-cta {
    grid-template-columns: 54px 1fr;
  }

  .finance-cta em {
    grid-column: 2;
    justify-self: start;
    min-height: 40px;
  }

  .finance-resource-grid,
  .finance-summary-card .summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .finance-summary-card {
    padding: 16px;
  }

  .finance-summary-card .summary {
    gap: 12px;
  }

  .finance-summary-card .summary-card {
    min-height: 92px;
    padding: 13px;
  }

  .finance-summary-card .summary-card h3 {
    font-size: 12px;
  }

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

  .finance-resource-grid .resource-tile {
    min-width: 0;
  }

  .finance-dashboard-body .appNavBar {
    width: calc(100% - 28px);
    bottom: 10px;
  }
}

/* Current-theme list/detail pages */
.theme-list-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 0 74%, rgba(52, 62, 158, 0.36), transparent 24%),
    radial-gradient(circle at 100% 82%, rgba(52, 62, 158, 0.28), transparent 24%),
    linear-gradient(145deg, #111748 0%, #141b53 46%, #080d31 100%);
}

.theme-list-shell {
  width: min(100% - 28px, 430px);
  max-width: 430px;
  margin: 16px auto 0;
  padding: 0 0 124px;
  border-radius: 34px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 34px 74px rgba(0, 4, 34, 0.45);
}

.theme-list-hero {
  min-height: 286px;
  position: relative;
  padding: 34px 26px 98px;
  color: #ffffff;
  background: linear-gradient(135deg, #19dce2 0%, #0878fa 100%);
}

.theme-list-hero::before,
.theme-list-hero::after,
.theme-list-ribbon {
  content: "";
  position: absolute;
  pointer-events: none;
}

.theme-list-hero::before {
  left: -14%;
  right: -10%;
  bottom: -44px;
  height: 126px;
  border-radius: 52% 48% 0 0 / 72% 64% 0 0;
  background: #ffffff;
  transform: rotate(7deg);
  z-index: 0;
}

.theme-list-hero::after {
  width: 290px;
  height: 270px;
  right: -66px;
  top: 0;
  border-radius: 0 0 0 88%;
  background: linear-gradient(135deg, rgba(31, 235, 231, 0.22), rgba(255, 255, 255, 0));
  transform: rotate(8deg);
}

.theme-list-ribbon {
  width: 275px;
  height: 140px;
  right: -22px;
  bottom: 32px;
  border-radius: 0 0 0 100%;
  background: linear-gradient(145deg, rgba(0, 224, 229, 0.46), rgba(0, 104, 250, 0.42));
  transform: rotate(-12deg);
}

.theme-list-back,
.theme-list-heading {
  position: relative;
  z-index: 1;
}

.theme-list-back {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 30px;
}

.theme-list-heading {
  margin-top: 42px;
}

.theme-list-heading h1 {
  margin: 0;
  max-width: 330px;
  color: #ffffff;
  font-size: clamp(34px, 9vw, 43px);
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: 0;
}

.theme-list-heading p {
  max-width: 280px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
  line-height: 1.4;
}

.theme-list-content {
  position: relative;
  z-index: 1;
  margin-top: -46px;
  padding: 0 24px 28px;
  background: #ffffff;
}

.theme-list-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.theme-list-summary > div {
  min-height: 86px;
  padding: 14px;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(145deg, #18a6ff, #0878fa);
  box-shadow: 0 12px 24px rgba(8, 120, 250, 0.16);
}

.theme-list-summary > div:nth-child(even) {
  background: linear-gradient(145deg, #35d982, #19bf68);
}

.theme-list-summary span,
.theme-metric-grid span {
  display: block;
  font-size: 11px;
  line-height: 1.25;
  opacity: 0.88;
}

.theme-list-summary strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
  line-height: 1.1;
  font-weight: 800;
  word-break: break-word;
}

.theme-filter-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
  padding: 10px;
  border: 1px solid rgba(10, 25, 55, 0.08);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.05);
}

.theme-filter-card .filter-btn {
  min-height: 38px;
  padding: 8px 8px;
  border-radius: 13px;
  border: 0;
  background: #eef6ff;
  color: #0878fa;
  font-size: 11px;
  font-weight: 800;
}

.theme-filter-card .filter-btn.active {
  color: #ffffff;
  background: linear-gradient(135deg, #0b7cff 0%, #1fe0dd 100%);
  box-shadow: 0 10px 20px rgba(8, 120, 250, 0.18);
}

.referral-filter-card {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.theme-record-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.theme-record-card {
  position: relative;
  padding: 16px;
  border: 1px solid rgba(10, 25, 55, 0.09);
  border-radius: 20px;
  color: #111633;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
  overflow: hidden;
}

.theme-record-card::after {
  content: "";
  position: absolute;
  right: -36px;
  bottom: -50px;
  width: 130px;
  height: 100px;
  border-top: 3px solid rgba(8, 120, 250, 0.28);
  border-radius: 60% 40% 0 0;
  transform: rotate(-12deg);
}

.theme-record-top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.theme-record-icon {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(145deg, #18a6ff, #0878fa);
}

.theme-record-icon.withdraw-icon {
  background: linear-gradient(145deg, #ff8f7c, #ff5c5c);
}

.theme-record-top b.amount-red {
  color: #ff5c5c;
}

.theme-record-top small,
.theme-referral-extra small {
  display: block;
  margin-bottom: 4px;
  color: #757b90;
  font-size: 11px;
  line-height: 1.2;
}

.theme-record-top strong,
.theme-referral-extra strong {
  display: block;
  color: #111633;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 800;
  word-break: break-word;
}

.theme-record-top b {
  color: #0878fa;
  font-size: 17px;
  line-height: 1.1;
  font-weight: 800;
  white-space: nowrap;
}

.theme-metric-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.theme-metric-grid > div {
  padding: 12px;
  border-radius: 15px;
  color: #ffffff;
  background: linear-gradient(145deg, #35d982, #19bf68);
}

.theme-metric-grid > div:nth-child(even) {
  background: linear-gradient(145deg, #a177ff, #855cf5);
}

.theme-metric-grid strong {
  display: block;
  margin-top: 6px;
  color: inherit;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 800;
}

.theme-timer-row,
.theme-status-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 15px;
  background: #f4f8ff;
  color: #656b82;
  font-size: 13px;
}

.theme-timer-row strong {
  color: #0878fa;
  margin-left: auto;
}

.theme-timer-row em {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #19bf68;
  box-shadow: 0 0 0 0 rgba(25, 191, 104, 0.55);
  animation: pulse 1.6s infinite;
}

.theme-status-row {
  background: transparent;
  padding: 0;
}

.theme-referral-extra {
  position: relative;
  z-index: 1;
  margin-top: 14px;
}

.theme-referral-extra > div:first-child {
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 15px;
  background: #f4f8ff;
}

.theme-progress-wrap {
  position: relative;
  z-index: 1;
  height: 11px;
  margin-top: 16px;
  border-radius: 999px;
  background: #e9f2ff;
  overflow: hidden;
}

.theme-progress-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0b7cff 0%, #1fe0dd 100%);
}

.theme-progress-text {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  color: #656b82;
  font-size: 12px;
  font-weight: 700;
}

.theme-action-btn {
  position: relative;
  z-index: 1;
  min-height: 48px;
  width: 100%;
  margin-top: 16px;
  border: 0;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #0b7cff 0%, #1fe0dd 100%);
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 14px 26px rgba(8, 120, 250, 0.2);
}

.theme-action-btn.secondary {
  background: linear-gradient(145deg, #8b95a7, #64748b);
}

.theme-action-btn.disabled {
  background: linear-gradient(145deg, #35d982, #19bf68);
  pointer-events: none;
}

.theme-empty-card {
  padding: 20px;
  border: 1px solid rgba(10, 25, 55, 0.09);
  border-radius: 18px;
  color: #656b82;
  background: #ffffff;
  text-align: center;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
}

.theme-list-body .modern-inline-alert {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(145deg, #eff7ff, #f7fbff);
  border: 1px solid rgba(8, 120, 250, 0.12);
}

.theme-list-body .modern-inline-alert > i {
  width: 36px;
  height: 36px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(145deg, #18a6ff, #0878fa);
}

.theme-list-body .modern-inline-alert strong,
.theme-list-body .modern-inline-alert span {
  display: block;
}

.theme-list-body .modern-inline-alert strong {
  color: #111633;
  font-size: 15px;
}

.theme-list-body .modern-inline-alert span {
  margin-top: 4px;
  color: #656b82;
  font-size: 13px;
}

.theme-list-body .appNavBar {
  left: 50%;
  bottom: 18px;
  width: min(390px, calc(100% - 46px));
  height: 76px;
  padding: 10px 12px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(10, 25, 55, 0.08);
  box-shadow: 0 18px 38px rgba(0, 4, 34, 0.18);
}

.theme-list-body .navLink {
  color: #73788b;
}

.theme-list-body .navLink.active,
.theme-list-body .navLink:hover {
  color: #0878fa;
}

.theme-list-body .navLink.center {
  top: -22px;
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  border-radius: 50%;
  background: linear-gradient(145deg, #18d5e1, #0878fa);
  color: #ffffff;
  box-shadow: 0 18px 34px rgba(8, 120, 250, 0.34);
}

@media (max-width: 430px) {
  .theme-list-shell {
    width: calc(100% - 20px);
    margin-top: 10px;
    border-radius: 30px;
  }

  .theme-list-hero {
    min-height: 258px;
    padding: 28px 22px 88px;
  }

  .theme-list-heading {
    margin-top: 34px;
  }

  .theme-list-heading h1 {
    font-size: 32px;
  }

  .theme-list-heading p {
    font-size: 15px;
  }

  .theme-list-content {
    padding: 0 20px 24px;
  }

  .theme-filter-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .theme-record-top {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .theme-record-top b,
  .theme-record-top .badge {
    grid-column: 2;
    justify-self: start;
  }

  .theme-list-body .appNavBar {
    width: calc(100% - 28px);
    bottom: 10px;
  }
}

/* Mobile dashboard template */
.mobile-template-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 10%, rgba(26, 193, 255, 0.16), transparent 26%),
    radial-gradient(circle at 92% 4%, rgba(121, 92, 255, 0.18), transparent 30%),
    linear-gradient(180deg, #f7fbff 0%, #dfeaff 52%, #d5e3fb 100%);
  color: #031333;
}

.mobile-dashboard-shell {
  width: min(100%, 860px);
  margin: 0 auto;
  padding: 10px 22px 118px;
}

.mobile-dashboard-top {
  min-height: 58px;
  padding: 8px;
  border-radius: 22px;
  border: 1.5px solid rgba(8, 120, 250, 0.42);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 34px rgba(44, 102, 190, 0.14);
}

.mobile-top-left,
.mobile-top-actions,
.mobile-profile,
.mobile-ref-card,
.mobile-resource-card {
  display: flex;
  align-items: center;
}

.mobile-top-left {
  min-width: 0;
  gap: 10px;
}

.mobile-menu-btn {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(145deg, #26bdff, #0878fa);
  font-size: 21px;
  box-shadow: 0 10px 18px rgba(8, 120, 250, 0.2);
  cursor: pointer;
}

.mobile-brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #dff1ff;
}

.mobile-top-user {
  min-width: 0;
}

.mobile-top-user strong,
.mobile-top-user small {
  display: block;
  line-height: 1.15;
}

.mobile-top-user strong {
  max-width: 160px;
  color: #07133b;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-top-user small {
  margin-top: 3px;
  color: #52688f;
  font-size: 10px;
  font-weight: 800;
}

.mobile-top-actions {
  gap: 8px;
}

.mobile-top-actions a {
  min-height: 34px;
  padding: 0 16px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0878fa;
  background: #ffffff;
  border: 1px solid #dbe8ff;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(8, 120, 250, 0.12);
}

.mobile-top-actions .logout-action {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(145deg, #ff5d82, #ff3c68);
}

.mobile-dashboard-main {
  padding-top: 16px;
}

.mobile-welcome-row {
  min-height: 68px;
  padding: 8px;
  border: 1.5px solid rgba(8, 120, 250, 0.34);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.mobile-profile {
  min-width: 0;
  gap: 12px;
}

.mobile-profile img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  padding: 5px;
  object-fit: cover;
  background: #ffffff;
  border: 1px solid #ddecff;
  box-shadow: 0 10px 22px rgba(8, 120, 250, 0.16);
}

.mobile-profile span {
  display: block;
  color: #086dff;
  font-size: 12px;
  line-height: 1.1;
  font-weight: 900;
}

.mobile-profile h1 {
  max-width: 360px;
  margin: 4px 0 2px;
  color: #031333;
  font-size: clamp(28px, 7vw, 34px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-profile p {
  margin: 0;
  color: #65728f;
  font-size: 11px;
  font-weight: 900;
}

.mobile-online {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  color: #00a35e;
  background: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  font-weight: 900;
}

.mobile-balance-card {
  min-height: 174px;
  margin-top: 8px;
  padding: 32px 24px;
  border: 1.5px solid rgba(8, 120, 250, 0.62);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #ffffff;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.08) 0 13%, transparent 13% 100%),
    linear-gradient(120deg, #25b2ff 0%, #11c2d6 42%, #7863ff 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32), 0 16px 34px rgba(29, 110, 224, 0.2);
}

.mobile-balance-card span,
.mobile-ref-card span,
.mobile-resource-card span,
.mobile-stat-card span {
  display: block;
}

.mobile-balance-card span {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 900;
}

.mobile-balance-card strong {
  display: block;
  font-size: clamp(38px, 9vw, 48px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.mobile-balance-card img {
  width: clamp(90px, 22vw, 124px);
  max-height: 110px;
  object-fit: contain;
}

.mobile-ref-card {
  min-height: 76px;
  margin-top: 14px;
  padding: 14px 12px 14px 14px;
  border: 1.5px solid rgba(8, 120, 250, 0.42);
  border-radius: 18px;
  justify-content: space-between;
  gap: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(61, 101, 168, 0.1);
}

.mobile-ref-card div {
  min-width: 0;
}

.mobile-ref-card span {
  color: #0878fa;
  font-size: 11px;
  font-weight: 900;
}

.mobile-ref-card strong {
  display: block;
  margin-top: 8px;
  color: #06152f;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 900;
  word-break: break-all;
}

.mobile-ref-card button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2f76ff;
  background: linear-gradient(145deg, #167dff, #15c6df);
  box-shadow: 0 10px 22px rgba(8, 120, 250, 0.22);
  cursor: pointer;
}

.mobile-ref-card button img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.mobile-ref-card button span {
  color: #ddf3ff;
  font-size: 11px;
  font-weight: 900;
}

.mobile-action-grid,
.mobile-resource-grid,
.mobile-stats-grid {
  display: grid;
  gap: 12px;
}

.mobile-action-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
}

.mobile-action-card,
.mobile-resource-card,
.mobile-stat-card {
  position: relative;
  overflow: hidden;
  border: 1.5px solid rgba(8, 120, 250, 0.46);
  color: #020b23;
  background:
    linear-gradient(112deg, transparent 0 42%, rgba(43, 209, 238, 0.08) 42% 56%, transparent 56% 100%),
    rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 26px rgba(61, 101, 168, 0.09);
}

.mobile-action-card::after,
.mobile-stat-card::after {
  content: "";
  position: absolute;
  left: 28%;
  bottom: -1px;
  width: 54%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0ccfff, #176fff);
}

.mobile-action-card {
  min-height: 78px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.mobile-action-card img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  margin-bottom: 4px;
}

.mobile-action-card strong {
  color: #020b23;
  font-size: 12px;
  line-height: 1.15;
  font-weight: 900;
}

.mobile-resource-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 12px;
}

.mobile-resource-card {
  grid-column: span 2;
  min-height: 58px;
  padding: 12px 16px;
  border-radius: 16px;
  gap: 12px;
}

.mobile-resource-card.wide {
  grid-column: span 3;
}

.mobile-resource-card img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex: 0 0 auto;
}

.mobile-resource-card strong {
  display: block;
  color: #020b23;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 900;
}

.mobile-resource-card span {
  margin-top: 5px;
  color: #65728f;
  font-size: 11px;
  line-height: 1.1;
  font-weight: 900;
}

.mobile-stats-section {
  margin-top: 14px;
}

.mobile-section-title {
  margin-bottom: 10px;
  padding: 8px 10px;
  border: 1.5px solid rgba(8, 120, 250, 0.28);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mobile-section-title strong {
  color: #086dff;
  font-size: 12px;
  font-weight: 900;
}

.mobile-section-title span {
  color: #64718d;
  font-size: 11px;
  font-weight: 900;
}

.mobile-stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mobile-stat-card {
  min-height: 104px;
  padding: 16px 10px 12px;
  border-radius: 14px;
}

.mobile-stat-card img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  margin-bottom: 12px;
}

.mobile-stat-card span {
  color: #60708f;
  font-size: 11px;
  line-height: 1.15;
  font-weight: 900;
}

.mobile-stat-card strong {
  display: block;
  margin-top: 6px;
  color: #020b23;
  font-size: 18px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0;
  word-break: break-word;
}

.mobile-template-body .appNavBar {
  background: rgba(255, 255, 255, 0.96);
}

@media (max-width: 640px) {
  .mobile-dashboard-shell {
    padding: 8px 14px 110px;
  }

  .mobile-dashboard-top {
    border-radius: 18px;
  }

  .mobile-top-actions a {
    min-height: 34px;
    padding: 0 12px;
    font-size: 10px;
  }

  .mobile-profile h1 {
    max-width: 190px;
  }

  .mobile-balance-card {
    min-height: 164px;
    padding: 28px 18px;
  }

  .mobile-resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mobile-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mobile-resource-card {
    grid-column: span 1;
  }

  .mobile-resource-card.wide {
    grid-column: span 1;
  }

  .mobile-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .mobile-top-actions {
    gap: 5px;
  }

  .mobile-top-actions a {
    padding: 0 8px;
  }

  .mobile-brand-logo {
    display: none;
  }

  .mobile-action-grid {
    gap: 8px;
  }

  .mobile-action-card strong,
  .mobile-resource-card strong,
  .mobile-section-title strong {
    font-size: 11px;
  }

  .mobile-stat-card strong {
    font-size: 16px;
  }
}

/* Compact current-theme list pages */
.current-list-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 22% 0%, rgba(41, 190, 255, 0.16), transparent 24%),
    linear-gradient(180deg, #f7fbff 0%, #e8f1ff 100%);
}

.current-list-shell {
  width: min(100% - 16px, 344px);
  margin: 8px auto 0;
  padding: 0 0 118px;
}

.current-list-top {
  margin-bottom: 12px;
}

.current-list-hero {
  min-height: 88px;
  padding: 16px;
  border: 1.5px solid rgba(8, 120, 250, 0.32);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #159cff 0%, #19c8df 48%, #7564ff 100%);
  box-shadow: 0 14px 28px rgba(8, 120, 250, 0.2);
}

.current-list-hero span {
  display: block;
  margin-bottom: 8px;
  color: rgba(3, 19, 51, 0.78);
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
}

.current-list-hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0;
}

.current-list-hero img,
.current-list-hero i {
  width: 52px;
  height: 52px;
  padding: 8px;
  border-radius: 12px;
  object-fit: contain;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.current-list-panel {
  margin-top: 14px;
  padding: 14px;
  border: 1.5px solid rgba(8, 120, 250, 0.16);
  border-radius: 24px;
  background:
    linear-gradient(110deg, transparent 0 54%, rgba(34, 198, 238, 0.06) 54% 72%, transparent 72% 100%),
    rgba(255, 255, 255, 0.76);
  box-shadow: 0 14px 32px rgba(8, 120, 250, 0.08);
}

.current-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.current-summary-card,
.current-record-card,
.current-filter-card,
.current-empty-card {
  border: 1.5px solid rgba(8, 120, 250, 0.18);
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(8, 120, 250, 0.08);
}

.current-summary-card {
  min-height: 74px;
  padding: 12px;
  border-radius: 16px;
}

.current-summary-card span,
.current-record-meta span,
.current-mini-grid span {
  display: block;
  color: #60708f;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 900;
}

.current-summary-card strong {
  display: block;
  margin-top: 7px;
  color: #031333;
  font-size: 17px;
  line-height: 1.1;
  font-weight: 900;
  word-break: break-word;
}

.current-filter-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 14px;
  padding: 8px;
  border-radius: 16px;
}

.current-filter-card.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.current-filter-card button {
  min-height: 34px;
  border: 0;
  border-radius: 11px;
  color: #0878fa;
  background: #edf6ff;
  font-size: 10px;
  font-weight: 900;
}

.current-filter-card button.active {
  color: #ffffff;
  background: linear-gradient(110deg, #159cff 0%, #18c8df 48%, #7564ff 100%);
}

.current-record-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.current-record-card {
  padding: 14px;
  border-radius: 18px;
  color: #031333;
}

.current-record-top {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.current-record-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(145deg, #168dff, #1d7ff2);
  font-size: 17px;
}

.current-record-icon.red {
  background: linear-gradient(145deg, #ff6b86, #ff3c68);
}

.current-record-meta strong,
.current-mini-grid strong,
.current-user-block strong {
  display: block;
  margin-top: 5px;
  color: #031333;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 900;
  word-break: break-word;
}

.current-record-amount {
  color: #0878fa;
  font-size: 15px;
  line-height: 1.1;
  font-weight: 900;
  white-space: nowrap;
}

.current-record-amount.red {
  color: #ff3c68;
}

.current-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.current-mini-grid > div,
.current-user-block {
  padding: 10px;
  border-radius: 13px;
  background: #f4f9ff;
}

.current-status-row {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.current-badge {
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
}

.current-badge.success { background: #19bf68; }
.current-badge.pending { background: #ffac37; color: #2d2630; }
.current-badge.cancel { background: #ff5c5c; }
.current-badge.level { background: #168dff; }

.current-timer-row {
  min-height: 42px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #60708f;
  background: #f4f9ff;
  font-size: 12px;
  font-weight: 900;
}

.current-timer-row strong {
  margin-left: auto;
  color: #0878fa;
}

.current-progress-wrap {
  height: 11px;
  margin-top: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: #e5f2ff;
}

.current-progress-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #159cff 0%, #18c8df 48%, #7564ff 100%);
}

.current-progress-text {
  margin-top: 8px;
  color: #60708f;
  font-size: 11px;
  font-weight: 900;
}

.current-action-btn {
  min-height: 44px;
  width: 100%;
  margin-top: 14px;
  border: 0;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(110deg, #159cff 0%, #18c8df 48%, #7564ff 100%);
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(8, 120, 250, 0.2);
}

.current-action-btn.secondary {
  background: linear-gradient(145deg, #8b95a7, #64748b);
}

.current-action-btn.disabled {
  background: linear-gradient(145deg, #35d982, #19bf68);
  pointer-events: none;
}

.current-action-btn.btn-loading span {
  visibility: hidden;
}

.current-action-btn.btn-loading::after {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid #ffffff;
  border-top-color: transparent;
  border-radius: 50%;
  position: absolute;
  animation: spin 0.65s linear infinite;
}

.current-empty-card {
  padding: 18px;
  border-radius: 16px;
  color: #60708f;
  text-align: center;
  font-size: 13px;
  font-weight: 900;
}

.current-list-body .appNavBar {
  left: 50%;
  bottom: 10px;
  width: calc(100% - 28px);
  max-width: 390px;
  height: 76px;
  padding: 10px 12px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(10, 25, 55, 0.08);
  box-shadow: 0 18px 38px rgba(0, 4, 34, 0.18);
}

/* White footer readability override */
.mobile-template-body .appNavBar,
.finance-dashboard-body .appNavBar,
.current-list-body .appNavBar,
.theme-list-body .appNavBar {
  background: rgba(255, 255, 255, 0.97);
}

.mobile-template-body .navLink,
.finance-dashboard-body .navLink,
.current-list-body .navLink,
.theme-list-body .navLink {
  color: #6f778c;
}

.mobile-template-body .navLink i,
.mobile-template-body .navLink p,
.finance-dashboard-body .navLink i,
.finance-dashboard-body .navLink p,
.current-list-body .navLink i,
.current-list-body .navLink p,
.theme-list-body .navLink i,
.theme-list-body .navLink p {
  color: currentColor;
}

.mobile-template-body .navLink.active,
.mobile-template-body .navLink:hover,
.finance-dashboard-body .navLink.active,
.finance-dashboard-body .navLink:hover,
.current-list-body .navLink.active,
.current-list-body .navLink:hover,
.theme-list-body .navLink.active,
.theme-list-body .navLink:hover {
  color: #0878fa;
}

.mobile-template-body .navLink.center,
.finance-dashboard-body .navLink.center,
.current-list-body .navLink.center,
.theme-list-body .navLink.center {
  color: #ffffff;
}

@media (max-width: 360px) {
  .current-list-shell {
    width: calc(100% - 16px);
  }

  .current-list-panel {
    padding: 12px;
  }

  .current-filter-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
