/* ============================================================
   Dark Charcoal & Sacred Gold Premium Theme (with Warm Cream Elements)
   ============================================================ */
:root {
  --bg-main: #0c0d10;
  --bg-surface: #14161c;
  --bg-card: #1b1e26;
  --bg-elevated: #232733;
  --bg-input: #101216;
  
  --gold-primary: #d4af37;
  --gold-light: #f5e7b2;
  --gold-dark: #997b1e;
  --gold-glow: rgba(212, 175, 55, 0.28);
  
  --cream-card: #f8f6f0;
  --cream-text: #2d2a24;
  --cream-muted: #7c766b;
  
  --text-main: #f3f5f8;
  --text-muted: #959cb0;
  --text-dim: #6c7385;
  
  --border-gold: rgba(212, 175, 55, 0.28);
  --border-subtle: rgba(255, 255, 255, 0.08);
  
  --success: #2ecc71;
  --warning: #f39c12;
  --danger: #e74c3c;
  --info: #3498db;
  --line-green: #06c755;
  
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Sarabun', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #070709;
  color: var(--text-main);
  line-height: 1.5;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* App Frame */
.mobile-app-container {
  width: 100%;
  max-width: 520px;
  height: 100vh;
  background-color: var(--bg-main);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.85), 0 0 1px var(--border-gold);
}

@media (min-width: 540px) {
  .mobile-app-container {
    height: 95vh;
    border-radius: 28px;
    border: 1px solid var(--border-gold);
  }
}

