@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Momo+Trust+Display&display=swap");

/* ============================================================
   EtherWin Dashboard – Custom Styles
   ============================================================ */

:root {
  --primary: #1a3a8a;
  --primary-light: #2563eb;
  --accent: #3b82f6;
  --sidebar-w: 308px;
  --sidebar-bg: #ffffff;
  --body-bg: #edf5ff;
  --card-bg: #ffffff;
  --card-border: #0360fd;
  --card-radius: 20px;
  --dark-card: linear-gradient(135deg, #0360fd 0%, #01163a 100%);
  --text: #01163a;
  --active-border: #2563eb;
  --shadow: 0 2px 2px rgb(1 21 57 / 14%);
  --shadow-hover: 0 6px 24px rgba(30, 58, 138, 0.16);
}

/* ── Reset & base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  font-family: "Poppins", sans-serif;

  background: var(--body-bg);
  color: var(--text);
  margin: 0;
  overflow-x: hidden;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
}

.password-show {
    position: relative;
    width: 100%;
}
.password-show input {
    padding-right: 2.5em;
}
.password-show .fa {
    position: absolute;
    right: 10px;
    display: flex;
    align-items: center;
    height: 100%;
    top: 0;
    cursor: pointer;
    font-size: 1.2rem;
}
#dvWhatisTransPass {
    white-space: wrap!important;
}
/* ============================================================
   LOGOUT POPUP
   ============================================================ */
.logout-modal {
    font-family: "Momo Trust Display", sans-serif;
}
.logout-modal .modal-sm {
    max-width: 400px;
}
.logout-modal .modal-content {
  border-radius: 20px;
  font-family: "Momo Trust Display", sans-serif;
}
.logout-modal .heading-area {
  padding: 20px 10px 10px;
  text-align: center;
}
.logout-modal .heading-area h2 {
  font-size: 30px;
  font-weight: bold;
}
.logout-modal .heading-area p {
  font-size: 14px;
  color: #6c6c6c;
}
.logout-modal .login-area {
  display: flex;
  gap: 10px;
}
.logout-modal .close {
  border: 0;
  background-color: transparent;
  font-size: 1.3em;
  padding: 0;
  position: absolute;
  right: 10px;
  top: 0px;
  color: #b3b3b3;
}
.logout-modal .close:hover {
  color: #000;
}
.logout-modal a.btn-secondary {
  background: linear-gradient(135deg, #c7d3f5 0%, #252527 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 4px 16px rgba(127, 128, 130, 0.35);
}
.logout-modal button[type="submit"] {
  background: var(--dark-card);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}
.logout-modal button[type="submit"]:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
/* ============================================================
   LAYOUT WRAPPER
   ============================================================ */
.wrapper {
  display: flex;
  min-height: 100vh;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--sidebar-bg);
  border-right: 1px solid #e8edf7;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1040;
  transition: transform 0.3s ease;
}
.sidebar.collapsed {
  transform: translateX(-100%);
}

/* Logo */
.sidebar-logo {
  padding: 16px 20px;
  border-bottom: 1px solid #f0f4ff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-shrink: 0;
}
.sidebar-logo img.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}
.logo-fallback {
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-ev {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.logo-ev span {
  color: var(--primary-light);
}
.logo-text {
  display: flex;
  flex-direction: column;
}
.logo-main {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}
.logo-sub {
  font-size: 9px;
  color: var(--text);
  line-height: 1.2;
}

/* Navigation */
/* SimpleBar scrollable wrapper for nav + carousel */
.sidebar-scroll {
  flex: 1;
  min-height: 0; /* critical: lets flex child shrink so content overflows */
}
.sidebar-scroll .simplebar-scrollbar::before {
  background: #2563eb;
  border-radius: 4px;
  opacity: 0.5;
}
.sidebar-scroll .simplebar-scrollbar.simplebar-visible::before {
  opacity: 0.85;
}
.sidebar-scroll .simplebar-track.simplebar-vertical {
  width: 5px;
}

.sidebar-nav {
  flex: 1;
  padding: 30px 0;
  margin: 0 20px;
  transition: transform 0.3s ease;
}
.sidebar-nav .nav-item {
  margin: 2px 0;
}
.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 20px;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.2s ease;
  border-radius: 12px;
  letter-spacing: -0.2px;
  position: relative;
  margin-left: 18px;
}
.sidebar-nav .nav-link:before {
  content: "";
  position: absolute;
  left: -15px;
  top: 0;
  bottom: 0;
  width: 3px;
}
.sidebar-nav .nav-link.active,
.sidebar-nav .nav-link:hover {
  background: rgb(3 96 253 / 10%);
  color: var(--accent);
  border-left-color: #93c5fd;
}
.sidebar-nav .nav-link.active:before,
.sidebar-nav .nav-link:hover:before {
  background: var(--accent);
}
.nav-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
  /* fallback if image missing */
  border-radius: 4px;
  padding: 2px;
}
/* show icon placeholder color per item */
.nav-link .hover {
  display: none;
}
.nav-link:hover .normal,
.nav-link.active .normal {
  display: none;
}
.nav-link:hover .hover,
.nav-link.active .hover {
  display: inline-block;
}

/* SIDE BAR SUB_NAV */
.sidebar-nav .sub-nav-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 20px;
    color: var(--text);
    font-size: 13.5px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 12px;
    letter-spacing: -0.2px;
    position: relative;
    margin-left: 8px;
}
.sidebar-nav .sub-nav-link:before {
    content: "";
    position: absolute;
    left: -15px;
    top: 0;
    bottom: 0;
    width: 3px;
}
.sidebar-nav .sub-nav-link.active,
.sidebar-nav .sub-nav-link:hover {
    background: rgb(3 96 253 / 10%);
    color: var(--accent);
    border-left-color: #93c5fd;
}
.sidebar-nav .sub-nav-link.active:before,
.sidebar-nav .sub-nav-link:hover:before {
    background: var(--accent);
}

/* ── Sidebar carousel / banner ── */
.sidebar-banner {
  margin: 12px 10px 16px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}
.banner-slide {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 14px;
  text-align: center;
  position: relative;
}
.banner-slide img.banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banner-slide-content {
  position: relative;
  z-index: 2;
}
.banner-logo-text {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 1px;
}
.banner-something {
  font-size: 10px;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.7);
  margin: 10px 0 4px;
  text-transform: uppercase;
}
.banner-massive {
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  margin: 0;
  line-height: 1;
  letter-spacing: -1px;
}
.banner-is-coming {
  font-size: 10px;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.7);
  margin: 4px 0 14px;
  text-transform: uppercase;
}
.banner-stay-tuned {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  padding: 6px 18px;
  border-radius: 20px;
  display: inline-block;
  text-transform: uppercase;
}
.sidebar-banner .carousel-control-prev,
.sidebar-banner .carousel-control-next {
  width: 28px;
  opacity: 0.6;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left 0.3s ease;
}
.main-content.expanded {
  margin-left: 0;
}

/* ── Topbar ── */
.topbar {
  background: #fff;
  border-bottom: 1px solid #e8edf7;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0px 0px 5px rgb(2 10 24 / 11%);
}
.sidebar-toggle {
  background: none;
  border: 1px solid #0360fd;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 2px 2px rgb(1 21 57 / 14%);
  height: 40px;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sidebar-toggle:hover {
  background: #eff6ff;
}
.main-content.expanded .sidebar-toggle img {
  transform: scaleX(-1);
}
.page-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.3px;
}
.topbar-social {
  margin-left: auto;
  display: flex;
  gap: 8px;
}
.social-btn {
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition:
    transform 0.2s,
    opacity 0.2s;
  padding: 0;
}
.social-btn:hover {
  transform: scale(1.08);
  opacity: 0.9;
}
.social-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Language selector ── */
.lang-selector {
  position: relative;
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border: 1px solid #0360fd;
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  box-shadow: 0 2px 2px rgb(1 21 57 / 14%);
}
.lang-btn:hover,
.lang-selector.open .lang-btn {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.lang-btn svg {
  flex-shrink: 0;
}
.lang-chevron {
  transition: transform 0.2s;
  color: var(--text);
}
.lang-selector.open .lang-chevron {
  transform: rotate(180deg);
}
.lang-code {
  color: var(--text);
}
.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #fff;
  border: 1.5px solid #d1e0ff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(1, 22, 58, 0.12);
  min-width: 150px;
  z-index: 1050;
  overflow: hidden;
  padding: 4px 0;
}
.lang-selector.open .lang-dropdown {
  display: block;
}
.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 16px;
  background: none;
  border: none;
  font-size: 13px;
  font-family: "Poppins", sans-serif;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}
.lang-option:hover {
  background: #f0f6ff;
}
.lang-option.active {
  color: #2563eb;
  font-weight: 600;
  background: rgb(37 99 235 / 6%);
}

/* ── Dashboard body ── */
.dash-body {
  padding: 20px 5px 20px;
  flex: 1;
}

/* ============================================================
   CARDS & COMPONENTS
   ============================================================ */

/* Generic card */
.card-row {
  display: flex;
  gap: 16px;
  height: 100%;
}
.dash-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
  height: 100%;
}
.dash-card:hover {
  box-shadow: var(--shadow-hover);
}

