/* =========================================================
   UDYATA Infra Developers - Premium Theme
   Ready. Active. Rising.
   ========================================================= */

:root {
  --gold: #D4A017;
  --gold-light: #E8B937;
  --deep-gold: #9C6B00;
  --black: #111111;
  --black-soft: #1d1d1d;
  --white: #F8F8F8;
  --pure-white: #FFFFFF;
  --soft-gray: #F3F3F3;
  --border: #ECECEC;
  --muted: #7A7A7A;
  --text: #2A2A2A;
  --success: #1FB870;
  --danger: #E54B4B;
  --warning: #F5A623;
  --info: #2D7DD2;

  --gold-gradient: linear-gradient(135deg, #E8B937 0%, #D4A017 50%, #9C6B00 100%);
  --gold-gradient-soft: linear-gradient(135deg, #F6E4A4 0%, #E5C36A 100%);
  --dark-gradient: linear-gradient(135deg, #1d1d1d 0%, #111111 100%);

  --shadow-sm: 0 2px 6px rgba(17, 17, 17, 0.04);
  --shadow-md: 0 8px 24px rgba(17, 17, 17, 0.06);
  --shadow-lg: 0 16px 40px rgba(17, 17, 17, 0.08);
  --shadow-gold: 0 10px 24px rgba(212, 160, 23, 0.28);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--soft-gray);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

a { color: var(--deep-gold); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold); }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', 'Poppins', serif;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.01em;
}

.text-gold { color: var(--gold) !important; }
.text-deep-gold { color: var(--deep-gold) !important; }
.text-muted-soft { color: var(--muted) !important; }
.bg-gold { background: var(--gold-gradient) !important; color: #fff !important; }
.bg-soft { background: var(--soft-gray) !important; }

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 12px;
  font-weight: 500;
  padding: 0.65rem 1.4rem;
  transition: all .25s ease;
  border: none;
  letter-spacing: 0.2px;
  line-height: 1.2;
  vertical-align: middle;
}

.btn i {
  line-height: 1;
}

.btn-gold {
  background: var(--gold-gradient);
  color: #fff;
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(212, 160, 23, 0.4);
  color: #fff;
}
.btn-gold:active { transform: translateY(0); }

.btn-outline-gold {
  border: 1.5px solid var(--gold);
  color: var(--deep-gold);
  background: transparent;
}
.btn-outline-gold:hover {
  background: var(--gold-gradient);
  color: #fff;
  border-color: transparent;
}

.btn-dark-luxe {
  background: var(--dark-gradient);
  color: var(--gold-light);
  border: 1px solid rgba(212,160,23,0.25);
}
.btn-dark-luxe:hover { color: #fff; }

.btn-soft {
  background: var(--soft-gray);
  color: var(--black);
}
.btn-soft:hover { background: #e9e9e9; }

/* ===================== Cards ===================== */
.card-premium {
  background: var(--pure-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card-premium:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card-gold-border {
  position: relative;
  overflow: hidden;
}
.card-gold-border::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: var(--gold-gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

/* ===================== Form Controls ===================== */
.form-label { font-weight: 500; color: var(--black); margin-bottom: 0.4rem; font-size: 0.92rem; }
.form-control, .form-select {
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  background: var(--pure-white);
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(212, 160, 23, 0.12);
}
.input-group-text {
  background: var(--soft-gray);
  border: 1px solid var(--border);
  border-right: none;
  color: var(--deep-gold);
  border-radius: 12px 0 0 12px;
}
.input-group .form-control { border-left: none; border-radius: 0 12px 12px 0; }
.password-input-group .form-control {
  border-left: 1px solid var(--border);
  border-radius: 12px 0 0 12px;
}
.password-input-group .password-toggle {
  min-width: 48px;
  justify-content: center;
  border-left: none;
  border-right: 1px solid var(--border);
  border-radius: 0 12px 12px 0;
  background: var(--pure-white);
  cursor: pointer;
}
.password-input-group .password-toggle:hover,
.password-input-group .password-toggle:focus {
  color: var(--gold);
  background: var(--soft-gray);
}
.password-input-group:focus-within .form-control,
.password-input-group:focus-within .password-toggle {
  border-color: var(--gold);
}

.form-check-input:checked { background-color: var(--gold); border-color: var(--gold); }
.form-check-input:focus { box-shadow: 0 0 0 4px rgba(212, 160, 23, 0.15); border-color: var(--gold); }

/* ===================== Brand Logo ===================== */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--black);
  font-size: 1.35rem;
  letter-spacing: 0.5px;
}
.brand-logo .logo-mark {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--gold-gradient);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  box-shadow: var(--shadow-gold);
  position: relative;
}
.brand-logo .logo-mark::after {
  content: "U";
  font-family: 'Playfair Display', serif;
  font-weight: 800;
}
.brand-logo .logo-img {
  width: 50px; height: 50px;
  object-fit: contain;
  border-radius: 12px;
}
.brand-logo .brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-logo .brand-text small { font-family: 'Poppins'; font-size: 0.65rem; color: var(--deep-gold); letter-spacing: 2px; font-weight: 500; }

/* ===================== Auth Layout ===================== */
.auth-shell {
  min-height: 100vh;
  display: flex;
  background: var(--soft-gray);
}
.auth-brand {
  flex: 1;
  background: var(--dark-gradient);
  position: relative;
  color: #fff;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.auth-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(212,160,23,0.18), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(212,160,23,0.12), transparent 40%);
  pointer-events: none;
}
.auth-brand .brand-content { position: relative; z-index: 2; }
.auth-brand .brand-mark {
  width: 150px;
  height: auto;
  border-radius: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-size: 3rem;
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  color: #fff;
  box-shadow: none;
  margin-bottom: 1.6rem;
}
.auth-brand .brand-mark img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 0;
}
.auth-brand h1 {
  color: #fff;
  font-size: 2.6rem;
  margin-bottom: 0.5rem;
}
.auth-brand h1 span { color: var(--gold-light); }
.auth-brand .tagline {
  color: var(--gold-light);
  letter-spacing: 4px;
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 2rem;
}
.auth-brand .lead-text { color: rgba(255,255,255,0.78); font-size: 1.05rem; max-width: 460px; }
.auth-brand .feature-list { list-style: none; padding: 0; margin: 2rem 0 0; }
.auth-brand .feature-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.8rem;
}
.auth-brand .feature-list i {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: rgba(212,160,23,0.15);
  color: var(--gold-light);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
}
.auth-brand .footer-note {
  position: relative; z-index: 2;
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
}

.auth-form {
  flex: 1;
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-form-card {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}
.auth-form-card h2 { font-size: 1.8rem; margin-bottom: 0.3rem; }
.auth-form-card .sub { color: var(--muted); margin-bottom: 1.8rem; }

@media (max-width: 991.98px) {
  .auth-shell { flex-direction: column; }
  .auth-brand { padding: 2rem; min-height: 280px; }
  .auth-brand h1 { font-size: 2rem; }
  .auth-brand .feature-list { display: none; }
  .auth-form { padding: 1.5rem; }
  .auth-form-card { padding: 1.8rem; }
}

/* ===================== Stepper ===================== */
.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  position: relative;
  gap: 0.4rem;
}
.stepper .step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  position: relative;
}
.stepper .step .dot {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--soft-gray);
  border: 2px solid var(--border);
  color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 0.9rem;
  transition: all .3s ease;
  z-index: 2;
}
.stepper .step .label {
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
  font-weight: 500;
  display: none;
}
@media (min-width: 768px) { .stepper .step .label { display: block; } }
.stepper .step.active .dot {
  background: var(--gold-gradient);
  color: #fff;
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}
.stepper .step.active .label { color: var(--deep-gold); font-weight: 600; }
.stepper .step.completed .dot { background: var(--success); border-color: var(--success); color: #fff; }
.stepper .step.completed .label { color: var(--success); }
.stepper .step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 60%;
  right: -40%;
  height: 2px;
  background: var(--border);
  z-index: 1;
}
.stepper .step.completed:not(:last-child)::after { background: var(--success); }

