/* ================= DASHBOARD REDESIGN ================= */
body.dashboard-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% 8%, rgba(72, 94, 255, 0.22), transparent 28%),
    radial-gradient(circle at 18% 38%, rgba(34, 128, 255, 0.14), transparent 30%),
    linear-gradient(150deg, #050816 0%, #080d28 46%, #030611 100%);
  color: #f7f8ff;
  overflow-x: hidden;
}

body.dashboard-page::before {
  content: "";
  position: fixed;
  top: 70px;
  right: -210px;
  width: 520px;
  height: 520px;
  pointer-events: none;
  border-radius: 50%;
  background: repeating-radial-gradient(ellipse at center, rgba(59, 92, 255, 0.2) 0 2px, transparent 3px 30px);
  opacity: 0.5;
  transform: rotate(-24deg);
}

body.dashboard-page::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.45), transparent 58%);
}

.dashboard {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  margin: 0 auto;
  padding: 24px 16px 118px;
}

.dashboard a {
  color: inherit;
  text-decoration: none;
}

.dashboard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.dash-icon-btn,
.dash-bell {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #aab2d1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.dash-icon-btn i {
  font-size: 24px;
}

.dash-top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dash-bell {
  position: relative;
  font-size: 23px;
}

.dash-bell span {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3f8dff;
}

.dash-avatar {
  width: 58px;
  height: 58px;
  padding: 3px;
  border-radius: 50%;
  background: linear-gradient(135deg, #425dff, rgba(255,255,255,0.18));
}

.dash-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: #111936;
}

.welcome-section {
  margin-bottom: 26px;
}

.welcome-section h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 8vw, 35px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: 0;
}

.welcome-section p {
  margin: 0;
  color: #a4acc9;
  font-size: 20px;
  font-weight: 500;
}

.balance-card,
.dashboard-card,
.metric-card,
.wide-link,
.compact-action,
.plan-card,
.contact-card,
.document-card,
.summary-card {
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(128, 143, 208, 0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 20px 42px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
}

.balance-card {
  padding: 24px 16px 16px;
  border-radius: 18px;
  margin-bottom: 16px;
}

.balance-content {
  display: grid;
  grid-template-columns: 1fr 108px;
  gap: 12px;
  align-items: center;
}

.balance-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #aeb5d1;
  font-size: 15px;
  font-weight: 600;
}

.balance-card h2 {
  margin: 14px 0 8px;
  color: #ffffff;
  font-size: clamp(36px, 10vw, 48px);
  line-height: 1;
  font-weight: 700;
}

.balance-card p,
.balance-card small {
  display: block;
  margin: 0;
  color: #9fa8c7;
  font-size: 15px;
}

.balance-card small {
  margin-top: 6px;
  color: #4c9cff;
}