/* ── Welcome card ── */
.welcome-card {
  padding: 18px 20px;
  display: flex;
  gap: 16px;
  width: 100%;
}
.welcome-avatar {
  width: 126px;
  height: 126px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--card-border);
  flex-shrink: 0;
  background: #fff;
  padding: 3px;
  overflow: hidden;
}
.welcome-avatar img {
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.welcome-avatar img.adjusted {
    max-width:none;
    margin-left:-3px;
    margin-top:-3px;
    width:125px;
    height:125px;
}
.welcome-text .greet {
  font-size: 14px;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.2px;
}
.welcome-text .username {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin: 0px 0;
  letter-spacing: 0.3px;
}
.welcome-text .uid {
  font-size: 14px;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.2px;
}
/* ── Rank card ── */
.rank-card {
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  height: 100%;
}
.rank-info .rank-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.rank-info .rank-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(3, 95, 253, 0.1);
}
.rank-info .rank-label {
  font-size: 22px;
  color: var(--text);
  font-weight: 600;
}
.rank-info .rank-label i {
  color: #f59e0b;
}
.rank-info .rank-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.rank-badge-img {
  width: 83px;
  height: auto;
}
.rank-badge-fallback {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #1a3a8a, #2563eb);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  border: 3px solid #93c5fd;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* ── SaaS Plan cards ── */
.saas-row {
  display: flex;
  gap: 9px;
  justify-content: space-between;
}
.saas-plan-card {
  border-radius: 10px;
  padding: 0 18px;
  text-align: center;
  cursor: pointer;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
  position: relative;
  width: 15%;
  flex: 0 0 auto;
}
.saas-plan-card:not(last-child):after {
  content: "";
  position: absolute;
  right: -9px;
  top: 30px;
  bottom: 30px;
  width: 2px;
  background: rgba(3, 95, 253, 0.1);
}
.saas-plan-img {
  margin-bottom: 8px;
}
.saas-plan-fallback {
  margin: 0 auto 8px;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.saas-plan-label {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}
.dash-card.saas-row.saas-activity {
  justify-content: space-between;
}

.saas-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.saas-content .saas-heading {
  font-size: 32px;
  font-weight: 500;
  font-family: "Momo Trust Display", sans-serif;
}

/* ── Trading Credits button ── */
.tc-body {
  width: 100%;
}
.tc-chart-wrap {
	width: 420px;
	max-width: 100%;
	height: 180px;
	flex-shrink: 0;
}
.trading-credits-btn-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  position: relative;
  width: 30%;
  text-align: center;
  padding: 0 30px;
}
.trading-credits-btn {
  /* background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%); */
  background: var(--dark-card);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 280px;
  /* min-width: 200px; */
  transition:
    opacity 0.2s,
    transform 0.2s;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
  width: 100%;
}
.trading-credits-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.tc-chart-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.tc-arrow-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 2px solid #2563eb;
  background: #fff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
  z-index: 1;
}
@media (min-width: 768px) {
  .tc-arrow-btn {
    right: -30px;
    position: absolute;
    top: 34%;
  }
}
.trading-credits-btn.activated {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.4);
}
.trading-credits-btn.activated:hover {
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.5);
}
.trading-credits-btn.disabled {
    background: var(--accent);
 }
.tc-state-timer {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.5em;
    margin-top:10px;
}
/* ── Full-width Earnings card ── */
.earnings-dark-card-fw {
  background: var(--dark-card);
  border-radius: var(--card-radius);
  padding: 24px 28px 20px;
  color: #fff;
}
.earnings-fw-top {
  display: flex;
  gap: 0;
  align-items: flex-start;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.earnings-fw-col {
  flex: 1;
  min-width: 160px;
}
.earnings-fw-divider {
  width: 1px;
  background: rgb(31 82 220 / 80%);
  margin: 0 32px;
  align-self: stretch;
  min-height: 60px;
}
.earnings-fw-label {
  font-size: 14px;
  color: #fff;
  margin: 0 0 4px;
  letter-spacing: -0.2px;
}
.earnings-fw-value {
  font-size: 26px;
  margin: 6px 0;
  line-height: 1;
  letter-spacing: -0.3px;
  font-family: "Momo Trust Display", sans-serif;
  font-weight: 600;
}
.earnings-fw-sub {
  font-size: 16px;
  color: #fff;
  margin: 0;
}
.earnings-fw-progress {
  padding-top: 16px;
}
.plan-progress-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  margin: 0;
}
.plan-progress-pct {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}
.progress-bar-track {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  height: 10px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, #0360fd, #ffffff);
  transition: width 1s ease;
}

