/* ============================================================
   INDIA GROWTH NETWORK — "CLEAN FINTECH" LIGHT DESIGN SYSTEM
   Dark indigo sidebar + white cards + indigo/violet brand
   ============================================================ */

:root {
  /* Surfaces */
  --bg: #f3f5fb;
  --bg-2: #eaeef8;
  --surface: #ffffff;
  --surface-2: #f6f7fc;
  --surface-3: #eceff8;
  --border: #e6e9f3;
  --border-strong: #d5dae9;

  /* Text */
  --text: #101533;
  --text-dim: #465071;
  --text-mute: #8088a4;

  /* Brand (indigo -> violet) */
  --accent: #6b4dff;
  --accent-2: #a046ff;
  --accent-light: #5b47f0;
  --accent-soft: rgba(107, 77, 255, .08);
  --accent-soft-strong: rgba(107, 77, 255, .18);
  --grad: linear-gradient(135deg, #5b47f0 0%, #8a4dff 55%, #b04bff 100%);
  --grad-warm: linear-gradient(135deg, #ff9f43 0%, #ff6b6b 100%);
  --on-accent: #ffffff;

  /* Semantic */
  --blue: #2e90fa;
  --blue-soft: rgba(46, 144, 250, .10);
  --green: #12b76a;
  --green-soft: rgba(18, 183, 106, .10);
  --red: #f04438;
  --red-soft: rgba(240, 68, 56, .09);
  --purple: #7a5af8;
  --purple-soft: rgba(122, 90, 248, .10);
  --cyan: #06aed4;
  --cyan-soft: rgba(6, 174, 212, .10);
  --gold: #f5a524;
  --gold-soft: rgba(245, 165, 36, .12);
  --orange: #f97316;
  --orange-soft: rgba(249, 115, 22, .10);

  /* Sidebar (dark) */
  --side-bg: #141235;
  --side-bg-2: #1c1946;
  --side-text: rgba(232, 230, 255, .72);
  --side-mute: rgba(232, 230, 255, .42);
  --side-border: rgba(255, 255, 255, .07);

  /* Radii */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 26px;
  --r-pill: 999px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 18px rgba(16, 24, 40, .06);
  --shadow-md: 0 18px 40px rgba(16, 24, 40, .12);
  --shadow-accent: 0 10px 24px rgba(107, 77, 255, .30);

  /* Shell */
  --sidebar-w: 268px;
  --topbar-h: 70px;
  --font: 'Plus Jakarta Sans', sans-serif;
}

/* ============================================================
   RESET / BASE
   ============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font);
  background-image: linear-gradient(to right, rgb(15, 23, 42), rgb(88, 28, 135), rgb(15, 23, 42));

  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.main-wrap,
.page-content,
.site-main,
.container,
.stats-row,
.stats-strip,
.quick-actions-row,
.quick-actions-grid,
.income-grid,
.hero-balance-row,
.earn-cards,
.t-cards,
.t-status-row,
.lp-stats-grid,
.lp-steps,
.lp-earn-grid {
  min-width: 0;
}

.stat-card,
.stat-pill,
.qa-card,
.inc-box,
.hero-bal-card,
.action-card,
.earn-card,
.t-stat {
  min-width: 0;
}

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

button {
  font-family: var(--font);
}

img {
  max-width: 100%;
  display: block;
}

::selection {
  background: var(--accent-soft-strong);
  color: var(--text);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #cdd3e4;
  border-radius: 8px;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(.94);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulseSoft {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .55;
  }
}

@keyframes floatY {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* ============================================================
   MEMBER APP SHELL — dark sidebar
   ============================================================ */
.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  top: 12px;
  left: 12px;
  bottom: 12px;
  width: var(--sidebar-w);
  background:
    radial-gradient(260px 200px at 100% 0%, rgba(160, 70, 255, .35), transparent 70%),
    linear-gradient(180deg, var(--side-bg-2) 0%, var(--side-bg) 100%);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  z-index: 200;
  box-shadow: 0 20px 50px rgba(20, 18, 53, .28);
  transition: transform .3s ease;
  overflow: hidden;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 20px 18px;
  border-bottom: 1px solid var(--side-border);
}

.sidebar-header .logo-icon img {
width: 94px;
height: 57px;
object-fit: contain;
border-radius: 12px;
padding: 3px;
}

.sidebar-brand {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sidebar-brand strong {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-brand span {
  font-size: 10px;
  color: var(--side-mute);
  letter-spacing: .8px;
  text-transform: uppercase;
  margin-top: 2px;
}

.sidebar-close {
  margin-left: auto;
  display: none;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  border: none;
  color: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 12px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .12);
}

.sidebar-nav-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--side-mute);
  padding: 16px 12px 8px;
}

.sidebar-nav-title:first-child {
  padding-top: 6px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 14px;
  color: var(--side-text);
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 3px;
  position: relative;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.sidebar-link i {
  width: 20px;
  text-align: center;
  font-size: 15px;
  color: var(--side-mute);
  transition: color .2s ease;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, .06);
  color: #fff;
  transform: translateX(2px);
}

.sidebar-link:hover i {
  color: #fff;
}

.sidebar-link.active {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 20px rgba(107, 77, 255, .35);
}

