/* DESIGN SYSTEM & GLOBAL VARIABLES */
:root {
  --bg-color: #050b10;
  --bg-elevated: #08121a;
  --card-bg: rgba(13, 27, 36, 0.65);
  --card-bg-hover: rgba(18, 38, 51, 0.85);
  --glass-bg: rgba(10, 20, 27, 0.65);
  --glass-border: rgba(255, 255, 255, 0.08);
  --border-color: rgba(120, 198, 204, 0.1);
  --border-strong: rgba(120, 198, 204, 0.2);
  --primary-color: #ff9900;
  --primary-rgb: 255, 153, 0;
  --accent-color: #ffb380;
  --accent-rgb: 255, 179, 128;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-soft: #cbd5e1;
  --green-accent: #47d195;
  --red-accent: #ff5252;
  --font-family: 'Noto Sans Myanmar', 'Padauk', 'Pyidaungsu', 'Outfit', system-ui, -apple-system, sans-serif;
  --header-height: 62px;
  --nav-height: 74px;
  --shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px rgba(255, 153, 0, 0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background: #050b10;
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
}

.app-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.45;
  animation: floatOrbs 18s ease-in-out infinite alternate;
}

.orb-one {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.22), transparent 75%);
  top: -100px;
  left: -80px;
}

.orb-two {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.18), transparent 75%);
  right: -100px;
  top: 150px;
  animation-delay: -5s;
}

@keyframes floatOrbs {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(15px, 20px) scale(1.05); }
  100% { transform: translate(-10px, -15px) scale(0.95); }
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.5), transparent 95%);
}

/* APP LAYOUT CONTAINER */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100dvh;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  background: linear-gradient(180deg, rgba(5, 11, 16, 0.92) 0%, rgba(3, 7, 10, 0.98) 100%);
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.6);
  z-index: 1;
}

/* HEADER */
.app-header {
  height: var(--header-height);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(4, 9, 13, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-avatar {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(var(--primary-rgb), 0.3);
}

.brand-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-info {
  display: flex;
  flex-direction: column;
}

.store-name {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.5px;
  background: linear-gradient(to right, #ff9900, #ffc880);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.store-tag {
  font-size: 11px;
  color: var(--text-secondary);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.balance-badge {
  appearance: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(var(--primary-rgb), 0.22);
  padding: 7px 14px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  color: inherit;
  font: inherit;
}

.balance-badge:active {
  background-color: rgba(255, 153, 0, 0.1);
  transform: scale(0.94);
}

.wallet-icon {
  width: 16px;
  height: 16px;
  color: var(--primary-color);
}

#header-balance {
  font-weight: 700;
  font-size: 14px;
  color: var(--primary-color);
}

.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: 20px 18px calc(var(--nav-height) + 30px + env(safe-area-inset-bottom, 0px));
}

/* SECTION TRANSITIONS */
.view-section {
  display: none;
  animation: fadeSlide 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.view-section.active {
  display: block;
}

.page-hero {
  background: linear-gradient(135deg, rgba(16, 31, 42, 0.6), rgba(8, 18, 25, 0.75));
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 20px 20px 18px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-soft);
}

.page-hero.compact {
  padding: 16px 16px 14px;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 6px;
}

.section-title {
  font-size: 24px;
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 12px;
}

.store-overview {
  background:
    linear-gradient(135deg, rgba(244, 201, 93, 0.12), rgba(120, 198, 163, 0.08)),
    linear-gradient(180deg, rgba(16, 31, 42, 0.94), rgba(10, 20, 27, 0.98));
  border: 1px solid rgba(var(--primary-rgb), 0.14);
  border-radius: 24px;
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-soft);
}

.overview-eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 10px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--primary-color);
  font-weight: 700;
}

.overview-title {
  font-size: 26px;
  line-height: 1.15;
  margin-bottom: 10px;
  max-width: 480px;
}

.overview-text {
  color: var(--text-soft);
  font-size: 13px;
  max-width: 500px;
}