/* ── Stat cards ── */
.stat-card {
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}
.stat-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.stat-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stat-icon-wrap img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.stat-label {
  font-size: 18px;
  color: var(--text);
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.3px;
}
.stat-value {
  font-size: 26px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

/* stat icon colors */
.ic-blue {
  background: rgb(3 96 253 / 10%);
}
.ic-green {
  background: #dcfce7;
}
.ic-purple {
  background: #ede9fe;
}
.ic-orange {
  background: #ffedd5;
}
.ic-teal {
  background: #ccfbf1;
}
.ic-indigo {
  background: #e0e7ff;
}
.ic-black {
  background: rgba(1, 22, 58, 0.1);
}

/* ── Wallet cards ── */
.wallet-card {
  padding: 16px 18px;
  background: rgb(3 96 253 / 5%);
}
.wallet-icon-row {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  gap: 10px;
}
.wallet-icon-img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.wallet-icon-fallback {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.wallet-label {
  font-size: 18px;
  color: var(--text);
  margin: 0;
  font-weight: 600;
  line-height: 1;
}
.wallet-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

/* ── Team Network ── */
.team-section {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.team-heading {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

/* Referral row inside team section */
.referral-row {
  display: flex;
  align-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.referral-left {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  width: 50%;
}
.referral-right {
  flex: 1;
  min-width: 260px;
}
.referral-link-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0px;
  flex-wrap: wrap;
}
.referral-link-label .ic-blue {
  margin-right: 4px;
}
.referral-link-label span {
  color: var(--text);
  font-size: 12px;
}
.referral-link-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.referral-input-group {
  display: flex;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  flex: 1;
  min-width: 180px;
  background: #f0f3ff;
}
.referral-input {
  flex: 1;
  border: none;
  padding: 9px 12px;
  font-size: 14px;
  color: var(--text);
  background: transparent;
  outline: none;
  min-width: 0;
  font-family: "Momo Trust Display", sans-serif;
}
.referral-copy-btn {
  background: none;
  border: none;
  border-left: 0;
  padding: 0 12px;
  cursor: pointer;
  color: var(--text);
  transition: color 0.2s;
}
.referral-copy-btn:hover {
  color: var(--primary);
}
.referral-share-btn {
  background: #0aa310;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
  flex-shrink: 0;
  min-width: 134px;
  box-shadow: 0px 4px 0px rgb(10 163 16 / 18%);
}
.referral-share-btn:hover {
  background: #15803d;
}
.team-divider {
  border-color: #e8edf7;
  margin: 16px 0;
}

/* ── Level accordion (white bg, colored dots/text) ── */
.level-accordion .accordion-item {
  border: none;
}

.level-accordion .level-item-1 {
  border: 1px solid var(--text);
  box-shadow: 0px 2px 2px rgba(1, 22, 58, 0.14);
  border-radius: 12px;
  background: rgba(1, 22, 58, 0.1);
}
.level-accordion .level-item-2 {
  border: 1px solid var(--card-border);
  box-shadow: 0px 2px 2px rgba(3, 96, 253, 0.14);
  border-radius: 12px;
  background: rgba(3, 96, 253, 0.1);
}
.level-accordion .level-item-3 {
  border: 1px solid #04bbc6;
  box-shadow: 0px 2px 2px rgba(4, 187, 198, 0.14);
  border-radius: 12px;
  background: rgba(4, 187, 198, 0.1);
}
.level-accordion .level-item-4 {
  border: 1px solid #a557f6;
  box-shadow: 0px 2px 2px rgba(165, 87, 246, 0.14);
  border-radius: 12px;
  background: rgba(165, 87, 246, 0.1);
}
.level-accordion .accordion-item:not(last-child) {
  margin-bottom: 10px;
}
.level-accordion .accordion-button {
  background: transparent !important;
  font-size: 20px;
  font-weight: 600;
  padding: 13px 20px;
  box-shadow: none !important;
  display: flex;
  align-items: center;
  gap: 10px;
}
.level-accordion .accordion-button::after {
  display: none;
}
.level-accordion .accordion-button:focus {
  box-shadow: none;
}

.level-dot-new {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-dark-new {
  background: #01163a;
}
.dot-blue-new {
  background: #2563eb;
}
.dot-teal-new {
  background: #04bbc6;
}
.dot-purple-new {
  background: #7c3aed;
}

.level-label-new {
  font-size: 20px;
  font-weight: 600;
  font-family: "Momo Trust Display", sans-serif;
}
.lc-dark {
  color: #01163a;
}
.lc-blue {
  color: #2563eb;
}
.lc-teal {
  color: #04bbc6;
}
.lc-purple {
  color: #a557f6;
}

.level-badge-new {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  font-family: "Momo Trust Display", sans-serif;
}
.level-item-2 .level-badge-new {
  color: var(--accent);
}
.level-item-3 .level-badge-new {
  color: #04bbc6;
}
.level-item-4 .level-badge-new {
  color: #a557f6;
}
.level-arrow-new {
  border-radius: 50%;
  align-items: center;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.level-accordion .accordion-button:not(.collapsed) .level-arrow-new {
  transform: rotate(90deg);
}

.accordion-body-level {
  background: transparent;
  padding: 14px 16px;
  font-size: 13px;
  color: var(--text);
  border-top: 1px solid #f0f4ff;
}
/* ── Member Tree ── */
.accordion-body-level.p-0 {
  padding: 0 !important;
}

.member-tree {
  padding: 10px 16px 4px 36px;
  position: relative;
}
.member-tree::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 18px;
  bottom: 36px;
  width: 3px;
  border-radius: 2px;
}
.member-tree[data-color="dark"]::before {
  background: #01163a;
}
.member-tree[data-color="blue"]::before {
  background: #2563eb;
}
.member-tree[data-color="teal"]::before {
  background: #0d9488;
}
.member-tree[data-color="purple"]::before {
  background: #7c3aed;
}

.member-item {
  position: relative;
  margin-bottom: 6px;
}
.member-item::before {
  content: "";
  position: absolute;
  left: -13px;
  top: 28px;
  width: 13px;
  height: 3px;
  transform: translateY(-50%);
}
.member-tree[data-color="dark"] > .member-item::before {
  background: #01163a;
}
.member-tree[data-color="blue"] > .member-item::before {
  background: #2563eb;
}
.member-tree[data-color="teal"] > .member-item::before {
  background: #0d9488;
}
.member-tree[data-color="purple"] > .member-item::before {
  background: #7c3aed;
}

.member-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1.5px solid #0360fd;
  border-radius: 10px;
  padding: 10px 16px;
  gap: 10px;
  transition: box-shadow 0.2s;
  width: 100%;
  box-shadow: 0px 2px 2px rgb(1 21 57 / 14%);
  max-width: 70%;
}
.member-card:hover {
  box-shadow: 0 2px 8px rgba(30, 58, 138, 0.1);
}
@media (max-width: 1400px) {
    .member-card {
        max-width: 100%;
    }
}
.member-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 42%;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3rem;
  border-right: 1px solid var(--accent);
}
.member-box:first-child {
    align-items: start;
}
.member-box:last-child {
    border-right: 0px none;
    width: 16%;
}
.member-box img {
    width: 50px;
    height: auto;
}
.member-card .member-package {
    color: #0d6efd;
    font-weight: 500;
}
.member-card .member-name {
    color: #01163a;
    font-weight: 600;
}
/* Active (dark navy) card */
.member-card.active-card {
  background: #01163a;
  border-color: #01163a;
}
.member-card.active-card .member-box,
.member-card.active-card .member-name,
.member-card.active-card .member-package,
.member-card.active-card .member-id {
    color: #fff;
}
/* color: rgba(255, 255, 255, 0.8); */
.member-tree[data-color="dark"] .member-card .tree-btn {
  background: #01163a;
}
.member-tree[data-color="blue"] .member-card .tree-btn {
  background: #2563eb;
}
.member-tree[data-color="teal"] .member-card .tree-btn {
  background: #04bbc6;
}
.member-tree[data-color="purple"] .member-card .tree-btn {
  background: #7c3aed;
}
.member-card.active-card .tree-btn {
  background: #fff;
  border-color: #fff;
  color: #01163a;
}
.member-tree[data-color="dark"] .member-card.active-card {
  background: #01163a;
  border-color: #01163a;
}
.member-tree[data-color="blue"] .member-card.active-card {
  background: #2563eb;
  border-color: #2563eb;
}
.member-tree[data-color="teal"] .member-card.active-card {
  background: #04bbc6;
  border-color: #04bbc6;
}
.member-tree[data-color="purple"] .member-card.active-card {
  background: #7c3aed;
  border-color: #7c3aed;
}

/* Arrow button */
.tree-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #01163a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  padding: 0;
  transition:
    background 0.2s,
    border-color 0.2s;
  border: 0;
}
.member-tree[data-color="dark"] .member-card.active-card .tree-btn,
.member-tree[data-color="blue"] .member-card.active-card .tree-btn,
.member-tree[data-color="teal"] .member-card.active-card .tree-btn,
.member-tree[data-color="purple"] .member-card.active-card .tree-btn {
  background: #fff;
}
.member-tree[data-color="dark"] .member-card.active-card .tree-btn {
  color: #01163a;
}
.member-tree[data-color="blue"] .member-card.active-card .tree-btn {
  color: #2563eb;
}
.member-tree[data-color="teal"] .member-card.active-card .tree-btn {
  color: #0d9488;
}
.member-tree[data-color="purple"] .member-card.active-card .tree-btn {
  color: #7c3aed;
}
/* Sub-tree */
.sub-tree {
  padding-left: 24px;
  margin-top: 6px;
  position: relative;
}
.sub-tree::before {
  content: "";
  position: absolute;
  left: 10px;
  top: -6px;
  bottom: 20px;
  width: 3px;
  border-radius: 2px;
  background: #01163a;
}
.sub-tree .member-item {
  margin-bottom: 6px;
}
.sub-tree .member-item::before {
  left: -13px;
  background: #01163a;
}
.sub-tree .member-card {
  border-color: #0360fd;
}
.member-tree[data-color="dark"] .sub-tree::before,
.member-tree[data-color="dark"] .sub-tree .member-item::before {
  background: #01163a;
}

.member-tree[data-color="blue"] .sub-tree::before,
.member-tree[data-color="blue"] .sub-tree .member-item::before {
  background: #2563eb;
}

.member-tree[data-color="teal"] .sub-tree::before,
.member-tree[data-color="teal"] .sub-tree .member-item::before {
  background: #0d9488;
}
.member-tree[data-color="purple"] .sub-tree::before,
.member-tree[data-color="purple"] .sub-tree .member-item::before {
  background: #7c3aed;
}
/* ── News & Events ── */
.news-section {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  padding: 20px;
  min-height: 120px;
  box-shadow: var(--shadow);
}
.news-heading {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
}
.news-empty {
  text-align: center;
  padding: 30px;
  color: var(--text);
  font-size: 13px;
}
.news-heading2 {
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
  font-family: "Momo Trust Display", sans-serif;
  margin: 0 0 20px;
}

.news-content {
  color: var(--text);
  font-size: 16px;
  letter-spacing: -0.3px;
}
.news-content p {
  color: var(--text);
  font-size: 16px;
  letter-spacing: -0.3px;
  font-weight: 500;
}
.news-content ul {
  padding-left: 16px;
  color: var(--text);
  font-size: 16px;
  letter-spacing: -0.3px;
  font-weight: 500;
}
/* ── Footer ── */
.dash-footer {
  text-align: center;
  padding: 14px;
  font-size: 12px;
  color: var(--text);
  text-transform: uppercase;
  font-weight: 500;
}

/* ── Section spacing ── */
.dash-section {
  margin-bottom: 16px;
}

/* ── Overlay for mobile sidebar ── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1039;
}
.sidebar-overlay.show {
  display: block;
} /* ── Ranks Progression ── */
.ranks-section {
  padding: 18px 22px 22px;
}
.ranks-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.ranks-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.ranks-track-wrap {
  padding: 8px 0 12px;
}
.ranks-track-wrap::-webkit-scrollbar {
  height: 5px;
}
.ranks-track-wrap::-webkit-scrollbar-track {
  background: #e8f0fe;
  border-radius: 10px;
}
.ranks-track-wrap::-webkit-scrollbar-thumb {
  background: #2563eb;
  border-radius: 10px;
}
.ranks-track-wrap::-webkit-scrollbar-thumb:hover {
  background: #1a3a8a;
}
.ranks-track-inner {
  position: relative;
  width: 100%;
}

.ranks-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 0 4px;
}

/* ── background line via pseudo-element (no extra div needed) ── */
.ranks-track::after,
.ranks-track::before {
  content: "";
  position: absolute;
  left: 13px;
  right: 60px;
  top: 50%;
  height: 3px;
  background: #60a5fa;
  transform: translateY(-50%);
  z-index: 0;
}

/* badge item sits above the line */
.rank-item {
  position: relative;
  z-index: 2;
  cursor: pointer;
  flex-shrink: 0;
}
.rank-badge-wrap {
  width: 90px;
  height: 90px;
  position: relative;
  transition: transform 0.2s;
  background: #fff;
}
.rank-item:hover .rank-badge-wrap {
  transform: translateY(-3px);
}
.rank-item.active .rank-badge-wrap {
  /* transform: translateY(-4px); */
}

/* three-image switching */
.rank-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.2s;
}
.rank-img.normal {
  opacity: 1;
}
.rank-img.active-hover {
  opacity: 0;
}
.rank-img.active {
  opacity: 0;
}

.rank-item:not(.active):hover .rank-img.normal {
  opacity: 0;
}
.rank-item:not(.active):hover .rank-img.active-hover {
  opacity: 1;
}

.rank-item.active .rank-img.normal {
  opacity: 0;
}
.rank-item.active .rank-img.active-hover {
  opacity: 0;
}
.rank-item.active .rank-img.active {
  opacity: 1;
}

/* Profile */
.profile-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--accent);
  box-shadow: 0 2px 8px rgb(1 21 57 / 8%);
  padding: 28px 20px;
}
.profile-section {
  margin-bottom: 20px;
}

/* Field label */
.pf-label {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
  display: block;
}

/* Input / select base */
.pf-input,
.pf-select {
  width: 100%;
  background: rgb(59 130 246 / 5%);
  border: 1.5px solid #3b82f6;
  border-radius: 10px;
  padding: 15px 14px;
  font-family: "Poppins", sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: 0 2px 2px rgb(1 21 57 / 8%);
}
.pf-input:focus,
.pf-select:focus {
  border-color: var(--primary-light);
}
.pf-input[readonly] {
  color: var(--text);
  cursor: default;
}
.pf-input[type="password"] {
  letter-spacing: 3px;
}