.sidebar-link.active i {
  color: #fff;
}

.sidebar-link .badge-dot {
  margin-left: auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}

.sidebar-footer {
  padding: 14px 14px 16px;
  border-top: 1px solid var(--side-border);
}

.sidebar-balance-card {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  padding: 13px 14px;
  margin-bottom: 10px;
}

.sidebar-balance-card label {
  display: block;
  font-size: 9.5px;
  color: var(--side-mute);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 4px;
}

.sidebar-balance-card label i {
  color: #ffd166 !important;
}

.sidebar-balance-card .amt {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

.sidebar-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--side-border);
  background: transparent;
  color: var(--side-text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
}

.sidebar-logout:hover {
  background: rgba(240, 68, 56, .18);
  border-color: rgba(240, 68, 56, .35);
  color: #fff;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 21, 51, .45);
  backdrop-filter: blur(3px);
  z-index: 190;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.sidebar-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* Main column */
.main-wrap {
  flex: 1;
  min-width: 0;
  margin-left: calc(var(--sidebar-w) + 12px);
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 150;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 26px;
  background: rgba(243, 245, 251, .82);
  backdrop-filter: blur(16px);
}

.topbar-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--surface);
  border: none;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.topbar-titles {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.topbar-titles h1 {
  font-size: 19px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-titles p {
  font-size: 12px;
  color: var(--text-mute);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.balance-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 9px 16px;
  border-radius: var(--r-pill);
  font-size: 12px;
  color: var(--text-mute);
  font-weight: 600;
  white-space: nowrap;
}

.balance-box span {
  color: var(--text);
  font-weight: 800;
  margin-left: 2px;
}

.balance-box::before {
  content: '\f555';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.topbar-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--surface);
  border: none;
  box-shadow: var(--shadow-sm);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: all .2s ease;
}

.topbar-icon-btn:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.page-content {
  flex: 1;
  padding: 8px 26px 100px;
}

/* ============================================================
   MOBILE BOTTOM NAV — floating white bar
   ============================================================ */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 180;
  align-items: stretch;
  justify-content: space-between;
  background-color: #FFE53B;
  background-image: linear-gradient(147deg, #FFE53B 0%, #FF2525 74%);
  backdrop-filter: blur(16px);
  border-radius: 43px;
  box-shadow: 0 12px 34px rgba(16, 24, 40, .16);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0));
}

.mobile-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 7px 2px;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 700;
  position: relative;
  border-radius: 16px;
  transition: all .2s ease;
  min-width: 0;
}

.mobile-nav-item i {
  font-size: 17px;
  color:#ffffff;
  transition: color .2s ease, transform .2s ease;
}

.mobile-nav-item span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.mobile-nav-item.active {
  background: var(--accent-soft);
  color: var(--accent-light);
}

.mobile-nav-item.active i {
  color: var(--accent);
  transform: translateY(-1px);
}

@media (max-width:1023px) {
  .sidebar {
    top: 0;
    left: 0;
    bottom: 0;
    border-radius: 0 24px 24px 0;
    transform: translateX(-105%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-close {
    display: flex;
  }

  .main-wrap {
    margin-left: 0;
  }

  .topbar-menu-btn {
    display: flex;
  }

  .topbar {
    padding: 0 16px;
  }

  .page-content {
    padding: 6px 14px 110px;
  }

  .balance-box {
    padding: 7px 12px;
    font-size: 11px;
  }

  .mobile-bottom-nav {
    display: flex;
  }
}

@media (max-width:560px) {
  .topbar-titles p {
    display: none;
  }

  .topbar-titles h1 {
    font-size: 17px;
  }

  .topbar-right {
    gap: 6px;
    flex-shrink: 0;
  }

  .topbar .balance-box {
    display: none;
  }

  .topbar {
    padding: 0 12px;
    gap: 10px;
  }
}

/* ============================================================
   PUBLIC / GUEST SITE SHELL
   ============================================================ */
.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-navbar {
  position: sticky;
  top: 0;
  z-index: 150;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.site-navbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
}

.site-navbar .logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-navbar .logo-icon img {
  width: 96px;
  height: 56px;
  object-fit: contain;
}

.site-navbar .logo-text strong {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}

.site-navbar .logo-text span {
  display: block;
  font-size: 9.5px;
  color: var(--text-mute);
  letter-spacing: .6px;
  text-transform: uppercase;
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 auto;
}

.site-nav-links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  transition: all .2s ease;
}

.site-nav-links a:hover {
  color: var(--accent-light);
  background: var(--accent-soft);
}

.site-navbar-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.site-main {
  flex: 1;
}

@media (max-width:900px) {
  .site-nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 16px 14px;
  }

  .site-nav-links.open {
    display: flex;
  }

  .site-nav-links a {
    width: 100%;
    border-radius: 12px;
  }

  .site-navbar-menu-btn {
    display: flex;
  }

  .auth-buttons .auth-btn span,
  .auth-buttons .auth-btn {
    font-size: 12px;
  }
}

.site-footer {
  background: #0f0d2b;
  color: rgba(232, 230, 255, .7);
  margin-top: 60px;
}

.site-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 52px 24px 24px;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
}

