/* ====================================================================
   ATKE DIGITAL STORE - TELEGRAM MINI APP STYLESHEET
   Design System: Telegram Native Theme Reactive + Modern Glassmorphism
   Typography: Inter & System UI
   ==================================================================== */

:root {
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", Helvetica, Arial, sans-serif;
  
  /* Fallbacks for Telegram CSS theme variables */
  --bg-color: var(--tg-theme-bg-color, #0f172a);
  --secondary-bg-color: var(--tg-theme-secondary-bg-color, #1e293b);
  --text-color: var(--tg-theme-text-color, #f8fafc);
  --hint-color: var(--tg-theme-hint-color, #94a3b8);
  --link-color: var(--tg-theme-link-color, #38bdf8);
  --button-color: var(--tg-theme-button-color, #3b82f6);
  --button-text-color: var(--tg-theme-button-text-color, #ffffff);
  
  /* Premium Accent Palette */
  --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  
  /* Surface colors & borders */
  --card-bg: rgba(30, 41, 59, 0.7);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-hover-border: rgba(56, 189, 248, 0.35);
  --modal-overlay: rgba(0, 0, 0, 0.75);
  --modal-bg: #1e293b;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.25);
  
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light mode overrides if Telegram client is in light mode */
@media (prefers-color-scheme: light) {
  :root {
    --bg-color: var(--tg-theme-bg-color, #f8fafc);
    --secondary-bg-color: var(--tg-theme-secondary-bg-color, #ffffff);
    --text-color: var(--tg-theme-text-color, #0f172a);
    --hint-color: var(--tg-theme-hint-color, #64748b);
    --card-bg: rgba(255, 255, 255, 0.9);
    --card-border: rgba(0, 0, 0, 0.08);
    --modal-bg: #ffffff;
  }
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-color);
  min-height: 100vh;
  padding-bottom: 70px;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ---------------- Container & Layout ---------------- */
.app-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 16px;
}

/* ---------------- Header ---------------- */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 18px;
  border-bottom: 1px solid var(--card-border);
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #38bdf8 0%, #3b82f6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

.brand-info h1 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-color);
}

.brand-info p {
  font-size: 0.75rem;
  color: var(--hint-color);
  display: flex;
  align-items: center;
  gap: 4px;
}

.badge-online {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 6px var(--accent-emerald);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-header-icon {
  background: var(--secondary-bg-color);
  border: 1px solid var(--card-border);
  color: var(--text-color);
  border-radius: var(--radius-full);
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-header-icon:hover {
  border-color: var(--card-hover-border);
  transform: translateY(-1px);
}

.orders-badge-count {
  background: var(--button-color);
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

/* ---------------- Hero Banner ---------------- */
.hero-banner {
  margin: 16px 0;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(6, 182, 212, 0.1) 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.hero-banner::after {
  content: '';
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #fff;
}

.hero-content p {
  font-size: 0.8rem;
  color: var(--hint-color);
  max-width: 85%;
}

.hero-payment-tags {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.pill-tag {
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-color);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ---------------- Search & Filter Tabs ---------------- */
.search-container {
  margin: 14px 0;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 12px 48px 12px 42px;
  background: var(--secondary-bg-color);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  color: var(--text-color);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--button-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: var(--hint-color);
  pointer-events: none;
}

.search-action-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--button-color);
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.search-action-btn:hover {
  filter: brightness(1.15);
}

.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-pill {
  padding: 8px 16px;
  background: var(--secondary-bg-color);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--hint-color);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.category-pill.active {
  background: var(--button-color);
  color: #fff;
  border-color: var(--button-color);
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.35);
}

/* ---------------- Products Grid ---------------- */
.products-section {
  margin-top: 16px;
}

.section-title {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--hint-color);
  margin-bottom: 12px;
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

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

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(8px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  border-color: var(--card-hover-border);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.product-category-tag {
  font-size: 0.65rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.15);
  color: var(--link-color);
}

.product-badge {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
}

.product-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 6px;
  color: var(--text-color);
}

.product-desc {
  font-size: 0.8rem;
  color: var(--hint-color);
  line-height: 1.45;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  color: var(--hint-color);
  margin-bottom: 14px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

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

.price-box {
  display: flex;
  flex-direction: column;
}

.price-label {
  font-size: 0.65rem;
  color: var(--hint-color);
  text-transform: uppercase;
}

.price-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-color);
}

.price-currency {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--link-color);
}

.btn-buy {
  background: var(--button-color);
  color: var(--button-text-color);
  border: none;
  border-radius: var(--radius-md);
  padding: 9px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

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

.btn-buy.out-of-stock {
  background: rgba(148, 163, 184, 0.2);
  color: var(--hint-color);
  box-shadow: none;
  cursor: not-allowed;
}

/* ---------------- Modal & Bottom Sheet ---------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--modal-overlay);
  backdrop-filter: blur(6px);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 9999;
  padding: 0;
}

@media (min-width: 600px) {
  .modal-overlay {
    align-items: center;
    padding: 20px;
  }
}

.modal-overlay.active {
  display: flex;
}

.modal-sheet {
  background: var(--modal-bg);
  width: 100%;
  max-width: 540px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 24px 20px 30px;
  box-shadow: var(--shadow-md);
  border-top: 1px solid var(--card-border);
  animation: slideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
}

@media (min-width: 600px) {
  .modal-sheet {
    border-radius: var(--radius-lg);
    border: 1px solid var(--card-border);
    animation: fadeInScale 0.22s ease-out;
  }
}

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

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

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

.modal-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  color: var(--hint-color);
  cursor: pointer;
  padding: 4px;
}

/* ---------------- Checkout Specifics ---------------- */
.order-summary-box {
  background: var(--secondary-bg-color);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-summary-box h4 {
  font-size: 0.95rem;
  font-weight: 700;
}

.order-summary-box .order-amount {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--link-color);
}

.channel-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.channel-card {
  background: var(--secondary-bg-color);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 10px 6px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.channel-card.active {
  border-color: var(--button-color);
  background: rgba(59, 130, 246, 0.12);
}

.channel-icon {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.channel-title {
  font-size: 0.75rem;
  font-weight: 700;
}

.account-details-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--card-border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 18px;
}

.account-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.account-row:last-child {
  margin-bottom: 0;
}

.account-label {
  font-size: 0.75rem;
  color: var(--hint-color);
}

.account-val {
  font-size: 0.9rem;
  font-weight: 700;
  font-family: monospace;
  letter-spacing: 0.05em;
}

.btn-copy-account {
  background: var(--secondary-bg-color);
  border: 1px solid var(--card-border);
  color: var(--text-color);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.btn-copy-account:hover {
  background: rgba(255, 255, 255, 0.1);
}

.input-group {
  margin-bottom: 20px;
}

.input-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-color);
}

.input-field {
  width: 100%;
  padding: 12px 14px;
  background: var(--secondary-bg-color);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  color: var(--text-color);
  font-size: 0.95rem;
  font-family: monospace;
  letter-spacing: 0.05em;
  outline: none;
  transition: var(--transition);
}

.input-field:focus {
  border-color: var(--button-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.input-hint {
  font-size: 0.75rem;
  color: var(--hint-color);
  margin-top: 5px;
}

.btn-submit-order {
  width: 100%;
  background: var(--button-color);
  color: var(--button-text-color);
  border: none;
  border-radius: var(--radius-md);
  padding: 14px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-submit-order:active {
  transform: scale(0.98);
}

.btn-submit-order:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---------------- Order Tracking & Delivery Box ---------------- */
.tracking-stepper {
  display: flex;
  justify-content: space-between;
  margin: 18px 0 24px;
  position: relative;
}

.tracking-stepper::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: var(--card-border);
  z-index: 1;
}

.step-item {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 33.33%;
}

.step-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--secondary-bg-color);
  border: 2px solid var(--card-border);
  margin: 0 auto 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--hint-color);
}

.step-item.active .step-circle {
  background: var(--button-color);
  border-color: var(--button-color);
  color: #fff;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

.step-item.completed .step-circle {
  background: var(--accent-emerald);
  border-color: var(--accent-emerald);
  color: #fff;
}

.step-label {
  font-size: 0.7rem;
  color: var(--hint-color);
  font-weight: 600;
}

.step-item.active .step-label {
  color: var(--text-color);
}

.delivery-secret-card {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 16px 0;
}

.code-display {
  background: rgba(0, 0, 0, 0.4);
  padding: 14px;
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-size: 0.95rem;
  color: #34d399;
  word-break: break-all;
  user-select: all;
  margin: 10px 0;
  border: 1px dashed rgba(52, 211, 153, 0.3);
}

.instructions-card {
  background: var(--secondary-bg-color);
  border-radius: var(--radius-md);
  padding: 14px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--hint-color);
  margin-top: 14px;
}

.instructions-card h5 {
  color: var(--text-color);
  margin-bottom: 6px;
  font-size: 0.85rem;
}

/* ---------------- My Purchases Screen ---------------- */
.purchases-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.purchase-card-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.purchase-title {
  font-size: 0.95rem;
  font-weight: 700;
}

.purchase-status-badge {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.badge-completed { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); }
.badge-pending { background: rgba(245, 158, 11, 0.15); color: var(--accent-amber); }
.badge-failed { background: rgba(244, 63, 94, 0.15); color: var(--accent-rose); }

/* ---------------- Toast Notification ---------------- */
.toast-box {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1e293b;
  color: #fff;
  border: 1px solid var(--card-border);
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100000;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast-box.show {
  transform: translateX(-50%) translateY(0);
}

/* Spinner */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hidden {
  display: none !important;
}

/* ====================================================================
   ADMIN CONTROL HUB STYLES
   ==================================================================== */
.admin-btn {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(239, 68, 68, 0.15)) !important;
  border-color: rgba(245, 158, 11, 0.4) !important;
  color: #fbbf24 !important;
  font-weight: 700 !important;
}

.modal-sheet-lg {
  max-height: 90vh !important;
  overflow-y: auto !important;
}

.admin-quick-settings {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-setting-item label {
  font-size: 0.75rem;
  color: var(--hint-color);
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rate-input-row {
  display: flex;
  gap: 8px;
}

.rate-input-row input {
  flex: 1;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--card-border);
  color: var(--text-color);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
}

.btn-sm {
  background: var(--button-color);
  color: var(--button-text-color);
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-sm:active {
  transform: scale(0.97);
}

.admin-products-heading {
  margin-bottom: 12px;
}

.admin-products-heading h4 {
  font-size: 0.95rem;
  color: var(--text-color);
}

.admin-products-heading p {
  font-size: 0.75rem;
  color: var(--hint-color);
}

.admin-products-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-item-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.admin-item-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-color);
}

.admin-item-category {
  font-size: 0.7rem;
  color: var(--hint-color);
}

.admin-item-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.admin-field-group label {
  font-size: 0.7rem;
  color: var(--hint-color);
  display: block;
  margin-bottom: 3px;
}

.admin-field-group input, .admin-field-group select {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--card-border);
  color: var(--text-color);
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
}

.admin-actions-row {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.btn-admin-save {
  flex: 1;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  padding: 8px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
}

.btn-admin-broadcast {
  flex: 1.5;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  border: none;
  padding: 8px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.btn-admin-broadcast:active, .btn-admin-save:active {
  transform: scale(0.97);
}

/* ====================================================================
   TELEGRAM WALLET CONNECTION PILL & STATUS BANNER (Competitor Match)
   ==================================================================== */
.connection-status-pill {
  width: 100%;
  padding: 9px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  letter-spacing: -0.01em;
}

/* Connecting State (Soft Rose / Reddish cream) */
.connection-status-pill.connecting {
  background: #fff1f2;
  border: 1px solid #ffe4e6;
  color: #9f1239;
}

@media (prefers-color-scheme: dark) {
  .connection-status-pill.connecting {
    background: rgba(244, 63, 94, 0.12);
    border: 1px solid rgba(244, 63, 94, 0.25);
    color: #fda4af;
  }
}

/* Connected State (Soft Mint / Light Green) */
.connection-status-pill.connected {
  background: #f0fdf4;
  border: 1px solid #dcfce7;
  color: #166534;
}

@media (prefers-color-scheme: dark) {
  .connection-status-pill.connected {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #6ee7b7;
  }
}

.status-spinner {
  width: 13px;
  height: 13px;
  border: 2px solid rgba(159, 18, 57, 0.25);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}

.search-action-btn {
  background: var(--button-color);
  color: #fff;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  transition: transform 0.15s ease;
}

.search-action-btn:active {
  transform: scale(0.92);
}

/* ====================================================================
   VIEW SWITCHER ARCHITECTURE (Home, Wallet, Activity, Profile)
   ==================================================================== */
.tab-view {
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-view.hidden {
  display: none !important;
}

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

.view-header {
  margin-bottom: 20px;
}

.view-header h2 {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.view-header p {
  font-size: 0.82rem;
  color: var(--hint-color);
  margin-top: 3px;
}

/* ====================================================================
   WALLET VIEW COMPONENTS (Matches Ethio-Viral Screenshot 5)
   ==================================================================== */
.wallet-balance-card {
  background: linear-gradient(135deg, #2b1154 0%, #170d36 100%);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 12px 32px rgba(43, 17, 84, 0.35);
  color: #ffffff;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.wallet-balance-card::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.wallet-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.wallet-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.12);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  color: #e9d5ff;
}

.wallet-card-icon {
  font-size: 1.25rem;
  opacity: 0.8;
}

.wallet-card-balance {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.wallet-card-balance .currency {
  font-size: 1.1rem;
  font-weight: 700;
  color: #c084fc;
}

.wallet-card-balance .amount {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.wallet-card-sub {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 18px;
}

.btn-wallet-action {
  background: #7c3aed;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4);
}

.btn-wallet-action:active {
  transform: scale(0.96);
  background: #6d28d9;
}

.quick-topup-section {
  margin-bottom: 24px;
}

.section-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--hint-color);
  margin-bottom: 10px;
  display: block;
}

.quick-chips-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.quick-chip {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-color);
  padding: 12px 6px;
  border-radius: var(--radius-md);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.quick-chip .chip-curr {
  font-size: 0.68rem;
  color: var(--hint-color);
  display: block;
  font-weight: 500;
  margin-top: 2px;
}

.quick-chip:active, .quick-chip.active {
  border-color: #8b5cf6;
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
}

.wallet-transactions-section {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 18px;
}

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

.tx-title {
  font-size: 0.95rem;
  font-weight: 700;
}

.tx-count {
  font-size: 0.78rem;
  color: var(--hint-color);
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.tx-filter-pills {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.tx-pill {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--hint-color);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.tx-pill.active {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #ffffff;
}

.empty-wallet-card {
  text-align: center;
  padding: 30px 16px;
}

.empty-icon {
  font-size: 2.8rem;
  margin-bottom: 10px;
}

.empty-wallet-card h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.empty-wallet-card p {
  font-size: 0.8rem;
  color: var(--hint-color);
  max-width: 280px;
  margin: 0 auto 16px;
}

.btn-wallet-signin {
  background: #7c3aed;
  color: #fff;
  border: none;
  padding: 8px 24px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

/* ====================================================================
   PROFILE & NOTIFICATION CONTROLS (Matches Screenshot 013022, 013123)
   ==================================================================== */
.profile-user-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 16px;
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
}

.profile-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
}

.profile-info h4 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.profile-info p {
  font-size: 0.78rem;
  color: var(--hint-color);
}

.connection-badge-active {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: #10b981;
  margin-top: 4px;
}

.notification-controls-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
}

.controls-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.controls-card-header h3 {
  font-size: 1.05rem;
  font-weight: 800;
}

.btn-test-sound {
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.3);
  color: #a78bfa;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-test-sound:active {
  transform: scale(0.94);
  background: rgba(124, 58, 237, 0.25);
}

.controls-section-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  color: #a78bfa;
  margin-bottom: 12px;
}

.controls-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
}

.control-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.control-info {
  flex: 1;
}

.control-info h5 {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.control-info p {
  font-size: 0.74rem;
  color: var(--hint-color);
  line-height: 1.35;
}

/* iOS/Telegram Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
  background-color: #7c3aed;
}

input:checked + .slider:before {
  transform: translateX(20px);
}

/* Chime Tones Grid (2x2 Grid) */
.chime-tones-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.chime-tone-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.chime-tone-card .tone-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  font-weight: 700;
}

.chime-tone-card .check-mark {
  color: #a78bfa;
  font-weight: 800;
  font-size: 0.95rem;
}

.chime-tone-card.active {
  background: rgba(124, 58, 237, 0.12);
  border-color: #7c3aed;
  color: #c4b5fd;
}

.profile-links-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-link-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.profile-link-btn:active {
  background: rgba(255, 255, 255, 0.08);
}

/* ====================================================================
   BOTTOM FLOATING NAVIGATION BAR (Modern TMA 4-Tab Layout)
   ==================================================================== */
.bottom-nav-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 600px;
  height: 64px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 10px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  z-index: 9999;
}

.nav-item {
  background: none;
  border: none;
  color: var(--hint-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.nav-item .nav-icon {
  font-size: 1.25rem;
  transition: transform 0.2s ease;
}

.nav-item.active {
  color: #a78bfa;
}

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

.nav-item:active {
  transform: scale(0.92);
}

/* ====================================================================
   RECEIPT SCREENSHOT DROPZONE & COMMENTS STYLES
   ==================================================================== */
.upload-dropzone {
  border: 2px dashed rgba(167, 139, 250, 0.35);
  background: rgba(167, 139, 250, 0.04);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  text-align: center;
  overflow: hidden;
}

.upload-dropzone:hover, .upload-dropzone.dragover {
  border-color: #8b5cf6;
  background: rgba(139, 92, 246, 0.1);
  transform: translateY(-1px);
}

.file-input-hidden {
  display: none;
}

.upload-prompt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.upload-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.upload-text-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.upload-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-color);
}

.upload-hint {
  font-size: 0.72rem;
  color: var(--hint-color);
  margin-top: 2px;
}

.upload-preview {
  position: relative;
  width: 100%;
  max-height: 180px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
}

.upload-preview img {
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.btn-remove-preview {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(244, 63, 94, 0.9);
  color: #fff;
  border: none;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease;
}

.btn-remove-preview:active {
  transform: scale(0.9);
}

.textarea-field {
  resize: vertical;
  min-height: 60px;
  font-family: inherit;
  font-size: 0.85rem;
  line-height: 1.4;
}

/* ====================================================================
   LIGHT THEME SYSTEM & SCREENSHOT PARITY STYLES
   ==================================================================== */
body.light-theme {
  --bg-color: #f8fafc;
  --secondary-bg-color: #ffffff;
  --text-color: #0f172a;
  --hint-color: #64748b;
  --link-color: #2563eb;
  --button-color: #10b981;
  --button-text-color: #ffffff;
  --accent-emerald: #10b981;
  --card-bg: #ffffff;
  --card-border: #e2e8f0;
  --card-hover-border: #10b981;
  --modal-overlay: rgba(15, 23, 42, 0.55);
  --modal-bg: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.08);
}

body.light-theme .app-header {
  border-bottom-color: #e2e8f0;
}

body.light-theme .search-container {
  background: #ffffff;
  border-color: #cbd5e1;
}

body.light-theme .search-input {
  color: #0f172a;
}

body.light-theme .category-pill {
  background: #f1f5f9;
  color: #475569;
  border-color: transparent;
}

body.light-theme .category-pill.active {
  background: #10b981;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

body.light-theme .product-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

body.light-theme .product-card:hover {
  border-color: #10b981;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.12);
}

body.light-theme .price-tag {
  color: #059669;
}

body.light-theme .btn-buy {
  background: #10b981;
  color: #ffffff;
}

body.light-theme .btn-buy:hover {
  background: #059669;
}

body.light-theme .btn-header-icon {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #0f172a;
}

body.light-theme .bottom-nav-bar {
  background: rgba(255, 255, 255, 0.95);
  border-top-color: #e2e8f0;
}

body.light-theme .nav-item {
  color: #64748b;
}

body.light-theme .nav-item.active {
  color: #10b981;
}

body.light-theme .modal-sheet {
  background: #ffffff;
  color: #0f172a;
}

body.light-theme .input-field {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

body.light-theme .input-field:focus {
  border-color: #10b981;
}

body.light-theme .account-details-box,
body.light-theme .order-summary-box {
  background: #f8fafc;
  border-color: #e2e8f0;
}

body.light-theme .upload-dropzone {
  background: #f8fafc;
  border-color: #cbd5e1;
}

body.light-theme .upload-dropzone:hover,
body.light-theme .upload-dropzone.dragover {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.04);
}

body.light-theme .selected-account-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

body.light-theme .notification-controls-card,
body.light-theme .profile-user-card,
body.light-theme .wallet-transactions-section,
body.light-theme .webapp-sync-card,
body.light-theme .admin-review-section,
body.light-theme .metric-card {
  background: #ffffff;
  border-color: #e2e8f0;
}

/* Header Avatar & Theme Toggle */
.btn-theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-theme-toggle:hover {
  border-color: var(--card-hover-border);
  transform: rotate(15deg) scale(1.05);
}

.header-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ef4444; /* Vibrant avatar matching Screenshot 2 & 3 */
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35);
  transition: var(--transition);
}

.header-avatar:hover {
  transform: scale(1.05);
}

/* Wallet Payment Account Selection (Screenshot 3 Parity) */
.add-money-section {
  margin: 18px 0;
}

.add-money-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.sub-hint {
  font-size: 0.75rem;
  color: var(--hint-color);
}

.payment-account-chips {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.account-chip {
  flex: 1;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-color);
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.account-chip.active {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  box-shadow: 0 0 0 1px #10b981;
}

.selected-account-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 16px;
}

.account-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.channel-icon-pill {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.label-muted {
  font-size: 0.72rem;
  color: var(--hint-color);
  display: block;
}

.account-number-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.account-num-val {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-color);
}

.btn-copy-chip {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-copy-chip:hover {
  background: #10b981;
  color: #ffffff;
}

.account-holder-val {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-color);
}

/* Profile Stats Row & Web App Sync Card */
.profile-stats-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.stat-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  display: flex;
  gap: 6px;
}

body.light-theme .stat-pill {
  background: #f1f5f9;
}

.stat-label {
  color: var(--hint-color);
}

.stat-val {
  font-weight: 800;
  color: var(--text-color);
}

.webapp-sync-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin: 16px 0;
}

.sync-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.badge-pill {
  font-size: 0.7rem;
  background: rgba(56, 189, 248, 0.15);
  color: var(--link-color);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.sync-desc {
  font-size: 0.78rem;
  color: var(--hint-color);
  margin-bottom: 12px;
}

.sync-input-row {
  display: flex;
  gap: 8px;
}

.sync-input {
  flex: 1;
  background: var(--secondary-bg-color);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  color: var(--text-color);
  font-size: 0.85rem;
}

.btn-sync-action {
  background: var(--button-color);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 0 16px;
  font-weight: 700;
  cursor: pointer;
}

/* Admin Dashboard Section */
.admin-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 16px 0;
}

.metric-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
}

.metric-title {
  display: block;
  font-size: 0.68rem;
  color: var(--hint-color);
  font-weight: 700;
  margin-bottom: 4px;
}

.metric-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-color);
}

.admin-review-section {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.section-title-row h4 {
  font-size: 0.95rem;
  font-weight: 700;
}

.btn-refresh-sm {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: var(--text-color);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  cursor: pointer;
}

.admin-pending-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 10px;
}

body.light-theme .admin-pending-item {
  background: #f8fafc;
}

.admin-pending-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.admin-pending-title {
  font-weight: 700;
  font-size: 0.9rem;
}

.admin-pending-meta {
  font-size: 0.78rem;
  color: var(--hint-color);
  margin-bottom: 10px;
}

.admin-item-actions {
  display: flex;
  gap: 8px;
}

.btn-appr-sm {
  flex: 1;
  background: #10b981;
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
}

.btn-rej-sm {
  background: rgba(244, 63, 94, 0.15);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.3);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
}

.btn-admin-manage-full {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--button-color);
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ====================================================================
   BILINGUAL TOGGLE & HEADER ENHANCEMENTS
   ==================================================================== */
.btn-lang-toggle {
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: var(--button-color);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.btn-lang-toggle:hover {
  background: rgba(124, 58, 237, 0.22);
  border-color: var(--button-color);
  transform: translateY(-1px);
}

body.light-theme .btn-lang-toggle {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.3);
  color: #6d28d9;
}

/* ====================================================================
   FLASH DEAL URGENCY COUNTDOWN BANNER (Ethio-Viral & Yene Shop Style)
   ==================================================================== */
.flash-deal-banner {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(139, 92, 246, 0.14) 100%);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin-bottom: 14px;
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.08);
  position: relative;
  overflow: hidden;
}