/* Top Sticky Header */
.mobile-top-bar {
  height: 64px;
  background-color: rgba(20, 22, 28, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
  z-index: 50;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gem-symbol {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
  font-size: 16px;
  box-shadow: 0 2px 10px var(--gold-glow);
}

.brand-title h1 {
  font-family: 'Cinzel', 'Sarabun', serif;
  font-size: 0.95rem;
  color: var(--gold-light);
  letter-spacing: 0.5px;
}

.sub-handle {
  font-size: 0.68rem;
  color: var(--text-muted);
  display: block;
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn-gold {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.cart-count-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--danger);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-chip {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Scrollable Viewport */
.mobile-viewport {
  flex-grow: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 78px;
}

.view-panel {
  display: none;
  padding: 16px;
  animation: fadeIn 0.25s ease-in-out;
}

.view-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Storefront */
.sacred-banner {
  background: linear-gradient(135deg, #18221d 0%, #15181f 70%, #201a0e 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 16px;
}

.sacred-tag {
  font-size: 0.72rem;
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.18);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  display: inline-block;
  margin-bottom: 6px;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.sacred-banner h2 { font-size: 1.15rem; color: #fff; margin-bottom: 4px; }
.sacred-banner p { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 12px; }

.btn-gold-sm {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-primary));
  color: #111;
  font-size: 0.75rem;
  font-weight: 700;
  border: none;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.category-scroll-wrapper {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 12px;
  scrollbar-width: none;
}
.category-scroll-wrapper::-webkit-scrollbar { display: none; }

.cat-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cat-pill.active {
  background: rgba(212, 175, 55, 0.18);
  border-color: var(--gold-primary);
  color: var(--gold-light);
  font-weight: 600;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-img-box {
  height: 120px;
  background-color: var(--bg-surface);
  position: relative;
  overflow: hidden;
}

.product-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-cat-tag {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(12, 13, 16, 0.85);
  font-size: 0.65rem;
  color: var(--gold-light);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-gold);
}

.product-info {
  padding: 10px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-info h4 { font-size: 0.85rem; font-weight: 600; margin-bottom: 4px; }
.product-desc-brief { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 8px; }

.product-price-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price { font-size: 0.95rem; font-weight: 700; color: var(--gold-primary); }

.btn-add-cart-mini {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

/* ============================================================
   SECTION 3: CRM MEMBERSHIP PORTAL (Styled like the screenshot)
   ============================================================ */
.member-hub-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Top Profile Header Card */
.member-header-card {
  background: #fdfbf7;
  color: #2b2723;
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  border: 1px solid #e8e2d5;
}

@media(min-width: 480px) {
  .member-header-card {
    display: grid;
    grid-template-columns: 80px 1fr 140px;
    align-items: center;
  }
}

.member-avatar-col {
  display: flex;
  justify-content: center;
}

.member-avatar-frame {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #d4af37;
}

.member-avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-change-avatar {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 24px;
  height: 24px;
  background: #2b2723;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 0.65rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.member-info-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.name-row h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #201e1b;
}

.btn-icon-subtle {
  background: transparent;
  border: none;
  color: #8c8275;
  cursor: pointer;
  font-size: 0.8rem;
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.member-code-badge {
  font-size: 0.72rem;
  color: #835b0d;
  background: #f5edd6;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-weight: 600;
}

.vip-tag-gold {
  font-size: 0.72rem;
  color: #fff;
  background: linear-gradient(135deg, #aa8c2c, #d4af37);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-weight: 700;
}

.contact-details-list {
  font-size: 0.75rem;
  color: #635c53;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Guru Message of the Day Bubble */
.sacred-quote-col {
  background: #f4ede0;
  border: 1px dashed #d5c8b2;
  border-radius: var(--radius-md);
  padding: 10px;
  text-align: center;
}

.quote-icon {
  color: #aa8c2c;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.guru-message-bubble p {
  font-size: 0.72rem;
  font-style: italic;
  color: #443e35;
  line-height: 1.4;
  margin-bottom: 6px;
}

.guru-signature {
  font-size: 0.65rem;
  color: #835b0d;
  font-weight: 600;
  background: #e9dec9;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

/* Free Access Validity Banner */
.access-status-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.access-status-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-icon-large { font-size: 1.6rem; }
.access-status-left h4 { font-size: 0.85rem; color: #fff; }
.access-status-left p { font-size: 0.75rem; color: var(--text-muted); }

.badge-free-reason {
  font-size: 0.7rem;
  color: var(--success);
  background: rgba(46, 204, 113, 0.15);
  border: 1px solid rgba(46, 204, 113, 0.3);
  padding: 4px 8px;
  border-radius: var(--radius-pill);
}

/* 4 Quick Stat Cards */
.stats-four-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media(min-width: 480px) {
  .stats-four-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-icon-wrap { font-size: 1.1rem; }
.stat-label { font-size: 0.7rem; color: var(--text-muted); }
.stat-card h4 { font-size: 1.2rem; font-weight: 700; color: #fff; margin: 2px 0; }
.stat-link { font-size: 0.68rem; color: var(--gold-light); text-decoration: none; }
.stat-subtext { font-size: 0.65rem; color: var(--text-dim); }

/* CRM Tab Buttons */
.crm-tabs-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-subtle);
}

.crm-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  padding: 8px 12px;
  white-space: nowrap;
  cursor: pointer;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 6px;
}

.crm-tab-btn.active {
  background: var(--bg-card);
  color: var(--gold-light);
  font-weight: 600;
  border-bottom: 2px solid var(--gold-primary);
}

/* CRM Panels */
.crm-panel { display: none; }
.crm-panel.active { display: block; }

.crm-layout-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card.sacred-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 10px;
}

.box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.box-head h4 { font-size: 0.85rem; color: var(--gold-light); }

.crm-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}

.crm-data-table th, .crm-data-table td {
  padding: 8px 6px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.crm-data-table th { color: var(--text-muted); font-weight: 500; }

.mini-thumb {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  object-fit: cover;
  vertical-align: middle;
}

.item-with-img {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Holy Coins Balance Widget */
.holy-coins-widget {
  text-align: center;
  background: linear-gradient(135deg, #1c1f26, #242217);
  border: 1px solid var(--border-gold);
}

.coins-big-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 10px 0;
}

.coins-big-display h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold-primary);
}

.coins-big-display .coin-icon { font-size: 1.6rem; }
.coins-big-display .unit { font-size: 0.85rem; color: var(--text-muted); }

.coins-action-buttons {
  display: flex;
  gap: 8px;
}

.btn-outline-gold {
  background: transparent;
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  font-size: 0.75rem;
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex: 1;
}

/* Omni-Channel Links Widget */
.channel-links-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.channel-link-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
}

.channel-link-item .channel-icon {
  font-size: 1.1rem;
  width: 20px;
}

.link-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.link-info small { color: var(--text-dim); }

.btn-copy-url {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}

/* Interest Tags */
.tags-badge-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-pill {
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tag-pink { background: rgba(254, 44, 85, 0.15); color: #fe2c55; }
.tag-blue { background: rgba(52, 152, 219, 0.15); color: #3498db; }
.tag-green { background: rgba(46, 204, 113, 0.15); color: #2ecc71; }
.tag-purple { background: rgba(155, 89, 182, 0.15); color: #9b59b6; }
.tag-gold { background: rgba(212, 175, 55, 0.18); color: var(--gold-light); border: 1px solid var(--border-gold); }
.tag-dark { background: #2f3542; color: #fff; }

/* Daily Check-in Banner */
.daily-checkin-banner {
  background: linear-gradient(135deg, #a77c1e, #d4af37);
  color: #111;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checkin-content h4 { font-size: 0.9rem; font-weight: 700; }
.checkin-content p { font-size: 0.75rem; margin-bottom: 6px; }

.btn-checkin-mini {
  background: #111;
  color: #fff;
  border: none;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.checkin-bg-art {
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.2);
  position: absolute;
  right: 10px;
  bottom: -15px;
}

/* Shipping Brief */
.shipping-brief-box {
  font-size: 0.78rem;
  line-height: 1.5;
}

.shipping-brief-box strong { color: #fff; display: block; margin-bottom: 2px; }
.shipping-brief-box p { color: var(--text-muted); margin-bottom: 4px; }
.shipping-brief-box small { color: var(--text-dim); }

.latest-tracking-pill {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
}

/* ============================================================
   SECTION 5: ADMIN SUITE & PRIVILEGE MANAGER
   ============================================================ */
.admin-dashboard-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-light);
}

.admin-title h2 { font-size: 0.95rem; }

.admin-badge {
  font-size: 0.65rem;
  background: rgba(231, 76, 60, 0.2);
  color: var(--danger);
  border: 1px solid var(--danger);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.admin-nav-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.admin-nav-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.admin-nav-btn.active {
  background: rgba(212, 175, 55, 0.18);
  border-color: var(--gold-primary);
  color: var(--gold-light);
  font-weight: 600;
}

.rule-inputs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media(min-width: 480px) {
  .rule-inputs-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group label { font-size: 0.75rem; color: var(--text-muted); }

.form-group input, .form-group textarea, .form-group select {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  color: #fff;
  font-size: 0.8rem;
  outline: none;
}

/* Switch Toggle Component */
.switch-toggle {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 20px;
}

.switch-toggle input { opacity: 0; width: 0; height: 0; }

.slider-round {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #3e4452;
  transition: .3s;
  border-radius: 34px;
}

.slider-round:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider-round {
  background-color: var(--gold-primary);
}

input:checked + .slider-round:before {
  transform: translateX(18px);
}

/* Omni-Bridge API Cards */
.api-settings-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.api-card-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.api-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.api-card-box input {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 7px 10px;
  color: #fff;
  font-size: 0.75rem;
}

.api-card-box small { font-size: 0.68rem; color: var(--text-dim); }

.manual-adjust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media(min-width: 480px) {
  .manual-adjust-grid {
    grid-template-columns: 1.2fr 1fr 1fr auto;
  }
}

.manual-adjust-grid input {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px;
  color: #fff;
  font-size: 0.78rem;
}

/* Oracle Card Flip */
.oracle-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 0;
}

.oracle-card-stage { perspective: 1000px; margin-bottom: 20px; }

.card-flip-box {
  width: 220px;
  height: 330px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.card-flip-box.flipped { transform: rotateY(180deg); }

.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 18px;
  border: 2px solid var(--gold-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 15px var(--gold-glow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-back {
  background: radial-gradient(circle at center, #1f2724, #0e1211);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.back-sacred-pattern {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.sacred-emblem { font-size: 3rem; color: var(--gold-primary); filter: drop-shadow(0 0 10px var(--gold-glow)); }
.back-sacred-pattern span { font-family: 'Cinzel', serif; font-size: 0.85rem; color: var(--gold-light); letter-spacing: 2px; }
.back-sacred-pattern small { font-size: 0.7rem; color: var(--text-dim); }

.card-front {
  background: var(--bg-card);
  transform: rotateY(180deg);
  padding: 16px;
  align-items: center;
  justify-content: center;
}

.card-img-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border: 1px solid var(--border-gold);
}

.oracle-sun { font-size: 2.2rem; color: var(--gold-light); }
.card-front h3 { font-size: 1.05rem; color: var(--gold-light); margin-bottom: 6px; }
.card-front p { font-size: 0.78rem; color: var(--text-muted); line-height: 1.4; }

/* Bottom Nav */
.mobile-bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background-color: rgba(20, 22, 28, 0.98);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 60;
}

.bottom-nav-item {
  background: transparent;
  border: none;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 0.65rem;
  cursor: pointer;
  flex: 1;
  transition: var(--transition);
}

.bottom-nav-item i { font-size: 1.15rem; }
.bottom-nav-item.active { color: var(--gold-light); }
.bottom-nav-item.active i { color: var(--gold-primary); transform: translateY(-2px); }

/* Cart Bottom Sheet & Payment Modal */
.cart-bottom-modal, .payment-modal {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  display: none; z-index: 100;
}

.cart-modal-backdrop, .payment-modal-backdrop {
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

.cart-sheet-content {
  position: absolute;
  bottom: 0; left: 0; width: 100%; max-height: 80%;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-gold);
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  padding: 16px;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.btn-close-modal {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.1rem;
  cursor: pointer;
}

.cart-items-scroll {
  overflow-y: auto;
  max-height: 260px;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

.cart-sheet-footer {
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-weight: 600;
}

.btn-checkout-gold, .btn-primary-gold {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-primary));
  color: #111;
  font-weight: 700;
  font-size: 0.88rem;
  border: none;
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.payment-card {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 88%;
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  text-align: center;
}

.promptpay-logo { height: 24px; margin-bottom: 6px; }

.qr-code-box {
  background: #fff;
  padding: 10px;
  border-radius: var(--radius-md);
  display: inline-block;
  margin: 10px 0;
}

.qr-img { width: 160px; height: 160px; display: block; }
.pay-amount-display { font-size: 1.35rem; font-weight: 800; color: var(--gold-primary); }

.pay-bonus-banner {
  background: rgba(46, 204, 113, 0.15);
  border: 1px solid var(--success);
  color: var(--success);
  font-size: 0.72rem;
  padding: 6px 10px;
  border-radius: 6px;
  margin: 10px 0;
}

/* Badges & Helpers */
.badge-status { font-size: 0.68rem; padding: 2px 8px; border-radius: var(--radius-pill); }
.badge-status.success { background: rgba(46, 204, 113, 0.15); color: var(--success); }
.badge-status.pending { background: rgba(243, 156, 18, 0.15); color: var(--warning); }
.badge-status.processing { background: rgba(52, 152, 219, 0.15); color: var(--info); }

.text-gold { color: var(--gold-primary) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-danger { color: var(--danger) !important; }
.text-dim { color: var(--text-dim) !important; }
.text-xs { font-size: 0.7rem; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mt-2 { margin-top: 8px; }