.step-panel { display: none; animation: fadeUp .35s ease; }
.step-panel.active { display: block; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Password strength */
.password-strength {
  height: 6px;
  border-radius: 3px;
  background: var(--soft-gray);
  overflow: hidden;
  margin-top: 0.5rem;
}
.password-strength .bar {
  height: 100%;
  width: 0%;
  background: var(--danger);
  transition: width .3s ease, background .3s ease;
}
.password-feedback { font-size: 0.78rem; margin-top: 0.3rem; color: var(--muted); }

/* OTP Inputs */
.otp-input-group { display: flex; gap: 0.6rem; justify-content: center; }
.otp-input {
  width: 48px; height: 56px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--soft-gray);
  transition: all .2s ease;
}
.otp-input:focus {
  border-color: var(--gold);
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 4px rgba(212,160,23,0.15);
}

/* ===================== Success Page ===================== */
.success-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--soft-gray);
  padding: 2rem;
}
.success-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  max-width: 540px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.success-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: var(--gold-gradient);
}
.success-icon {
  width: 90px; height: 90px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: var(--gold-gradient);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 2.5rem;
  box-shadow: var(--shadow-gold);
  animation: pop .4s ease;
}
@keyframes pop {
  0% { transform: scale(0); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.user-id-box {
  background: var(--soft-gray);
  border: 1px dashed var(--gold);
  padding: 1rem;
  border-radius: 12px;
  margin: 1.5rem 0;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  letter-spacing: 2px;
  color: var(--deep-gold);
  font-weight: 700;
}

/* ===================== Package Cards ===================== */
.page-shell {
  min-height: 100vh;
  background: var(--soft-gray);
}
.page-header-bar {
  background: #fff;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.warning-banner {
  background: linear-gradient(135deg, #FFF6DA 0%, #FCE7B0 100%);
  border-left: 4px solid var(--gold);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--deep-gold);
}
.warning-banner i { font-size: 1.5rem; }

.package-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all .3s ease;
  overflow: hidden;
}
.package-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.package-card.featured {
  border: 2px solid var(--gold);
  box-shadow: var(--shadow-gold);
}
.package-card .ribbon {
  position: absolute;
  top: 18px; right: -34px;
  background: var(--gold-gradient);
  color: #fff;
  padding: 0.3rem 2.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2px;
  transform: rotate(45deg);
  text-transform: uppercase;
}
.package-card .pkg-icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: var(--gold-gradient-soft);
  color: var(--deep-gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}
.package-card.featured .pkg-icon { background: var(--gold-gradient); color: #fff; }
.package-card h3 { font-size: 1.4rem; margin-bottom: 0.3rem; }
.package-card .pkg-amount {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: var(--deep-gold);
  font-weight: 700;
  line-height: 1;
  margin: 0.6rem 0;
}
.package-card .pkg-amount small { font-size: 0.85rem; color: var(--muted); font-weight: 400; }
.package-card .pkg-features {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0;
  flex-grow: 1;
}
.package-card .pkg-features li {
  padding: 0.45rem 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  border-bottom: 1px dashed var(--border);
  font-size: 0.9rem;
}
.package-card .pkg-features li:last-child { border-bottom: none; }
.package-card .pkg-features i { color: var(--gold); }

.pkg-amount {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: var(--deep-gold);
  font-weight: 700;
  line-height: 1;
}
.pkg-amount small { font-size: 0.85rem; color: var(--muted); font-weight: 400; }

.pkg-features {
  list-style: none;
  padding: 0;
}
.pkg-features li {
  padding: 0.45rem 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  border-bottom: 1px dashed var(--border);
  font-size: 0.9rem;
}
.pkg-features li:last-child { border-bottom: none; }
.pkg-features i { color: var(--gold); }

.pkg-icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: var(--gold-gradient-soft);
  color: var(--deep-gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
}

.mini-metric {
  background: var(--soft-gray);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.85rem;
}
.mini-metric span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  margin-bottom: 0.2rem;
}
.mini-metric strong {
  color: var(--black);
  font-size: 0.95rem;
}

/* Activation timeline */
.timeline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  padding: 1rem 0;
  flex-wrap: wrap;
  gap: 0.5rem;
  overflow: hidden;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.timeline-item {
  flex: 1;
  text-align: center;
  position: relative;
  min-width: 120px;
  z-index: 1;
}
.timeline-item .t-dot {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--soft-gray);
  color: var(--muted);
  border: 2px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.6rem;
  z-index: 2;
  position: relative;
  background-color: #fff;
}
.timeline-item.done .t-dot { background: var(--success); border-color: var(--success); color: #fff; }
.timeline-item.active .t-dot { background: var(--gold-gradient); border-color: var(--gold); color: #fff; box-shadow: var(--shadow-gold); }
.timeline-item .t-label { font-size: 0.8rem; color: var(--muted); font-weight: 500; }
.timeline-item.done .t-label, .timeline-item.active .t-label { color: var(--black); font-weight: 600; }
.timeline-item:not(:last-child)::after { display: none; }

/* ===================== Dashboard Layout ===================== */
.app-shell {
  display: flex;
  min-height: 100vh;
  background: var(--soft-gray);
}
.sidebar {
  width: 260px;
  background: #fff;
  border-right: 1px solid var(--border);
  padding: 1.5rem 1rem;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease;
  overflow-y: auto;
}
.sidebar .brand-logo {
  justify-content: center;
  padding: 0 0.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}
.sidebar .brand-logo .logo-img {
  width: min(220px, 100%);
  height: auto;
  max-height: 150px;
  object-fit: contain;
  border-radius: 0;
}
.sidebar .brand-logo .brand-text { display: none; }
.sidebar .nav-section { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px; color: var(--muted); padding: 1rem 0.7rem 0.5rem; }
.sidebar .nav-link {
  color: var(--text);
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.2rem;
  font-size: 0.92rem;
  transition: all .2s ease;
  position: relative;
}
.sidebar .nav-link i { width: 20px; text-align: center; color: var(--muted); }
.sidebar .nav-link:hover { background: var(--soft-gray); color: var(--black); }
.sidebar .nav-link:hover i { color: var(--deep-gold); }
.sidebar .nav-link.active {
  background: var(--gold-gradient);
  color: #fff;
  box-shadow: var(--shadow-gold);
}
.sidebar .nav-link.active i { color: #fff; }
.sidebar .nav-link .badge { margin-left: auto; }

.sidebar-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.main {
  flex: 1;
  margin-left: 260px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.topbar {
  background: #fff;
  padding: 1rem 1.8rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 90;
}
.topbar .greeting h6 { margin: 0; font-size: 0.78rem; color: var(--muted); font-weight: 400; font-family: 'Poppins'; }
.topbar .greeting h4 { margin: 0; font-size: 1.15rem; font-family: 'Poppins'; font-weight: 600; color: var(--black); }
.topbar .search {
  flex: 1;
  max-width: 380px;
  position: relative;
}
.topbar .search input {
  border-radius: 12px;
  background: var(--soft-gray);
  border: 1px solid transparent;
  padding-left: 2.4rem;
  font-size: 0.9rem;
}
.topbar .search i {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}
.topbar .icon-btn {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--soft-gray);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  position: relative;
  transition: all .2s ease;
}
.topbar .icon-btn:hover { background: #ECECEC; color: var(--deep-gold); }
.topbar .icon-btn .dot {
  position: absolute;
  top: 9px; right: 11px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--danger);
  border: 2px solid #fff;
}

.currency-switcher {
  flex: 0 0 auto;
}
.currency-switcher .form-select {
  min-width: 190px;
  border-radius: 12px;
  background-color: var(--soft-gray);
  border-color: transparent;
  font-size: 0.82rem;
  padding: 0.55rem 2rem 0.55rem 0.75rem;
}
.currency-switcher .form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(212, 160, 23, 0.12);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.4rem 0.8rem 0.4rem 0.4rem;
  background: var(--soft-gray);
  border-radius: 30px;
  cursor: pointer;
  transition: all .2s ease;
}
.user-chip:hover { background: #ECECEC; }
.user-chip .avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
}
.user-chip .info { display: flex; flex-direction: column; line-height: 1.1; }
.user-chip .info strong { font-size: 0.85rem; color: var(--black); }
.user-chip .info small { font-size: 0.7rem; color: var(--muted); }

.content {
  padding: 1.8rem;
  flex: 1;
}

/* Stat cards */
.stat-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 1.4rem;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  height: 100%;
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat-card .stat-head { display: flex; justify-content: space-between; align-items: flex-start; }
.stat-card .stat-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--gold-gradient-soft);
  color: var(--deep-gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.stat-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--gold-gradient-soft);
  color: var(--deep-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex: 0 0 auto;
}
.stat-card .stat-label { font-size: 0.82rem; color: var(--muted); font-weight: 500; }
.stat-card .stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  color: var(--black);
  font-weight: 700;
  line-height: 1.1;
}
.stat-card .stat-trend { font-size: 0.78rem; }
.stat-card .stat-trend.up { color: var(--success); }
.stat-card .stat-trend.down { color: var(--danger); }
.stat-detail-list {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.15rem;
}
.stat-detail-list span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}
.stat-detail-list strong {
  color: var(--black);
  font-weight: 600;
}
.stat-card.featured {
  background: var(--dark-gradient);
  border: none;
  color: #fff;
}
.stat-card.featured .stat-label { color: rgba(255,255,255,0.7); }
.stat-card.featured .stat-value { color: var(--gold-light); }
.stat-card.featured .stat-icon { background: rgba(212,160,23,0.18); color: var(--gold-light); }
.stat-card.featured .stat-detail-list span,
.stat-card.featured .stat-detail-list strong { color: rgba(255,255,255,0.78); }