.overview-metrics {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.metric-pill {
  min-width: 140px;
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 12px 14px;
}

.metric-pill strong {
  display: block;
  font-size: 16px;
}

.metric-pill span {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-top: 2px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes floatUp {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { 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;
}

.store-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.store-search-input {
  flex: 1;
  min-width: 220px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 13px;
  outline: none;
}

.store-search-input::placeholder {
  color: var(--text-secondary);
}

.store-search-input:focus {
  border-color: rgba(var(--primary-rgb), 0.32);
  background: rgba(255,255,255,0.07);
}

.store-search-status {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.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: #000;
  border: none;
  border-radius: 12px;
  padding: 0;
  display: block;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  aspect-ratio: 16 / 9;
  outline: none;
}

.hero-banner::before {
  display: none;
}

.hero-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.25);
  z-index: 3;
  pointer-events: none;
}

.hero-carousel-track {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
}

.hero-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
}

.hero-carousel-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-carousel-slide img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.hero-carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  padding: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-carousel-dot.active {
  width: 20px;
  background: var(--primary-color);
}

.hero-carousel-empty {
  min-height: 180px;
  display: grid;
  place-items: center;
  color: var(--text-soft);
  text-align: center;
}

/* ELEGANT HEADING */
.elegant-heading {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 24px;
  margin-bottom: 0;
  color: #fff;
  opacity: 0.9;
}

.store-main-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin: 0;
}

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.section-badge {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 7px 10px;
  white-space: nowrap;
}

/* PRODUCTS GRID */
.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* PRODUCT CARD */
.product-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.product-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent 30%);
  pointer-events: none;
}

.product-card:active {
  transform: scale(0.96);
  border-color: var(--primary-color);
}

.product-card:hover {
  border-color: rgba(var(--primary-rgb), 0.45);
  box-shadow: var(--shadow-soft), 0 10px 25px rgba(var(--primary-rgb), 0.08);
}

.product-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0;
  object-fit: cover;
  background-color: #222;
}

.product-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 10px 10px 0;
}

.product-category-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.product-name {
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.2;
}

.product-desc {
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.3;
  margin-bottom: 6px;
  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;
  padding: 8px 10px 12px;
}

.product-price {
  font-weight: 700;
  font-size: 17px;
  color: var(--primary-color);
}

.stock-badge {
  font-size: 10px;
  background-color: rgba(99, 214, 161, 0.12);
  color: var(--green-accent);
  padding: 4px 8px;
  border-radius: 999px;
  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: var(--card-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 18px;
  padding: 14px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.list-item:active {
  transform: scale(0.97);
}

.list-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.list-item-img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
}

.list-item-info {
  display: flex;
  flex-direction: column;
}

.list-item-title {
  font-weight: 700;
  font-size: 14px;
}

.list-item-subtitle {
  font-size: 11px;
  color: var(--text-soft);
}

.list-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.list-buy-btn {
  background: linear-gradient(135deg, var(--primary-color), #ffdf8f);
  color: #08131a;
  border: none;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  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-soft);
  margin-bottom: 16px;
  line-height: 1.55;
}

/* MAINTENANCE BOX */
.maintenance-box {
  background: rgba(var(--primary-rgb), 0.06);
  border: 1px solid rgba(var(--primary-rgb), 0.22);
  border-radius: 20px;
  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;
}

.order-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.order-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.order-inline-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  background: rgba(255,255,255,0.05);
  color: var(--text-secondary);
  border: 1px solid rgba(255,255,255,0.06);
}

.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.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  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 rgba(var(--primary-rgb), 0.16);
  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:
    radial-gradient(circle at top right, rgba(var(--primary-rgb), 0.15), transparent 45%),
    var(--card-bg);
  border: 1px solid rgba(var(--primary-rgb), 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft), var(--shadow-glow);
}

.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: 10px;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 1.5px;
}

.balance-amount {
  font-size: 42px;
  font-weight: 800;
  margin: 6px 0 14px;
  letter-spacing: -0.5px;
}

