
/* ===========================
   DESIGN TOKENS
=========================== */
:root {
  --navy:        #050d1a;
  --navy-mid:    #0a1628;
  --navy-light:  #0f2040;
  --blue-deep:   #0d1f3c;
  --gold:        #d4a843;
  --gold-light:  #f0cc6e;
  --gold-pale:   #fae9b0;
  --violet:      #7b3fe4;
  --violet-light:#a567f5;
  --violet-pale: #c9a8ff;
  --glass-bg:    rgba(255,255,255,0.045);
  --glass-bdr:   rgba(212,168,67,0.18);
  --glass-bdr2:  rgba(123,63,228,0.22);
  --text-main:   #f0e8d5;
  --text-muted:  #8a96b0;
  --text-dim:    #4a5568;
  --shadow-gold: 0 0 40px rgba(212,168,67,0.12);
  --shadow-vio:  0 0 40px rgba(123,63,228,0.18);
  --primary-color: var(--violet);
  --primary-light: var(--violet-light);
  --secondary-color: var(--gold);
  --warning-color: var(--gold);
  --success-color: #22c55e;
  --dark-color: var(--text-main);
  --gray: var(--text-muted);
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--navy);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ========== ANIMATED BACKGROUND ========== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(123,63,228,0.22) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 80%, rgba(212,168,67,0.14) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(13,31,60,0.9) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle 1px at 20% 30%, rgba(212,168,67,0.4) 0%, transparent 1px),
    radial-gradient(circle 1px at 80% 15%, rgba(165,103,245,0.5) 0%, transparent 1px),
    radial-gradient(circle 1px at 60% 70%, rgba(212,168,67,0.3) 0%, transparent 1px),
    radial-gradient(circle 1px at 35% 85%, rgba(165,103,245,0.4) 0%, transparent 1px),
    radial-gradient(circle 1px at 90% 50%, rgba(212,168,67,0.3) 0%, transparent 1px);
  background-size: 400px 400px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
  animation: starDrift 30s linear infinite;
}

@keyframes starDrift {
  from { background-position: 0 0; }
  to   { background-position: 400px 400px; }
}

/* Floating orbs */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
  animation: orbFloat 12s ease-in-out infinite;
}
.orb-1 { width: 500px; height: 500px; background: var(--violet); top: -150px; left: -100px; animation-duration: 14s; }
.orb-2 { width: 400px; height: 400px; background: var(--gold); bottom: -100px; right: -80px; animation-duration: 18s; animation-delay: -6s; }
.orb-3 { width: 300px; height: 300px; background: #1a5fc4; top: 40%; left: 40%; animation-duration: 10s; animation-delay: -3s; }

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -40px) scale(1.05); }
  66%       { transform: translate(-20px, 20px) scale(0.95); }
}

/* ========== GLASS UTILITY ========== */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--glass-bdr);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.07);
}

.glass-violet {
  background: rgba(123,63,228,0.08);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--glass-bdr2);
  box-shadow: var(--shadow-vio), inset 0 1px 0 rgba(165,103,245,0.1);
}

/* ========== LOADING SCREEN ========== */
#loadingScreen {
  position: fixed;
  inset: 0;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.3s ease-out;
}

#loadingScreen.hidden {
  opacity: 0;
  display: none !important;
  pointer-events: none;
}

.loading-inner { text-align: center; }

.loading-ring {
  width: 70px; height: 70px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--gold);
  border-right-color: var(--violet-light);
  animation: spin 1.2s cubic-bezier(0.4,0,0.2,1) infinite;
  margin: 0 auto 20px;
  position: relative;
}

.loading-ring::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-bottom-color: var(--gold-light);
  animation: spin 0.8s cubic-bezier(0.4,0,0.2,1) infinite reverse;
}

.logo-circle {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--violet) 0%, var(--gold) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: white;
  box-shadow: 0 0 30px rgba(212,168,67,0.35), 0 0 60px rgba(123,63,228,0.2);
  position: relative;
}

.logo-circle::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--gold), var(--violet), var(--gold));
  z-index: -1;
  opacity: 0.5;
  animation: borderPulse 3s ease-in-out infinite;
}

@keyframes borderPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%       { opacity: 0.8; transform: scale(1.05); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========== CONTAINER / LOGIN PAGE ========== */
.container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  max-width: 980px;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(212,168,67,0.12);
  animation: wrapperIn 0.8s cubic-bezier(0.16,1,0.3,1) both;
}