/* Select wrapper for custom arrow */
.pf-select-wrap {
  position: relative;
}
.pf-select-wrap::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--text);
  pointer-events: none;
}
.pf-select {
  padding-right: 36px;
  cursor: pointer;
}

/* Phone input with flag */
.pf-phone-wrap {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: #f4f7ff;
  border: 1.5px solid var(--accent);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s;
  padding: 5px;
}
.pf-phone-wrap:focus-within {
  border-color: var(--primary-light);
  background: #fff;
}
.pf-phone-prefix {
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  padding: 0 12px;
  border-right: 1.5px solid #e2e8f8;
  white-space: nowrap;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  background: rgb(3 96 253 / 10%);
  flex-shrink: 0;
}
.pf-phone-prefix .flag {
  font-size: 18px;
  line-height: 1;
}
.pf-phone-prefix .chevron {
  font-size: 10px;
  color: var(--text);
}
.pf-phone-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 11px 14px;
  font-family: "Poppins", sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
}

/* Password row specifics */
.pf-change-pw {
  font-size: 12px;
  color: var(--text);
  font-weight: 500;
  margin-top: 8px;
  display: inline-block;
  cursor: pointer;
  text-underline-position: under;
}
.pf-change-pw:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

/* Request Reset Link button */
.pf-reset-btn {
  width: 100%;
  background: var(--dark-card);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 15.5px;
  font-weight: 600;
  padding: 14px 20px;
  cursor: pointer;
  transition: opacity 0.2s;
  letter-spacing: 0.2px;
}
.pf-reset-btn:hover {
  opacity: 0.9;
}

/* Note text */
.pf-note {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
  margin-top: 8px;
  margin-bottom: 0;
}

/* Update button */
.pf-update-btn {
  width: 100%;
  background: var(--dark-card);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 20px;
  cursor: pointer;
  transition: opacity 0.2s;
  letter-spacing: 0.3px;
  margin-top: 8px;
}
.pf-update-btn:hover {
  opacity: 0.9;
}

/* Field group spacing */
.pf-field {
  margin-bottom: 18px;
}
.pf-field:last-child {
  margin-bottom: 0;
}

/* Password section two-col layout */
.pf-pw-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

/* Divider between password row items on mobile */
@media (max-width: 640px) {
  .pf-pw-row {
    grid-template-columns: 1fr;
  }
  .profile-card {
    padding: 20px 16px;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ── Large desktop (≤1400px) ── */
@media (max-width: 1400px) {
  .earnings-fw-value {
    font-size: 22px;
  }
}

/* ── Small desktop / large tablet (≤1200px) ── */
@media (max-width: 1200px) {
  .rank-badge-wrap {
    width: 54px;
    height: 54px;
  }
  .rank-item.active .rank-badge-wrap {
    width: 64px;
    height: 64px;
  }
  .earnings-fw-value {
    font-size: 20px;
  }
  .earnings-fw-divider {
    margin: 0 20px;
  }
  .welcome-text .username {
    font-size: 22px;
  }
  .saas-plan-label {
    font-size: 12px;
  }
  .saas-plan-card {
    padding: 0 20px 0 5px;
  }
  .trading-credits-btn {
    min-width: 200px;
    font-size: 12px;
  }
}

/* ── Tablet landscape (≤1024px) ── */
@media (max-width: 1024px) {
  :root {
    --sidebar-w: 210px;
  }

  /* nav */
  .sidebar-nav {
    margin: 0 12px;
  }
  .sidebar-nav .nav-link {
    padding: 10px 14px;
    gap: 10px;
    font-size: 12px;
  }

  /* welcome */
  .welcome-avatar {
    width: 100px;
    height: 100px;
  }
  .welcome-avatar img.adjusted {
    max-width:none;
    margin-left:-3px;
    margin-top:-3px;
    width: 95px;
    height: 95px;
  }
  .welcome-text .username {
    font-size: 20px;
  }
  .welcome-text .greet,
  .welcome-text .uid {
    font-size: 13px;
  }

  /* earnings fw */
  .earnings-dark-card-fw {
    padding: 18px 20px 16px;
  }
  .earnings-fw-value {
    font-size: 18px;
  }
  .earnings-fw-label {
    font-size: 12px;
  }
  .earnings-fw-divider {
    margin: 0 14px;
  }

  /* stats */
  .stat-label {
    font-size: 15px;
  }
  .stat-value {
    font-size: 22px;
  }
  .wallet-label {
    font-size: 15px;
  }
  .wallet-value {
    font-size: 22px;
  }

  /* saas */
  .saas-plan-label {
    font-size: 13px;
  }
  .saas-plan-card {
    padding: 0 16px;
  }

  /* team */
  .team-heading {
    font-size: 20px;
  }
  .level-accordion .accordion-button {
    font-size: 16px;
    padding: 11px 16px;
  }
  .level-label-new {
    font-size: 16px;
  }

  /* rank card */
  .rank-badge-wrap {
    width: 46px;
    height: 46px;
  }
  .rank-item.active .rank-badge-wrap {
    width: 56px;
    height: 56px;
  }
  .rank-info .rank-name {
    font-size: 18px;
  }
  .rank-info .rank-label {
    font-size: 18px;
  }
}

/* ── Mobile (≤768px) ── */
@media (max-width: 992px) {
  :root {
    --sidebar-w: 240px;
  }

  /* kill Bootstrap horizontal gutters so columns get full width */
  .row.dash-section {
    /* --bs-gutter-x: 0; */
  }

  /* sidebar overlay mode */
  .sidebar {
    transform: translateX(-100%);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main-content {
    margin-left: 0 !important;
  }

  /* layout */
  .dash-body {
    padding: 14px 0 24px;
  }
  .topbar {
    padding: 10px 14px;
  }
  .page-title {
    font-size: 17px;
  }
  .card-row {
    gap: 12px;
  }

  /* welcome */
  .welcome-card {
    align-items: center;
    padding: 16px;
  }
  .welcome-avatar {
    width: 90px;
    height: 90px;
  }
  .welcome-avatar img.adjusted {
    max-width:none;
    margin-left:-3px;
    margin-top:-3px;
    width: 85px;
    height: 85px;
  }
  .welcome-text .username {
    font-size: 18px;
  }
  .welcome-text .greet,
  .welcome-text .uid {
    font-size: 12px;
  }

  /* rank card */
  .rank-card {
    padding: 12px 14px;
  }
  .rank-info .rank-name {
    font-size: 16px;
  }
  .rank-info .rank-label {
    font-size: 16px;
  }
  .rank-badge-img {
    width: 60px;
  }

  /* earnings fw */
  .earnings-dark-card-fw {
    padding: 16px;
  }
  .earnings-fw-top {
    flex-direction: column;
    gap: 12px;
  }
  .earnings-fw-divider {
    display: none;
  }
  .earnings-fw-value {
    font-size: 22px;
  }
  .earnings-fw-col {
    min-width: 0;
  }

  /* stats */
  .stat-label {
    font-size: 14px;
  }
  .stat-value {
    font-size: 20px;
  }
  .wallet-label {
    font-size: 14px;
  }
  .wallet-value {
    font-size: 20px;
  }

  /* saas */
  .saas-row {
    gap: 0;
    flex-wrap: wrap;
  }
  .dash-card.saas-row.saas-activity {
    justify-content: center;
  }
  /* hide vertical dividers between cards on mobile */
  .saas-plan-card:not(last-child):after {
    display: none;
  }
  .saas-plan-card {
    padding: 8px 2px;
    min-width: 0; /* allow cards to shrink as needed */
    overflow: hidden;
  }
  /* constrain image so 5 fit in one row */
  .saas-plan-img {
    width: 76px;
    height: 96px;
    object-fit: contain;
  }
  .saas-plan-label {
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* trading credits — full-width row below the 5 cards */
  .trading-credits-btn-wrap {
    flex-direction: column;
    width: 100%;
    gap: 8px;
    padding-top: 8px;
  }
  .tc-body {
    width: 100%;
    align-items: center;
  }
  .tc-chart-wrap {
    width: 100%;
    height: 90px;
  }
  .trading-credits-btn {
    width: 100%;
    min-width: 0;
  }

  /* team & accordion */
  .team-section {
    padding: 14px;
  }
  .team-heading {
    font-size: 18px;
    gap: 8px;
  }
  .referral-left {
    width: 100%;
  }
  .referral-share-btn {
    min-width: 0;
    width: 100%;
  }
  .level-accordion .accordion-button {
    font-size: 14px;
    padding: 10px 14px;
    gap: 8px;
  }
  .level-label-new {
    font-size: 14px;
  }
  .level-badge-new {
    font-size: 12px;
    gap: 5px;
  }
  .ranks-track {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
  }
  .rank-item {
    text-align: center;
  }
  .ranks-track::after,
  .ranks-track::before {
    height: 2px;
    top: 27%;
  }
  .ranks-track::after {
    top: auto;
    bottom: 15%;
  }

  /* ranks */
  .ranks-section {
    padding: 14px 14px 16px;
  }
  .rank-badge-wrap {
    width: 38px;
    height: 38px;
  }
  .rank-item.active .rank-badge-wrap {
    width: 48px;
    height: 48px;
  }
  .saas-content {
    text-align: center;
  }
  .saas-content .saas-heading {
    font-size: 24px;
  }
}

/* ── Small mobile (≤480px) ── */
@media (max-width: 480px) {
  .dash-body {
    padding: 10px 0 20px;
  }
  .page-title {
    font-size: 14px;
  }
  .topbar-social {
    gap: 4px;
  }
  .lang-btn {
    padding: 5px 10px;
    border-radius: 7px;
    font-size: 12px;
    height: 100%;
  }
  /* welcome */
  .welcome-avatar {
    width: 75px;
    height: 75px;
  }
  .welcome-avatar img.adjusted {
    max-width:none;
    margin-left:-3px;
    margin-top:-3px;
    width: 70px;
    height:70px;
  }
  .welcome-text .username {
    font-size: 16px;
  }

  /* stats & wallets */
  .stat-value {
    font-size: 17px;
  }
  .stat-label {
    font-size: 13px;
  }
  .wallet-value {
    font-size: 17px;
  }
  .wallet-label {
    font-size: 13px;
  }

  /* saas */
  .saas-plan-img,
  .saas-plan-fallback {
    width: 46px;
    height: 56px;
  }
  .saas-plan-label {
    font-size: 9px;
  }
  .saas-plan-card {
    padding: 6px 2px;
  }
  .tc-chart-wrap {
    height: 80px;
  }

  /* earnings fw */
  .earnings-fw-value {
    font-size: 18px;
  }
  .earnings-fw-label {
    font-size: 11px;
  }

  /* accordion */
  .level-accordion .accordion-button {
    font-size: 13px;
    padding: 9px 12px;
  }
  .level-label-new {
    font-size: 13px;
  }
  .level-badge-new {
    font-size: 11px;
  }

  /* member tree smaller cards */
  /*
  .member-card {
    max-width: 230px;
  }
  */
  .member-name {
    font-size: 12px;
  }
  .member-id {
    font-size: 9px;
  }

  /* trading credits chart */
  .tc-chart-wrap {
    height: 110px;
  }
  .tree-btn {
    height: 20px;
    width: 20px;
  }
  .news-heading {
    font-size: 20px;
  }
  .news-heading2 {
    font-size: 22px;
  }
  .news-content p,
  .news-content ul {
    font-size: 14px;
  }
  .stat-card {
    padding: 14px 12px;
  }
  .referral-input {
    font-size: 12px;
  }
  .member-tree::before {
    bottom: 26.5px;
  }
  .sub-tree::before {
    bottom: 16px;
  }
  .sidebar-toggle {
    width: 30px;
    height: 31px;
    flex: 0 0 auto;
    border-radius: 6px;
  }
  .topbar {
    gap: 10px;
    padding: 10px 14px;
  }
}

/* ── SaaS Plans Modal ── */
.saas-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(1, 22, 58, 0.55);
  backdrop-filter: blur(3px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.saas-modal-overlay.open {
  display: flex;
}
.saas-modal {
  background: #fff;
  border-radius: 24px;
  padding: 60px 15px 28px;
  max-width: 860px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 60px rgba(1, 22, 58, 0.4);
  animation: modalIn 0.22s ease;
  border: 1px solid var(--accent);
}
@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(16px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.saas-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  color: #fff;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.saas-modal-close:hover {
  background: var(--text);
}

.saas-modal-inner {
  display: flex;
  gap: 28px;
  align-items: center;
}
.saas-modal-promo {
  flex-shrink: 0;
  width: 200px;
  color: #fff;
}
.saas-modal-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 20px;
  color: #fff;
}
.saas-buy-btn {
  background: #01163a;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 13px 32px;
  font-size: 15px;
  font-weight: 700;
  font-family: "Poppins", sans-serif;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.15s;
  width: 100%;
}
.saas-buy-btn:hover {
  background: #0360fd;
  transform: translateY(-1px);
}

/* 5 × 2 grid */
.saas-modal-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px 8px;
}
.saas-modal-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 6px 4px;
  border-radius: 12px;
  transition: background 0.18s;
}
.saas-modal-item:hover {
  background: rgba(255, 255, 255, 0.1);
}
.saas-modal-item img {
  width: 80px;
  height: auto;
  object-fit: contain;
  display: block;
}
.saas-modal-item span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
}

/* responsive */
@media (max-width: 640px) {
  .saas-modal-inner {
    flex-direction: column;
  }
  .saas-modal-promo {
    width: 100%;
    text-align: center;
  }
  .saas-buy-btn {
    width: auto;
    padding: 11px 40px;
  }
  .saas-modal-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 8px 4px;
    width: 100%;
  }
  .saas-modal-item img {
    width: 52px;
  }
  .saas-modal-title {
    font-size: 18px;
  }
  .social-btn {
    width: 30px;
    height: 30px;
  }
  .wrapper {
    flex-direction: column;
  }
  .saas-modal-grid .saas-modal-item {
    padding: 4px 0;
  }
  .saas-modal-grid .saas-modal-item span {
    font-size: 10px;
  }
}