.site-footer-brand p {
  font-size: 12.5px;
  color: rgba(232, 230, 255, .55);
  line-height: 1.7;
  margin-top: 12px;
  max-width: 280px;
}

.site-footer-brand .logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 14px;
  padding: 4px 10px;
}

.site-footer-brand .logo img {
  width: 96px;
  height: 52px;
  object-fit: contain;
}

.site-footer h4 {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 14px;
}

.site-footer ul {
  list-style: none;
}

.site-footer ul li {
  margin-bottom: 10px;
}

.site-footer ul li a {
  font-size: 12.5px;
  color: rgba(232, 230, 255, .6);
  transition: color .2s ease;
}

.site-footer ul li a:hover {
  color: #fff;
}

.site-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11.5px;
  color: rgba(232, 230, 255, .45);
}

@media (max-width:760px) {
  .site-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width:480px) {
  .site-footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.auth-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.auth-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all .25s ease;
  white-space: nowrap;
}

.auth-btn.login-btn {
  background: var(--surface-2);
  color: var(--text);
}

.auth-btn.login-btn:hover {
  background: var(--accent-soft);
  color: var(--accent-light);
}

.auth-btn.register-btn {
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-accent);
}

.auth-btn.register-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(107, 77, 255, .38);
}

.submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px;
  border: none;
  border-radius: 14px;
  background: var(--grad);
  background-size: 140% 140%;
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .2px;
  box-shadow: var(--shadow-accent);
  transition: all .25s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(107, 77, 255, .38);
  background-position: 100% 0;
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 14px;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  box-shadow: var(--shadow-accent);
  transition: all .25s ease;
}

.action-btn:hover {
  transform: translateY(-2px);
  color: #fff;
}

.action-btn.small {
  padding: 9px 16px;
  font-size: 12px;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-soft);
  border: none;
  color: var(--accent-light);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
}

.copy-btn:hover {
  background: var(--accent);
  color: #fff;
}

/* ============================================================
   FORMS — filled inputs with focus ring
   ============================================================ */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.form-group label i {
  color: var(--accent);
  font-size: 12px;
}

.form-group input,
.form-group textarea,
.form-input,
.form-select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  color: var(--text);
  font-size: 14px;
  font-family: var(--font);
  font-weight: 500;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder,
.form-input::placeholder {
  color: #a3aac0;
  font-weight: 400;
}

.form-group input:hover,
.form-group textarea:hover,
.form-input:hover,
.form-select:hover {
  border-color: var(--border-strong);
}

.form-group input:focus,
.form-group textarea:focus,
.form-input:focus,
.form-select:focus {
  outline: none;
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft-strong);
}

.form-group input[type=checkbox],
.form-group input[type=radio] {
  width: auto;
}

.form-select {
  appearance: none;
  cursor: pointer;
}

.select-wrapper {
  position: relative;
}

.select-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-mute);
  pointer-events: none;
  font-size: 12px;
}

.password-input {
  position: relative;
}

.password-input input {
  padding-right: 48px;
}

.toggle-password {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  color: var(--text-mute);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-password:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 8px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 500;
}

.remember-me input {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}

.remember-me a {
  color: var(--accent-light);
  font-weight: 700;
}

.forgot-link {
  font-size: 12px;
  color: var(--accent-light);
  font-weight: 700;
}

.form-hint {
  display: block;
  margin-top: 7px;
  font-size: 11.5px;
  color: var(--text-mute);
}

.form-error {
  margin-top: 10px;
  font-size: 12px;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.form-actions {
  margin-top: 22px;
}

.form-section-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: .8px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border-strong);
  margin-bottom: 16px;
}

.custom-select-wrapper {
  position: relative;
}

.file-upload-wrapper {
  position: relative;
}

.file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.file-upload-box {
  border: 2px dashed #c9cfe3;
  border-radius: 16px;
  background: var(--surface-2);
  padding: 30px 16px;
  text-align: center;
  color: var(--text-mute);
  font-size: 13px;
  transition: all .2s ease;
}

.file-upload-box i {
  font-size: 26px;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}

.file-upload-box p {
  font-weight: 700;
  color: var(--text-dim);
}

.file-upload-box span {
  font-size: 11px;
}

.file-upload-box:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.file-preview {
  margin-top: 12px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  padding: 8px;
  background: var(--surface-2);
}

.remove-file {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  background: none;
  border: none;
}

.bank-form,
.withdraw-form,
.profile-form,
.settings-form {
  display: block;
}

/* ============================================================
   TABLES (member side)
   ============================================================ */
.table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.table-modern,
.page-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.table-modern th,
.page-content table th {
  background: var(--surface-2);
  color: var(--text-mute);
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .7px;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.table-modern td,
.page-content table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
}

.table-modern tr:last-child td,
.page-content table tr:last-child td {
  border-bottom: none;
}

.table-modern tbody tr:hover td,
.page-content table tbody tr:hover td {
  background: #fafbff;
}