.add-funds-btn {
  background: linear-gradient(135deg, var(--primary-color), #ffde8d);
  color: #08131a;
  border: none;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 28px;
  border-radius: 999px;
  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: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.activity-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.activity-tab-btn {
  background: rgba(255, 255, 255, 0.04);
  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: 999px;
  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: var(--card-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
}

.activity-card:active {
  transform: scale(0.98);
}

.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-status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.activity-status-pill.pending {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
}

.activity-status-pill.approved,
.activity-status-pill.completed {
  background: rgba(46, 204, 113, 0.12);
  color: var(--green-accent);
}

.activity-status-pill.rejected {
  background: rgba(255, 107, 107, 0.12);
  color: var(--red-accent);
}

.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: var(--card-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 22px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  position: relative;
}

.avatar-large {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.3), rgba(var(--accent-rgb), 0.26));
  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: var(--card-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-link-item {
  appearance: none;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
}

.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: calc(var(--nav-height) + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--glass-border);
  background-color: rgba(11, 15, 23, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 99999;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
  padding-bottom: max(6px, env(safe-area-inset-bottom, 0px));
}

.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.72);
  backdrop-filter: blur(14px);
  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: rgba(8, 18, 25, 0.92);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-top: 1px solid var(--glass-border);
  border-left: 1px solid var(--glass-border);
  border-right: 1px solid var(--glass-border);
  border-radius: 28px 28px 0 0;
  padding: 10px 20px 20px;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.6);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.1, 0.8, 0.1, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-handle {
  width: 48px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  margin: 2px auto 14px;
}

.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.06);
  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.04);
  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);
}

.app-toast-stack {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(var(--nav-height) + 22px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 320;
  pointer-events: none;
  align-items: center;
}

.app-toast {
  width: min(100%, 460px);
  background: linear-gradient(180deg, rgba(15, 28, 37, 0.98), rgba(8, 18, 25, 1));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateY(8px);
  animation: toastRise 0.22s ease forwards;
}

.app-toast.success {
  border-color: rgba(99, 214, 161, 0.28);
}

.app-toast.error {
  border-color: rgba(255, 107, 107, 0.28);
}

.app-toast.info {
  border-color: rgba(var(--primary-rgb), 0.28);
}

.app-toast-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.app-toast-message {
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-soft);
  white-space: pre-line;
}

@keyframes toastRise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 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.03);
  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.22);
  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);
}

.receipt-preview {
  margin-top: 12px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  display: flex;
  align-items: center;
  gap: 12px;
}

.receipt-preview img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
}

.receipt-preview span {
  font-size: 12px;
  color: var(--text-soft);
  word-break: break-word;
}