/* ============================================================
   BUY SaaS PLANS PAGE
   ============================================================ */

/* Outer wrapper – two-column grid */
.sp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* Individual plan card */
.sp-card {
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ── Card header: box image + blue banner ── */
.sp-card-top {
  display: flex;
  align-items: stretch;
}
.sp-img-wrap {
  width: 128px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sp-box-img {
  /* width: 100%; */
  /* max-height: 110px; */
  /* object-fit: contain; */
  /* display: block; */
}
.sp-banner-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}
.sp-banner {
  background: #0360fd;
  padding: 14px 30px;
  border-radius: 0 14px 14px 0;
  height: 100px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  width: 100%;
}
.sp-plan-name {
  font-size: 33px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.3px;
  font-family: "Momo Trust Display", sans-serif;
}
.sp-banner-desc {
  font-size: 15px;
  color: var(--text);
  margin: 8px 0 0 30px;
  line-height: 1.4;
}

/* ── Card body ── */
.sp-body {
  padding: 14px 0px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
}

/* Stats rows */
.sp-stats {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.sp-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sp-stat-row:last-child {
  border-bottom: none;
}
.sp-stat-label {
  font-size: 16.5px;
  color: var(--text);
}
.sp-stat-val {
  font-size: 25px;
  font-weight: 700;
  color: var(--text);
}

/* Monthly Performance Share */
.sp-perf {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f4f7ff;
  border-radius: 10px;
  padding: 8px 14px;
  box-shadow: 0px 2px 2px rgba(1 21 57 / 14%);
}
.sp-perf-label {
  font-size: 16px;
  color: var(--text);
}
.sp-perf-pct {
  font-size: 25px;
  color: #089340;
  font-family: "Momo Trust Display", sans-serif;
  font-weight: bold;
}

/* Buy Now anchor */
.sp-buy-link {
  display: block;
  text-align: center;
  background: var(--dark-card);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 20px;
  border-radius: 10px;
  text-decoration: none;
  transition:
    opacity 0.2s,
    transform 0.15s;
  letter-spacing: 0.2px;
  margin-top: auto;
}
.sp-buy-link:hover {
  opacity: 0.9;
  color: #fff;
  transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 768px) {
  .sp-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .sp-plan-name {
    font-size: 18px;
  }
  .sp-img-wrap {
    width: 100px;
  }
}
@media (max-width: 480px) {
  .sp-img-wrap {
    width: 80px;
    padding: 8px 6px;
  }
  .sp-plan-name {
    font-size: 16px;
  }
}

/* ============================================================
   SINGLE SaaS PLAN – Payment Method Cards
   ============================================================ */

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

/* Individual payment card */
.ssp-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgb(3 89 233 / 50%);
  box-shadow: 0 2px 8px rgb(1 21 57 / 8%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 30px 0 0;
  transition: all 0.3s ease;
}
.ssp-card:hover {
  border-color: var(--accent);
}
/* Card header – dark banner with icon + name */
.ssp-header {
  background: linear-gradient(120deg, #0360fd 0%, #01163a 100%);
  display: flex;
  gap: 5px;
  padding: 13px 16px;
  justify-content: center;
  align-items: center;
}
.ssp-header img {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
  margin-bottom: -10px;
}
.ssp-icon.ic-btc {
  background: #f7931a;
  color: #fff;
}
.ssp-icon.ic-usdt {
  background: #26a17b;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}
.ssp-icon.ic-usdc {
  background: #2775ca;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}
.ssp-icon.ic-egift {
  background: linear-gradient(135deg, #ff6b9d 0%, #c44dff 100%);
  color: #fff;
  font-size: 16px;
}
.ssp-method-name {
  font-size: 22px;
  color: #fff;
  letter-spacing: -0.4px;
  font-family: "Momo Trust Display", sans-serif;
}

/* Card body */
.ssp-body {
  padding: 20px 20px 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
}
.ssp-box-img-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4px 0 8px;
}
.ssp-box-img {
  width: 160px;
  height: auto;
  object-fit: contain;
  display: block;
}
.ssp-note {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}
.ssp-note strong {
  color: var(--text);
  font-size: 16px;
  letter-spacing: -0.2px;
  font-weight: 500;
}
.ssp-divider {
  border: none;
  border-top: 1px solid #011840;
  margin: 0;
}
.ssp-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ssp-total-label {
  font-size: 16px;
  color: var(--text);
}
.ssp-total-val {
  font-size: 24px;
  color: var(--text);
  font-family: "Momo Trust Display", sans-serif;
}

/* Buy Now anchor button */
.ssp-pay-btn {
  display: block;
  text-align: center;
  background: linear-gradient(90deg, #0360fd 0%, #01163a 100%);
  color: #fff;
  font-size: 16px;
  padding: 15px 20px;
  border-radius: 10px;
  text-decoration: none;
  transition:
    opacity 0.2s,
    transform 0.15s;
  letter-spacing: -0.1px;
  margin-top: auto;
  font-family: "Momo Trust Display", sans-serif;
}
.ssp-pay-btn:hover {
  opacity: 0.9;
  color: #fff;
  transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 900px) {
  .ssp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 540px) {
  .ssp-grid {
    grid-template-columns: 1fr;
  }
  .ssp-box-img {
    width: 120px;
  }
}

/* ============================================================
   BTC PAYMENT PAGE
   ============================================================ */
.bp-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgb(3 96 253 / 50%);
  box-shadow: 0 2px 12px rgb(1 21 57 / 8%);
  overflow: hidden;
  padding: 20px 24px;
}

/* Card header */
.bp-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 0px 24px;
  border-bottom: 1px solid #f0f4ff;
  flex-wrap: wrap;
}
.bp-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
}
.bp-title-wrap {
  flex: 1;
  min-width: 0;
}
.bp-title {
  font-size: 26px;
  color: var(--text);
  margin: 0;
  font-family: "Momo Trust Display", sans-serif;
}
.bp-subtitle {
  font-size: 14px;
  color: var(--text);
  margin: 0px 0 0;
}
.bp-progress-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgb(0 169 18 / 14%);
  color: #00a912;
  border: 1.5px solid #00a912;
  border-radius: 10px;
  padding: 9px 30px;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  cursor: default;
  font-family: "Poppins", sans-serif;
}
.bp-spinner {
  width: 14px;
  height: 14px;
  border: 2.5px solid #22c55e44;
  border-top-color: #22c55e;
  border-radius: 50%;
  animation: bpSpin 0.85s linear infinite;
  flex-shrink: 0;
}
@keyframes bpSpin {
  to {
    transform: rotate(360deg);
  }
}

/* Info table */
.bp-info-table {
  border: 1px solid rgb(8 98 253 / 20%);
  border-radius: 20px;
  background: rgb(8 98 253 / 5%);
}
.bp-info-row {
  display: flex;
  align-items: center;
}
.bp-info-row:not(:last-child) {
  border-bottom: 1px solid rgb(8 98 253 / 20%);
}
.bp-info-label {
  min-width: 150px;
  padding: 14px 24px;
  font-size: 16px;
  color: var(--text);
  font-weight: 500;
}
.bp-info-val {
  padding: 14px 24px;
  font-size: 16px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: "Momo Trust Display", sans-serif;
}
.bp-info-val.green {
  color: #16a34a;
  font-weight: 600;
}
.bp-info-val.yellow {
  color: #a3a316;
  font-weight: 600;
}
.bp-info-val.red {
  color: #dc2626!important;
  font-weight: 600;
}
.bp-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

/* Address box */
.bp-address-section {
  padding: 20px 0px 4px;
}
.bp-address-label {
  font-size: 16px;
  color: var(--text);
  margin-bottom: 10px;
  font-family: "Momo Trust Display", sans-serif;
}
.bp-address-box {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  padding: 5px 5px 5px 20px;
  border: 1px solid rgb(8 98 253 / 20%);
  background: rgb(8 98 253 / 5%);
}
.bp-addr-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}
.bp-addr-text {
  flex: 1;
  font-size: 16px;
  color: var(--primary);
  word-break: break-all;
  font-family: "Momo Trust Display", sans-serif;
  background: transparent;
  border: none;
  outline: none;
  padding: 0;
  min-width: 0;
  cursor: text;
}
.bp-copy-btn {
  background: var(--dark-card);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  font-family: "Poppins", sans-serif;
  transition: opacity 0.2s;
}
.bp-copy-btn:hover {
  opacity: 0.88;
}
.bp-copy-btn.disabled {
    color: var(--text);
}
.bp-copy-icon-btn {
  background: none;
  border: none;
  padding: 6px 8px;
  cursor: pointer;
  color: var(--text);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    color 0.2s,
    background 0.2s;
}
.bp-copy-icon-btn:hover {
  color: var(--primary-light);
  background: rgba(37, 99, 235, 0.1);
}
.bp-copy-icon-btn.copied {
  color: #16a34a;
}

/* Warning box */
.bp-warning {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgb(255 0 0 / 5%);
  border: 1px solid #ff0000;
  border-radius: 10px;
  padding: 14px 16px;
  margin: 8px 0 20px;
}
.bp-warning-icon {
  font-size: 2em;
  color: #dc2626;
  line-height: 1.65;
  font-weight: 500;
}
.bp-warning-body {
  font-size: 12px;
  color: #dc2626;
  line-height: 1.65;
  font-weight: 500;
}
.bp-warning-body strong {
  font-size: 16px;
  font-family: "Momo Trust Display", sans-serif;
  font-weight: 500;
}

/* QR section */
.bp-qr-section {
  text-align: center;
  padding: 4px 24px 20px;
}
.bp-qr-wrap {
  display: inline-block;
  border: 1px solid rgb(8 98 253 / 20%);
  border-radius: 14px;
  padding: 10px;
  background: #fff;
  box-shadow: 0 2px 2px rgb(1 21 57 / 8%);
}
.bp-qr-canvas {
  display: block;
  border-radius: 4px;
}
.bp-scan-label {
  font-size: 16px;
  color: var(--text);
  margin-top: 5px;
  font-family: "Momo Trust Display", sans-serif;
}
.bp-order-date {
  font-size: 12px;
  color: var(--text);
  margin-top: 0px;
}
.bp-order-date b {
  font-weight: 600;
}
/* Countdown */
.bp-countdown-section {
  border-radius: 12px;
  padding: 18px 20px;
  text-align: center;
  border: 1px solid rgb(8 98 253 / 20%);
  border-radius: 20px;
  background: rgb(8 98 253 / 10%);
}
.bp-countdown-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 10px;
  font-weight: 500;
}
.bp-clock-icon {
}
.bp-timer {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  margin-top: 5px;
}
.bp-timer-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.bp-timer-num {
  font-size: 42px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  font-family: "Momo Trust Display", sans-serif;
  min-width: 66px;
  text-align: center;
}
.bp-timer-num.accent {
  color: #2563eb;
}
.bp-timer-label {
  font-size: 12px;
  color: var(--text);
  margin-top: 6px;
  letter-spacing: 0.3px;
  text-transform: capitalize;
}
.bp-timer-sep {
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  padding: 0 2px;
  margin-top: 2px;
  line-height: 1;
}