@keyframes wrapperIn {
  from { opacity: 0; transform: translateY(40px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---- Brand side ---- */
.brand-section {
  background: linear-gradient(160deg, rgba(123,63,228,0.25) 0%, rgba(10,22,40,0.95) 60%, rgba(212,168,67,0.12) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(212,168,67,0.12);
  padding: 52px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  position: relative;
  overflow: hidden;
}

.brand-section::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,168,67,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.brand-section::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123,63,228,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-container h1 {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.04em;
}

.logo-container h1 span {
  background: linear-gradient(90deg, var(--gold), var(--violet-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-content h2 {
  font-family: 'Cinzel', serif;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.3;
  background: linear-gradient(135deg, var(--text-main), var(--gold-pale));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 14px;
}

.brand-content > p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 28px;
}

.features { display: flex; flex-direction: column; gap: 14px; }

.feature {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(212,168,67,0.1);
  transition: all 0.3s ease;
  animation: featureIn 0.6s cubic-bezier(0.16,1,0.3,1) both;
}

.feature:nth-child(1) { animation-delay: 0.2s; }
.feature:nth-child(2) { animation-delay: 0.35s; }
.feature:nth-child(3) { animation-delay: 0.5s; }

@keyframes featureIn {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.feature:hover {
  background: rgba(212,168,67,0.08);
  border-color: rgba(212,168,67,0.25);
  transform: translateX(4px);
}

.feature i {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--violet), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: white;
  flex-shrink: 0;
}

.feature span { font-size: 13px; color: var(--text-muted); font-weight: 500; }

/* ---- Login form side ---- */
.login-section {
  background: rgba(5,13,26,0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 52px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-form-container {
  width: 100%;
  max-width: 340px;
}

.form-header { margin-bottom: 32px; }

.form-header h2 {
  font-family: 'Cinzel', serif;
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(90deg, var(--gold-light), var(--violet-pale));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.form-header p { color: var(--text-muted); font-size: 13px; }

.input-group { margin-bottom: 20px; }

.input-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 9px;
}

.input-group label i { color: var(--gold); font-size: 11px; }

.input-group input,
.password-input input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(212,168,67,0.15);
  border-radius: 14px;
  color: var(--text-main);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  outline: none;
}

.input-group input:focus,
.password-input input:focus {
  border-color: var(--gold);
  background: rgba(212,168,67,0.07);
  box-shadow: 0 0 0 3px rgba(212,168,67,0.1), 0 0 20px rgba(212,168,67,0.08);
}

.input-group input::placeholder,
.password-input input::placeholder {
  color: rgba(138,150,176,0.5);
}

.password-input {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  transition: color 0.2s;
}
.toggle-password:hover { color: var(--gold); }

.error-message {
  display: none;
  padding: 10px 16px;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 10px;
  color: #f87171;
  font-size: 13px;
  margin-bottom: 16px;
}

.login-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--violet) 0%, var(--gold) 100%);
  border: none;
  border-radius: 14px;
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(123,63,228,0.35);
}

.login-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold) 0%, var(--violet) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.login-btn:hover::before { opacity: 1; }
.login-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(123,63,228,0.5); }
.login-btn:active { transform: translateY(0); }
.login-btn span, .login-btn i { position: relative; z-index: 1; }

.register-link {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
}
.register-link a {
  color: var(--gold-light);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.register-link a:hover { color: var(--violet-pale); }

.demo-credentials {
  margin-top: 22px;
  padding: 16px 18px;
  background: rgba(123,63,228,0.08);
  border: 1px solid rgba(123,63,228,0.2);
  border-radius: 14px;
}

.demo-credentials h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--violet-pale);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.demo-credentials p { font-size: 12px; color: var(--text-muted); line-height: 1.7; }
.demo-credentials strong { color: var(--gold-light); }

/* ========== WALLET MODAL ========== */
#walletModal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5,13,26,0.8);
  backdrop-filter: blur(6px);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: linear-gradient(160deg, rgba(15,32,64,0.98) 0%, rgba(5,13,26,0.98) 100%);
  border: 1px solid rgba(212,168,67,0.2);
  border-radius: 24px;
  padding: 36px;
  max-width: 480px;
  width: 90%;
  position: relative;
  box-shadow: 0 0 80px rgba(123,63,228,0.2), 0 30px 60px rgba(0,0,0,0.5);
  animation: modalFadeIn 0.4s cubic-bezier(0.16,1,0.3,1) both;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-30px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

#closeModal {
  position: absolute; top: 18px; right: 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
#closeModal:hover { background: rgba(239,68,68,0.2); color: #f87171; border-color: rgba(239,68,68,0.3); }

.modal-icon-wrap {
  text-align: center;
  margin-bottom: 24px;
}

.modal-lock-icon {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, var(--violet), var(--gold));
  border-radius: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: white;
  box-shadow: 0 0 40px rgba(212,168,67,0.3);
  animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% { box-shadow: 0 0 30px rgba(212,168,67,0.3); }
  50%       { box-shadow: 0 0 60px rgba(123,63,228,0.5); }
}

.modal-info-box {
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(212,168,67,0.06);
  border-left: 3px solid var(--gold);
  margin-bottom: 20px;
}

.modal-info-box h4 {
  color: var(--gold-light);
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-info-box ul { list-style: none; }

.modal-info-box li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.modal-info-box li i { color: var(--violet-light); margin-top: 2px; font-size: 12px; }

#demoAccessBox {
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 20px;
  display: none;
}

#demoAccessBox h4 {
  color: #86efac;
  margin-bottom: 8px;
  font-size: 13px;
  display: flex; align-items: center; gap: 8px;
}
#demoAccessBox p { color: var(--text-muted); font-size: 13px; margin-bottom: 14px; }