/* Section card */
.section-card {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 1.5rem;
  height: 100%;
}
.chart-card { min-height: 330px; }
.chart-card canvas {
  width: 100% !important;
  height: 260px !important;
}
.section-card .section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.section-card .section-head h5 { margin: 0; font-size: 1.05rem; font-family: 'Poppins'; font-weight: 600; }
.section-card .section-head .more { font-size: 0.85rem; color: var(--deep-gold); }

/* Transactions list */
.txn-list { list-style: none; padding: 0; margin: 0; }
.txn-list li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem 0;
  border-bottom: 1px dashed var(--border);
}
.txn-list li:last-child { border-bottom: none; }
.txn-list .txn-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--soft-gray);
  color: var(--deep-gold);
  display: flex; align-items: center; justify-content: center;
}
.txn-list .txn-icon.in { background: rgba(31,184,112,0.1); color: var(--success); }
.txn-list .txn-icon.out { background: rgba(229,75,75,0.1); color: var(--danger); }
.txn-list .txn-meta { flex: 1; }
.txn-list .txn-meta strong { display: block; font-size: 0.9rem; color: var(--black); font-weight: 500; }
.txn-list .txn-meta small { color: var(--muted); font-size: 0.75rem; }
.txn-list .txn-amount { font-weight: 600; font-size: 0.95rem; }
.txn-list .txn-amount.in { color: var(--success); }
.txn-list .txn-amount.out { color: var(--danger); }

