/* ===== CSS VARIABLES ===== */
:root {
  --primary: #7c10a0;
  --primary-dark: #5a0b74;
  --primary-light: #a020c8;
  --pink: #e91e8c;
  --pink-light: #ff4db8;
  --gradient: linear-gradient(135deg, #7c10a0 0%, #c2185b 100%);
  --gradient-rev: linear-gradient(135deg, #c2185b 0%, #7c10a0 100%);
  --bg: #f4f0f8;
  --bg2: #ffffff;
  --text: #1a0a2e;
  --text-muted: #7c6e8a;
  --border: rgba(124,16,160,0.12);
  --shadow: 0 4px 24px rgba(124,16,160,0.10);
  --shadow-md: 0 8px 32px rgba(124,16,160,0.16);
  --radius: 16px;
  --radius-sm: 10px;
  --bottom-nav-h: 68px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding-bottom: calc(var(--bottom-nav-h) + 16px);
}

h1,h2,h3,h4,h5,.heading { font-family: 'Poppins', sans-serif; }

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

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

/* ===== TOPBAR ===== */
.topbar {
  position: sticky;
  top: 0; z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 60px;
  background: var(--gradient);
  box-shadow: 0 2px 16px rgba(124,16,160,0.3);
}
.topbar-menu {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.topbar-menu:hover { background: rgba(255,255,255,0.25); }
.logo-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  letter-spacing: -0.3px;
}
.logo-text span { color: #ffd700; }
.user-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.5);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  color: #fff;
}

/* ===== SIDEBAR ===== */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: 270px; height: 100vh;
  background: #1a0a2e;
  z-index: 200;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
  box-shadow: 4px 0 32px rgba(0,0,0,0.3);
}
.sidebar.open { transform: translateX(0); }
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 199;
  backdrop-filter: blur(2px);
}
.sidebar-overlay.show { display: block; }
.sidebar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-brand {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  flex: 1;
}
.sidebar-brand span { color: #ffd700; }
.sidebar-close {
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  margin-left: auto;
}
.sidebar-nav { padding: 12px 0; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 20px;
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
  border-radius: 0;
  position: relative;
}
.nav-item:hover, .nav-item.active {
  color: #fff;
  background: rgba(255,255,255,0.07);
}
.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--gradient);
  border-radius: 0 4px 4px 0;
}
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ===== MAIN CONTENT ===== */
.main-content {
  padding: 16px 14px;
  max-width: 540px;
  margin: 0 auto;
}

