/* PERSONAL */
#personalPage {
  background: var(--bg-base, #FBF7F0);
}

.personal-header {
  position: sticky;
  top: 0;
  z-index: 200;
  padding: 12px 20px 16px;
  background: var(--bg-base, #FBF7F0);
  border-bottom: none;
  box-shadow: none;
}

.personal-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 16px 16px;
}

.p-stat-box {
  background: var(--bg-card, #ffffff);
  border: 0.5px solid var(--border, #E8DFC8);
  border-radius: 12px;
  padding: 12px 14px;
  text-align: left;
  box-shadow: none;
}

.p-stat-box .p-stat-lbl {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  color: var(--text-hint, #888780);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.p-stat-box .p-stat-val {
  font-size: 20px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
}

#pBalance, #pPending {
  color: var(--gold-primary, #C88A00) !important;
}

#pToday, #pTotal {
  color: var(--gold-primary, #E07B00) !important;
}

.personal-menu {
  background: var(--bg-card, #ffffff);
  border-radius: 14px;
  border: 0.5px solid var(--border, #E8DFC8);
  margin: 0 16px 24px 16px;
  padding: 0;
  overflow: hidden;
  box-shadow: none;
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px !important;
  min-height: unset !important;
  height: auto !important;
  border-bottom: 0.5px solid #F1EFE8;
  cursor: pointer;
  transition: background 0.2s;
}
.menu-item:last-child {
  border-bottom: none;
}
.menu-item:hover, .menu-item:active {
  background: var(--bg-base, #fdfaf4);
}
.menu-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-base, #FFF0E0);
  color: var(--gold-primary, #E07B00);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.menu-label {
  flex: 1;
  font-size: 14px;
  color: var(--text-primary, #2C2C2A);
}
.menu-arrow {
  color: #D3D1C7;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* VIP INFO */
.vip-level-row{display:flex;align-items:center;gap:12px;padding:14px;background:var(--bg3);border-radius:var(--radius);margin-bottom:10px;border:1px solid var(--border2);}
.vip-level-badge{width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size: 13px;font-weight:700;color:var(--text-primary, #0a0a0a);flex-shrink:0;}
.vip-level-info{flex:1;}
.vip-level-name{font-weight:700;font-size:14px;margin-bottom:2px;}
.vip-level-req{font-size: 14px;color:var(--text-muted);}
.vip-level-perms{font-size: 13px;color:var(--gold);margin-top:3px;}
.vip-current-mark{font-size: 13px;color:var(--green);font-weight:700;}

/* VIP PROGRESS BAR V3 */
.personal-vip-progress {
  margin-top: 16px;
  margin-bottom: 16px;
  background: var(--bg-card, #ffffff);
  border-radius: 12px;
  padding: 16px;
  border: 0.5px solid var(--border, #E8DFC8);
}
.pvp-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
#personalVipLevel {
  color: var(--gold-primary, #C88A00);
}
#personalVipNextLevel {
  color: var(--text-hint, #888780);
}
.pvp-track {
  height: 6px;
  background: var(--bg-base, #FFF0E0);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 8px;
  border: none;
}
.pvp-bar {
  height: 100%;
  width: 0;
  background: var(--gold-primary, #C88A00);
  border-radius: 99px;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: none;
}
.pvp-text {
  font-size: 13px;
  color: var(--text-hint, #888780);
  text-align: right;
  font-weight: 500;
}

/* USER CARD */
.user-main {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
  background: var(--bg-card, #fff);
  border-radius: 14px;
  border: 0.5px solid var(--border, #E8DFC8);
  padding: 16px;
}
.user-avatar {
  font-size: 32px;
  width: 64px;
  height: 64px;
  background: var(--bg-base, #FFF4D6);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--gold-primary, #C88A00);
  flex-shrink: 0;
}
.user-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

/* VIP badge — Amazon orange, capsule shape */
.user-vip-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  padding: 3px 10px;
  background: var(--gold-primary, #E07B00);
  color: var(--text-white, #fff);
  border-radius: 12px;
  margin-top: 4px;
  letter-spacing: 0.5px;
}

/* Email + Credit score meta row */
.user-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
}

/* ================== PROFILE EDIT MODAL ================== */
.profile-field-group {
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border, #E8DFC8);
  padding-bottom: 4px;
}
.profile-field-label {
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: bold;
  font-family: 'Playfair Display', serif;
  color: var(--text-secondary, #333);
  margin-bottom: 8px;
}
.profile-icon {
  margin-right: 8px;
  font-size: 18px;
}
.profile-field-input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--text-secondary, #333);
  padding: 4px 0;
  outline: none;
}
.profile-field-input::placeholder {
  color: var(--text-hint, #888);
}

.user-meta-item {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-meta-sep {
  font-size: 13px;
  color: var(--border);
}

.p-4 { padding: 1.5rem; }

/* ── Global Logo Bar (replaces sticky marquee on non-home pages) ── */
.global-logo-bar {
  position: sticky;
  top: 0;
  z-index: 200;
  width: 100%;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to right, var(--gold-primary, #C88A00), var(--gold-primary, #E07B00));
  border-bottom: none;
  box-shadow: none;
}
.global-logo-bar-text {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--text-white, #FFFFFF);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ══════════════════════════════════════════════════════
   TOPIC CONTENT MODAL — Help Center & About Us
   Always white bg + dark text, safe across all 3 themes
   ══════════════════════════════════════════════════════ */

#topicListModal > div,
#topicContentModal > div {
  background: #ffffff !important;
}

#topicListContainer > div {
  background: #ffffff !important;
  border: 1px solid #e8e2d8 !important;
  border-radius: 12px !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06) !important;
  transition: background 0.18s, transform 0.18s !important;
}
#topicListContainer > div:active {
  background: #fef9ee !important;
  transform: scale(0.98) !important;
}
#topicListContainer > div span:first-child {
  color: #1a1a1a !important;
  font-size: 15px !important;
  font-weight: 600 !important;
}
#topicListContainer > div span:last-child {
  color: #b8a870 !important;
  font-size: 18px !important;
}

#topicContentBody {
  background: #ffffff !important;
  color: #1a1a1a !important;
  font-size: 14px !important;
  line-height: 1.85 !important;
}

/* Rich HTML content typography */
#topicContentBody p {
  margin: 0 0 14px;
  color: #2c2c2c;
}
#topicContentBody h1,
#topicContentBody h2,
#topicContentBody h3,
#topicContentBody h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: #1a1a1a;
  margin: 20px 0 10px;
  line-height: 1.3;
}
#topicContentBody h1 { font-size: 20px; }
#topicContentBody h2 { font-size: 17px; border-bottom: 1px solid #f0ebe0; padding-bottom: 6px; }
#topicContentBody h3 { font-size: 15px; }
#topicContentBody ul,
#topicContentBody ol {
  padding-left: 20px;
  margin: 0 0 14px;
  color: #2c2c2c;
}
#topicContentBody li {
  margin-bottom: 6px;
  line-height: 1.7;
}
#topicContentBody strong, #topicContentBody b {
  font-weight: 700;
  color: #1a1a1a;
}
#topicContentBody a {
  color: #b8860b;
  text-decoration: underline;
}
#topicContentBody blockquote {
  border-left: 3px solid #d4a830;
  padding: 8px 14px;
  margin: 12px 0;
  background: #fef9ee;
  border-radius: 0 8px 8px 0;
  color: #444;
  font-style: italic;
}
#topicContentBody hr {
  border: none;
  border-top: 1px solid #e8e2d8;
  margin: 18px 0;
}