/* ============================================================
   MODALS (login / register) — gradient banner
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 21, 51, .55);
  backdrop-filter: blur(8px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  width: 100%;
  max-width: 430px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(16, 21, 51, .35);
  transform: translateY(16px) scale(.97);
  transition: transform .3s cubic-bezier(.2, .9, .3, 1.2);
}

.modal-overlay.active .modal-container {
  transform: translateY(0) scale(1);
}

.modal-header {
  position: relative;
  overflow: hidden;
  padding: 30px 26px 54px;
  text-align: left;
  background: var(--grad);
  color: #fff;
}

.modal-header::before,
.modal-header::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
}

.modal-header::before {
  width: 180px;
  height: 180px;
  right: -50px;
  top: -70px;
}

.modal-header::after {
  width: 110px;
  height: 110px;
  right: 70px;
  bottom: -60px;
  background: rgba(255, 255, 255, .08);
}

.modal-icon {
  position: relative;
  z-index: 1;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  margin: 0 0 14px;
  background: rgba(255, 255, 255, .2);
  border: 1px solid rgba(255, 255, 255, .3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
}

.modal-icon.register {
  background: rgba(255, 255, 255, .2);
  color: #fff;
}

.modal-header h2 {
  position: relative;
  z-index: 1;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
  letter-spacing: -.3px;
}

.modal-header p {
  position: relative;
  z-index: 1;
  font-size: 13px;
  color: rgba(255, 255, 255, .8);
}

.modal-close {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .18);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(255, 255, 255, .3);
}

.modal-body {
  position: relative;
  margin-top: -28px;
  background: var(--surface);
  border-radius: 26px 26px 0 0;
  padding: 26px 24px 26px;
}

.modal-footer {
  margin-top: 18px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-mute);
}

.modal-footer a {
  color: var(--accent-light);
  font-weight: 800;
}

.sponsor {
  color: var(--accent-light);
  font-weight: 700;
}

/* ============================================================
   TOPBAR PROFILE DROPDOWN
   ============================================================ */
.profile-dropdown {
  position: relative;
}

.profile-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px 10px 4px 4px;
  border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.profile-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--accent-soft-strong);
}

.profile-trigger i {
  font-size: 10px;
  color: var(--text-mute);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 240px;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all .2s ease;
  z-index: 200;
  overflow: hidden;
  padding: 6px;
}

.dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--surface-2);
  border-radius: 14px;
  margin-bottom: 4px;
}

.dropdown-header img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.dropdown-header h4 {
  font-size: 13px;
  color: var(--text);
  font-weight: 800;
}

.dropdown-header p {
  font-size: 11px;
  color: var(--text-mute);
}

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 6px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  border-radius: 12px;
  transition: background .15s ease;
}

.dropdown-item i {
  width: 16px;
  color: var(--accent);
  font-size: 12px;
}

.dropdown-item:hover {
  background: var(--accent-soft);
  color: var(--text);
}

.dropdown-item.logout {
  color: var(--red);
}

.dropdown-item.logout i {
  color: var(--red);
}

.dropdown-item.logout:hover {
  background: var(--red-soft);
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  transform: translateX(-50%) translateY(140px);
  background: #101533;
  color: #fff;
  padding: 12px 20px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  opacity: 0;
  z-index: 600;
  transition: all .3s ease;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast i {
  color: #4ade80;
}

/* ============================================================
   PAGE HEADER — gradient banner
   ============================================================ */
.page-header-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--grad);
  color: #fff;
  border-radius: 24px;
  padding: 22px 22px;
  margin-bottom: 18px;
  box-shadow: 0 14px 34px rgba(107, 77, 255, .25);
  animation: fadeInUp .4s ease-out both;
}

.page-header-card::before {
  content: '';
  position: absolute;
  right: -40px;
  top: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
}

.page-header-card::after {
  content: '';
  position: absolute;
  right: 90px;
  bottom: -70px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}

.page-header-icon {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, .2);
  border: 1px solid rgba(255, 255, 255, .28);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
}

.page-header-content {
  position: relative;
  z-index: 1;
}

.page-header-content h2 {
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 3px;
  letter-spacing: -.3px;
}

.page-header-content p {
  font-size: 12.5px;
  color: rgba(255, 255, 255, .82);
}

/* ============================================================
   STAT CARDS
   ============================================================ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: all .25s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

.stat-info {
  flex: 1;
  min-width: 0;
}

.stat-value {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.3px;
}

.stat-label {
  display: block;
  font-size: 11px;
  color: var(--text-mute);
  margin-top: 2px;
  font-weight: 600;
}

.stat-card.blue .stat-icon {
  background: var(--blue-soft);
  color: var(--blue);
}

.stat-card.green .stat-icon {
  background: var(--green-soft);
  color: var(--green);
}

.stat-card.red .stat-icon {
  background: var(--red-soft);
  color: var(--red);
}

.stat-card.orange .stat-icon {
  background: var(--orange-soft);
  color: var(--orange);
}

.stat-card.purple .stat-icon {
  background: var(--purple-soft);
  color: var(--purple);
}

.stat-card.gold .stat-icon {
  background: var(--gold-soft);
  color: var(--gold);
}

@media (max-width:480px) {
  .stats-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .stat-card {
    flex-direction: column;
    text-align: center;
    padding: 14px 8px;
    gap: 8px;
  }

  .stat-value {
    font-size: 15px;
  }
}

/* ============================================================
   INFO CARD — white card with tinted icon header
   ============================================================ */