.wallet-art {
  width: 98px;
  height: 76px;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: #ffffff;
  font-size: 38px;
  background: linear-gradient(135deg, #42a5ff, #655fff);
  box-shadow: 0 18px 34px rgba(65, 104, 255, 0.3);
}

.balance-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.outline-action,
.primary-action {
  min-width: 0;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 700;
}

.outline-action {
  color: #ffffff;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(128,143,208,0.18);
}

.outline-action i {
  color: #6d75ff;
}

.primary-action {
  color: #ffffff;
  background: linear-gradient(100deg, #43a8ff, #6c61ff);
}

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

.metric-card {
  min-width: 0;
  min-height: 116px;
  padding: 14px 8px;
  border-radius: 14px;
  text-align: center;
}

.metric-card i {
  display: block;
  margin-bottom: 12px;
  font-size: 27px;
}

.metric-card span,
.metric-card small {
  display: block;
  color: #c6cbe0;
  font-size: 11px;
}

.metric-card strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 16px;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.metric-blue i,
.metric-blue strong {
  color: #369bff;
}

.metric-green i,
.metric-green strong {
  color: #32d17e;
}

.metric-purple i,
.metric-purple strong {
  color: #7a6cff;
}

.metric-gold i,
.metric-gold strong {
  color: #ffb21f;
}

.quick-link-grid,
.history-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.wide-link {
  min-width: 0;
  min-height: 86px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
}

.wide-link > i {
  color: #6c6cff;
  font-size: 30px;
}

.wide-link strong,
.wide-link span {
  display: block;
  min-width: 0;
}

.wide-link strong {
  color: #ffffff;
  font-size: 16px;
  line-height: 1.15;
}

.wide-link span {
  margin-top: 5px;
  color: #a5aecb;
  font-size: 12px;
  line-height: 1.3;
}

.wide-link em {
  color: #9da5c3;
  font-style: normal;
}

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

.compact-action,
.document-card,
.summary-card {
  min-width: 0;
  min-height: 78px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 6px;
  border-radius: 14px;
  text-align: center;
}

.compact-action i,
.document-card i {
  color: #5b73ff;
  font-size: 24px;
}

.compact-action span,
.document-card span,
.summary-card span {
  color: #c6cbe0;
  font-size: 11px;
  line-height: 1.15;
}

.dashboard-card {
  padding: 18px 14px;
  border-radius: 16px;
  margin-bottom: 14px;
}

.chart-card canvas {
  margin-top: 8px;
}

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

.section-heading h3 {
  margin: 0;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.2;
}

.section-heading span,
.section-heading a {
  color: #4c9cff;
  font-size: 13px;
  font-weight: 600;
}

.history-panel {
  min-width: 0;
  margin-bottom: 0;
}

.history-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.history-row:last-child {
  border-bottom: 0;
}

.history-row i {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 15px;
}

.history-row strong,
.history-row span,
.history-row em {
  display: block;
  min-width: 0;
}

.history-row strong {
  color: #ffffff;
  font-size: 13px;
}

.history-row span {
  margin-top: 4px;
  color: #a5aecb;
  font-size: 11px;
  line-height: 1.25;
}

.history-row em {
  color: #31d780;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
}

.history-row.positive i {
  color: #35d783;
  border: 1px solid rgba(53, 215, 131, 0.45);
  background: rgba(53, 215, 131, 0.08);
}

.history-row.negative i {
  color: #ff4e68;
  border: 1px solid rgba(255, 78, 104, 0.45);
  background: rgba(255, 78, 104, 0.08);
}

.plan-card {
  min-height: 104px;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 98px;
  align-items: center;
  gap: 16px;
  padding: 18px 14px;
  border-radius: 16px;
  margin-bottom: 14px;
}

.plan-badge {
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  color: #ffffff;
  font-size: 31px;
  background: linear-gradient(135deg, #43a8ff, #655fff);
}

.plan-card span,
.plan-card p {
  color: #a5aecb;
}

.plan-card h3 {
  margin: 5px 0;
  color: #ffffff;
  font-size: 22px;
}

.plan-card p {
  margin: 0;
  font-size: 13px;
}

.plan-card a {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  color: #ffffff;
  font-weight: 700;
  background: linear-gradient(100deg, #43a8ff, #6c61ff);
}

.referral-card h3 {
  margin: 0 0 14px;
  color: #c8cee4;
  font-size: 16px;
}

.ref-modern {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px;
  gap: 10px;
  align-items: center;
}

.ref-text {
  min-width: 0;
  padding: 16px 14px;
  border-radius: 12px;
  color: #c7cee7;
  background: rgba(0,0,0,0.14);
  border: 1px solid rgba(128,143,208,0.18);
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-btn-modern {
  width: 64px;
  height: 54px;
  border: 0;
  border-radius: 13px;
  color: #ffffff;
  font-size: 22px;
  cursor: pointer;
  background: linear-gradient(100deg, #43a8ff, #6c61ff);
}

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

.summary-card {
  align-items: flex-start;
  min-height: 78px;
  padding: 14px;
  text-align: left;
}

.summary-card strong {
  color: #ffffff;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.social-grid .compact-action i {
  color: #30d578;
}

.contact-card {
  min-height: 82px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  margin-bottom: 14px;
}

.contact-card > i {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  font-size: 24px;
  background: linear-gradient(135deg, #43a8ff, #655fff);
}

.contact-card span,
.contact-card strong {
  display: block;
}

.contact-card span {
  color: #a5aecb;
  font-size: 12px;
}

.contact-card strong {
  margin-top: 4px;
  color: #ffffff;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.contact-card em {
  color: #9da5c3;
  font-style: normal;
}

.live-bet-btn {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
  border-radius: 15px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(100deg, rgba(67,168,255,0.95), rgba(108,97,255,0.95));
  box-shadow: 0 16px 32px rgba(65, 104, 255, 0.24);
}

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

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

.game-btn.loading i,
.game-btn.loading span,
.history-btn.loading i,
.history-btn.loading span,
.wide-link.loading i,
.wide-link.loading span,
.wide-link.loading strong,
.wide-link.loading em {
  opacity: 0;
}

.wide-link.loading {
  position: relative;
  pointer-events: none;
}

.wide-link.loading::after {
  content: "";
  width: 18px;
  height: 18px;
  border: 2px solid #ffffff;
  border-top-color: transparent;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: dashSpin 0.65s linear infinite;
}

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

/* ================= DASHBOARD NAV / SIDEBAR ================= */
.dashboard-page .appNavBar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px 8px 10px;
  z-index: 9999;
  border-radius: 18px 18px 0 0;
  background: rgba(8, 13, 40, 0.9);
  border-top: 1px solid rgba(128, 143, 208, 0.18);
  backdrop-filter: blur(18px);
}

.dashboard-page .navLink {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #9da5c3;
  font-size: 11px;
  text-align: center;
}

.dashboard-page .navLink i {
  margin: 0;
  color: inherit;
  font-size: 22px;
}

.dashboard-page .navLink p {
  margin: 0;
  font-size: 11px;
  line-height: 1;
}

.dashboard-page .navLink.active,
.dashboard-page .navLink:first-child {
  color: #4c8dff;
}

.dashboard-page .navLink.center {
  top: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.dashboard-page .navLink.center p {
  display: block;
}

.dashboard-page .sidebar {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100%;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  background: rgba(8, 13, 40, 0.96);
  border-right: 1px solid rgba(128,143,208,0.18);
  backdrop-filter: blur(18px);
  transition: 0.3s;
}

.dashboard-page .sidebar.active {
  left: 0;
}

.dashboard-page .sidebar-header {
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(128,143,208,0.18);
}

.dashboard-page .sidebar-header h3 {
  margin: 0;
  color: #ffffff;
}

.dashboard-page .sidebar-header button {
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 26px;
}

.dashboard-page .sidebar-menu {
  padding: 12px;
}

.dashboard-page .sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 12px;
  border-radius: 12px;
  color: #d8ddf2;
  font-size: 14px;
}

.dashboard-page .sidebar-menu a:hover,
.dashboard-page .sidebar-menu .logout {
  background: rgba(76, 156, 255, 0.12);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.5);
}

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

  .balance-content {
    grid-template-columns: 1fr 84px;
  }

  .wallet-art {
    width: 82px;
    height: 66px;
    font-size: 31px;
  }

  .outline-action,
  .primary-action {
    min-height: 58px;
    gap: 8px;
    font-size: 14px;
  }

  .metric-grid {
    gap: 8px;
  }

  .metric-card {
    padding: 12px 5px;
  }

  .metric-card strong {
    font-size: 13px;
  }

  .wide-link {
    grid-template-columns: 32px minmax(0, 1fr) 12px;
    gap: 8px;
    padding: 12px 10px;
  }

  .wide-link > i {
    font-size: 24px;
  }

  .wide-link strong {
    font-size: 14px;
  }

  .wide-link span {
    font-size: 11px;
  }

  .history-row {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .history-row em {
    grid-column: 2;
  }

  .plan-card {
    grid-template-columns: 56px minmax(0, 1fr) 76px;
    gap: 10px;
    padding: 14px 10px;
  }

  .plan-badge {
    width: 52px;
    height: 52px;
    border-radius: 17px;
    font-size: 24px;
  }

  .plan-card h3 {
    font-size: 17px;
  }

  .plan-card p {
    font-size: 11px;
  }

  .plan-card a {
    min-height: 46px;
    font-size: 12px;
  }
}

/* ================= LEGACY SHARED PAGE SUPPORT ================= */
body:not(.dashboard-page) {
  animation: fadeIn 0.3s ease;
}

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

body:not(.dashboard-page) button:active,
body:not(.dashboard-page) a:active {
  transform: scale(0.96);
}

body:not(.dashboard-page) .appHeader {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 20px);
  max-width: 380px;
  height: 55px;
  border-radius: 16px;
  background: radial-gradient(circle at top, var(--bg-start), var(--bg-mid), var(--bg-end));
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  box-shadow: 0 8px 25px var(--bg-end);
  border: 1px solid var(--bg-start);
  z-index: 1000;
}

body:not(.dashboard-page) .header-left,
body:not(.dashboard-page) .header-right {
  width: 40px;
  display: flex;
  align-items: center;
}

body:not(.dashboard-page) .header-title {
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  flex: 1;
}

body:not(.dashboard-page) .header-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-end);
  color: var(--text-color);
  text-decoration: none;
  transition: 0.3s;
}

body:not(.dashboard-page) .header-btn i {
  font-size: 16px;
}

body:not(.dashboard-page) .header-btn:hover {
  background: var(--primary);
}

body:not(.dashboard-page) .logout-btn {
  background: linear-gradient(135deg, var(--bg-start), var(--btn-withdraw));
}

body:not(.dashboard-page) .bottom-nav,
body:not(.dashboard-page) .appNavBar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 380px;
  z-index: 9999;
}

body:not(.dashboard-page) .bottom-nav {
  bottom: 0;
}

body:not(.dashboard-page) .appNavBar {
  bottom: 10px;
  width: calc(100% - 20px);
  height: 65px;
  border-radius: 25px;
  background: linear-gradient(135deg, var(--bg-start), var(--bg-mid));
  backdrop-filter: blur(16px);
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 10px 30px var(--primary-dark);
  border: 1px solid var(--bg-mid);
}

body:not(.dashboard-page) .navLink {
  flex: 1;
  text-align: center;
  text-decoration: none;
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  transition: 0.3s;
}

body:not(.dashboard-page) .navLink i {
  font-size: 18px;
  margin-bottom: 2px;
}

body:not(.dashboard-page) .navLink p {
  margin: 0;
  font-size: 10px;
}

body:not(.dashboard-page) .navLink.center {
  position: relative;
  top: -18px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-dark));
  box-shadow: 0 8px 20px var(--btn-withdraw);
}