/* Referral copy */
.referral-share-card {
  height: auto;
}

.referral-box {
  background: var(--soft-gray);
  border: 1px dashed var(--gold);
  padding: 0.7rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.referral-box input {
  background: transparent;
  border: none;
  flex: 1;
  font-size: 0.85rem;
  color: var(--text);
  font-family: monospace;
}
.referral-box input:focus { outline: none; }

.referral-box .btn {
  flex: 0 0 auto;
}

/* Active package mini */
.active-pkg {
  background: var(--dark-gradient);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.active-pkg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(212,160,23,0.25), transparent 50%);
}
.active-pkg .pkg-name {
  font-family: 'Playfair Display', serif;
  color: var(--gold-light);
  font-size: 1.5rem;
  font-weight: 700;
  position: relative;
  z-index: 2;
}
.active-pkg .pkg-meta { color: rgba(255,255,255,0.7); font-size: 0.85rem; position: relative; z-index: 2; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}
.team-grid > div {
  background: var(--soft-gray);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.9rem;
}
.team-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
}
.team-grid strong {
  color: var(--black);
  font-size: 1.15rem;
}

/* Toggle sidebar */
.sidebar-toggle {
  display: none;
  background: var(--soft-gray);
  border: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  color: var(--text);
  align-items: center;
  justify-content: center;
}
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(17,17,17,0.5);
  z-index: 999;
}
.sidebar-overlay.show { display: block; }

