/* DESIGN SYSTEM & GLOBAL VARIABLES */
:root {
  --bg-color: #0c0d12;
  --card-bg: #161821;
  --card-bg-hover: #1e212d;
  --border-color: #262936;
  --primary-color: #f7b731; /* Gold accent */
  --primary-rgb: 247, 183, 49;
  --text-primary: #ffffff;
  --text-secondary: #9096a6;
  --green-accent: #2ecc71;
  --red-accent: #ff4757;
  --font-family: 'Outfit', sans-serif;
  --header-height: 60px;
  --nav-height: 68px;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
  height: 100vh;
}

/* APP LAYOUT CONTAINER */
.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  background-color: var(--bg-color);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
}

/* HEADER */
.app-header {
  height: var(--header-height);
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  background: rgba(12, 13, 18, 0.85);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.robot-avatar {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary-color), #f39c12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(247, 183, 49, 0.4);
}

.robot-avatar img {
  width: 20px;
  height: 20px;
}

.store-info {
  display: flex;
  flex-direction: column;
}

.store-name {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
}

.store-tag {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.balance-badge {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.balance-badge:active {
  background-color: var(--border-color);
  transform: scale(0.95);
}

.wallet-icon {
  width: 15px;
  height: 15px;
  color: var(--primary-color);
}

#header-balance {
  font-weight: 600;
  font-size: 14px;
}

.lang-selector {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 3px 6px;
  display: flex;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
}

.lang-option {
  color: var(--text-secondary);
  padding: 2px 6px;
  border-radius: 8px;
  cursor: pointer;
}

.lang-option.active {
  background-color: var(--primary-color);
  color: #000;
}

/* MAIN CONTENT */
.app-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  padding-bottom: calc(var(--nav-height) + 20px);
}

/* SECTION TRANSITIONS */
.view-section {
  display: none;
  animation: fadeIn 0.3s ease;
}

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

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

/* TABS */
.sub-tabs {
  display: flex;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 20px;
}

.sub-tab-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.sub-tab-btn.active {
  background-color: var(--card-bg);
  color: var(--primary-color);
  font-weight: 600;
}

.badge-new {
  position: absolute;
  top: -3px;
  right: 15%;
  background-color: var(--red-accent);
  color: #fff;
  font-size: 8px;
  padding: 1px 4px;
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* HERO BANNER */
.hero-banner {
  background: linear-gradient(135deg, rgba(22, 24, 33, 0.9) 0%, rgba(30, 33, 45, 0.9) 100%);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(247, 183, 49, 0.15) 0%, transparent 70%);
  z-index: 1;
}

.hero-text-content {
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.hero-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--primary-color);
  text-transform: uppercase;
}

.hero-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 6px;
}

