/* ============================================
   DABUR INVESTMENT - USER STYLES v2
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #C8956C;
  --primary-dark: #A8754C;
  --primary-light: #F0C8A0;
  --primary-bg: #FFF8F4;
  --bg: #F5F6FA;
  --white: #ffffff;
  --text: #1A1D2E;
  --text-muted: #8A94A6;
  --border: #E8ECF4;
  --success: #22C55E;
  --danger: #EF4444;
  --warning: #F59E0B;
  --shadow: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --radius: 16px;
  --radius-sm: 10px;
  --nav-height: 68px;
}

* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }

html, body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  max-width: 480px;
  margin: 0 auto;
  overflow-x: hidden;
}

/* ==================== BOTTOM NAV ==================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: var(--nav-height);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-around;
  border-top: 1px solid var(--border);
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
  flex: 1;
}

.nav-item i { font-size: 20px; transition: transform 0.2s; }
.nav-item.active { color: var(--primary); }
.nav-item.active i { transform: scale(1.1); }

/* ==================== PAGE WRAPPER ==================== */
.page-wrapper { padding-bottom: calc(var(--nav-height) + 10px); min-height: 100vh; }

/* ==================== PAGE HEADER ==================== */
.page-header {
  background: var(--white);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 100;
  font-size: 17px;
  font-weight: 700;
  box-shadow: 0 1px 0 var(--border);
}

.page-header .back-btn {
  position: absolute;
  left: 16px;
  background: var(--bg);
  border: none;
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

/* ==================== AUTH PAGE ==================== */
.auth-page { background: #F0F7F0; }
.auth-wrapper { min-height: 100vh; display: flex; flex-direction: column; }

.auth-banner {
  height: 280px;
  overflow: hidden;
  position: relative;
}
.auth-banner img { width: 100%; height: 100%; object-fit: cover; }
.auth-banner-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #2D6A4F 0%, #40916C 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
}

.logo-circle {
  width: 90px; height: 90px;
  border-radius: 50%;
  background: white;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  overflow: hidden;
}
.logo-circle img { width: 80%; height: 80%; object-fit: contain; }
.logo-text { font-size: 36px; font-weight: 800; color: var(--primary); }
.auth-site-name { color: white; font-size: 22px; font-weight: 700; }

.auth-card {
  background: white;
  border-radius: 28px 28px 0 0;
  flex: 1;
  padding: 28px 24px;
  margin-top: -24px;
  box-shadow: 0 -8px 30px rgba(0,0,0,0.08);
}

.auth-tabs {
  display: flex;
  margin-bottom: 28px;
  background: var(--bg);
  border-radius: 12px;
  padding: 4px;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.2s;
}

.auth-tab.active {
  background: white;
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.auth-form { display: none; }
.auth-form.active { display: block; }

.form-group { margin-bottom: 14px; }

.input-row {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1.5px solid transparent;
  border-radius: 14px;
  padding: 13px 16px;
  gap: 10px;
  transition: border-color 0.2s;
}
.input-row:focus-within { border-color: var(--primary); background: var(--primary-bg); }
.input-row i { color: var(--text-muted); font-size: 18px; width: 20px; }
.input-row input { flex: 1; border: none; background: none; outline: none; font-size: 15px; color: var(--text); font-family: inherit; }
.input-row input::placeholder { color: var(--text-muted); }
.country-code { font-weight: 700; color: var(--primary); border-right: 1.5px solid var(--border); padding-right: 10px; font-size: 14px; }
.toggle-pass-btn { background: none; border: none; cursor: pointer; color: var(--text-muted); padding: 2px; }
.toggle-pass-btn i { font-size: 16px; }

.auth-switch { text-align: center; margin-top: 18px; font-size: 14px; color: var(--text-muted); }
.auth-switch a { color: var(--primary); cursor: pointer; font-weight: 600; }

/* ==================== BUTTONS ==================== */
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  border-radius: 14px;
  padding: 15px 24px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(200,149,108,0.35);
  letter-spacing: 0.3px;
}
.btn-primary:active { transform: scale(0.97); box-shadow: 0 2px 8px rgba(200,149,108,0.25); }
.btn-primary.full-width { width: 100%; }

.btn-secondary {
  background: white;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: 14px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-secondary:active { background: var(--primary-bg); }

/* ==================== HOME BANNER ==================== */
.banner-slider { position: relative; overflow: hidden; height: 200px; }
.banner-slides { display: flex; transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94); height: 100%; }
.banner-slide { min-width: 100%; height: 100%; }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.banner-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex; align-items: center; justify-content: center;
}
.slider-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.slider-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.5); transition: all 0.3s; }
.slider-dot.active { background: white; width: 18px; border-radius: 3px; }

/* ==================== QUICK ACTIONS ==================== */
.quick-actions {
  background: white;
  padding: 20px 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
}