@media (max-width: 991.98px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.show { transform: translateX(0); }
  .main { margin-left: 0; }
  .sidebar-toggle { display: inline-flex; }
  .topbar .search { display: none; }
  .currency-switcher .form-select { min-width: 130px; max-width: 150px; }
  .topbar .greeting h4 { font-size: 1rem; }
}

@media (max-width: 575.98px) {
  .topbar { padding: 0.85rem 1rem; }
  .content { padding: 1rem; }
  .user-chip { padding: 0.35rem; }
  .user-chip .info,
  .user-chip .fa-chevron-down { display: none; }
  .stat-card .stat-value { font-size: 1.4rem; }
  .section-card { padding: 1rem; }
  .section-card .section-head { align-items: flex-start; gap: 0.6rem; }
  .timeline::before { display: none; }
  .timeline-item { flex-basis: calc(50% - 0.5rem); }
  .timeline-item::after { display: none; }
  .toast-popup { left: 1rem; right: 1rem; bottom: 1rem; }
}

/* Payment screenshot drop */
.upload-drop {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  background: var(--soft-gray);
  cursor: pointer;
  transition: all .2s ease;
}
.upload-drop:hover, .upload-drop.dragover {
  border-color: var(--gold);
  background: #fff;
}
.upload-drop i { font-size: 2.2rem; color: var(--deep-gold); margin-bottom: 0.5rem; }
.upload-drop h6 { margin: 0.4rem 0; font-family: 'Poppins'; font-weight: 600; }
.upload-drop small { color: var(--muted); }