#demoAccessBtn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s;
}
#demoAccessBtn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(34,197,94,0.3); }

#backToDashboard {
  display: block;
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--violet), var(--gold));
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  transition: all 0.3s;
}
#backToDashboard:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(123,63,228,0.4); }

/* ========== PARTNER PAGE ========== */
.partner-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
}

.partner-container {
  width: 100%;
  max-width: 700px;
}

.partner-content { display: flex; flex-direction: column; gap: 20px; }

.partner-status-box {
  padding: 24px;
  border-radius: 20px;
  background: rgba(212,168,67,0.07);
  border: 1px solid rgba(212,168,67,0.2);
  box-shadow: var(--shadow-gold);
}

.partner-status-box h3 {
  display: flex; align-items: center; gap: 10px;
  font-size: 16px; font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 10px;
}
.partner-status-box p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

.partner-benefits {
  padding: 24px;
  border-radius: 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-bdr);
  backdrop-filter: blur(16px);
}

.partner-benefits h3 {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Cinzel', serif;
  font-size: 16px;
  color: var(--gold-light);
  margin-bottom: 20px;
}

.benefit-list { display: flex; flex-direction: column; gap: 14px; }

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.3s;
}
.benefit-item:hover { background: rgba(123,63,228,0.1); border-color: rgba(123,63,228,0.2); transform: translateX(4px); }

.benefit-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--violet) 0%, var(--gold) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: white; flex-shrink: 0;
}

.benefit-text h4 { font-size: 14px; font-weight: 600; color: var(--text-main); margin-bottom: 4px; }
.benefit-text p  { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

.payment-section {
  padding: 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(123,63,228,0.12) 0%, rgba(212,168,67,0.08) 100%);
  border: 1px solid rgba(212,168,67,0.18);
}

.payment-section h3 {
  display: flex; align-items: center; gap: 10px;
  font-size: 16px; color: var(--text-main);
  margin-bottom: 18px;
}

.price-display { text-align: center; margin-bottom: 20px; }
.price-display .amount { font-family: 'Cinzel', serif; font-size: 26px; color: var(--gold-light); font-weight: 700; }
.price-display .period { font-size: 13px; color: var(--text-muted); margin-top: 6px; }

.payment-button {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: white;
  border: none;
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.3s;
}
.payment-button:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(34,197,94,0.35); }

.request-sent-box {
  padding: 24px;
  border-radius: 20px;
  text-align: center;
  background: rgba(212,168,67,0.07);
  border: 1px solid rgba(212,168,67,0.2);
}
.request-sent-box i  { font-size: 36px; color: var(--gold); margin-bottom: 14px; display: block; animation: spin 4s linear infinite; }
.request-sent-box h3 { font-size: 16px; color: var(--gold-light); margin-bottom: 8px; }
.request-sent-box p  { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ========== DASHBOARD ========== */
.dashboard-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: rgba(5,13,26,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(212,168,67,0.1);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100vh;
}

.sidebar-menu {
  list-style: none;
  margin-top: 10px;
}

.sidebar-menu li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
  border: 1px solid transparent;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
  background: rgba(212,168,67,0.1);
  color: var(--gold-light);
  border-color: rgba(212,168,67,0.15);
}