.flash-deal-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.flash-deal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.flash-deal-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.flash-pill {
  background: #ef4444;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  animation: pulseFlash 2s infinite ease-in-out;
}

@keyframes pulseFlash {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(0.97); }
}

.flash-discount-badge {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.flash-deal-timer {
  display: flex;
  align-items: center;
  gap: 6px;
}

.timer-label {
  font-size: 0.72rem;
  color: var(--hint-color);
  font-weight: 600;
}

.timer-boxes {
  display: flex;
  align-items: center;
  gap: 3px;
  font-family: monospace;
  font-weight: 800;
  color: #f87171;
  font-size: 0.85rem;
}

.timer-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 2px 5px;
  border-radius: 4px;
}

body.light-theme .timer-box {
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
}

.flash-deal-content h4 {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 2px;
  color: var(--text-color);
}

.flash-deal-content p {
  font-size: 0.75rem;
  color: var(--hint-color);
}

/* ====================================================================
   COMMUNITY REVIEW & CASHBACK BANNER (NexxPlus & Yene Shop Benchmark)
   ==================================================================== */
.review-cashback-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
  border: 1px dashed rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  margin-bottom: 16px;
}

.cashback-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.cashback-content {
  flex: 1;
}

.cashback-content h4 {
  font-size: 0.85rem;
  font-weight: 800;
  color: #34d399;
  margin-bottom: 2px;
}