.hero-buy-btn {
  background-color: var(--primary-color);
  color: #000;
  border: none;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-buy-btn:active {
  transform: scale(0.95);
  background-color: #e5a900;
}

.hero-image-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.hero-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ELEGANT HEADING */
.elegant-heading {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 24px;
  text-align: center;
  margin-bottom: 18px;
  color: #fff;
  opacity: 0.9;
}

/* PRODUCTS GRID */
.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* PRODUCT CARD */
.product-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.product-card:active {
  transform: scale(0.98);
  border-color: var(--primary-color);
}

.product-card-img {
  width: 100%;
  height: 90px;
  border-radius: 10px;
  object-fit: cover;
  background-color: #222;
}

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

.product-category-tag {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.product-name {
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.2;
}

.product-desc {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.3;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.product-price {
  font-weight: 700;
  font-size: 16px;
  color: var(--primary-color);
}

.stock-badge {
  font-size: 10px;
  background-color: rgba(46, 204, 113, 0.1);
  color: var(--green-accent);
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 600;
}

.stock-badge.out {
  background-color: rgba(255, 71, 87, 0.1);
  color: var(--red-accent);
}

/* LIST LAYOUT (Verify, Methods, Orders) */
.list-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.list-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.2s ease;
}

.list-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.list-item-img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
}

.list-item-info {
  display: flex;
  flex-direction: column;
}

.list-item-title {
  font-weight: 600;
  font-size: 14px;
}

.list-item-subtitle {
  font-size: 11px;
  color: var(--text-secondary);
}

.list-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.list-buy-btn {
  background-color: var(--primary-color);
  color: #000;
  border: none;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 14px;
  cursor: pointer;
}

.list-buy-btn:active {
  transform: scale(0.95);
}

.list-item-price {
  font-weight: 700;
  font-size: 14px;
  color: var(--primary-color);
}

.list-item-stock {
  font-size: 10px;
  color: var(--text-secondary);
}

/* INTRO TEXT */
.section-intro {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  font-style: italic;
  margin-bottom: 16px;
}

/* MAINTENANCE BOX */
.maintenance-box {
  background: rgba(247, 183, 49, 0.04);
  border: 1px solid rgba(247, 183, 49, 0.2);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.warning-icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.warning-title {
  color: var(--primary-color);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  font-size: 14px;
}

.warning-text {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* SUBVIEW CONTENT */
.subview-content {
  display: none;
}

.subview-content.active {
  display: block;
}

/* ORDERS LIST */
.orders-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
}

.order-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px;
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 8px;
}

.order-title {
  font-weight: 600;
  font-size: 14px;
}

.order-date {
  font-size: 11px;
  color: var(--text-secondary);
}

.order-status-badge {
  font-size: 11px;
  color: var(--green-accent);
  font-weight: 600;
}

.order-delivered-content {
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 12px;
  font-family: monospace;
  font-size: 12px;
  white-space: pre-wrap;
  word-break: break-all;
  color: #e0e0e0;
  margin-bottom: 12px;
}

.order-copy-btn {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 13px;
  padding: 10px 0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.order-copy-btn:active {
  background-color: var(--border-color);
}

/* BALANCE SECTION */
.balance-card {
  background: linear-gradient(135deg, var(--card-bg) 0%, #1e2130 100%);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.balance-card::before {
  content: '';
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 120px;
  height: 120px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(247,183,49,0.04)' stroke-width='2'%3E%3Crect x='2' y='5' width='20' height='14' rx='2' ry='2'/%3E%3Cline x1='2' y1='10' x2='22' y2='10'/%3E%3C/svg%3E") no-repeat center/contain;
}

.balance-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 1.5px;
}

.balance-amount {
  font-size: 38px;
  font-weight: 800;
  margin: 10px 0 20px;
  letter-spacing: -0.5px;
}

.add-funds-btn {
  background-color: var(--primary-color);
  color: #000;
  border: none;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 28px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(247, 183, 49, 0.3);
}

.add-funds-btn:active {
  transform: scale(0.96);
  box-shadow: none;
}

.activity-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.activity-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.activity-tab-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 12px;
  cursor: pointer;
}

.activity-tab-btn.active {
  background-color: var(--primary-color);
  color: #000;
  border-color: var(--primary-color);
  font-weight: 600;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.activity-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.activity-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.activity-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.activity-icon.topup {
  background-color: rgba(46, 204, 113, 0.1);
  color: var(--green-accent);
}

.activity-icon.paid {
  background-color: rgba(255, 71, 87, 0.1);
  color: var(--red-accent);
}

.activity-info {
  display: flex;
  flex-direction: column;
}

.activity-name {
  font-weight: 600;
  font-size: 13px;
}

.activity-meta {
  font-size: 10px;
  color: var(--text-secondary);
}

.activity-amount {
  font-weight: 700;
  font-size: 14px;
}

.activity-amount.positive {
  color: var(--green-accent);
}

.activity-amount.negative {
  color: var(--red-accent);
}

/* PROFILE TAB */
.profile-header {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  position: relative;
}

.avatar-large {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: #34495e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
}

.profile-meta {
  display: flex;
  flex-direction: column;
}

.profile-display-name {
  font-weight: 700;
  font-size: 16px;
}

.profile-username {
  font-size: 12px;
  color: var(--text-secondary);
}

.profile-badge {
  position: absolute;
  right: 20px;
  background-color: rgba(46, 204, 113, 0.1);
  color: var(--green-accent);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.profile-group {
  margin-bottom: 24px;
}

.group-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 1px;
  margin-left: 6px;
  margin-bottom: 8px;
}

.profile-item, .profile-link-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.profile-link-item {
  cursor: pointer;
  transition: all 0.2s ease;
}

.profile-link-item:active {
  background-color: var(--card-bg-hover);
}

.link-no-decor {
  text-decoration: none;
  color: inherit;
  display: flex;
}

.arrow-right {
  font-size: 18px;
  color: var(--text-secondary);
}

.profile-footer {
  text-align: center;
  font-size: 10px;
  color: var(--text-secondary);
  margin-top: 30px;
}

/* SWITCH TOGGLE */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #2c303f;
  transition: .3s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
}

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

input:checked + .slider:before {
  transform: translateX(20px);
  background-color: #000;
}

.slider.round {
  border-radius: 24px;
}

.slider.round:before {
  border-radius: 50%;
}

/* STICKY BOTTOM NAV */
.app-nav {
  height: var(--nav-height);
  border-top: 1px solid var(--border-color);
  background-color: rgba(12, 13, 18, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.nav-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  padding-bottom: 5px;
}

.nav-btn.active {
  color: var(--primary-color);
}

.nav-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
}

.nav-btn.active .nav-icon {
  transform: translateY(-2px);
}

.nav-text {
  font-size: 11px;
  font-weight: 500;
}

/* MODAL / OVERLAY */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 100%;
  max-width: 600px;
  background-color: var(--card-bg);
  border-top: 1px solid var(--border-color);
  border-radius: 24px 24px 0 0;
  padding: 20px;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.1, 0.7, 0.1, 1);
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 700;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: var(--text-primary);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.modal-instruction {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.modal-step {
  display: none;
  animation: fadeIn 0.25s ease;
}

.modal-step.active {
  display: block;
}

/* INPUT STYLING */
.input-group {
  position: relative;
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 4px 14px;
  margin-bottom: 12px;
}

.input-prefix {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary-color);
  margin-right: 8px;
}