/* Payment method choices */
.pay-method {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all .2s ease;
  background: #fff;
}
.pay-method:hover { border-color: var(--gold); }
.pay-method input { display: none; }
.pay-method .pm-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--soft-gray);
  display: flex; align-items: center; justify-content: center;
  color: var(--deep-gold);
  font-size: 1.2rem;
}
.pay-method.selected {
  border-color: var(--gold);
  background: #FFFBF1;
  box-shadow: var(--shadow-sm);
}
.pay-method.selected .pm-icon { background: var(--gold-gradient); color: #fff; }

.payment-info-box {
  background: var(--soft-gray);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.2rem;
}
.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px dashed var(--border);
  padding: 0.7rem 0;
}
.detail-row span { color: var(--muted); font-size: 0.82rem; }
.detail-row strong { color: var(--black); font-size: 0.9rem; text-align: right; }
.qr-box {
  margin-top: 1rem;
  min-height: 150px;
  border-radius: 16px;
  background: #fff;
  border: 1px dashed var(--gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: var(--deep-gold);
}
.qr-box i { font-size: 3.2rem; }
.qr-box small { color: var(--muted); }

/* ===================== Module Pages ===================== */
.module-hero {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.module-hero-icon {
  width: 58px; height: 58px;
  border-radius: 16px;
  background: var(--gold-gradient);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  box-shadow: var(--shadow-gold);
  flex: 0 0 auto;
}
.module-hero h2 {
  margin: 0;
  font-size: 1.65rem;
}
.module-hero p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}
.module-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1rem;
}
.module-table {
  margin: 0;
  vertical-align: middle;
}
.module-table thead th {
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}
.module-table tbody td {
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.module-table tbody tr:last-child td { border-bottom: none; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.76rem;
  font-weight: 600;
}
.status-pill.success { background: rgba(31,184,112,0.12); color: var(--success); }
.status-pill.warning { background: rgba(245,166,35,0.14); color: var(--warning); }
.status-pill.gold { background: rgba(212,160,23,0.15); color: var(--deep-gold); }
.status-pill.danger { background: rgba(229,75,75,0.12); color: var(--danger); }
.level-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  height: 100%;
  transition: all .25s ease;
}
.level-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.level-card .level-dot {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--gold-gradient-soft);
  color: var(--deep-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 0.8rem;
}
.profile-cover {
  min-height: 150px;
  background: var(--dark-gradient);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}
.profile-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 10%, rgba(212,160,23,0.28), transparent 42%);
}
.profile-avatar-lg {
  width: 92px; height: 92px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: #fff;
  border: 5px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin-top: -46px;
  position: relative;
  z-index: 2;
}
.settings-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.settings-row:last-child { border-bottom: none; }
.settings-row h6 { font-family: 'Poppins'; margin: 0; font-weight: 600; }
.settings-row p { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.82rem; }

@media (max-width: 767.98px) {
  .module-hero { align-items: flex-start; flex-direction: column; }
  .module-hero h2 { font-size: 1.35rem; }
  .module-table { min-width: 720px; }
}

/* Helpers */
.badge-soft { background: rgba(212,160,23,0.15); color: var(--deep-gold); font-weight: 500; padding: 0.35em 0.7em; border-radius: 8px; }
.badge-success-soft { background: rgba(31,184,112,0.15); color: var(--success); font-weight: 500; padding: 0.35em 0.7em; border-radius: 8px; }
.badge-warn-soft { background: rgba(245,166,35,0.15); color: var(--warning); font-weight: 500; padding: 0.35em 0.7em; border-radius: 8px; }
.referral-verified-card .stat-icon {
  flex: 0 0 auto;
}
.referral-verified-body {
  min-width: 0;
}
.referral-verified-body h6 {
  margin: 0.2rem 0 0.45rem;
  line-height: 1.25;
  word-break: break-word;
}
.referral-user-id {
  display: inline-flex;
  max-width: 100%;
  white-space: normal;
  line-height: 1.3;
  word-break: break-word;
}

.divider-or {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.82rem;
  margin: 1.2rem 0;
}
.divider-or::before, .divider-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.toast-popup {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--black);
  color: #fff;
  padding: 0.9rem 1.3rem;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all .3s ease;
  z-index: 9999;
}
.toast-popup.show { opacity: 1; transform: translateY(0); }
.toast-popup i { color: var(--gold-light); }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(212,160,23,0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(212,160,23,0.5); }