.sidebar-menu li a i {
  width: 20px;
  text-align: center;
  font-size: 15px;
}

/* Dashboard container */
.dashboard-container {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-radius: 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(18px);
  border: 1px solid var(--glass-bdr);
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--violet), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: white;
}

.user-details h3 { font-size: 14px; font-weight: 600; color: var(--text-main); }
.user-details p  { font-size: 12px; color: var(--text-muted); }

.logout-btn {
  padding: 9px 18px;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: 10px;
  color: #f87171;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  display: flex; align-items: center; gap: 8px;
  transition: all 0.3s;
}
.logout-btn:hover { background: rgba(239,68,68,0.2); border-color: rgba(239,68,68,0.4); transform: translateY(-1px); }

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* Cards */
.dashboard-card {
  background: var(--glass-bg);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--glass-bdr);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.06);
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  overflow: hidden;
}

.dashboard-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,168,67,0.4), transparent);
}

.dashboard-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212,168,67,0.3);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 30px rgba(212,168,67,0.08);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-title i {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--violet) 0%, var(--gold) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  color: white;
}

/* Points display */
.points-display { text-align: center; padding: 10px 0; }
.points-label   { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.points-value   { font-family: 'Cinzel', serif; font-size: 52px; font-weight: 700; background: linear-gradient(135deg, var(--gold), var(--violet-pale)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; }
.points-subtext { font-size: 12px; color: var(--text-muted); margin-top: 10px; }

/* Stats container */
.stats-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card {
  padding: 18px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  text-align: center;
  transition: all 0.3s;
}
.stat-card:hover { background: rgba(212,168,67,0.06); border-color: rgba(212,168,67,0.15); }

.stat-success { border-color: rgba(34,197,94,0.2) !important; }
.stat-pending { border-color: rgba(234,179,8,0.2) !important; }

.stat-value   { font-family: 'Cinzel', serif; font-size: 30px; font-weight: 700; background: linear-gradient(135deg, var(--gold), var(--violet-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label   { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 4px; }

/* Referral code */
.referral-code-card {
  padding: 18px;
  border-radius: 14px;
  background: rgba(123,63,228,0.08);
  border: 1px solid rgba(123,63,228,0.2);
  text-align: center;
}

.code-display {
  font-family: 'Cinzel', serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold-light);
  padding: 10px 0;
  text-shadow: 0 0 20px rgba(212,168,67,0.4);
}

.points-actions { margin-top: 14px; }

/* Buttons */
.dashboard-btn {
  padding: 10px 20px;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--violet), var(--gold));
  color: white;
  box-shadow: 0 4px 16px rgba(123,63,228,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(123,63,228,0.45); }

.btn-secondary {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-muted);
}
.btn-secondary:hover { background: rgba(212,168,67,0.1); border-color: rgba(212,168,67,0.2); color: var(--gold-light); }

/* Purchase stats */
.purchase-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.purchase-stat-card {
  padding: 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s;
}
.purchase-stat-card:hover { background: rgba(212,168,67,0.05); }

.stat-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--violet), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: white; flex-shrink: 0;
}
.stat-icon.danger { background: linear-gradient(135deg, #dc2626, #f97316); }

.stat-content { flex: 1; }
.stat-number { font-family: 'Cinzel', serif; font-size: 22px; font-weight: 700; color: var(--gold-light); }
.stat-text   { font-size: 11px; color: var(--text-muted); }

/* Plan breakdown */
.plan-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.plan-stat-box {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s;
}
.plan-stat-box:hover { border-color: rgba(212,168,67,0.15); background: rgba(212,168,67,0.04); }

.plan-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--violet) 0%, var(--gold) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: white; flex-shrink: 0;
}

.plan-count { font-size: 18px; font-weight: 700; color: var(--gold-light); }
.plan-name  { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* Earnings card / withdrawal */
.total-earnings-card {
  background: linear-gradient(135deg, rgba(123,63,228,0.12) 0%, rgba(212,168,67,0.08) 100%) !important;
  border-color: rgba(212,168,67,0.2) !important;
  border-radius: 16px;
  padding: 16px !important;
  margin-top: 10px;
}

.withdrawal-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--violet) 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(212,168,67,0.2);
}
.withdrawal-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(212,168,67,0.35); filter: brightness(1.1); }