body:not(.dashboard-page) .navLink.center p {
  display: none;
}

body:not(.dashboard-page) .dashboard,
body:not(.dashboard-page) .plan-page {
  width: 100%;
  max-width: 380px;
  margin: auto;
  padding-top: 80px;
  padding-bottom: 100px;
  overflow-x: hidden;
}

body:not(.dashboard-page) .header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 380px;
  z-index: 1000;
  padding: 12px;
  background: linear-gradient(135deg, var(--bg-start), var(--bg-end));
  border-radius: 15px;
}

body:not(.dashboard-page) .topbar,
body:not(.dashboard-page) .profile,
body:not(.dashboard-page) .profit-card,
body:not(.dashboard-page) .earn-top,
body:not(.dashboard-page) .method-card,
body:not(.dashboard-page) .ref-modern {
  display: flex;
  align-items: center;
}

body:not(.dashboard-page) .topbar,
body:not(.dashboard-page) .profit-card,
body:not(.dashboard-page) .method-card,
body:not(.dashboard-page) .ref-modern {
  justify-content: space-between;
}

body:not(.dashboard-page) .profile {
  gap: 8px;
}

body:not(.dashboard-page) .profile img {
  width: 35px;
  height: 35px;
  border-radius: 50%;
}

body:not(.dashboard-page) .balance-card,
body:not(.dashboard-page) .card,
body:not(.dashboard-page) .earn-card,
body:not(.dashboard-page) .profit-card {
  width: calc(100% - 24px);
  margin: 12px auto;
  border-radius: 18px;
  backdrop-filter: blur(12px);
}