.qa-icon {
  width: 54px; height: 54px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
}
.qa-icon i { font-size: 22px; }
.qa-icon.recharge { background: #EEF2FF; color: #4F46E5; }
.qa-icon.withdraw { background: #FFF7ED; color: #EA580C; }
.qa-icon.online { background: #F0FDF4; color: #16A34A; }
.qa-icon.channel { background: #EFF6FF; color: #2563EB; }

/* ==================== PLAN TABS ==================== */
.plan-tabs {
  display: flex;
  background: white;
  margin: 14px 14px 0;
  border-radius: 14px;
  padding: 5px;
  box-shadow: var(--shadow-sm);
}

.plan-tab {
  flex: 1; padding: 11px;
  text-align: center;
  border-radius: 10px;
  font-size: 14px; font-weight: 600;
  cursor: pointer; color: var(--text-muted);
  transition: all 0.2s;
}
.plan-tab.active { background: var(--primary); color: white; box-shadow: 0 3px 10px rgba(200,149,108,0.3); }

.plan-content { display: none; padding: 14px; }
.plan-content.active { display: block; }

/* ==================== PLAN CARD (improved) ==================== */
.plan-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid rgba(200,149,108,0.1);
}

.plan-card-img-wrap {
  position: relative;
  height: 170px;
  overflow: hidden;
  background: linear-gradient(135deg, #F0F7EE, #E8F5E9);
}
.plan-card-img-wrap img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.3s;
}

.plan-card-body { padding: 16px; }

.plan-card-title {
  font-size: 16px; font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.plan-badge {
  display: inline-block;
  background: var(--primary-bg);
  color: var(--primary);
  font-size: 11px; font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.plan-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.plan-stat-item {
  background: var(--bg);
  border-radius: 12px;
  padding: 12px;
}

.plan-stat-item .value {
  font-size: 18px; font-weight: 700;
  color: var(--primary);
}
.plan-stat-item .label {
  font-size: 11px; color: var(--text-muted);
  margin-top: 2px; font-weight: 500;
}

.plan-footer {
  display: flex; align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.plan-total-profit {
  font-size: 13px; color: var(--text-muted);
}
.plan-total-profit strong { color: var(--success); font-size: 15px; }

.plan-buy-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  border-radius: 12px;
  padding: 10px 22px;
  font-size: 14px; font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  box-shadow: 0 3px 12px rgba(200,149,108,0.35);
  transition: all 0.2s;
}
.plan-buy-btn:active { transform: scale(0.97); }
.plan-buy-btn i { font-size: 16px; }

.plan-presale-btn {
  width: 100%; padding: 12px;
  background: var(--bg); color: var(--text-muted);
  border: none; border-radius: 12px;
  font-size: 14px; font-weight: 600;
  cursor: not-allowed;
  margin-top: 12px;
}

/* ==================== MY PAGE ==================== */
.my-hero {
  background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 50%, #40916C 100%);
  color: white;
  padding: 24px 20px 32px;
  position: relative;
  overflow: hidden;
}
.my-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.my-hero::after {
  content: '';
  position: absolute;
  bottom: -40px; left: -20px;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}

.my-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: white;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
  border: 3px solid rgba(255,255,255,0.3);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.my-avatar img { width: 100%; height: 100%; object-fit: contain; }
.my-avatar i { font-size: 32px; color: var(--primary); }

.my-user-id { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.vip-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(200,149,108,0.25);
  border: 1px solid rgba(200,149,108,0.4);
  color: #FFD9B0;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 12px; font-weight: 600;
}

.my-stats {
  display: flex; gap: 10px; margin-top: 20px;
}
.my-stat {
  flex: 1;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 12px 10px;
  text-align: center;
}
.my-stat-value { font-size: 16px; font-weight: 700; }
.my-stat-label { font-size: 10px; opacity: 0.75; margin-top: 3px; font-weight: 500; }

.menu-list { background: white; margin: 14px; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-sm); }

.menu-item {
  display: flex; align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  text-decoration: none; color: var(--text);
  font-size: 15px; font-weight: 500;
  gap: 14px; transition: background 0.15s;
}
.menu-item:last-child { border-bottom: none; }
.menu-item:active { background: var(--bg); }

.menu-item-icon {
  width: 40px; height: 40px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.menu-item-icon.blue { background: #EEF2FF; color: #4F46E5; }
.menu-item-icon.green { background: #F0FDF4; color: #16A34A; }
.menu-item-icon.orange { background: #FFF7ED; color: #EA580C; }
.menu-item-icon.red { background: #FEF2F2; color: #EF4444; }
.menu-item-icon.purple { background: #FAF5FF; color: #7C3AED; }
.menu-item-icon.gray { background: var(--bg); color: var(--text-muted); }
.menu-item-icon.teal { background: #F0FDFA; color: #0D9488; }

.menu-item span.label { flex: 1; }
.menu-item .arrow { color: var(--text-muted); }

/* ==================== CARDS ==================== */
.card {
  background: white;
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

/* ==================== BALANCE HERO ==================== */
.balance-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 24px 20px 28px;
  border-radius: 0 0 24px 24px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(200,149,108,0.3);
}
.balance-label { font-size: 13px; opacity: 0.85; font-weight: 500; margin-bottom: 8px; }
.balance-amount { font-size: 38px; font-weight: 800; letter-spacing: -0.5px; }

/* ==================== INPUT GROUPS ==================== */
.input-group { margin-bottom: 14px; }
.input-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: var(--text-muted); }
.input-field {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 15px; outline: none;
  transition: border-color 0.2s;
  background: white;
  font-family: inherit;
}
.input-field:focus { border-color: var(--primary); background: var(--primary-bg); }

.input-with-icon { position: relative; }
.input-with-icon i {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted); font-size: 17px;
}
.input-with-icon .input-field { padding-left: 42px; }
.rupee-icon { font-size: 17px; color: var(--text-muted); }

/* ==================== AMOUNT OPTIONS ==================== */
.amount-options {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px; margin-bottom: 16px;
}
.amount-opt {
  background: var(--bg);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  font-size: 15px; font-weight: 700;
  cursor: pointer; transition: all 0.2s;
  color: var(--text);
}
.amount-opt.selected { background: var(--primary-bg); border-color: var(--primary); color: var(--primary); }
.amount-opt:hover { border-color: var(--primary-light); }

/* ==================== PAYMENT OPTIONS ==================== */
.pay-opt {
  display: flex; align-items: center;
  padding: 14px 16px;
  border-radius: 14px;
  margin-bottom: 10px;
  cursor: pointer;
  border: 2px solid var(--border);
  gap: 12px; background: white;
  transition: all 0.2s;
}
.pay-opt.selected { border-color: var(--primary); background: var(--primary-bg); }
.pay-check {
  width: 22px; height: 22px;
  border-radius: 6px;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; transition: all 0.2s;
}
.pay-opt.selected .pay-check { background: var(--primary); border-color: var(--primary); color: white; }

/* ==================== RECORD ITEMS ==================== */
.record-item {
  background: white;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.record-type-badge {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  color: var(--primary);
  background: var(--primary-bg);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.record-body {
  display: flex; justify-content: space-between; align-items: center;
}
.record-date { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.record-amount { font-size: 17px; font-weight: 700; }
.record-amount.positive { color: var(--success); }
.record-amount.negative { color: var(--danger); }

.status-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px; font-weight: 600;
}
.status-pill.success { background: #F0FDF4; color: var(--success); }
.status-pill.pending { background: #FFFBEB; color: var(--warning); }
.status-pill.failed  { background: #FEF2F2; color: var(--danger); }

/* ==================== UPI BOX ==================== */
.upi-box {
  background: var(--primary-bg);
  border: 1.5px dashed var(--primary);
  border-radius: 16px;
  padding: 18px; margin-bottom: 16px;
  text-align: center;
}
.upi-id-text { font-size: 18px; font-weight: 800; color: var(--primary); margin: 8px 0 4px; }
.upi-name-text { font-size: 13px; color: var(--text-muted); }
.upi-qr { width: 140px; height: 140px; margin: 12px auto; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.upi-qr img { width: 100%; height: 100%; object-fit: contain; }
.copy-btn {
  background: var(--primary);
  color: white; border: none;
  border-radius: 10px;
  padding: 8px 18px;
  font-size: 13px; font-weight: 600;
  cursor: pointer; margin-top: 8px;
  transition: background 0.2s;
}

/* ==================== INFO BOX ==================== */
.info-box {
  background: var(--bg);
  border-radius: 12px;
  border-left: 3px solid var(--primary);
  padding: 12px 14px;
  margin-bottom: 10px;
  font-size: 13px; color: var(--text-muted);
}
.info-box.warn { border-left-color: var(--warning); background: #FFFBEB; }
.info-box.danger { border-left-color: var(--danger); background: #FEF2F2; }

/* ==================== SHARE PAGE ==================== */
.share-hero { width: 100%; height: 180px; object-fit: cover; display: block; }
.invite-section { padding: 18px; }
.section-heading {
  font-size: 16px; font-weight: 700;
  color: var(--text);
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
}
.section-heading::before {
  content: ''; width: 4px; height: 20px;
  background: var(--primary); border-radius: 2px;
}

.invite-item {
  display: flex; align-items: center;
  background: white;
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 10px;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.invite-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.invite-icon.link { background: #EEF2FF; color: #4F46E5; }
.invite-icon.code { background: var(--primary-bg); color: var(--primary); }
.invite-info { flex: 1; min-width: 0; }
.invite-label { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.invite-value { font-size: 13px; color: var(--text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.reward-levels { display: flex; gap: 10px; margin: 14px 0; }
.reward-level {
  flex: 1; background: white; border-radius: 16px;
  padding: 16px 12px; text-align: center;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
}
.reward-level-name { font-size: 12px; color: var(--primary); font-weight: 600; margin-bottom: 6px; }
.reward-level-pct { font-size: 26px; font-weight: 800; color: var(--text); }

.commission-item {
  background: white; border-radius: 12px;
  border: 1px solid var(--border);
  padding: 12px 16px; margin-bottom: 8px;
  font-size: 14px; font-weight: 600;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

/* ==================== TEAM PAGE ==================== */
.team-hero {
  background: linear-gradient(135deg, #1B4332, #40916C);
  padding: 20px; color: white;
}
.team-user-id { font-size: 18px; font-weight: 700; }
.team-recharge-val { font-size: 28px; font-weight: 800; margin: 4px 0 16px; }
.team-stats { display: flex; gap: 10px; }
.team-stat {
  flex: 1; background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 14px; padding: 12px; text-align: center;
}
.team-stat-label { font-size: 11px; opacity: 0.8; }
.team-stat-value { font-size: 20px; font-weight: 800; margin-top: 3px; }

.level-tabs { display: flex; background: white; border-bottom: 1px solid var(--border); }
.level-tab {
  flex: 1; padding: 13px; text-align: center;
  cursor: pointer; font-size: 14px; font-weight: 600;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}
.level-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; }
.team-grid-item {
  background: white; border-radius: 16px;
  padding: 16px; text-align: center;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
}
.team-grid-value { font-size: 26px; font-weight: 800; color: var(--text); }
.team-grid-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; font-weight: 500; }

/* ==================== MODAL ==================== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  display: flex; align-items: flex-end; justify-content: center;
  animation: fadeIn 0.2s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-overlay.center { align-items: center; padding: 20px; }

.modal-box {
  background: white;
  border-radius: 24px 24px 0 0;
  width: 100%; max-width: 480px;
  overflow: hidden;
  animation: slideUp 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.modal-overlay.center .modal-box { border-radius: 24px; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

.modal-handle {
  width: 36px; height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 12px auto 0;
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  font-size: 17px; font-weight: 700;
}
.modal-close-btn {
  background: var(--bg); border: none;
  width: 32px; height: 32px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
}
.modal-body { padding: 0 20px 20px; }
.modal-footer { padding: 16px 20px; border-top: 1px solid var(--border); display: flex; gap: 10px; }

/* ==================== POPUP MODAL ==================== */
.popup-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 3000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.popup-box {
  background: white; border-radius: 24px;
  width: 100%; max-width: 340px;
  overflow: hidden;
  animation: popIn 0.35s cubic-bezier(0.34,1.56,0.64,1);
  position: relative;
}
@keyframes popIn { from { transform: scale(0.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.popup-close {
  position: absolute; top: 12px; right: 12px;
  background: rgba(0,0,0,0.3);
  border: none; color: white;
  width: 30px; height: 30px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 15px; z-index: 1;
}
.popup-img { width: 100%; height: 180px; object-fit: cover; display: block; }
.popup-img-placeholder {
  height: 120px; background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex; align-items: center; justify-content: center;
}
.popup-content { padding: 16px 18px; }
.popup-title { font-size: 18px; font-weight: 800; text-align: center; margin-bottom: 10px; }
.popup-desc { font-size: 13px; line-height: 1.7; color: var(--text-muted); text-align: center; }
.popup-desc .highlight { color: var(--danger); font-weight: 700; }
.popup-footer { padding: 12px 18px 18px; }

/* ==================== TOAST (Professional) ==================== */
.toast-container {
  position: fixed; top: 16px; left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  pointer-events: none;
  width: 90%; max-width: 380px;
}

.toast-item {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 18px;
  border-radius: 14px;
  font-size: 14px; font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  animation: toastIn 0.35s cubic-bezier(0.34,1.56,0.64,1);
  width: 100%;
  pointer-events: all;
}
@keyframes toastIn { from { transform: translateY(-20px) scale(0.9); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
@keyframes toastOut { from { transform: translateY(0) scale(1); opacity: 1; } to { transform: translateY(-10px) scale(0.9); opacity: 0; } }

.toast-item.success { background: #1A2B1A; color: #4ADE80; }
.toast-item.error   { background: #2B1A1A; color: #F87171; }
.toast-item.warning { background: #2B2514; color: #FCD34D; }
.toast-item.info    { background: #1A1F2B; color: #60A5FA; }

.toast-item .t-icon { font-size: 18px; flex-shrink: 0; }
.toast-item .t-msg { flex: 1; }

/* Legacy single toast (for pages not using container) */
.toast {
  position: fixed; bottom: 80px; left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: #1A2B1A; color: #4ADE80;
  padding: 12px 22px; border-radius: 50px;
  font-size: 14px; font-weight: 600; z-index: 9999;
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  opacity: 0; white-space: nowrap; max-width: 90%;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.error { background: #2B1A1A; color: #F87171; }
.toast.success { background: #1A2B1A; color: #4ADE80; }
.toast.warning { background: #2B2514; color: #FCD34D; }

/* ==================== LOADING ==================== */
.spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==================== EMPTY STATE ==================== */
.empty-state { text-align: center; padding: 48px 20px; }
.empty-state-icon { font-size: 48px; margin-bottom: 14px; color: var(--border); }
.empty-state-text { font-size: 15px; color: var(--text-muted); font-weight: 500; }

/* ==================== WITHDRAW TABS ==================== */
.tab-bar {
  display: flex; background: white;
  border-bottom: 1px solid var(--border);
}
.tab-btn {
  flex: 1; padding: 14px; text-align: center;
  cursor: pointer; font-size: 15px; font-weight: 600;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ==================== SECTION ==================== */
.section { padding: 14px; }

/* ==================== UTILS ==================== */
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.text-muted   { color: var(--text-muted); }
.text-center  { text-align: center; }
.fw-bold      { font-weight: 700; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-8  { margin-bottom: 8px; }
::-webkit-scrollbar { width: 0; }

@media (min-width: 481px) {
  body { border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
}

/* ==================== PLAN IMAGE FALLBACK ==================== */
.plan-img-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #F0F7EE, #E8F5E9);
}
.plan-img-fallback i { font-size: 52px; color: var(--primary); opacity: 0.5; }
.plan-img-fallback.vip { background: linear-gradient(135deg, #FFF8F4, #FFE8D6); }

/* ==================== VIP PLAN BADGE ==================== */
.vip-plan-badge {
  display: inline-block;
  background: linear-gradient(135deg, #FFF8F4, #FFE8D6);
  color: var(--primary);
  border: 1px solid rgba(200,149,108,0.3);
  font-size: 11px; font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 0;
}
.daily-badge {
  display: inline-block;
  background: var(--primary-bg);
  color: var(--primary);
  font-size: 11px; font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}

/* ==================== MY WALLET CARDS ==================== */
.my-wallet-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
  width: 100%;
  padding: 0 4px;
}
.my-wallet-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.13);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 16px;
  padding: 13px 18px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.mwc-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  color: white;
}
.mwc-icon.income  { background: rgba(39,174,96,0.35); }
.mwc-icon.recharge { background: rgba(52,152,219,0.35); }
.mwc-info { flex: 1; }
.mwc-label { font-size: 11px; opacity: 0.75; font-weight: 500; color: white; }
.mwc-value { font-size: 22px; font-weight: 800; color: white; letter-spacing: -0.5px; margin-top: 2px; }

/* ==================== BANNER SLIDER FULL ==================== */
.banner-slider { position: relative; overflow: hidden; height: 220px; }
.banner-slides  { display: flex; transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94); height: 100%; }
.banner-slide   { min-width: 100%; height: 100%; position: relative; }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ==================== MY PLAN NAV ACTIVE ==================== */
.nav-item.active .fa-chart-line { color: var(--primary); }

/* ==================== INSTANT DEPOSIT AMOUNT BTN ==================== */
.amount-opt-i {
  flex: 1 1 calc(33% - 8px);
  min-width: 80px;
  padding: 12px 8px;
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
}
.amount-opt-i.selected {
  background: var(--primary-bg);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 700;
}

/* ==================== FLOATING SUPPORT BUTTON ==================== */
/* ===== SUPPORT FAB CIRCLE BUTTON ===== */
.support-fab {
  position: fixed !important;
  bottom: calc(var(--nav-height) + 16px) !important;
  right: 16px !important;
  width: 58px !important;
  height: 58px !important;
  border-radius: 50% !important;
  background: linear-gradient(145deg, #C8956C, #A0714F) !important;
  color: white !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  text-decoration: none !important;
  z-index: 99999 !important;
  box-shadow:
    0 6px 20px rgba(200,149,108,0.55),
    0 2px 6px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.25) !important;
  border: 2.5px solid rgba(255,255,255,0.3) !important;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.25s ease !important;
  animation: fabBounceIn 0.5s cubic-bezier(0.34,1.56,0.64,1) forwards !important;
}
.support-fab i {
  font-size: 22px !important;
  line-height: 1 !important;
}
.support-fab .fab-text {
  font-size: 8px !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
  opacity: 0.9 !important;
}
.support-fab:hover {
  transform: scale(1.12) !important;
  box-shadow:
    0 10px 28px rgba(200,149,108,0.65),
    0 4px 10px rgba(0,0,0,0.2) !important;
}
.support-fab:active { transform: scale(0.93) !important; }
.support-fab-badge {
  position: absolute !important;
  top: -4px !important;
  right: -4px !important;
  background: #e74c3c !important;
  color: white !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  border-radius: 50px !important;
  min-width: 20px !important;
  height: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 5px !important;
  border: 2.5px solid white !important;
  box-shadow: 0 2px 8px rgba(231,76,60,0.55) !important;
  animation: fabPulse 2s infinite !important;
}
@keyframes fabBounceIn {
  0%   { opacity: 0; transform: scale(0.3) translateY(30px); }
  60%  { opacity: 1; transform: scale(1.1) translateY(-4px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes fabPulse {
  0%,100% { transform: scale(1); }
  50%     { transform: scale(1.2); }
}

/* ==================== HOME TOPBAR (Logo + Notification) ==================== */
.home-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 110;
}
.home-topbar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
}
.home-topbar-logo img {
  height: 34px;
  max-width: 140px;
  object-fit: contain;
}
.home-topbar-logo span {
  color: var(--primary);
}
.home-topbar-notif {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 18px;
  text-decoration: none;
  flex-shrink: 0;
}
.home-topbar-notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #e74c3c;
  color: white;
  font-size: 10px;
  font-weight: 800;
  border-radius: 50px;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid white;
}

/* ==================== NOTIFICATIONS PAGE ==================== */
.notif-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  position: relative;
}
.notif-item.unread {
  border-left: 3px solid var(--primary);
  background: var(--primary-bg);
}
.notif-item-title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.notif-item-title .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}
.notif-item-msg {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  white-space: pre-line;
}
.notif-item-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* =========================================================
   PROFESSIONAL UI REFRESH — MOBILE INVESTMENT APP
   ========================================================= */
:root{
  --primary:#6D28D9;
  --primary-dark:#4C1D95;
  --primary-light:#A855F7;
  --primary-bg:#F6F1FF;
  --bg:#F5F6FA;
  --text:#171725;
  --text-muted:#8A91A3;
  --border:#E9EAF1;
  --success:#22A06B;
  --danger:#E34D59;
  --warning:#D99000;
  --shadow:0 8px 28px rgba(34,24,65,.07);
}

body{background:#f6f7fb;color:var(--text);}
.page-wrapper{padding-bottom:calc(var(--nav-height) + 18px);}

/* ---------- HOME HEADER ---------- */
.home-topbar{
  min-height:76px;padding:12px 16px;background:#fff;display:flex;align-items:center;justify-content:space-between;
  border-bottom:1px solid #f0f0f4;position:relative;z-index:20;
}
.home-topbar-logo{width:48px;height:48px;border-radius:15px;background:#fff;display:flex;align-items:center;justify-content:center;overflow:hidden;box-shadow:0 5px 16px rgba(30,20,60,.07);border:1px solid #eeeef4;flex:none;}
.home-topbar-logo img{width:100%;height:100%;object-fit:contain;padding:5px;}
.home-topbar-logo span{font-size:9px;font-weight:800;color:var(--primary);text-align:center;line-height:1.1;padding:4px;}
.home-topbar-center{position:absolute;left:76px;right:76px;top:10px;text-align:center;pointer-events:none;}
.home-welcome{font-size:12px;font-weight:600;color:#8d93a4;line-height:1.1;}
.home-user-name{font-size:17px;font-weight:800;color:#1d1c2a;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.home-topbar-notif{width:46px;height:46px;border-radius:15px;background:#f7f7fb;color:#252438;display:flex;align-items:center;justify-content:center;text-decoration:none;position:relative;border:1px solid #eeeef4;}
.home-topbar-notif i{font-size:19px;}
.home-topbar-notif-badge{position:absolute;top:-3px;right:-3px;min-width:18px;height:18px;padding:0 5px;border-radius:10px;background:#e84b5a;color:#fff;font-size:10px;font-weight:800;display:flex;align-items:center;justify-content:center;border:2px solid #fff;}

/* ---------- AUTH: APOLLO-STYLE VISUAL LANGUAGE ---------- */
.auth-page{background:#f7f4fb;max-width:480px;}
.auth-wrapper{min-height:100vh;background:#f7f4fb;}
.auth-banner{height:305px;background:linear-gradient(135deg,#6d28d9,#4c1d95);position:relative;overflow:hidden;}
.auth-banner:before,.auth-banner:after{content:'';position:absolute;border-radius:50%;background:rgba(255,255,255,.08);pointer-events:none;}
.auth-banner:before{width:240px;height:240px;right:-80px;top:-100px;}
.auth-banner:after{width:170px;height:170px;left:-75px;bottom:-80px;}
.auth-banner img{position:relative;z-index:1;width:100%;height:100%;object-fit:cover;}
.auth-banner-placeholder{position:relative;z-index:2;width:100%;height:100%;background:linear-gradient(135deg,#7c3aed,#4c1d95);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:#fff;}
.auth-banner-placeholder:before{content:'';position:absolute;width:260px;height:260px;border:1px solid rgba(255,255,255,.10);border-radius:50%;}
.auth-banner-placeholder .logo-circle{width:100px;height:100px;}
.auth-site-name{font-size:24px;font-weight:800;letter-spacing:-.3px;}
.auth-card{position:relative;z-index:3;margin:-42px 20px 0;padding:22px 18px 30px;border-radius:28px 28px 0 0;background:#fff;box-shadow:0 -6px 28px rgba(40,25,80,.10);min-height:calc(100vh - 263px);}
.auth-tabs{margin:0 0 24px;padding:4px;background:#f4f1fa;border-radius:20px;height:58px;gap:2px;}
.auth-tab{height:50px;border-radius:18px;font-size:16px;font-weight:700;color:#777285;}
.auth-tab.active{color:#fff;background:linear-gradient(135deg,#8b3fe6,#5b16b6);box-shadow:0 8px 18px rgba(109,40,217,.24);}
.auth-form .form-group{margin-bottom:13px;}
.input-row{min-height:58px;padding:0 16px;border-radius:18px;background:#f5f2fa;border:1px solid transparent;box-shadow:inset 0 0 0 1px rgba(50,30,90,.01);}
.input-row:focus-within{background:#faf8ff;border-color:#a855f7;box-shadow:0 0 0 3px rgba(168,85,247,.08);}
.input-row input{font-size:15px;font-weight:500;}
.input-row i{color:#9b92ad;}
.country-code{font-size:15px;color:#4c1d95;border-color:#ddd8e8;}
.btn-primary{background:linear-gradient(135deg,#7c22d9 0%,#4f16aa 100%);border-radius:18px;min-height:54px;box-shadow:0 10px 24px rgba(109,40,217,.22);}
.auth-switch{font-size:14px;margin-top:18px;}

/* ---------- HOME SLIDER ---------- */
.banner-slider{height:188px;margin:12px 12px 0;border-radius:20px;overflow:hidden;box-shadow:0 8px 24px rgba(32,22,60,.10);background:#fff;}
.banner-slides{height:100%;}
.banner-slide{min-width:100%;height:100%;border-radius:20px;overflow:hidden;}
.banner-slide img{object-fit:cover;width:100%;height:100%;}
.slider-dots{bottom:10px;padding:5px 8px;border-radius:20px;background:rgba(0,0,0,.16);backdrop-filter:blur(5px);}
.slider-dot{width:6px;height:6px;}
.slider-dot.active{width:20px;background:#fff;}

/* ---------- QUICK ACTIONS ---------- */
.quick-actions{margin:12px 12px 0;padding:12px 6px 14px;border-radius:20px;grid-template-columns:repeat(4,1fr);box-shadow:var(--shadow);}
.qa-icon{width:48px;height:48px;border-radius:15px;}
.qa-icon i{font-size:19px;}
.quick-action{font-size:11px;gap:7px;font-weight:600;}

/* ---------- PLAN AREA ---------- */
.plan-tabs{margin:12px 12px 0;border-radius:18px;padding:4px;}
.plan-tab{padding:10px 8px;font-size:13px;border-radius:14px;}
.plan-tab.active{background:linear-gradient(135deg,#6d28d9,#8b3fe6);box-shadow:0 5px 15px rgba(109,40,217,.22);}
.plan-content{padding:12px;}
.plan-card{border-radius:20px;margin-bottom:13px;box-shadow:0 8px 24px rgba(32,22,60,.07);border:1px solid #ecebf2;}
.plan-card-img-wrap{height:112px;}
.plan-card-img-wrap img{object-fit:cover;}
.plan-card-body{padding:12px;}
.plan-card-title{font-size:15px;margin-bottom:3px;}
.plan-badge{font-size:10px;padding:4px 8px;margin-bottom:9px;}
.plan-stats-grid{gap:7px;margin-bottom:9px;}
.plan-stat-item{padding:9px;border-radius:11px;}
.plan-stat-item .value{font-size:16px;}
.plan-stat-item .label{font-size:10px;}
.plan-footer{padding-top:9px;}
.plan-total-profit{font-size:11px;}
.plan-total-profit strong{font-size:14px;}
.plan-buy-btn{padding:9px 14px;border-radius:12px;font-size:12px;}

/* ---------- MY PLANS: FULL IMAGE / COMPACT CARD ---------- */
.myplan-hero{background:linear-gradient(135deg,#6d28d9 0%,#7e3f9b 60%,#8b6a52 100%);padding:18px 16px 22px;}
.myplan-summary{gap:7px;margin-top:13px;}
.mps-card{border-radius:12px;padding:10px 6px;}
.mps-val{font-size:15px;}
.mps-lbl{font-size:9px;}
.tab-pills{margin:11px 12px 0;border-radius:16px;}
.tab-pill{padding:9px 7px;font-size:12px;border-radius:12px;}
.section{padding:12px;}
.plan-record-card{border-radius:18px;margin-bottom:12px;box-shadow:0 7px 20px rgba(35,25,65,.07);}
.plan-record-img{height:108px;background:#f8f7fb;display:flex;align-items:center;justify-content:center;}
.plan-record-img img{width:100%;height:100%;object-fit:contain;background:#f8f7fb;}
.plan-record-body{padding:12px;}
.plan-record-title{font-size:15px;margin-bottom:3px;}
.plan-stat-row{gap:7px;margin:8px 0;}
.psr-item{padding:8px;border-radius:10px;}
.psr-val{font-size:14px;}
.psr-lbl{font-size:10px;}
.plan-record-status{top:8px;right:8px;padding:4px 9px;font-size:10px;}
.progress-bar-wrap{height:6px;margin:8px 0 4px;}

/* ---------- TRANSACTIONS ---------- */
.transaction-header{height:64px;padding:10px 52px;position:sticky;top:0;}
.transaction-header .back-btn{left:12px;}
.page-header-title{font-size:16px;font-weight:800;line-height:1.1;}
.page-header-sub{font-size:10px;color:var(--text-muted);font-weight:500;margin-top:3px;}
.transaction-summary{margin:12px;border-radius:20px;padding:17px;background:linear-gradient(135deg,#6d28d9,#7b2cbf 60%,#9b5d75);color:#fff;box-shadow:0 10px 25px rgba(109,40,217,.20);}
.transaction-summary-main span{display:block;font-size:11px;opacity:.78;}
.transaction-summary-main strong{display:block;font-size:25px;line-height:1.2;margin-top:4px;letter-spacing:-.4px;}
.transaction-summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:13px;}
.transaction-summary-grid>div{padding:9px;border-radius:12px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.10);}
.transaction-summary-grid small{display:block;font-size:9px;opacity:.72;}
.transaction-summary-grid b{font-size:12px;display:block;margin-top:2px;}
.transaction-summary .positive{color:#c9f7dc}.transaction-summary .negative{color:#ffd1d5}
.transaction-filters{display:flex;gap:6px;overflow:auto;padding:0 12px 8px;scrollbar-width:none;}
.transaction-filters::-webkit-scrollbar{display:none;}
.transaction-filter{white-space:nowrap;border:1px solid #e8e5ef;background:#fff;color:#7d7689;border-radius:12px;padding:9px 11px;font:600 11px Inter,sans-serif;}
.transaction-filter.active{color:#fff;border-color:#6d28d9;background:#6d28d9;box-shadow:0 5px 12px rgba(109,40,217,.18);}
.transaction-list{padding:4px 12px 18px;}
.transaction-item{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:10px;align-items:start;background:#fff;border:1px solid #ececf2;border-radius:16px;padding:12px;margin:7px 0;box-shadow:0 5px 15px rgba(25,20,45,.04);}
.transaction-icon{width:40px;height:40px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:16px;}
.transaction-icon.blue{background:#eef2ff;color:#4f46e5}.transaction-icon.orange{background:#fff4e8;color:#ea580c}.transaction-icon.green{background:#edf9f2;color:#16a34a}.transaction-icon.purple{background:#f5efff;color:#7c3aed}.transaction-icon.teal{background:#edfbf9;color:#0d9488}.transaction-icon.red{background:#fff0f1;color:#dc3545}.transaction-icon.gray{background:#f3f4f6;color:#6b7280}
.transaction-main{min-width:0;}
.transaction-topline{display:flex;align-items:center;gap:7px;justify-content:space-between;}
.transaction-topline strong{font-size:12px;line-height:1.25;}
.transaction-meta,.transaction-ref,.transaction-note{font-size:10px;color:var(--text-muted);margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.transaction-ref{color:#7d748b}.transaction-note{white-space:normal;line-height:1.35;}
.transaction-amount{font-size:13px;font-weight:800;text-align:right;white-space:nowrap;padding-top:2px;}
.transaction-amount.positive{color:#1f9d63}.transaction-amount.negative{color:#df4d59}

/* ---------- RECORDS / GENERAL LISTS ---------- */
.record-item{border-radius:16px;padding:13px;margin-bottom:9px;border:1px solid #ececf2;box-shadow:0 5px 16px rgba(25,20,45,.04);}
.status-pill{padding:4px 9px;border-radius:9px;font-size:9px;font-weight:800;}
.status-pill.success{background:#edf9f2;color:#1f9d63}.status-pill.pending{background:#fff8e8;color:#b97800}.status-pill.failed{background:#fff0f1;color:#df4d59}

/* ---------- POPUP ---------- */
.popup-overlay{background:rgba(18,13,30,.68);backdrop-filter:blur(4px);padding:18px;}
.popup-box{max-width:355px;border-radius:26px;box-shadow:0 22px 55px rgba(0,0,0,.28);}
.popup-close{top:12px;right:12px;width:32px;height:32px;background:rgba(18,13,30,.38);border:1px solid rgba(255,255,255,.25);}
.popup-img{height:172px;object-fit:cover;}
.popup-content{padding:17px 18px 10px;}
.popup-title{font-size:19px;color:#20202d;margin-bottom:8px;}
.popup-desc{font-size:12px;line-height:1.7;}
.popup-desc .highlight{color:#dc4d55;}
.popup-footer{padding:10px 18px 18px;}
.popup-footer .btn-primary{min-height:48px;}

@media(max-width:360px){
  .home-topbar-center{left:66px;right:66px}.home-user-name{font-size:15px}.banner-slider{height:165px}.plan-card-img-wrap{height:100px}.auth-card{margin-left:12px;margin-right:12px;}
}
.auth-heading{text-align:center;margin:0 4px 18px;}.auth-heading h1{font-size:21px;font-weight:800;letter-spacing:-.2px;color:#1f1d29;}.auth-heading p{font-size:11px;color:#9a93a6;margin-top:5px;}