/* Commission card */
.commission-card { grid-column: span 2; }

/* Full view pages */
.full-view-container {
  display: none;
  position: relative;
  z-index: 1;
  padding: 30px 24px;
  min-height: 100vh;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-bdr);
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.3s;
  margin-bottom: 24px;
}
.back-btn:hover { color: var(--gold-light); border-color: rgba(212,168,67,0.25); background: rgba(212,168,67,0.06); }

.full-view-table {
  width: 100%;
  border-collapse: collapse;
}
.full-view-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  border-bottom: 1px solid rgba(212,168,67,0.15);
}
.full-view-table td {
  padding: 13px 16px;
  font-size: 13px;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.full-view-table tr:hover td { background: rgba(212,168,67,0.04); }

/* Commission header */
.commission-header { color: var(--gold-light) !important; }

/* App option cards */
.app-option-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border-radius: 22px;
  padding: 36px 28px;
  text-align: center;
  border: 1px solid var(--glass-bdr);
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.app-option-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(123,63,228,0.08), rgba(212,168,67,0.05));
  opacity: 0;
  transition: opacity 0.4s;
}

.app-option-card:hover { transform: translateY(-8px); border-color: rgba(212,168,67,0.3); box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 30px rgba(212,168,67,0.1); }
.app-option-card:hover::before { opacity: 1; }

.app-option-card.coming-soon { opacity: 0.6; }
.app-option-card.coming-soon:hover { transform: none; cursor: not-allowed; box-shadow: var(--shadow); }

.app-icon {
  width: 72px; height: 72px;
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
  color: white;
  font-size: 28px;
  background: linear-gradient(135deg, var(--violet), var(--gold));
  box-shadow: 0 8px 24px rgba(123,63,228,0.3);
}

.app-option-card h3 { font-family: 'Cinzel', serif; font-size: 20px; font-weight: 700; color: var(--text-main); margin-bottom: 10px; }
.app-option-card p  { color: var(--text-muted); line-height: 1.6; font-size: 14px; margin-bottom: 22px; min-height: 48px; }

.app-features { display: flex; flex-direction: column; gap: 8px; margin-bottom: 26px; text-align: left; }
.app-features span { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 13px; }
.app-features i    { color: var(--gold); font-size: 11px; }

.select-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--violet), var(--gold));
  color: white;
  border: none;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(123,63,228,0.3);
}
.select-btn:hover { filter: brightness(1.1); transform: translateY(-2px); }
.coming-soon .select-btn { background: rgba(100,100,120,0.3); box-shadow: none; cursor: not-allowed; }

.coming-soon-badge {
  position: absolute;
  top: 18px; right: 18px;
  background: linear-gradient(135deg, var(--gold), var(--violet-light));
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .login-wrapper { grid-template-columns: 1fr; }
  .brand-section { display: none; }
  .login-section { padding: 40px 28px; }
  .dashboard-wrapper { flex-direction: column; }
  .sidebar { width: 100%; min-height: auto; flex-direction: row; padding: 14px 16px; overflow-x: auto; }
  .sidebar-menu { display: flex; flex-direction: row; margin-top: 0; }
  .commission-card { grid-column: span 1; }
}

/* ========== ANIMATIONS - entry ========== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dashboard-card {
  animation: fadeUp 0.5s cubic-bezier(0.16,1,0.3,1) both;
}
.dashboard-card:nth-child(1) { animation-delay: 0.05s; }
.dashboard-card:nth-child(2) { animation-delay: 0.1s; }
.dashboard-card:nth-child(3) { animation-delay: 0.15s; }
.dashboard-card:nth-child(4) { animation-delay: 0.2s; }
.dashboard-card:nth-child(5) { animation-delay: 0.25s; }

@media (max-width: 768px) {
  .dashboard-wrapper {
    flex-direction: column;
    padding-bottom: 70px; /* Space for bottom nav */
  }

  .sidebar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    min-height: auto;
    background: rgba(5, 13, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: none;
    border-top: 1px solid rgba(212, 168, 67, 0.15);
    padding: 8px 12px;
    z-index: 1000;
    flex-direction: row;
    justify-content: space-around;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
  }

  .sidebar .logo-container {
    display: none !important;
  }

  .sidebar-menu {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    width: 100%;
    margin: 0;
    gap: 8px;
  }

  .sidebar-menu li {
    flex: 1;
    text-align: center;
  }

  .sidebar-menu li a {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 8px 6px;
    font-size: 11px;
    border-radius: 10px;
    text-align: center;
  }

  .sidebar-menu li a i {
    font-size: 18px;
    width: auto;
    margin: 0;
  }

  .dashboard-container {
    padding: 16px;
    margin-bottom: 0;
    padding-bottom: 70px;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
  }

  .dashboard-header > div:last-child {
    width: 100%;
    justify-content: space-between;
  }

  .user-info {
    flex: 1;
  }

  .logout-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
}