.info-card {
  background: var(--surface);
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
  animation: fadeInUp .4s ease-out both;
}

.info-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px 14px;
}

.info-card-header>i:first-child {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  flex-shrink: 0;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.info-card-header h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  flex: 1;
  letter-spacing: -.2px;
}

.info-card-header .edit-link {
  color: var(--accent-light);
  font-size: 13px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-card-body {
  padding: 4px 20px 20px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
}

.info-item:last-child {
  border-bottom: none;
}

.info-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  flex-shrink: 0;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.info-content {
  min-width: 0;
  flex: 1;
}

.info-label {
  display: block;
  font-size: 11px;
  color: var(--text-mute);
  margin-bottom: 2px;
  font-weight: 600;
}

.info-value {
  display: block;
  font-size: 14px;
  color: var(--text);
  font-weight: 700;
  word-break: break-word;
}

.badge {
  background: var(--accent-soft);
  color: var(--accent-light);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: var(--r-pill);
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 44px 20px;
}

.empty-state.small {
  padding: 24px 16px;
}

.empty-icon {
  width: 76px;
  height: 76px;
  border-radius: 24px;
  margin: 0 auto 16px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  transform: rotate(-6deg);
}

.empty-state.small .empty-icon,
.empty-state.small>i {
  font-size: 26px;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}

.empty-state h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}

.empty-state p {
  font-size: 13px;
  color: var(--text-mute);
  margin-bottom: 16px;
}

/* ============================================================
   TEAM LIST
   ============================================================ */
.team-list {
  padding: 4px 20px 16px;
}

.team-member-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--border);
}

.team-member-card:last-child {
  border-bottom: none;
}

.member-rank {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  flex-shrink: 0;
  background: var(--surface-2);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}

.member-avatar {
  position: relative;
  flex-shrink: 0;
}

.member-avatar img {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
}

.status-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--surface);
}

.status-dot.active {
  background: var(--green);
}

.status-dot.inactive {
  background: #c3c8d8;
}

.member-info {
  flex: 1;
  min-width: 0;
}

.member-info h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.member-id {
  font-size: 11px;
  color: var(--accent-light);
  margin-top: 1px;
  font-weight: 700;
}

.member-details {
  display: flex;
  gap: 12px;
  margin-top: 3px;
  font-size: 11px;
  color: var(--text-mute);
  flex-wrap: wrap;
}

.member-stats {
  text-align: right;
  flex-shrink: 0;
}

.member-earning {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--green);
}

.member-date {
  display: block;
  font-size: 10.5px;
  color: var(--text-mute);
  margin-top: 2px;
}

/* ============================================================
   TRANSACTIONS
   ============================================================ */
.earnings-summary-card {
  display: flex;
  align-items: center;
  background: #101533;
  color: #fff;
  border-radius: 22px;
  padding: 20px 10px;
  margin-bottom: 18px;
  box-shadow: 0 14px 30px rgba(16, 21, 51, .22);
  background-image: radial-gradient(300px 160px at 100% 0%, rgba(160, 70, 255, .45), transparent 70%);
}

.summary-item {
  flex: 1;
  text-align: center;
}

.summary-label {
  display: block;
  font-size: 10.5px;
  color: rgba(255, 255, 255, .6);
  margin-bottom: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.summary-value {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
}

.summary-value.green {
  color: #4ade80;
}

.summary-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, .12);
}

.transaction-tabs-wrapper {
  margin-bottom: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.transaction-tabs-wrapper::-webkit-scrollbar {
  display: none;
}

.transaction-tabs {
  display: flex;
  gap: 8px;
  padding: 4px;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  width: max-content;
  min-width: 100%;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  padding: 9px 15px;
  border-radius: 12px;
  color: var(--text-mute);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: all .2s ease;
}

.tab-btn i {
  font-size: 11px;
}

.tab-btn:hover {
  color: var(--text);
  background: var(--surface-2);
}

.tab-btn.active {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 6px 16px rgba(107, 77, 255, .3);
}

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

.transaction-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--border);
}

.transaction-item:last-child {
  border-bottom: none;
}

.transaction-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.transaction-icon.blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.transaction-icon.green {
  background: var(--green-soft);
  color: var(--green);
}

.transaction-icon.red {
  background: var(--red-soft);
  color: var(--red);
}

.transaction-icon.gold {
  background: var(--gold-soft);
  color: var(--gold);
}

.transaction-icon.orange {
  background: var(--orange-soft);
  color: var(--orange);
}

.transaction-icon.purple {
  background: var(--purple-soft);
  color: var(--purple);
}

.transaction-icon.whatsapp {
  background: rgba(37, 211, 102, .12);
  color: #16a34a;
}

.transaction-icon.telegram {
  background: rgba(44, 165, 224, .12);
  color: #2ca5e0;
}

.transaction-icon.success {
  background: var(--green-soft);
  color: var(--green);
}

.transaction-icon.pending {
  background: var(--orange-soft);
  color: var(--orange);
}

.transaction-icon.failed {
  background: var(--red-soft);
  color: var(--red);
}

.transaction-info {
  flex: 1;
  min-width: 0;
}

.transaction-info h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}