body:not(.dashboard-page) .balance-card {
  margin-top: 12px;
  padding: 14px;
  text-align: center;
  background: var(--bg-start);
  border: 1px solid var(--bg-end);
}

body:not(.dashboard-page) .balance-card span {
  font-size: 12px;
  opacity: 0.8;
}

body:not(.dashboard-page) .balance-card h1 {
  font-size: 18px;
  color: var(--primary-dark);
}

body:not(.dashboard-page) .actions,
body:not(.dashboard-page) .grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 12px;
}

body:not(.dashboard-page) .action-btn,
body:not(.dashboard-page) .game-btn,
body:not(.dashboard-page) .history-btn {
  padding: 10px 4px;
  border-radius: 12px;
  text-align: center;
  font-size: 10px;
  color: var(--text-color);
  transition: 0.3s;
  position: relative;
}

body:not(.dashboard-page) .action-btn i,
body:not(.dashboard-page) .game-btn i,
body:not(.dashboard-page) .history-btn i {
  display: block;
  font-size: 14px;
  margin-bottom: 3px;
}

body:not(.dashboard-page) .deposit-btn { background: linear-gradient(135deg, var(--bg-start), var(--btn-deposit)); }
body:not(.dashboard-page) .withdraw-btn { background: linear-gradient(135deg, var(--bg-start), var(--btn-withdraw)); }
body:not(.dashboard-page) .history-btn { background: linear-gradient(135deg, var(--bg-start), var(--btn-history)); }
body:not(.dashboard-page) .team-btn { background: linear-gradient(135deg, var(--bg-start), var(--btn-team)); }