/* For very small devices */
@media (max-width: 480px) {
  .sidebar-menu li a {
    font-size: 10px;
    padding: 6px 4px;
  }

  .sidebar-menu li a i {
    font-size: 16px;
  }

  .dashboard-card {
    padding: 16px;
  }

  .points-value {
    font-size: 40px;
  }

  .stats-container,
  .purchase-stats-grid,
  .plan-breakdown-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .commission-card {
    grid-column: span 1;
  }

  .plan-breakdown-grid {
    display: flex;
    flex-wrap: wrap;
  }

  .plan-stat-box {
    flex: 1 1 calc(50% - 8px);
    min-width: 110px;
  }
}

/* ========== NOTIFICATION ICON & PANEL STYLES ========== */

.dashboard-card .notification-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all 0.3s ease;
}

.dashboard-card .notification-icon:hover {
    background: rgba(212, 168, 67, 0.15);
    transform: translateY(-2px);
}

.dashboard-card .notification-icon i {
    font-size: 16px;
    color: var(--gold-light);
}

/* Ensure notification panel appears above card */
.notification-panel {
    z-index: 10000;
}
.dashboard-card .notification-icon {
    position: absolute;
    top: 6px;
    right: 12px;
    width: 36px;
    height: 36px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all 0.3s ease;
}

.dashboard-card .notification-icon:hover {
    background: rgba(212, 168, 67, 0.15);
    transform: translateY(-2px);
}

.dashboard-card .notification-icon i {
    font-size: 16px;
    color: var(--gold-light);
}

/* Ensure notification panel appears above card */
.notification-panel {
    z-index: 10000;
}

/* Red badge always visible */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: 0 0 0 2px #0a1628;
    animation: notificationPulse 1.5s infinite;
}

@keyframes notificationPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.9;
    }
}

/* Notification Panel */
.notification-panel {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 380px;
    max-width: calc(100vw - 40px);
    background: linear-gradient(145deg, rgba(10, 22, 40, 0.98), rgba(5, 13, 26, 0.98));
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(212, 168, 67, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(212, 168, 67, 0.1);
    z-index: 10000;
    overflow: hidden;
    animation: slideDown 0.3s ease-out;
    display: none;
}

.notification-panel.show {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(212, 168, 67, 0.15);
    background: rgba(123, 63, 228, 0.1);
}

.notification-panel-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--gold-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-panel-header h3 i {
    font-size: 14px;
}

.close-notif-panel {
    background: rgba(212, 168, 67, 0.15);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: var(--gold-light);
    cursor: pointer;
    transition: all 0.2s;
}

.close-notif-panel:hover {
    background: rgba(212, 168, 67, 0.3);
    transform: rotate(90deg);
}

.notification-list {
    max-height: 450px;
    overflow-y: auto;
    padding: 8px 0;
}

.notification-list-item {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s;
    cursor: pointer;
}

.notification-list-item:hover {
    background: rgba(212, 168, 67, 0.05);
}

.notification-list-item .notif-text {
    font-size: 13px;
    color: var(--text-main);
    line-height: 1.5;
    margin-bottom: 8px;
}

.notification-list-item .notif-time {
    font-size: 10px;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 5px;
}

.empty-notifications {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-muted);
}

.empty-notifications i {
    font-size: 48px;
    opacity: 0.3;
    margin-bottom: 15px;
    display: block;
}

.notif-loading {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.notif-loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mobile responsive */
@media (max-width: 550px) {
    .notification-panel {
        width: calc(100vw - 30px);
        right: 15px;
        left: 15px;
        top: 70px;
    }
}