.transaction-info p {
  font-size: 11.5px;
  color: var(--text-mute);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.transaction-date {
  display: block;
  font-size: 10.5px;
  color: var(--text-mute);
  margin-top: 2px;
}

.transaction-amount {
  text-align: right;
  flex-shrink: 0;
}

.transaction-amount span {
  font-size: 14px;
  font-weight: 800;
}

.transaction-amount.credit span {
  color: var(--green);
}

.transaction-amount.debit span {
  color: var(--red);
}

.transaction-amount .amount {
  color: var(--text);
}

.transaction-amount .status {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: var(--r-pill);
}

.transaction-amount .status.pending,
.status-badge.pending {
  color: var(--orange);
  background: var(--orange-soft);
}

.transaction-amount .status.success,
.status-badge.success {
  color: var(--green);
  background: var(--green-soft);
}

.transaction-amount .status.failed,
.status-badge.failed {
  color: var(--red);
  background: var(--red-soft);
}

.status-badge {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--r-pill);
}

/* ============================================================
   PRODUCT CODE PURCHASE (pin_req.php)
   ============================================================ */
.offer-card {
  position: relative;
  background: var(--surface);
  border-radius: 22px;
  padding: 18px;
  margin-bottom: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.offer-ribbon {
  position: absolute;
  top: 12px;
  right: -30px;
  transform: rotate(45deg);
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 4px 34px;
}

.offer-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.offer-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.offer-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}

.offer-content {
  font-size: 12px;
  color: var(--text-mute);
}

.price-breakdown {
  background: var(--surface-2);
  border-radius: 16px;
  padding: 14px;
  margin: 12px 0;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}

.price-label {
  font-size: 12.5px;
  color: var(--text-mute);
}

.price-value {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text);
}

.discount-badge {
  background: var(--green-soft);
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--r-pill);
}

.price-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 0;
}

.qr-section {
  text-align: center;
  margin: 16px 0;
}

.qr-container {
  display: inline-block;
  padding: 14px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 0 0 6px var(--accent-soft), var(--shadow-sm);
}

.qr-image {
  width: 180px;
  height: 180px;
  object-fit: contain;
}

.qr-placeholder {
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b5bbcf;
  font-size: 34px;
}

.qr-instructions {
  margin-top: 18px;
  background: var(--surface-2);
  border-radius: 16px;
  padding: 12px 14px;
  text-align: left;
}

.instruction-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-dim);
  padding: 5px 0;
  font-weight: 500;
}

.instruction-item i {
  color: var(--accent);
  margin-top: 2px;
  flex-shrink: 0;
  width: 14px;
  text-align: center;
}

.request-list {
  padding: 0 20px 16px;
}

.request-item {
  padding: 14px 0;
  border-bottom: 1px dashed var(--border);
  display: flex;
  gap: 12px;
}

.request-item:last-child {
  border-bottom: none;
}

.request-number {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  flex-shrink: 0;
  background: var(--surface-2);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}

.request-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  flex-shrink: 0;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.request-info {
  flex: 1;
  min-width: 0;
}

.request-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.request-header h4 {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text);
}

.request-status {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--r-pill);
}

.request-details {
  font-size: 11.5px;
  color: var(--text-mute);
}

.request-amount-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
  font-size: 12px;
  flex-wrap: wrap;
}

.discount-info {
  color: var(--green);
}

.amount-paid {
  color: var(--text);
  font-weight: 800;
}

.request-slip {
  margin-top: 8px;
}

.request-slip img {
  max-width: 120px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.request-icon.pending {
  background: var(--orange-soft);
  color: var(--orange);
}

.request-icon.approved {
  background: var(--green-soft);
  color: var(--green);
}

.request-icon.rejected {
  background: var(--red-soft);
  color: var(--red);
}

.request-status.pending {
  background: var(--orange-soft);
  color: var(--orange);
}

.request-status.approved {
  background: var(--green-soft);
  color: var(--green);
}

.request-status.rejected {
  background: var(--red-soft);
  color: var(--red);
}

.step-badge {
  background: var(--red-soft);
  color: var(--red);
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-pill);
}

.offer-title h3 {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 2px;
}

.offer-title p {
  font-size: 11.5px;
  color: var(--text-mute);
}

.notes-card {
  background: var(--surface);
  border-radius: 22px;
  padding: 18px 20px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}

.notes-card h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}

.notes-card h4 i {
  color: var(--accent);
}

.notes-card ul {
  list-style: none;
  padding-left: 0;
}

.notes-card li {
  position: relative;
  padding: 5px 0 5px 18px;
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.55;
}

.notes-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 7px;
  height: 7px;
  border-radius: 3px;
  background: var(--grad);
}

/* ============================================================
   SETTINGS (setting.php)
   ============================================================ */
.settings-menu {
  background: var(--surface);
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
  padding: 6px;
}

.settings-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  transition: background .2s ease;
}

.settings-item:hover {
  background: var(--surface-2);
}

.settings-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.settings-icon.purple {
  background: var(--purple-soft);
  color: var(--purple);
}

.settings-icon.blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.settings-icon.green {
  background: var(--green-soft);
  color: var(--green);
}

.settings-icon.orange {
  background: var(--orange-soft);
  color: var(--orange);
}

.settings-info {
  flex: 1;
}