body:not(.dashboard-page) .profit-card {
  padding: 14px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-dark));
  color: var(--text-color);
  text-decoration: none;
}

body:not(.dashboard-page) .profit-card-yellow {
  background: linear-gradient(135deg, var(--bg-start), var(--primary-light));
  color: var(--primary-dark);
}

body:not(.dashboard-page) .profit-icon,
body:not(.dashboard-page) .profit-arrow,
body:not(.dashboard-page) .icon-box,
body:not(.dashboard-page) .method-icon,
body:not(.dashboard-page) .method-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
}

body:not(.dashboard-page) .profit-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-start);
}

body:not(.dashboard-page) .profit-text {
  flex: 1;
  margin-left: 10px;
}

body:not(.dashboard-page) .profit-text span {
  font-size: 11px;
}

body:not(.dashboard-page) .profit-text strong {
  font-size: 13px;
}

body:not(.dashboard-page) .profit-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-start);
}

body:not(.dashboard-page) .earn-card {
  padding: 16px;
  background: linear-gradient(135deg, var(--primary), var(--bg-end));
}

body:not(.dashboard-page) .grid-item {
  text-align: center;
  font-size: 10px;
}

body:not(.dashboard-page) .icon-box {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  margin: auto;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--primary);
}

body:not(.dashboard-page) .card {
  padding: 16px;
  background: linear-gradient(135deg, var(--bg-mid), var(--primary-light));
  border: 1px solid var(--bg-end);
}

body:not(.dashboard-page) .ref-text {
  flex: 1;
  font-size: 12px;
  overflow: hidden;
  word-break: break-all;
}

body:not(.dashboard-page) .copy-btn-modern {
  background: linear-gradient(135deg, var(--bg-mid), var(--primary-dark));
  border: none;
  color: var(--text-color);
  padding: 6px 8px;
  border-radius: 8px;
  position: relative;
  z-index: 5;
  cursor: pointer;
}

body:not(.dashboard-page) .summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
}

body:not(.dashboard-page) .summary-card {
  height: 80px;
  padding: 12px;
  border-radius: 14px;
  color: var(--text-color);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 8px 20px var(--primary-dark);
}

body:not(.dashboard-page) .summary-card h3 {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.85;
  margin: 0;
}

body:not(.dashboard-page) .summary-card h2 {
  font-size: 16px;
  font-weight: 700;
  margin-top: 4px;
}

body:not(.dashboard-page) .team-card { background: linear-gradient(135deg, var(--btn-deposit), var(--btn-deposit)); }
body:not(.dashboard-page) .deposit-card { background: linear-gradient(135deg, var(--btn-team), var(--btn-team)); }
body:not(.dashboard-page) .withdraw-card { background: linear-gradient(135deg, var(--btn-withdraw), var(--btn-withdraw)); }
body:not(.dashboard-page) .bonus-card { background: linear-gradient(135deg, var(--glow), var(--glow)); color: var(--primary-dark); }

body:not(.dashboard-page) .method-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body:not(.dashboard-page) .method-card {
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border: 1px solid var(--bg-end);
  text-decoration: none;
  color: var(--primary-dark);
}

body:not(.dashboard-page) .method-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

body:not(.dashboard-page) .method-icon {
  width: 45px;
  height: 45px;
  border-radius: 10px;
  background: var(--bg-end);
}

body:not(.dashboard-page) .method-arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

body:not(.dashboard-page) .game-grid,
body:not(.dashboard-page) .history-grid {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

body:not(.dashboard-page) .game-btn {
  flex: 1;
  background-color: var(--bg-mid);
  backdrop-filter: blur(10px);
}

body:not(.dashboard-page) .live-bet-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--bg-start), var(--bg-start));
  color: var(--text-color);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 0 15px var(--primary);
}

body:not(.dashboard-page) .live-dot {
  width: 8px;
  height: 8px;
  background: var(--btn-team);
  border-radius: 50%;
}