body.light-theme .cashback-content h4 {
  color: #059669;
}

.cashback-content p {
  font-size: 0.73rem;
  color: var(--hint-color);
  line-height: 1.35;
}

.btn-cashback-action {
  background: #10b981;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  text-decoration: none;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.btn-cashback-action:hover {
  background: #059669;
  transform: translateY(-1px);
}

/* ====================================================================
   PSYCHOLOGICAL PRICING & STOCK BADGES
   ==================================================================== */
.price-container-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price-original {
  font-size: 0.78rem;
  color: var(--hint-color);
  text-decoration: line-through;
  opacity: 0.75;
}

.discount-percent-tag {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
}

body.light-theme .discount-percent-tag {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.badge-instant {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  letter-spacing: 0.4px;
}

.stock-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #34d399;
}

.stock-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: blinkDot 1.6s infinite ease-in-out;
}

@keyframes blinkDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* ====================================================================
   GIFT PURCHASE SELECTOR & AUTO-EXTRACT BADGE (UPGRADE)
   ==================================================================== */
.gift-option-card {
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 14px;
  transition: all 0.2s ease;
}

body.light-theme .gift-option-card {
  background: rgba(124, 58, 237, 0.05);
  border-color: rgba(124, 58, 237, 0.2);
}

.gift-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.gift-toggle-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-color);
}