/* 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: 18px;
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.purchase-summary-box {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.purchase-summary-row {
  font-size: 14px;
}

.qty-control-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.qty-control-label {
  font-size: 12px;
  color: var(--text-secondary);
}

.qty-stepper {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  gap: 10px;
  align-items: center;
}

.qty-stepper-btn {
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(var(--primary-rgb), 0.25);
  background: rgba(var(--primary-rgb), 0.08);
  color: var(--primary-color);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.qty-stepper-btn:active {
  transform: scale(0.97);
}

#purchase-qty-input {
  width: 100%;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  background: rgba(255,255,255,0.04);
  color: var(--text-primary);
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  outline: none;
}

#purchase-qty-input:focus {
  border-color: rgba(var(--primary-rgb), 0.65);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}

.qty-helper-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--text-secondary);
}

.qty-helper-row strong {
  color: var(--text-primary);
}

.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;
}

.empty-state::before {
  content: '◇';
  display: block;
  font-size: 22px;
  font-style: normal;
  color: rgba(var(--primary-rgb), 0.75);
  margin-bottom: 8px;
}

.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
  padding: 34px 20px;
}

.loading-state::before {
  content: '';
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.08);
  border-top-color: var(--primary-color);
  animation: spinLoader 0.9s linear infinite;
}

.loading-copy {
  max-width: 260px;
  line-height: 1.5;
}

@keyframes spinLoader {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ================= REFERRALS STYLES ================= */
.referral-link-card {
  background:
    radial-gradient(circle at top right, rgba(var(--primary-rgb), 0.16), transparent 34%),
    linear-gradient(180deg, rgba(15, 28, 37, 0.88), rgba(10, 20, 27, 0.98));
  border: 1px solid var(--border-color);
  border-radius: 22px;
  padding: 18px;
  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.04);
  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(var(--primary-rgb), 0.12);
  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: linear-gradient(135deg, var(--primary-color), #ffde8d);
  color: #08131a;
  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(var(--accent-rgb), 0.16);
  color: #dff7eb;
  padding: 4px 8px;
  border-radius: 999px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat-box {
  background: linear-gradient(180deg, rgba(15, 28, 37, 0.88), rgba(10, 20, 27, 0.98));
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
}

.stat-num {
  display: block;
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.stat-label {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.45;
}

@media (max-width: 520px) {
  .app-content {
    padding-inline: 14px;
  }

  .page-hero {
    border-radius: 22px;
    padding: 16px 16px 14px;
    margin-bottom: 16px;
  }

  .page-hero.compact {
    padding: 14px 14px 12px;
  }

  .section-title {
    font-size: 22px;
  }

  .store-overview {
    padding: 18px 16px;
    margin-bottom: 16px;
  }

  .overview-title {
    font-size: 23px;
  }

  .overview-metrics {
    gap: 8px;
  }

  .metric-pill {
    min-width: 0;
    flex-basis: calc(50% - 4px);
    padding: 11px 12px;
  }

  .hero-banner {
    padding: 0;
    margin-bottom: 20px;
  }

  .modal-card {
    border-radius: 24px 24px 0 0;
    padding: 8px 16px 18px;
  }

  .modal-header {
    margin-bottom: 16px;
  }

  .modal-header h3 {
    font-size: 17px;
  }

  .modal-instruction {
    font-size: 12px;
    margin-bottom: 14px;
  }

  .payment-methods-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 16px;
  }

  .payment-method-option {
    flex-direction: row;
    justify-content: flex-start;
    padding: 14px 16px;
    gap: 10px;
  }

  .method-logo {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .payment-details-box,
  .price-summary-box {
    padding: 14px;
    margin-bottom: 16px;
  }

  .detail-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .detail-row.highlight {
    gap: 6px;
    font-size: 14px;
  }

  .detail-row.highlight strong {
    font-size: 15px;
  }

  .copyable-wrapper {
    flex-wrap: wrap;
    gap: 6px;
  }

  .txn-input-section {
    margin-bottom: 16px;
  }

  .receipt-preview {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .receipt-preview img {
    width: 52px;
    height: 52px;
  }

  .scrolling-body {
    max-height: min(60vh, 340px);
  }

  .order-card,
  .activity-card {
    border-radius: 16px;
  }

  .order-card {
    padding: 14px;
  }

  .order-header {
    margin-bottom: 10px;
    padding-bottom: 6px;
  }

  .order-title {
    font-size: 13px;
  }

  .order-meta-row {
    gap: 6px;
  }

  .order-delivered-content {
    padding: 10px;
    font-size: 11px;
    margin-bottom: 10px;
  }

  .order-copy-btn {
    font-size: 12px;
    padding: 9px 0;
  }

  .balance-card {
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 20px;
  }

  .balance-amount {
    font-size: 36px;
    margin: 4px 0 10px;
  }

  .activity-title {
    font-size: 17px;
    margin-bottom: 10px;
  }

  .referral-link-card {
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 18px;
    gap: 10px;
  }

  .link-display-container {
    flex-direction: column;
    align-items: stretch;
    padding: 10px 10px 12px;
    gap: 8px;
  }

  .ref-link-text {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    word-break: break-all;
  }

  .ref-copy-btn,
  .ref-share-btn {
    width: 100%;
  }

  .ref-copy-btn {
    padding: 10px 14px;
  }



  .ref-friend-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .profile-item,
  .profile-link-item {
    padding: 14px;
    border-radius: 14px;
  }

  .group-title {
    margin-bottom: 6px;
  }

  .section-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .store-toolbar {
    align-items: stretch;
    gap: 10px;
    margin-bottom: 16px;
  }

  .sub-tabs {
    gap: 4px;
    margin-bottom: 16px;
  }

  .sub-tab-btn {
    min-width: 0;
    font-size: 13px;
    padding: 10px 8px;
  }

  .store-search-status {
    width: 100%;
    font-size: 10px;
    letter-spacing: 0.8px;
  }



  .activity-card,
  .order-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .activity-card {
    padding: 12px 14px;
    gap: 10px;
  }

  .activity-card-left {
    width: 100%;
    gap: 10px;
  }

  .activity-name {
    font-size: 12px;
  }

  .activity-meta,
  .order-date {
    font-size: 10px;
  }

  .activity-amount {
    align-self: flex-end;
  }
}

@media (max-width: 380px) {
  .sub-tabs {
    flex-wrap: wrap;
  }

  .sub-tab-btn {
    flex: 1 1 calc(50% - 4px);
  }

  .store-search-input {
    min-width: 0;
    padding-inline: 14px;
  }
}