/* ================= PAYMENT SUCCESS PAGE ================= */
body.payment-success-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% 10%, rgba(72, 94, 255, 0.22), transparent 28%),
    radial-gradient(circle at 18% 48%, rgba(34, 128, 255, 0.12), transparent 32%),
    linear-gradient(150deg, #050816 0%, #080d28 46%, #030611 100%);
  color: #f7f8ff;
}

body.payment-success-page::before {
  content: "";
  position: fixed;
  top: 52px;
  right: -210px;
  width: 500px;
  height: 500px;
  pointer-events: none;
  border-radius: 50%;
  background: repeating-radial-gradient(ellipse at center, rgba(59, 92, 255, 0.2) 0 2px, transparent 3px 30px);
  opacity: 0.45;
  transform: rotate(-24deg);
}

body.payment-success-page::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.45), transparent 58%);
}

.payment-success-page .success-page {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 22px 16px 118px;
}

.success-topbar {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
}

.success-back {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 21px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.success-page-title {
  text-align: center;
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
}

.success-wallet {
  min-width: 0;
  height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border-radius: 12px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(128, 143, 208, 0.22);
  backdrop-filter: blur(18px);
}

.success-wallet i:first-child {
  color: #6377ff;
}

.success-wallet span {
  max-width: 86px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.success-card {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 34px 22px;
  border-radius: 18px;
  text-align: center;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(128, 143, 208, 0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 20px 42px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
}

.success-status-icon {
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 26px;
  border-radius: 30px;
  color: #ffffff;
  font-size: 42px;
  box-shadow: 0 18px 34px rgba(65, 104, 255, 0.28);
}

.success-status-icon.success {
  background: linear-gradient(135deg, #31d780, #35a4ff);
}

.success-status-icon.error {
  background: linear-gradient(135deg, #ff4e68, #6c61ff);
}

.success-status-icon.warning {
  background: linear-gradient(135deg, #ffb21f, #6c61ff);
}

.success-card h2 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 30px;
  line-height: 1.15;
}

.success-card p {
  max-width: 300px;
  margin: 0 auto;
  color: #a5aecb;
  font-size: 15px;
  line-height: 1.45;
}

.success-btn {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
  border-radius: 13px;
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  background: linear-gradient(100deg, #43a8ff, #6c61ff);
  box-shadow: 0 16px 32px rgba(65, 104, 255, 0.24);
}

.payment-success-page .appNavBar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px 8px 10px;
  z-index: 9999;
  border-radius: 18px 18px 0 0;
  background: rgba(8, 13, 40, 0.92);
  border: 1px solid rgba(128, 143, 208, 0.18);
  border-bottom: 0;
  box-shadow: 0 -18px 42px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.payment-success-page .navLink {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #9da5c3;
  font-size: 11px;
  text-align: center;
  transform: none;
}

.payment-success-page .navLink i {
  margin: 0;
  color: inherit;
  font-size: 22px;
}

.payment-success-page .navLink p {
  margin: 0;
  font-size: 11px;
  line-height: 1;
}

.payment-success-page .navLink.active,
.payment-success-page .navLink.center {
  color: #4c8dff;
}

.payment-success-page .navLink.center {
  top: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.payment-success-page .navLink.center p {
  display: block;
}

.payment-success-page .navLink.active::after {
  display: none;
}

@media (max-width: 380px) {
  .payment-success-page .success-page {
    padding-left: 12px;
    padding-right: 12px;
  }

  .success-topbar {
    grid-template-columns: 40px minmax(0, 1fr) auto;
  }

  .success-wallet {
    padding: 0 8px;
    font-size: 12px;
  }

  .success-wallet span {
    max-width: 70px;
  }

  .success-card h2 {
    font-size: 26px;
  }
}

/* ================= SHARED CURRENT APP FOOTER ================= */
.appNavBar.appNavBar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px 8px 10px;
  z-index: 9999;
  border-radius: 18px 18px 0 0;
  background: rgba(8, 13, 40, 0.92);
  border: 0 !important;
  border-top: 1px solid rgba(76, 141, 255, 0.24) !important;
  outline: 0 !important;
  box-shadow: 0 -18px 42px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.navLink.navLink {
  flex: 1;
  min-width: 0;
  height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #9da5c3;
  text-align: center;
  text-decoration: none;
  transform: none;
  transition: color 0.2s, transform 0.2s;
}

.navLink.navLink i {
  margin: 0;
  color: inherit;
  font-size: 22px;
  line-height: 1;
}

.navLink.navLink p {
  display: block;
  margin: 0;
  color: inherit;
  font-size: 11px;
  line-height: 1;
}

.navLink.navLink.active {
  color: #4c8dff;
}

.navLink.navLink.center {
  position: relative;
  top: 0;
  width: auto;
  height: 60px;
  border-radius: 0;
  color: #4c8dff;
  background: transparent;
  box-shadow: none;
}

.navLink.navLink.center i {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: -18px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 18px;
  background: linear-gradient(135deg, #43a8ff, #6c61ff);
  box-shadow: 0 14px 28px rgba(65, 104, 255, 0.32);
}

.navLink.navLink.center p {
  display: block;
  margin-top: -2px;
}

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

.sidebar.sidebar {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100%;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  background: rgba(8, 13, 40, 0.96);
  border-right: 1px solid rgba(128, 143, 208, 0.18);
  backdrop-filter: blur(18px);
  transition: 0.3s;
}

.sidebar.sidebar.active {
  left: 0;
}

.sidebar .sidebar-header {
  min-height: 78px;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(128, 143, 208, 0.18);
}

.sidebar .sidebar-header span {
  display: block;
  margin-bottom: 4px;
  color: #4c8dff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar .sidebar-header h3 {
  margin: 0;
  color: #ffffff;
  font-size: 20px;
}

.sidebar .sidebar-header button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
}

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

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

.sidebar .sidebar-menu a i {
  width: 22px;
  color: #6f78ff;
  text-align: center;
}

.sidebar .sidebar-menu a:hover,
.sidebar .sidebar-menu .logout {
  background: rgba(76, 156, 255, 0.12);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
}

/* ================= HOME PAGE REDESIGN ================= */
body.home-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 72% 4%, rgba(0, 133, 255, 0.18), transparent 32%),
    radial-gradient(circle at 28% 26%, rgba(255, 198, 90, 0.12), transparent 28%),
    linear-gradient(150deg, #020713 0%, #071127 46%, #030611 100%);
  color: #f7f8ff;
  overflow-x: hidden;
}

body.home-page::before {
  content: "";
  position: fixed;
  top: 72px;
  right: -230px;
  width: 540px;
  height: 540px;
  pointer-events: none;
  border-radius: 50%;
  background: repeating-radial-gradient(ellipse at center, rgba(39, 111, 255, 0.22) 0 2px, transparent 3px 30px);
  opacity: 0.42;
  transform: rotate(-24deg);
}

body.home-page::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.024) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.016) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.42), transparent 62%);
}

.home-page .home-screen {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  margin: 0 auto;
  padding: 18px 16px 118px;
}

.home-page a {
  color: inherit;
  text-decoration: none;
}

.home-topbar {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.home-topbar span {
  min-width: 0;
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-menu-btn,
.home-profile-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  color: #ffffff;
  font-size: 18px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(128, 143, 208, 0.18);
  backdrop-filter: blur(16px);
}

.home-hero {
  position: relative;
  overflow: hidden;
  padding: 0 0 20px;
}

.home-logo-wrap {
  position: relative;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 -16px 10px;
  overflow: hidden;
}

.home-logo-wrap::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(to bottom, transparent, #071127 74%, #071127);
  pointer-events: none;
}

.home-logo-art {
  width: 100%;
  max-width: 430px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
  filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.34));
}