/* ssp-icon image support */
.ssp-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  display: block;
}

/* Auth */
.auth-container {
  padding: 120px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}
.auth-wrapper {
  display: flex;
  border-radius: 14px;
  overflow: hidden;
  width: 100%;
  background-color: #fff;
}
.auth-wrapper .img-container {
  width: 50%;
}
.auth-wrapper .img-container img {
  width: 100%;
  object-fit: cover;
  object-position: center;
  height: 100%;
}
.auth-wrapper .auth-form {
  border: 1px solid var(--accent);
  box-shadow: 0 2px 8px rgb(1 21 57 / 8%);
  width: 50%;
  padding: 60px 0;
  border-radius: 0 14px 14px 0;
  display: flex;
  flex-direction: column;
}
.auth-wrapper .auth-title {
  font-size: 30px;
  color: var(--text);
  margin: 0 0 40px;
  line-height: 1;
  text-align: center;
  font-family: "Momo Trust Display", sans-serif;
}

.cp-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid #e2e8f8;
  box-shadow: 0 2px 8px rgb(1 21 57 / 8%);
  padding: 28px 28px 26px;
}

.cp-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
  display: block;
}

/* Password input wrapper */
.cp-pw-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: #f4f7ff;
  border: 1.5px solid #e2e8f8;
  border-radius: 10px;
  transition: border-color 0.2s;
}
.cp-pw-wrap:focus-within {
  border-color: var(--primary-light);
  background: #fff;
}

.cp-pw-input {
  flex: 1;
  width: 100%;
  background: #f4f7ff;
  border: 1.5px solid rgb(59 130 246 / 50%);
  border-radius: 10px;
  padding: 15px 14px;
  font-family: "Poppins", sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: 0 2px 2px rgb(1 21 57 / 8%);
}

/* Eye toggle button */
.cp-eye-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  flex-shrink: 0;
}
.cp-eye-btn:hover {
  color: var(--primary-light);
}
.cp-eye-btn svg {
  width: 18px;
  height: 18px;
}

/* Hint text */
.cp-hint {
  font-size: 11px;
  color: var(--text);
  margin-top: 6px;
}

/* Submit button */
.cp-submit-btn {
  width: 100%;
  background: var(--dark-card);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 20px;
  cursor: pointer;
  transition: opacity 0.2s;
  letter-spacing: 0.3px;
  margin-top: 20px;
}
.cp-submit-btn:hover {
  opacity: 0.9;
}

.cp-field {
  margin-bottom: 4px;
}
/* ── intl-tel-input – overrides ── */

/* Fix: parent CSS made .iti position:static, breaking absolute flag container */
.iti--allow-dropdown {
  position: relative !important;
  display: block !important;
  width: 100%;
}