.settings-info h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.settings-info p {
  font-size: 11.5px;
  color: var(--text-mute);
  margin-top: 1px;
}

/* ============================================================
   PROFILE PAGE
   ============================================================ */
.profile-header-card {
  position: relative;
  background: var(--surface);
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}

.profile-cover {
  height: 96px;
  background: var(--grad);
  position: relative;
}

.profile-cover::after {
  content: '';
  position: absolute;
  right: -30px;
  top: -40px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
}

.profile-avatar-section {
  text-align: center;
  padding: 0 20px 22px;
  margin-top: -46px;
  position: relative;
}

.profile-avatar-large {
  position: relative;
  width: 92px;
  height: 92px;
  margin: 0 auto 10px;
}

.profile-avatar-large img {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  object-fit: cover;
  border: 4px solid var(--surface);
  box-shadow: var(--shadow-sm);
}

.avatar-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  border: 3px solid var(--surface);
}

.profile-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

.profile-id {
  font-size: 12px;
  color: var(--accent-light);
  margin-top: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-weight: 700;
}

.profile-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 800;
}

.profile-status i {
  font-size: 6px;
}

.profile-status.active {
  background: var(--green-soft);
  color: var(--green);
}

.profile-status.inactive {
  background: var(--red-soft);
  color: var(--red);
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  padding: 18px 10px;
  text-align: center;
  transition: all .25s ease;
}

.action-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.action-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.action-card span {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
}

.action-card.logout .action-icon {
  background: var(--red-soft);
  color: var(--red);
}

/* Referral CTA card (team.php) */
.referral-cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #101533;
  color: #fff;
  border-radius: 22px;
  padding: 20px 22px;
  margin-bottom: 18px;
  background-image: radial-gradient(260px 160px at 100% 0%, rgba(160, 70, 255, .5), transparent 70%);
}

.cta-content h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.cta-content h3 i {
  color: #ffd166;
}

.cta-content p {
  font-size: 12px;
  color: rgba(255, 255, 255, .7);
}

.cta-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cta-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: #fff;
  transition: transform .2s ease;
}

.cta-btn:hover {
  transform: translateY(-2px);
  color: #fff;
}

.cta-btn.whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
}

.cta-btn.telegram {
  background: linear-gradient(135deg, #2CA5E0, #0088cc);
}

/* Tips / security notes card (setting.php) */
.tips-card {
  background: var(--surface);
  border-radius: 22px;
  padding: 18px 20px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}

.tips-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.tips-header i {
  color: var(--accent);
  font-size: 14px;
}

.tips-header h3 {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}

.tips-list {
  list-style: none;
}

.tips-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.5;
}

.tips-list li i {
  color: var(--green);
  margin-top: 3px;
  flex-shrink: 0;
  font-size: 11px;
}

/* ============================================================
   MISC UTILITY
   ============================================================ */
.text-success {
  color: var(--green);
}

.white {
  color: var(--text);
}

.red-val {
  color: var(--red);
}