/* ===== WELCOME BANNER ===== */
.welcome-banner {
  background: var(--gradient);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.welcome-banner::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.welcome-banner::after {
  content: '';
  position: absolute;
  bottom: -20px; right: 40px;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.welcome-sub {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 2px;
}
.welcome-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  color: #fff;
  letter-spacing: -0.5px;
}
.welcome-stats {
  display: flex;
  gap: 0;
  background: rgba(255,255,255,0.12);
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.wstat {
  flex: 1;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.wstat-divider {
  width: 1px;
  background: rgba(255,255,255,0.2);
  margin: 10px 0;
}
.wstat-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.wstat-value {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
}

/* ===== SECTION TITLE ===== */
.section-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 12px;
  margin-top: 4px;
}

/* ===== ACTIONS GRID ===== */
.actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}
.action-card {
  background: var(--bg2);
  border-radius: var(--radius);
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--border);
  cursor: pointer;
}
.action-card:active { transform: scale(0.96); }
.action-card span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
}
.action-icon {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
}
.action-icon svg { width: 22px; height: 22px; color: #fff; }

.ac-purple { background: linear-gradient(135deg,#7c10a0,#a020c8); }
.ac-pink   { background: linear-gradient(135deg,#e91e8c,#ff4db8); }
.ac-violet { background: linear-gradient(135deg,#5c35d9,#7c5cfc); }
.ac-rose   { background: linear-gradient(135deg,#e53935,#ff6d6d); }
.ac-orange { background: linear-gradient(135deg,#f57c00,#ffb300); }
.ac-green  { background: linear-gradient(135deg,#2e7d32,#43a047); }

/* ===== STATS GRID ===== */
.stats-grid {
  display: grid;
  /*grid-template-columns: 1fr 1fr;*/
  gap: 10px;
  margin-bottom: 22px;
}
.stat-card {
  background: var(--bg2);
  border-radius: var(--radius);
  padding: 14px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.2s;
}
.stat-card:active { transform: scale(0.97); }
.stat-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stat-icon svg { width: 18px; height: 18px; color: #fff; }
.stat-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stat-val {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}
.stat-unpaid {
  color: #e53935;
}
.achieved-badge {
  font-size: 0.6rem;
  background: #2e7d32;
  color: #fff;
  border-radius: 20px;
  padding: 2px 7px;
  font-weight: 600;
}

.si-purple { background: linear-gradient(135deg,#7c10a0,#a020c8); }
.si-pink   { background: linear-gradient(135deg,#e91e8c,#ff4db8); }
.si-violet { background: linear-gradient(135deg,#5c35d9,#7c5cfc); }
.si-rose   { background: linear-gradient(135deg,#e53935,#ff6d6d); }
.si-orange { background: linear-gradient(135deg,#f57c00,#ffb300); }
.si-green  { background: linear-gradient(135deg,#2e7d32,#43a047); }
.si-blue   { background: linear-gradient(135deg,#0277bd,#039be5); }
.si-teal   { background: linear-gradient(135deg,#00695c,#00897b); }

/* ===== NEWS TICKER ===== */
.news-ticker {
  background: var(--primary-dark);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-bottom: 22px;
  height: 42px;
}
.ticker-label {
  background: var(--pink);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}
.ticker-label svg { width: 13px; height: 13px; }
.ticker-content {
  overflow: hidden;
  flex: 1;
  white-space: nowrap;
}
.ticker-content span {
  display: inline-block;
  color: #ffd700;
  font-size: 0.78rem;
  font-weight: 500;
  animation: ticker 20s linear infinite;
  padding-left: 100%;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* ===== REFERRAL ===== */
.referral-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}
.referral-card {
  background: var(--bg2);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.referral-header {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 12px;
}
.referral-header svg { width: 15px; height: 15px; }
.referral-actions {
  display: flex;
  gap: 8px;
}
.ref-btn {
  width: 34px; height: 34px;
  border-radius: 10px;
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform 0.15s;
}
.ref-btn:active { transform: scale(0.9); }
.ref-btn svg { width: 16px; height: 16px; color: #fff; }
.ref-wa { background: #25d366; }
.ref-ig { background: linear-gradient(135deg,#e1306c,#f56040,#833ab4); }
.ref-tg { background: #0088cc; }
.ref-cp { background: var(--primary); }

/* ===== CTA ROW ===== */
.cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 10px;
}
.cta-btn {
  border-radius: 50px;
  padding: 14px 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.cta-btn svg { width: 18px; height: 18px; }
.cta-btn:active { transform: scale(0.97); }
.cta-shop {
  background: var(--gradient);
  color: #fff;
}
.cta-shares {
  background: var(--gradient-rev);
  color: #fff;
}

/* ===== BOTTOM NAV ===== */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--bottom-nav-h);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-around;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(124,16,160,0.1);
  z-index: 90;
  padding-bottom: env(safe-area-inset-bottom);
}
.bn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 12px;
  transition: color 0.2s;
}
.bn-item svg { width: 20px; height: 20px; }
.bn-item.active {
  color: var(--primary);
}
.bn-item.active svg { stroke: var(--primary); }
.bn-center {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--gradient);
  border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(124,16,160,0.4);
  cursor: pointer;
  transition: transform 0.2s;
  margin-top: -22px;
}
.bn-center:active { transform: scale(0.92); }
.bn-center svg { width: 22px; height: 22px; color: #fff; }

/* ===== QUICK MENU ===== */
.quick-menu {
  position: fixed;
  bottom: calc(var(--bottom-nav-h) + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #fff;
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.2);
  z-index: 95;
  width: 240px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}
.quick-menu.open {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.qm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.qm-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 6px;
  border-radius: 12px;
  background: var(--bg);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text);
  transition: background 0.15s;
}
.qm-item:active { background: var(--border); }
.qm-item svg { width: 18px; height: 18px; color: var(--primary); }

/* ===== TOAST ===== */
.toast-msg {
  position: fixed;
  bottom: calc(var(--bottom-nav-h) + 20px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #1a0a2e;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 30px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  z-index: 999;
}
.toast-msg.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== PAGE HEADER (inner pages) ===== */
.page-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--gradient);
  position: sticky; top: 60px; z-index: 80;
  margin-bottom: 0;
}
.page-header-back {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.page-header-back svg { width: 18px; height: 18px; }
.page-header-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
}

/* ===== FORM CARD ===== */
.form-card {
  background: var(--bg2);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 14px;
}
.form-label-custom {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
  display: block;
}
.form-control-custom {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg);
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border 0.2s;
  margin-bottom: 14px;
}
.form-control-custom:focus {
  border-color: var(--primary-light);
  background: #fff;
}
.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--gradient);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  box-shadow: 0 4px 16px rgba(124,16,160,0.25);
}
.btn-submit:active { transform: scale(0.98); opacity: 0.9; }

/* ===== INFO BOX ===== */
.info-box {
  background: linear-gradient(135deg,rgba(124,16,160,0.08),rgba(233,30,140,0.06));
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  border-left: 3px solid var(--primary);
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.info-box svg { width: 16px; height: 16px; color: var(--primary); flex-shrink: 0; margin-top: 1px; }
.info-box p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== BALANCE PILL ===== */
.balance-pill {
  background: var(--gradient);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.balance-pill .bp-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.75);
}
.balance-pill .bp-value {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: #fff;
}

/* ===== TABLE ===== */
.table-custom {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.8rem;
}
.table-custom thead tr th {
  background: var(--bg);
  padding: 10px 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.4px;
}
.table-custom tbody tr td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}
.table-custom tbody tr:last-child td { border-bottom: none; }

/* ===== BADGE ===== */
.badge-paid { background: #e8f5e9; color: #2e7d32; border-radius: 20px; padding: 3px 10px; font-size: 0.7rem; font-weight: 700; }
.badge-pending { background: #fff8e1; color: #f57c00; border-radius: 20px; padding: 3px 10px; font-size: 0.7rem; font-weight: 700; }
.badge-unpaid { background: #ffebee; color: #c62828; border-radius: 20px; padding: 3px 10px; font-size: 0.7rem; font-weight: 700; }

/* ===== PRODUCT CARD ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.product-card {
  background: var(--bg2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.2s;
}
.product-card:active { transform: scale(0.97); }
.product-thumb {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.product-thumb-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg,rgba(124,16,160,0.08),rgba(233,30,140,0.06));
  display: flex; align-items: center; justify-content: center;
}
.product-thumb-placeholder svg { width: 40px; height: 40px; color: var(--primary); opacity: 0.4; }
.product-info { padding: 10px; }
.product-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-price {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--primary);
}
.product-btn {
  width: 100%;
  padding: 8px;
  background: var(--gradient);
  color: #fff;
  border: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  cursor: pointer;
  transition: opacity 0.15s;
}
.product-btn:active { opacity: 0.8; }

/* ===== CHAT ===== */
.chat-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 60px - var(--bottom-nav-h));
  overflow: hidden;
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-bubble {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.85rem;
  line-height: 1.5;
  position: relative;
}
.chat-bubble.received {
  background: #fff;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  box-shadow: var(--shadow);
}
.chat-bubble.sent {
  background: var(--gradient);
  color: #fff;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}
.chat-time {
  font-size: 0.6rem;
  color: rgba(0,0,0,0.35);
  margin-top: 3px;
  display: block;
  text-align: right;
}
.chat-bubble.sent .chat-time { color: rgba(255,255,255,0.6); }
.chat-input-bar {
  padding: 10px 14px;
  background: #fff;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  align-items: center;
}
.chat-input {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: 30px;
  padding: 10px 16px;
  font-size: 0.88rem;
  outline: none;
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
}
.chat-send-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--gradient);
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(124,16,160,0.3);
}
.chat-send-btn svg { width: 18px; height: 18px; color: #fff; }

/* ===== MEMBER CARD ===== */
.member-card {
  background: var(--bg2);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.member-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
  flex-shrink: 0;
}
.member-info { flex: 1; }
.member-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
}
.member-id {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ===== EMPTY STATE ===== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 20px;
  text-align: center;
}
.empty-state svg { width: 56px; height: 56px; color: var(--primary); opacity: 0.3; margin-bottom: 14px; }
.empty-state p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== SETTINGS ===== */
.settings-section {
  background: var(--bg2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 14px;
}
.settings-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}
.settings-item:last-child { border-bottom: none; }
.settings-item:active { background: var(--bg); }
.settings-item-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.settings-item-icon svg { width: 16px; height: 16px; color: #fff; }
.settings-item-label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  flex: 1;
}
.settings-item-arrow {
  color: var(--text-muted);
  opacity: 0.5;
}
.settings-item-arrow svg { width: 16px; height: 16px; }

/* ===== SHARE CARD ===== */
.share-card {
  background: var(--gradient);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 14px;
  color: #fff;
  box-shadow: var(--shadow-md);
}
.share-card-label { font-size: 0.78rem; opacity: 0.75; margin-bottom: 4px; }
.share-card-value {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 2rem;
}
.share-card-sub { font-size: 0.78rem; opacity: 0.7; margin-top: 2px; }
.share-divider {
  height: 1px;
  background: rgba(255,255,255,0.2);
  margin: 14px 0;
}
.share-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ===== PACKAGE CARD ===== */
.package-card {
  background: var(--bg2);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}
.package-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  border-radius: 0 0 0 80px;
  background: linear-gradient(135deg,rgba(124,16,160,0.08),rgba(233,30,140,0.06));
}
.package-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 4px;
}
.package-price {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 360px) {
  .actions-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .action-icon { width: 40px; height: 40px; border-radius: 12px; }
  .action-icon svg { width: 18px; height: 18px; }
  .welcome-name { font-size: 1.35rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 540px) {
  .main-content { padding: 20px; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .actions-grid { grid-template-columns: repeat(4, 1fr); }
}