.iti--allow-dropdown .iti__flag-container,
.iti--separate-dial-code .iti__flag-container {
  left: 5px;
  top: 5px;
  bottom: 5px;
}
.iti--separate-dial-code .iti__selected-flag {
  background-color: rgb(59 130 246 / 20%);
  border-radius: 8px;
}
/* Input styling – match .pf-input look */
.iti input[type="tel"] {
  width: 100%;
  background: rgb(59 130 246 / 5%);
  border: 1.5px solid rgb(59 130 246 / 50%);
  border-radius: 10px;
  padding: 15px 14px;
  font-family: "Poppins", sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  outline: none;
  box-shadow: 0 2px 2px rgb(1 21 57 / 8%);
  transition:
    border-color 0.2s,
    background 0.2s;
  height: auto;
  padding-left: 95px !important;
}
.iti input[type="tel"]:focus {
  border-color: var(--primary-light);
}

/* Flag sprite – force CDN path + explicit size so the sprite renders * /
.iti__flag {
  width: 20px !important;
  height: 15px !important;
  flex-shrink: 0 !important;
  background-image: url("https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.13/img/flags.png") !important;
  background-repeat: no-repeat !important;
  background-color: #dbdbdb !important;
  background-size: 5630px 15px !important;
}
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .iti__flag {
    background-image: url("https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.13/img/flags@2x.png") !important;
    background-size: 5630px 15px !important;
  }
}
*/

/* Dial code font */
.iti__selected-dial-code {
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

/* Dropdown list */
.iti__country-list {
  border: 1.5px solid #e2e8f8;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgb(1 21 57 / 14%);
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  max-height: 220px;
  z-index: 300;
  scrollbar-width: thin;
  scrollbar-color: #c7d4f0 #f4f7ff;
}
.iti__country-list::-webkit-scrollbar {
  width: 5px;
}
.iti__country-list::-webkit-scrollbar-track {
  background: #f4f7ff;
}
.iti__country-list::-webkit-scrollbar-thumb {
  background: #c7d4f0;
  border-radius: 10px;
}
.iti__country.iti__highlight {
  background: #f0f5ff;
}
.iti__country-name {
  color: var(--text);
}
.iti__dial-code {
  color: #6b7280;
  font-size: 12px;
}

/* Search input inside dropdown */
.iti__search-input {
  width: calc(100% - 20px);
  margin: 8px 10px;
  background: #f4f7ff;
  border: 1.5px solid #e2e8f8;
  border-radius: 8px;
  padding: 7px 10px;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  color: var(--text);
  outline: none;
  display: block;
}
.iti__search-input:focus {
  border-color: var(--primary-light);
  background: #fff;
}

/* ── Register page – country dropdown (legacy, kept for safety) ── */
.rg-country-wrap {
  position: relative;
}
.rg-country-selected {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f4f7ff;
  border: 1.5px solid rgb(59 130 246 / 50%);
  border-radius: 10px;
  padding: 13px 14px;
  cursor: pointer;
  user-select: none;
  transition:
    border-color 0.2s,
    background 0.2s;
  box-shadow: 0 2px 2px rgb(1 21 57 / 8%);
}
.rg-country-selected:hover {
  border-color: var(--primary-light);
  background: #fff;
}
.rg-flag {
  font-size: 20px;
  line-height: 1;
}
.rg-code {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
}
.rg-chevron {
  margin-left: auto;
  font-size: 13px;
  color: var(--text);
  transition: transform 0.2s;
}
.rg-dropdown.open ~ .rg-country-selected .rg-chevron,
.rg-country-wrap:has(.rg-dropdown.open) .rg-chevron {
  transform: rotate(180deg);
}
.rg-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  background: #fff;
  border: 1.5px solid #e2e8f8;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgb(1 21 57 / 14%);
  z-index: 200;
  overflow: hidden;
}
.rg-dropdown.open {
  display: block;
}
.rg-search-wrap {
  padding: 10px 10px 8px;
  border-bottom: 1px solid #e2e8f8;
}
.rg-search {
  width: 100%;
  background: #f4f7ff;
  border: 1.5px solid #e2e8f8;
  border-radius: 8px;
  padding: 8px 12px;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  color: var(--text);
  outline: none;
}
.rg-search:focus {
  border-color: var(--primary-light);
  background: #fff;
}
.rg-list {
  max-height: 220px;
  overflow-y: auto;
  padding: 4px 0;
}
.rg-list::-webkit-scrollbar {
  width: 5px;
}
.rg-list::-webkit-scrollbar-track {
  background: #f4f7ff;
}
.rg-list::-webkit-scrollbar-thumb {
  background: #c7d4f0;
  border-radius: 10px;
}
.rg-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  cursor: pointer;
  transition: background 0.15s;
}
.rg-item:hover {
  background: #f0f5ff;
}
.rg-item-flag {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}
.rg-item-name {
  flex: 1;
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rg-item-code {
  font-size: 12px;
  color: #6b7280;
  flex-shrink: 0;
}
.rg-no-result {
  padding: 14px;
  text-align: center;
  font-size: 13px;
  color: #6b7280;
}

/* ── Register page – terms row ── */
.rg-terms-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.rg-check {
  width: 16px;
  height: 16px;
  accent-color: var(--primary-light);
  cursor: pointer;
  flex-shrink: 0;
}
.rg-terms-label {
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
}
.rg-terms-label a {
  color: var(--primary-light);
  text-decoration: underline;
}
.rg-terms-label a:hover {
  color: var(--accent);
}

.pf-link {
  text-align: center;
}
.pf-link a {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
  display: block;
  margin: 40px 0 0;
}

.pf-link a:hover {
  color: var(--accent);
}
.forget-password-container {
  max-height: 400px;
}
/* ============================================================
   RESPONSIVE – Profile / Change-PW / Buy-SaaS /
                Single-SaaS / BTC-Payment
   ============================================================ */

/* ── Tablet landscape (≤1024px) ── */
@media (max-width: 1024px) {
  /* buy-saas-plans: tighten card image */
  .sp-img-wrap {
    width: 110px;
  }

  /* btc-payment */
  .bp-timer-num {
    font-size: 36px;
    min-width: 56px;
  }
}

/* ── Tablet portrait / large phone (≤768px) ── */
@media (max-width: 991px) {
  .auth-container {
    padding: 50px 0;
  }
  .auth-wrapper .img-container {
    display: none;
  }
  .auth-wrapper .auth-form {
    width: 100%;
    padding: 20px;
    border-radius: 14px;
  }
}
@media (max-width: 768px) {
  /* ── Profile page ── */
  .profile-card {
    padding: 16px 14px;
  }
  .pf-label {
    font-size: 12.5px;
  }
  .pf-input,
  .pf-select {
    font-size: 13px;
    padding: 12px 12px;
  }
  .pf-update-btn,
  .pf-reset-btn {
    font-size: 13px;
  }
  .iti input[type="tel"] {
    font-size: 13px;
    padding: 12px 12px;
  }
  /* ── Change-password page ── */
  .cp-title {
    font-size: 18px;
  }
  .cp-pw-label {
    font-size: 12.5px;
  }
  .cp-pw-input {
    font-size: 13px;
    padding: 8px 12px;
    min-height: 45px;
  }
  .cp-hint {
    font-size: 11.5px;
  }
  .cp-submit-btn {
    font-size: 14px;
  }

  /* ── Buy-SaaS plans ── */
  .sp-plan-name {
    font-size: 18px;
  }
  .sp-banner {
    padding-left: 20px;
  }
  /* ── Single-SaaS plan ── */
  .ssp-method-name {
    font-size: 18px;
  }
  .ssp-note {
    font-size: 13px;
  }
  .ssp-total-val {
    font-size: 20px;
  }
  .ssp-total-label {
    font-size: 14px;
  }
  .ssp-pay-btn {
    font-size: 14px;
    padding: 12px;
  }
  .ssp-box-img {
    width: 130px;
  }

  /* ── BTC Payment: header ── */
  .bp-header {
    flex-wrap: wrap;
    padding: 14px 16px;
    gap: 10px;
  }
  .bp-title {
    font-size: 18px;
  }
  .bp-subtitle {
    font-size: 12px;
  }
  .bp-icon {
    width: 48px;
    height: 48px;
  }
  .bp-progress-btn {
    order: 3;
    width: 100%;
    justify-content: center;
    font-size: 13px;
  }

  /* ── BTC Payment: info table ── */
  .bp-info-label {
    min-width: 110px;
    font-size: 14px;
    padding: 11px 14px;
  }
  .bp-info-val {
    font-size: 14px;
    padding: 11px 14px;
  }

  /* ── BTC Payment: address ── */
  .bp-address-label {
    font-size: 14px;
  }
  .bp-addr-text {
    font-size: 12px;
  }
  .bp-copy-btn {
    padding: 8px 14px;
    font-size: 12px;
  }

  /* ── BTC Payment: warning ── */
  .bp-warning-body strong {
    font-size: 14px;
  }
  .bp-warning-body {
    font-size: 12.5px;
  }

  /* ── BTC Payment: countdown ── */
  .bp-countdown-header {
    font-size: 12px;
    gap: 8px;
  }
  .bp-timer-num {
    font-size: 34px;
    min-width: 50px;
  }
  .bp-timer-sep {
    font-size: 28px;
  }
  .bp-timer-label {
    font-size: 11px;
  }
  .auth-wrapper .auth-title {
    font-size: 24px;
  }
  .pf-link a {
    font-size: 14px;
  }
}

/* ── Small phone (≤480px) ── */
@media (max-width: 480px) {
  .auth-wrapper .auth-title {
    font-size: 20px;
  }
  .pf-link a {
    font-size: 12px;
  }
  /* ── Profile page ── */
  .pf-phone-wrap {
    flex-direction: column;
  }
  .pf-phone-prefix {
    border-right: none;
    border-bottom: 1px solid #d1d5db;
    border-radius: 10px 10px 0 0;
    justify-content: center;
  }
  .pf-phone-input {
    border-radius: 0 0 10px 10px;
  }
  .pf-update-btn {
    font-size: 13px;
    padding: 10px;
  }

  /* ── Single-SaaS plan ── */
  .ssp-note {
    font-size: 12px;
  }
  .ssp-total-val {
    font-size: 17px;
  }
  .ssp-pay-btn {
    font-size: 13px;
    padding: 11px;
  }
  .ssp-box-img {
    width: 110px;
  }
  .ssp-method-name {
    font-size: 16px;
  }

  /* ── Buy-SaaS plans ── */
  .sp-stat-label {
    font-size: 11px;
  }
  .sp-stat-val {
    font-size: 12px;
  }
  .sp-perf-pct {
    font-size: 13px;
  }
  .sp-buy-link {
    font-size: 13px;
    padding: 10px;
  }
  .sp-banner-desc {
    font-size: 11px;
    margin-left: 18px;
  }
  .sp-perf-label {
    font-size: 12px;
  }
  /* ── BTC Payment: header ── */
  .bp-icon {
    width: 42px;
    height: 42px;
  }
  .bp-title {
    font-size: 15px;
  }
  .bp-subtitle {
    font-size: 11.5px;
  }
  .bp-spinner {
    width: 12px;
    height: 12px;
  }
  .bp-progress-btn {
    font-size: 12px;
    padding: 7px 14px;
  }

  /* ── BTC Payment: info table ── */
  .bp-info-label {
    min-width: 95px;
    font-size: 11.5px;
    padding: 8px 10px;
  }
  .bp-info-val {
    font-size: 12.5px;
    padding: 10px 12px;
    gap: 5px;
  }

  /* ── BTC Payment: address ── */
  .bp-addr-text {
    font-size: 10.5px;
  }
  .bp-copy-btn {
    padding: 8px 10px;
    font-size: 11.5px;
  }

  /* ── BTC Payment: warning ── */
  .bp-warning {
    gap: 10px;
    padding: 12px;
  }
  .bp-warning-icon {
    width: 24px;
    height: 24px;
  }
  .bp-warning-body {
    font-size: 11.5px;
  }
  .bp-warning-body strong {
    font-size: 12.5px;
  }

  /* ── BTC Payment: QR ── */
  .bp-qr-canvas {
    width: 160px !important;
    height: 160px !important;
  }
  .bp-scan-label {
    font-size: 14px;
  }
  .bp-order-date {
    font-size: 11px;
  }

  /* ── BTC Payment: countdown ── */
  .bp-countdown-header {
    font-size: 11.5px;
    gap: 6px;
  }
  .bp-timer-num {
    font-size: 28px;
    min-width: 42px;
  }
  .bp-timer-sep {
    font-size: 22px;
  }
  .bp-timer-label {
    font-size: 10px;
    margin-top: 4px;
  }
}

/* ── Tooltip copy feedback ── */
.copy-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1e293b;
  color: #fff;
  font-size: 13px;
  padding: 8px 20px;
  border-radius: 100px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s,
    transform 0.3s;
  z-index: 9999;
}
.copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   RANK STATUS PAGE
   ============================================================ */