@media (min-width:900px) {
  .container {
    max-width: 1060px;
  }

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

/* ============================================================
   USER PANEL THEME — "DARK DRAGON" (amber -> red on dark)
   Applies only to logged-in pages (body.user-panel).
   Landing page and admin panel are unaffected.
   ============================================================ */
body.user-panel {
  /* Surfaces */
  --bg: #0b0b0f;
  --bg-2: #111117;
  --surface: #16161d;
  --surface-2: #1c1c25;
  --surface-3: #24242f;
  --border: rgba(255, 255, 255, .07);
  --border-strong: rgba(255, 255, 255, .14);

  /* Text */
  --text: #f5f3ef;
  --text-dim: #b9b5ad;
  --text-mute: #807c75;

  /* Brand (amber -> red) */
  --accent: #F59E0B;
  --accent-2: #EF4444;
  --accent-light: #FBBF24;
  --accent-soft: rgba(245, 158, 11, .10);
  --accent-soft-strong: rgba(245, 158, 11, .22);
  --grad: linear-gradient(135deg, #F59E0B 0%, #EA580C 55%, #DC2626 100%);
  --grad-warm: linear-gradient(135deg, #FBBF24 0%, #EF4444 100%);
  --on-accent: #ffffff;

  /* Semantic (slightly stronger tints for dark surfaces) */
  --blue-soft: rgba(46, 144, 250, .16);
  --green-soft: rgba(18, 183, 106, .16);
  --red-soft: rgba(240, 68, 56, .16);
  --purple-soft: rgba(122, 90, 248, .16);
  --cyan-soft: rgba(6, 174, 212, .16);
  --gold-soft: rgba(245, 165, 36, .16);
  --orange-soft: rgba(249, 115, 22, .16);

  /* Sidebar */
  --side-bg: #0a0a0d;
  --side-bg-2: #1a120c;
  --side-text: rgba(255, 240, 220, .74);
  --side-mute: rgba(255, 240, 220, .42);
  --side-border: rgba(245, 158, 11, .12);

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .30), 0 6px 18px rgba(0, 0, 0, .35);
  --shadow-md: 0 18px 40px rgba(0, 0, 0, .50);
  --shadow-accent: 0 10px 24px rgba(245, 158, 11, .30);

  background-color: var(--bg);
  background-image:
    radial-gradient(700px 420px at 100% 0%, rgba(239, 68, 68, .10), transparent 70%),
    radial-gradient(600px 400px at 0% 100%, rgba(245, 158, 11, .08), transparent 70%);
  background-attachment: fixed;
  color-scheme: dark;
}

body.user-panel ::-webkit-scrollbar-thumb { background: #3a332b; }

body.user-panel .sidebar {
  background:
    radial-gradient(260px 200px at 100% 0%, rgba(245, 158, 11, .22), transparent 70%),
    linear-gradient(180deg, var(--side-bg-2) 0%, var(--side-bg) 100%);
  border: 1px solid var(--side-border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .55);
}

body.user-panel .sidebar-link.active { box-shadow: 0 8px 20px rgba(245, 158, 11, .35); }
body.user-panel .sidebar-overlay { background: rgba(0, 0, 0, .6); }

body.user-panel .topbar {
  background: rgba(11, 11, 15, .82);
  border-bottom: 1px solid var(--border);
}

body.user-panel .mobile-bottom-nav {
  background-color: #16161d;
  background-image: linear-gradient(147deg, #1c1c25 0%, #16161d 100%);
  border: 1px solid rgba(245, 158, 11, .18);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .55);
}

body.user-panel .auth-btn.register-btn:hover,
body.user-panel .submit-btn:hover { box-shadow: 0 16px 32px rgba(245, 158, 11, .38); }

body.user-panel .form-group input,
body.user-panel .form-group textarea,
body.user-panel .form-input,
body.user-panel .form-select { color: var(--text); }

body.user-panel .form-group input::placeholder,
body.user-panel .form-group textarea::placeholder,
body.user-panel .form-input::placeholder { color: #6f6a62; }

body.user-panel .form-group input:focus,
body.user-panel .form-group textarea:focus,
body.user-panel .form-input:focus,
body.user-panel .form-select:focus { background: var(--surface-3); }

body.user-panel .form-select option { background: var(--surface); color: var(--text); }

body.user-panel .file-upload-box { border-color: rgba(245, 158, 11, .30); }

body.user-panel .table-modern tbody tr:hover td,
body.user-panel .page-content table tbody tr:hover td { background: rgba(245, 158, 11, .05); }

body.user-panel .modal-overlay { background: rgba(0, 0, 0, .65); }

body.user-panel .toast { background: #24242f; border: 1px solid rgba(245, 158, 11, .25); }

body.user-panel .page-header-card { box-shadow: 0 14px 34px rgba(245, 158, 11, .22); }

body.user-panel .earnings-summary-card,
body.user-panel .referral-cta-card {
  background-color: #1a120c;
  background-image: radial-gradient(300px 160px at 100% 0%, rgba(239, 68, 68, .35), transparent 70%);
  border: 1px solid rgba(245, 158, 11, .18);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .45);
}

body.user-panel .tab-btn.active { box-shadow: 0 6px 16px rgba(245, 158, 11, .3); }
body.user-panel .status-dot.inactive { background: #4a4640; }

/* ---- Page-level inline style overrides (user panel only) ---- */
body.user-panel {
  --up-primary: #F59E0B;
  --up-primary-soft: rgba(245, 158, 11, .14);
  --up-accent: #EF4444;
  --up-dark: #f5f3ef;
  --up-muted: #9a958d;
  --up-surface: #16161d;
  --up-bg: #0b0b0f;
  --up-border: rgba(255, 255, 255, .08);
  --up-shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
  --up-shadow-hover: 0 24px 48px -16px rgba(245, 158, 11, .28);
}

body.user-panel .page-header-icon { background: var(--grad) !important; }
body.user-panel .product-grid { background: var(--surface-2) !important; }
body.user-panel .notes-card { background: linear-gradient(135deg, #1c1610, #1a120c) !important; border-color: rgba(245, 158, 11, .18) !important; }

body.user-panel .activation-select:focus,
body.user-panel .activation-input:focus { background: var(--surface-3) !important; }
body.user-panel .activation-select,
body.user-panel .activation-input { background: var(--surface-2); color: var(--text); }

body.user-panel .product-option { background: var(--surface) !important; }
body.user-panel .captcha-refresh { background: var(--surface-2) !important; color: var(--text); }

/* ---- Public site (landing) — Dark Dragon ---- */
body.user-panel .site-navbar {
  background: rgba(11, 11, 15, .82);
  border-bottom: 1px solid rgba(245, 158, 11, .14);
}
body.user-panel .site-navbar .logo-icon img { background: transparent; }
body.user-panel .site-nav-links a:hover { background: rgba(245, 158, 11, .10); }
body.user-panel .auth-btn.login-btn { border: 1px solid rgba(245, 158, 11, .30); }
body.user-panel .auth-btn.register-btn,
body.user-panel .auth-btn.register-btn:hover { box-shadow: 0 12px 26px rgba(239, 68, 68, .35); }
body.user-panel .site-footer {
  background: #08080b;
  color: rgba(255, 240, 220, .62);
  border-top: 1px solid rgba(245, 158, 11, .14);
}
body.user-panel .site-footer a:hover { color: var(--accent-light); }