.gift-pills {
  display: flex;
  gap: 6px;
  background: rgba(0, 0, 0, 0.2);
  padding: 3px;
  border-radius: var(--radius-full);
}

body.light-theme .gift-pills {
  background: rgba(0, 0, 0, 0.05);
}

.gift-pill {
  border: none;
  background: transparent;
  color: var(--hint-color);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.gift-pill.active {
  background: linear-gradient(135deg, #7c3aed, #9333ea);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.35);
}

.gift-details-box {
  animation: fadeInDown 0.25s ease-out;
}

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

.auto-extract-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  margin-top: 5px;
  margin-bottom: 2px;
  animation: pulseBadge 1.2s ease-in-out infinite alternate;
}

body.light-theme .auto-extract-badge {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.25);
}

@keyframes pulseBadge {
  0% { transform: scale(1); }
  100% { transform: scale(1.02); }
}

/* ---------------- Community Trust & Guarantee Bar ---------------- */
.trust-guarantee-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 16px;
  justify-content: space-between;
}

.trust-pill {
  flex: 1 1 calc(50% - 6px);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-color);
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.trust-pill:hover {
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.05);
}

.trust-icon {
  font-size: 0.95rem;
}

/* ---------------- Channel Marketing Card ---------------- */
.channel-marketing-card {
  margin: 14px 0;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.25) 0%, rgba(59, 130, 246, 0.15) 100%);
  border: 1px solid rgba(96, 165, 250, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(30, 64, 175, 0.15);
}

.channel-card-left {
  flex: 1;
}

.channel-badge-pulse {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #60a5fa;
  background: rgba(37, 99, 235, 0.2);
  border: 1px solid rgba(96, 165, 250, 0.3);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  margin-bottom: 5px;
}

.channel-card-left h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 0 0 3px 0;
}

.channel-card-left p {
  font-size: 0.74rem;
  color: var(--hint-color);
  margin: 0;
  line-height: 1.35;
}

.btn-channel-join {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  border-radius: var(--radius-full);
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-channel-join:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.5);
}

/* ---------------- Review Cashback Card ---------------- */
.review-cashback-card {
  margin: 14px 0;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.15) 0%, rgba(245, 158, 11, 0.08) 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(10px);
}

.cashback-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.cashback-content {
  flex: 1;
}

.cashback-content h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fbbf24;
  margin: 0 0 2px 0;
}

.cashback-content p {
  font-size: 0.74rem;
  color: var(--hint-color);
  margin: 0;
  line-height: 1.3;
}

.btn-cashback-action {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  border-radius: var(--radius-full);
  padding: 6px 12px;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-cashback-action:hover {
  background: rgba(245, 158, 11, 0.3);
  transform: translateY(-1px);
}