/* ── Table outer wrapper ── */
.rs-table-outer {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #0360fd;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

/* ── Table ── */
.rs-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

/* ── Header ── */
.rs-table thead {
  background: linear-gradient(290deg, #01163a 0%, #0360fd 100%);
}
.rs-table thead th {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 16px 18px;
  text-align: center;
  white-space: normal;
  line-height: 1.2;
  letter-spacing: -0.3px;
}
.rs-table thead th:first-child {
  white-space: nowrap;
}
.rs-table thead th:last-child {
  border-right: none;
}

/* ── Body rows ── */
.rs-table tbody tr {
  background: rgb(3 96 253 / 10%);
}
.rs-table tbody tr.rs-row-alt {
  background: #fff;
}

/* ============================================================
   SALE TOOLS
   ============================================================ */
.st-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.st-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--accent);
  box-shadow: 0 2px 8px rgb(1 21 57 / 8%);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.st-card-thumb {
  padding: 0 15%;
  margin: auto;
}
.st-card-thumb img {
  width: 100%;
  display: block;
  max-width: 346px;
}
.st-card-body {
  padding: 18px 0px 0px;
  display: flex;
  gap: 9px;
  justify-content: center;
  align-items: center;
}
.st-card-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}
.st-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 10px;
  border: 1px solid rgb(59 130 246 / 50%);
  background: #f8faff;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgb(1 21 57 / 8%);
}
.st-card-icon:hover {
  background: #eef5ff;
  box-shadow: 0 2px 8px rgb(1 21 57 / 16%);
}
.st-card-btn {
  display: block;
  width: 294px;
  background: var(--dark-card);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 20px;
  text-align: center;
  cursor: pointer;
  transition: opacity 0.2s;
  letter-spacing: 0.3px;
  height: 50px;
}
.st-card-btn:hover {
  opacity: 0.88;
  color: #fff;
}

/* ── Sale Tools Download List ── */
.st-dl-card {
  border: 1px solid rgb(8 98 253 / 20%);
  border-radius: 20px;
  background: rgb(8 98 253 / 5%);
  overflow: hidden;
}
.st-dl-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  border-bottom: 1px solid #dce8f8;
}
.st-dl-row:not(:last-child) {
  border-bottom: 1px solid rgb(8 98 253 / 20%);
}
.st-dl-row:last-child {
  border-bottom: none;
}
.st-dl-row:nth-child(even) {
  background: #fff;
}
.st-dl-name {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.2px;
}
.st-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #0aa310;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
  flex-shrink: 0;
  min-width: 134px;
  box-shadow: 0px 4px 0px rgb(10 163 16 / 18%);
}
.st-dl-btn:hover {
  background: #15803d;
  color: #fff;
}

@media (max-width: 600px) {
  .st-dl-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
  }
  .st-dl-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── Body cells ── */
.rs-table tbody td {
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  text-align: center;
  border-bottom: 1px solid rgb(3 96 253 / 30%);
  border-right: 1px solid rgb(3 96 253 / 30%);
  vertical-align: middle;
  white-space: nowrap;
  position: relative;
}
.rs-table tbody td:first-child {
  text-align: left;
}
.rs-table tbody td:last-child {
  border-right: none;
}
.rs-table tbody tr:last-child td {
  border-bottom: none;
}

/* ── Rank cell (badge + name + optional dot) ── */
.rs-rank-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rs-badge-img {
  width: 42px;
  height: auto;
  flex-shrink: 0;
  object-fit: contain;
}
.rs-rank-name {
  font-size: 20px;
  color: var(--text);
  font-family: "Momo Trust Display", sans-serif;
}

/* ── Cell with inline checkmark ── */
.rs-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  color: var(--text);
  font-weight: 500;
}

/* ── Green checkmark dot ── */
.rs-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  min-width: 20px;
  background: #16a34a;
  border-radius: 50%;
  flex-shrink: 0;
  position: absolute;
  right: 10px;
  top: 8px;
}

/* ── Achieved button ── */
.rs-achieved-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0aa310;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
  flex-shrink: 0;
  min-width: 134px;
  box-shadow: 0px 4px 0px rgb(10 163 16 / 18%);
}
.rs-achieved-btn .rs-dot {
  position: relative;
  left: 0;
  top: 0;
  background: #fff;
}
.rs-achieved-btn .rs-dot path {
  stroke: #16a34a;
}
/* ── Rank Qualification box ── */
.rs-qual-box {
  padding: 20px 0px;
}
.rs-qual-title {
  font-size: 20px;
  color: var(--text);
  margin: 0 0 16px;
  font-family: "Momo Trust Display", sans-serif;
}
.rs-qual-example-title {
  margin-top: 16px;
}
.rs-qual-text {
  font-size: 18px;
  color: var(--text);
  margin: 0 0 14px;
}
.rs-qual-text strong {
  font-weight: 600;
}
.rs-qual-text.mb-0 {
  margin-bottom: 0;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .rs-table tbody td,
  .rs-table thead th {
    padding: 10px 12px;
    font-size: 12.5px;
    min-width: 150px;
  }
  .rs-table .rs-cell {
    font-size: 12px;
  }
  .rs-badge-img {
    width: 36px;
  }
  .rs-rank-name {
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .rs-table-outer {
    border-radius: 12px;
    overflow-x: auto;
  }
  .rs-table {
    min-width: 680px;
  }
  .rs-qual-title {
    font-size: 16px;
  }
  .rs-qual-text {
    font-size: 13px;
  }
  .st-dl-name {
    font-size: 16px;
  }
  .st-card-body {
    flex-direction: column;
  }
  .st-card-btn {
    width: 100%;
    font-size: 12px;
  }
  .st-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .rs-table {
    min-width: 600px;
  }
  .rs-achieved-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
  .rs-badge-img {
    width: 30px;
  }
  .st-dl-name {
    font-size: 14px;
  }
  .st-dl-btn {
    font-size: 12px;
  }
  .st-card-icon {
    padding: 9px;
    height: 46px;
    width: 46px;
  }
}