.input-group input {
  flex: 1;
  background: none;
  border: none;
  color: #fff;
  font-family: var(--font-family);
  font-size: 20px;
  font-weight: 600;
  padding: 10px 0;
  outline: none;
}

.topup-rate-info {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  text-align: right;
}

#calc-mmk-amount {
  color: var(--primary-color);
  font-weight: 700;
}

/* PRIMARY BUTTONS */
.modal-primary-btn {
  width: 100%;
  background-color: var(--primary-color);
  color: #000;
  border: none;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 0;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 8px;
}

.modal-primary-btn:active {
  transform: scale(0.98);
}

.modal-secondary-btn {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 0;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-secondary-btn:active {
  background-color: rgba(255, 255, 255, 0.08);
}

/* PAYMENT METHODS SELECTION */
.payment-methods-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.payment-method-option {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  color: #fff;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
}

.payment-method-option:active, .payment-method-option.selected {
  border-color: var(--primary-color);
  background-color: rgba(247, 183, 49, 0.04);
}

.method-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  color: #fff;
}

.kpay-logo {
  background-color: #0054a6; /* KBZ Blue */
}

.wave-logo {
  background-color: #f7a81b; /* Wave Orange */
}

/* PAYMENT DETAILS BOX */
.payment-details-box {
  background-color: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.detail-row span {
  color: var(--text-secondary);
}

.copyable-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.copy-small-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--primary-color);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
}

.detail-row.highlight {
  border-top: 1px dashed var(--border-color);
  padding-top: 10px;
  margin-top: 5px;
  font-size: 15px;
}

.detail-row.highlight strong {
  color: var(--primary-color);
  font-size: 16px;
}

.txn-input-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.txn-input-section label {
  font-size: 12px;
  color: var(--text-secondary);
}

.txn-input-section input {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: monospace;
  font-size: 14px;
  color: #fff;
  outline: none;
}

.txn-input-section input:focus {
  border-color: var(--primary-color);
}

/* CONFIRM PURCHASE MODAL DETAILS */
.purchase-details h4 {
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 6px;
}

.purchase-details p {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 20px;
  padding: 0 10px;
}

.price-summary-box {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.error-text {
  color: var(--red-accent);
  font-size: 12px;
}

/* FAQ SCROLLABLE BODY */
.scrolling-body {
  max-height: 350px;
  overflow-y: auto;
}

.faq-item {
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 12px;
}

.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-item strong {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  color: #fff;
}

.faq-item p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* EMPTY STATES */
.empty-state {
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
  padding: 40px 20px;
  font-style: italic;
}

/* ================= REFERRALS STYLES ================= */
.referral-link-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.link-card-header {
  font-size: 10px;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: 1px;
}

.link-display-container {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 6px 6px 6px 14px;
  overflow: hidden;
}

.ref-link-text {
  font-family: monospace;
  font-size: 12px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.ref-copy-btn {
  background-color: rgba(212, 175, 55, 0.1);
  color: var(--primary-color);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ref-copy-btn:active {
  background-color: rgba(212, 175, 55, 0.2);
}

.ref-share-btn {
  background-color: var(--primary-color);
  color: #000;
  border: none;
  border-radius: 12px;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.ref-share-btn:active {
  opacity: 0.85;
}

.referral-activity-section {
  margin-top: 24px;
}

.ref-friend-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.ref-friend-item:last-child {
  border-bottom: none;
}

.ref-friend-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ref-friend-username {
  font-weight: 600;
  font-size: 13px;
  color: #fff;
}

.ref-friend-date {
  font-size: 10px;
  color: var(--text-secondary);
}

.ref-friend-status {
  font-size: 11px;
  background-color: rgba(255, 255, 255, 0.05);
  color: #fff;
  padding: 2px 6px;
  border-radius: 6px;
}