.home-copy {
  text-align: center;
}

.home-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  color: #ffd77a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home-copy h1 {
  margin: 0 auto 10px;
  max-width: 360px;
  color: #ffffff;
  font-size: clamp(29px, 8.4vw, 38px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0;
}

.home-copy p {
  margin: 0 auto;
  max-width: 360px;
  color: #a8b2d4;
  font-size: 14px;
  line-height: 1.55;
}

.home-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}

.home-primary-btn,
.home-secondary-btn,
.home-plan-btn {
  min-width: 0;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  border: 0;
  position: relative;
  cursor: pointer;
}

.home-primary-btn,
.home-plan-btn {
  background: linear-gradient(100deg, #43a8ff, #6c61ff);
  box-shadow: 0 16px 34px rgba(65, 104, 255, 0.28);
}

.home-secondary-btn {
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(128, 143, 208, 0.22);
  backdrop-filter: blur(18px);
}

.home-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 4px 0 14px;
}

.home-feature {
  min-width: 0;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 6px;
  border-radius: 16px;
  text-align: center;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(128, 143, 208, 0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 18px 34px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(18px);
}

.home-feature i {
  color: #5d74ff;
  font-size: 24px;
}

.home-feature span {
  color: #d7dcf1;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
}

.home-slider-panel {
  overflow: hidden;
  margin: 0 0 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(128, 143, 208, 0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 18px 34px rgba(0, 0, 0, 0.16);
}

.home-slider-panel img {
  min-height: 122px;
  max-height: 180px;
  object-fit: cover;
}

.home-section-title {
  margin: 20px 0 14px;
}

.home-section-title span {
  display: block;
  margin-bottom: 6px;
  color: #4c9cff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.home-section-title h2 {
  margin: 0;
  color: #ffffff;
  font-size: 26px;
  line-height: 1.1;
  font-weight: 800;
}

.home-plan-card {
  margin-bottom: 16px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(128, 143, 208, 0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 20px 42px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
}

.home-plan-header {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.home-plan-mark {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 17px;
  color: #ffffff;
  font-size: 23px;
  background: linear-gradient(135deg, #43a8ff, #655fff);
  box-shadow: 0 16px 28px rgba(65, 104, 255, 0.26);
}

.home-plan-name {
  min-width: 0;
}

.home-plan-name h3 {
  margin: 0 0 7px;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.12;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-plan-name span {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  color: #69a7ff;
  background: rgba(76, 156, 255, 0.12);
  border: 1px solid rgba(76, 156, 255, 0.2);
  font-size: 11px;
  font-weight: 800;
}

.home-plan-header > strong {
  color: #35a4ff;
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
}

.home-plan-details {
  margin-bottom: 12px;
}

.home-plan-details div {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.home-plan-details span,
.home-plan-footer span {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #a7b0ce;
  font-size: 13px;
  line-height: 1.25;
}

.home-plan-details i,
.home-plan-footer i {
  width: 18px;
  color: #737aff;
  text-align: center;
}

.home-plan-details strong {
  color: #35a4ff;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.home-plan-details strong.success {
  color: #30d578;
}

.home-plan-details strong.warning {
  color: #ffb21f;
}

.home-plan-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 14px;
}

.home-plan-footer span {
  min-height: 42px;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(128, 143, 208, 0.14);
}

.home-plan-btn {
  width: 100%;
  text-align: center;
}

.home-page .btn-loading span,
.home-page .home-plan-btn.btn-loading span {
  visibility: hidden;
}

.home-page .btn-loading::after,
.home-page .home-plan-btn.btn-loading::after {
  content: "";
  width: 18px;
  height: 18px;
  border: 2px solid #ffffff;
  border-top-color: transparent;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: homeSpin 0.65s linear infinite;
}

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

.home-page .appNavBar.appNavBar {
  bottom: 0;
  width: 100%;
  max-width: 430px;
  height: 78px;
  padding: 8px 8px 10px;
  border-radius: 18px 18px 0 0;
  background: rgba(8, 13, 40, 0.92);
  border: 0 !important;
  border-top: 1px solid rgba(76, 141, 255, 0.24) !important;
  outline: 0 !important;
}

.home-page .navLink.navLink {
  height: 60px;
  gap: 5px;
  color: #9da5c3;
}

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

.home-page .navLink.navLink p {
  display: block;
  margin: 0;
  font-size: 11px;
}

.home-page .navLink.navLink.center {
  top: 0;
  width: auto;
  height: 60px;
  color: #4c8dff;
  background: transparent;
  box-shadow: none;
}

.home-page .navLink.navLink.center i {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: -18px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 18px;
  background: linear-gradient(135deg, #43a8ff, #6c61ff);
  box-shadow: 0 14px 28px rgba(65, 104, 255, 0.32);
}

.home-page .navLink.navLink.center p {
  display: block;
  margin-top: -2px;
}

@media (max-width: 380px) {
  .home-page .home-screen {
    padding-left: 12px;
    padding-right: 12px;
  }

  .home-logo-wrap {
    min-height: 222px;
    margin-left: -12px;
    margin-right: -12px;
  }

  .home-copy h1 {
    font-size: 28px;
  }

  .home-feature-grid,
  .home-actions,
  .home-plan-footer {
    gap: 8px;
  }

  .home-feature span,
  .home-plan-details span,
  .home-plan-footer span {
    font-size: 11px;
  }

  .home-plan-card {
    padding: 14px;
  }

  .home-plan-header {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .home-plan-header > strong {
    grid-column: 2;
  }
}
