:root {
  --bg: #050805;
  --bg-glow: #0f1f12;
  --card: #0a0d0a;
  --card2: #0f1210;
  --border: #1b3d21;
  --border-glow: rgba(34, 197, 94, 0.22);
  --green: #4ade80;
  --green-bright: #3dff9a;
  --green-dim: #22c55e;
  --green-glow: rgba(74, 222, 128, 0.35);
  --gold: #fbbf24;
  --gold-dim: #d97706;
  --red: #7f1d1d;
  --red-border: #991b1b;
  --text: #ffffff;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  --radius: 18px;
  --radius-sm: 14px;
  --nav-h: 64px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #030403;
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
}

#app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 55% at 50% 32%, rgba(20, 83, 45, 0.22) 0%, transparent 68%),
    radial-gradient(ellipse 70% 45% at 50% 58%, rgba(34, 197, 94, 0.08) 0%, transparent 62%),
    linear-gradient(180deg, #070a07 0%, #050805 45%, #030403 100%);
}

.page-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(var(--nav-h) + 8px);
  position: relative;
}

.page-scroll::-webkit-scrollbar {
  width: 3px;
}

.page-scroll::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

/* Profile Header */
.profile-header {
  margin: 10px 12px 0;
  padding: 14px 14px 10px;
  background: linear-gradient(180deg, #0c100c 0%, #080a08 100%);
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: 16px;
  flex-shrink: 0;
  box-shadow: 0 0 24px rgba(20, 83, 45, 0.12), inset 0 1px 0 rgba(74, 222, 128, 0.04);
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
}

.brand-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  object-fit: cover;
  border: 1px solid rgba(74, 222, 128, 0.4);
  box-shadow: 0 0 16px rgba(74, 222, 128, 0.2);
  flex-shrink: 0;
}

.brand-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-name {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  background: linear-gradient(90deg, #3dff9a 0%, #4ade80 38%, #fbbf24 72%, #f59e0b 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.brand-sub {
  font-size: 10px;
  color: #8b9299;
  letter-spacing: 1.2px;
  font-weight: 500;
}

.brand-actions {
  display: flex;
  gap: 5px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(45, 45, 45, 0.9);
  background: #121512;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
  padding: 0;
}

.icon-btn svg {
  display: block;
  flex-shrink: 0;
}

.icon-btn:active {
  transform: scale(0.95);
}

.header-icon-emoji {
  font-size: 18px;
  line-height: 1;
  display: block;
  transform: translateY(-1px);
}

#btnFeedback {
  border-color: rgba(245, 197, 24, 0.7);
  background: #121512;
  box-shadow: 0 0 8px rgba(245, 197, 24, 0.08);
}

#btnTelegram,
#btnCart {
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
  overflow: hidden;
}

#btnTelegram .icon-telegram,
#btnCart .icon-cart {
  width: 36px;
  height: 36px;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--green);
  color: #000;
  font-size: 10px;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  cursor: pointer;
  border-top: 1px solid rgba(34, 197, 94, 0.12);
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--green-bright);
  object-fit: cover;
  background: var(--card2);
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.25);
  flex-shrink: 0;
}

.user-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.username {
  font-weight: 700;
  font-size: 14px;
  color: #ffffff;
}

.user-id {
  font-size: 11px;
  color: #8b9299;
}

.badge-client {
  font-size: 11px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 10px;
  background: #141814;
  border: 1px solid rgba(55, 65, 55, 0.8);
  color: #9ca3af;
  letter-spacing: 0.8px;
  flex-shrink: 0;
}

.url-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 0 2px;
  border-top: 1px solid rgba(34, 197, 94, 0.12);
  font-size: 12px;
  font-weight: 600;
  color: var(--green-bright);
  background: none;
  border-left: none;
  border-right: none;
  border-bottom: none;
  border-radius: 0;
}

.url-bar svg {
  color: var(--gold);
  flex-shrink: 0;
}

/* Notification */
.notification-bar {
  display: flex;
  align-items: stretch;
  margin: 8px 12px 0;
  padding: 0;
  background: #000000;
  border: 1px solid #7f1d1d;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  min-height: 38px;
  box-shadow: 0 0 14px rgba(127, 29, 29, 0.18);
}

.notif-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  flex-shrink: 0;
  position: relative;
  background: linear-gradient(180deg, #3a1010 0%, #2a0808 55%, #1a0505 100%);
  border-radius: 11px 0 0 11px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 -10px 14px rgba(239, 68, 68, 0.1),
    inset -1px 0 0 rgba(127, 29, 29, 0.35);
}

.notif-icon-box::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 2px;
  border-radius: 11px 0 0 11px;
  background: #ef4444;
  box-shadow: 0 0 10px 3px rgba(239, 68, 68, 0.55);
}

.notif-icon-box svg {
  width: 16px;
  height: 16px;
  color: #fecaca;
  position: relative;
  z-index: 1;
}

.marquee {
  flex: 1;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  background: #000000;
}

.marquee::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 28px;
  background: linear-gradient(to right, #000000 20%, transparent);
  z-index: 1;
  pointer-events: none;
}

.marquee-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: marquee 3.5s linear infinite;
  will-change: transform;
}

.marquee-track span {
  padding: 0 32px 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: #fecdd3;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.marquee-track .count-num {
  color: var(--green-bright);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Balance */
.balance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 14px 0;
  padding: 16px 20px;
  background: #0a0d0a;
  border: 1px solid rgba(74, 222, 128, 0.22);
  border-radius: var(--radius);
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(20, 83, 45, 0.12);
  position: relative;
  overflow: hidden;
}

.balance-label {
  font-size: 12px;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: 0.4px;
  position: relative;
  z-index: 1;
}

.balance-value {
  font-size: 20px;
  font-weight: 600;
  color: var(--green-bright);
  position: relative;
  z-index: 1;
}

/* Main Content */
.main-content {
  padding: 14px;
}

.main-content.commandes-view {
  padding: 12px 14px 14px;
}

/* Bottom Nav */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: var(--nav-h);
  display: flex;
  background: #080808;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  z-index: 100;
}

.nav-item {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  color: #a8a8a8;
  cursor: pointer;
  padding: 8px 1px 6px;
  position: relative;
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.nav-item:active {
  background: none;
}

.nav-item:focus,
.nav-item:focus-visible {
  outline: none;
}

.nav-icon {
  width: 28px;
  height: 28px;
  display: block;
  flex-shrink: 0;
}

.nav-label {
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.1px;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-item[data-tab="commandes"] .nav-label,
.nav-item[data-tab="parrain"] .nav-label {
  font-size: 6.5px;
  letter-spacing: 0;
}

.nav-item.active {
  color: var(--green-bright);
}

.nav-item.active .nav-icon {
  color: var(--green-bright);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 2px;
  background: var(--green-bright);
  border-radius: 2px;
}

/* Tabs */
.tab-switch {
  display: flex;
  gap: 6px;
  padding: 5px;
  margin-bottom: 10px;
  background: #0e100e;
  border: 1px solid rgba(74, 222, 128, 0.28);
  border-radius: 14px;
}

.tab-btn {
  flex: 1;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: #7a8289;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn.active {
  background: #1a1f1a;
  border-color: var(--green-bright);
  color: var(--green-bright);
  box-shadow: 0 0 12px rgba(61, 255, 154, 0.1);
}

/* Search */
.search-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.search-input {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: #1a1c1b;
  border: none;
  border-radius: 10px;
}

.search-input svg {
  width: 16px;
  height: 16px;
  color: #6b7280;
  flex-shrink: 0;
}

.search-input input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
}

.search-input input::placeholder {
  color: #8b9299;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  background: #1a1c1b;
  border: none;
  border-radius: 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.filter-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: #ffffff;
}

/* Discount pills */
.discount-pills {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.discount-pill {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(251, 191, 36, 0.45);
  background: transparent;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.discount-pill.active {
  border-color: var(--gold);
  color: #fde68a;
  background: rgba(251, 191, 36, 0.12);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.15);
}

/* Product meta row */
.products-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 10px;
  min-height: 36px;
}

.products-count {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  text-align: center;
}

.products-count .count-num {
  color: var(--green-bright);
  font-weight: 700;
  font-size: 13px;
}

.num-green {
  color: var(--green-bright);
  font-weight: 700;
}

.num-gold {
  color: var(--gold);
  font-weight: 700;
}

.view-toggle {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 2px;
  padding: 3px;
  background: rgba(8, 11, 8, 0.9);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.view-btn {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.view-btn.active {
  background: rgba(74, 222, 128, 0.15);
  color: var(--green-bright);
}

.view-btn svg {
  width: 16px;
  height: 16px;
}

/* Product Card */
.product-card {
  background: linear-gradient(180deg, rgba(10, 14, 10, 0.98) 0%, rgba(6, 9, 6, 0.96) 100%);
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 0 24px rgba(20, 83, 45, 0.12);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  border-color: rgba(74, 222, 128, 0.4);
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.15);
}

.product-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.card-thumb {
  width: 58px;
  height: 38px;
  border-radius: 6px;
  background: var(--card2);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(55, 65, 55, 0.6);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  min-height: 38px;
}

.product-bin-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.product-bin {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ffffff;
  line-height: 1;
}

.card-type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 5px;
  background: rgba(8, 11, 8, 0.95);
  border: 1px solid rgba(74, 222, 128, 0.45);
  color: var(--green-bright);
  letter-spacing: 0.3px;
}

.product-discount-col {
  text-align: right;
  flex-shrink: 0;
}

.discount-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(251, 191, 36, 0.1);
  color: var(--gold);
  border: 1px solid rgba(251, 191, 36, 0.45);
}

.original-price {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: line-through;
  margin-top: 3px;
}

/* Tags */
.tag-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tag-row-primary {
  padding-bottom: 8px;
  margin-bottom: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tag-row-primary .tag {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(8, 11, 8, 0.9);
  color: #e5e7eb;
  white-space: nowrap;
}

.tag-icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  opacity: 0.9;
}

.tag.green {
  color: #e5e7eb;
  border-color: rgba(74, 222, 128, 0.45);
  background: rgba(20, 83, 45, 0.22);
}

.tag.gold {
  color: #e5e7eb;
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(120, 83, 14, 0.22);
}

.tag.blue {
  color: #e5e7eb;
  border-color: rgba(96, 165, 250, 0.45);
  background: rgba(30, 58, 95, 0.28);
}

.tag.red {
  color: #e5e7eb;
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(127, 29, 29, 0.22);
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2px;
}

.product-price {
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(
    90deg,
    #fbbf24 0%,
    #fbbf24 38%,
    #fde68a 44%,
    #ffffff 50%,
    #fde68a 56%,
    #fbbf24 62%,
    #fbbf24 100%
  );
  background-size: 220% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: price-shimmer 3s ease-in-out infinite;
}

@keyframes price-shimmer {
  0% { background-position: 120% center; }
  100% { background-position: -20% center; }
}

.add-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(180deg, #4ade80 0%, #22c55e 55%, #16a34a 100%);
  color: #ffffff;
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 22px rgba(74, 222, 128, 0.45), 0 0 40px rgba(34, 197, 94, 0.2);
  transition: transform 0.2s;
}

.add-btn:active {
  transform: scale(0.9);
}

/* Load more */
.load-more {
  width: 100%;
  padding: 14px;
  margin: 6px 0 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.load-more:active {
  background: var(--card2);
}

/* Box View */
.info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 10px;
}

.info-card h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

.info-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.info-card .stock-info {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-dim);
}

.quantity-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 10px;
}

.quantity-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.quantity-header h3 {
  font-size: 15px;
}

.step-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(74, 222, 128, 0.12);
  color: var(--green);
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
}

.stepper-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card2);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stepper-value {
  text-align: center;
}

.stepper-value .num {
  font-size: 32px;
  font-weight: 800;
  color: var(--green);
  display: block;
}

.stepper-value .label {
  font-size: 11px;
  color: var(--green);
  font-weight: 600;
}

.quantity-slider {
  width: 100%;
  -webkit-appearance: none;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  outline: none;
}

.quantity-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--text);
  cursor: pointer;
}

/* Summary card */
.summary-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 10px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
  color: var(--text-muted);
}

.summary-row .val {
  color: var(--text);
  font-weight: 600;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  padding: 12px 0 0;
  margin-top: 8px;
  border-top: 1px solid var(--border);
  font-size: 15px;
  font-weight: 700;
}

.summary-total .val {
  font-size: 20px;
  color: var(--text);
}

.btn-pay {
  width: 100%;
  padding: 16px;
  margin-top: 12px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--green-dim), var(--green));
  color: #000;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 0 24px var(--green-glow);
}

.btn-pay:active {
  transform: scale(0.98);
}

/* Depot */
.depot-balance-card {
  background: linear-gradient(135deg, #052e16, #111);
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 0 30px rgba(74, 222, 128, 0.08);
}

.depot-balance-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.2);
  margin-bottom: 8px;
}

.depot-balance-label .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.depot-balance-amount {
  font-size: 28px;
  font-weight: 800;
  color: var(--green-bright);
  margin-bottom: 12px;
}

.depot-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.depot-stat {
  text-align: center;
}

.depot-stat .val {
  font-size: 20px;
  font-weight: 700;
  color: var(--green-bright);
}

.depot-stat .lbl {
  font-size: 11px;
  color: var(--text-muted);
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.section-sub {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.filter-chips {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.chip {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.chip.active {
  border-color: var(--green);
  color: var(--green);
  background: rgba(74, 222, 128, 0.08);
}

.crypto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.crypto-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.crypto-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.crypto-card.btc::before { background: #f7931a; }
.crypto-card.eth::before { background: #627eea; }
.crypto-card.usdt::before { background: #26a17b; }
.crypto-card.usdc::before { background: #2775ca; }
.crypto-card.ltc::before { background: #bfbbbb; }
.crypto-card.sol::before { background: #9945ff; }
.crypto-card.trx::before { background: #ef0027; }

.crypto-card:active {
  transform: scale(0.97);
  border-color: var(--green);
}

.crypto-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 8px;
  flex-shrink: 0;
  background: var(--card2);
}

.crypto-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.crypto-icon.large {
  width: 44px;
  height: 44px;
  margin-bottom: 0;
}

.crypto-symbol {
  font-size: 16px;
  font-weight: 700;
}

.crypto-name {
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.network-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.network-tag.btc { background: rgba(247,147,26,0.15); color: #f7931a; border: 1px solid rgba(247,147,26,0.3); }
.network-tag.eth { background: rgba(98,126,234,0.15); color: #627eea; border: 1px solid rgba(98,126,234,0.3); }
.network-tag.tron { background: rgba(239,0,39,0.15); color: #ef0027; border: 1px solid rgba(239,0,39,0.3); }
.network-tag.base { background: rgba(0,82,255,0.15); color: #0052ff; border: 1px solid rgba(0,82,255,0.3); }
.network-tag.ltc { background: rgba(191,187,187,0.15); color: #bfbbbb; border: 1px solid rgba(191,187,187,0.3); }
.network-tag.sol { background: rgba(153,69,255,0.15); color: #9945ff; border: 1px solid rgba(153,69,255,0.3); }

/* Commandes */
.commandes-card {
  padding: 20px 18px 12px;
  background: #0a0d0a;
  border: 1px solid rgba(74, 222, 128, 0.28);
  border-radius: var(--radius);
  box-shadow: 0 0 28px rgba(20, 83, 45, 0.14);
}

.commandes-card .page-header {
  margin-bottom: 18px;
}

.page-header {
  margin-bottom: 16px;
}

.page-header h2 {
  font-size: 20px;
  font-weight: 600;
}

.page-header p {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 3px;
  font-weight: 400;
}

.order-tabs {
  display: flex;
  gap: 6px;
  padding: 5px;
  margin-bottom: 16px;
  background: #0e100e;
  border: 1px solid rgba(74, 222, 128, 0.28);
  border-radius: var(--radius-sm);
}

.order-tab {
  flex: 1;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: #1a1f1a;
  color: #7a8289;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.order-tab.active {
  background: rgba(74, 222, 128, 0.05);
  border-color: var(--green-bright);
  color: var(--green-bright);
  box-shadow: 0 0 14px rgba(61, 255, 154, 0.12);
}

.commandes-empty {
  padding: 52px 20px 60px;
}

.commandes-empty svg {
  width: 48px;
  height: 48px;
  color: var(--green);
  opacity: 0.5;
  margin-bottom: 14px;
}

.commandes-empty h3 {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 56px;
  text-align: center;
}

.empty-state svg {
  width: 56px;
  height: 56px;
  color: var(--green);
  opacity: 0.45;
  margin-bottom: 14px;
}

.empty-state h3 {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.empty-state p {
  font-size: 13px;
  color: var(--text-dim);
}

/* Preco */
.preco-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.preco-header h2 {
  font-size: 20px;
  font-weight: 700;
}

.btn-create {
  padding: 8px 18px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--green);
  color: #000;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.alert-card {
  padding: 14px;
  border-radius: var(--radius);
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
}

.alert-card.info {
  background: rgba(74, 222, 128, 0.05);
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.alert-card.warning {
  background: rgba(127, 29, 29, 0.2);
  border: 1px solid var(--red-border);
}

.alert-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.alert-card.info .alert-icon {
  background: rgba(74, 222, 128, 0.15);
  color: var(--green);
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.alert-card.warning .alert-icon {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid var(--red-border);
}

.alert-content h4 {
  font-size: 14px;
  margin-bottom: 4px;
}

.alert-content p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Profile */
.profile-page .back-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
}

.back-btn svg {
  width: 18px;
  height: 18px;
}

.profile-title {
  font-size: 22px;
  font-weight: 700;
}

.balance-pill {
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.3);
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
}

.profile-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  gap: 14px;
  align-items: center;
  box-shadow: 0 0 20px var(--green-glow);
}

.profile-card .avatar {
  width: 56px;
  height: 56px;
}

.profile-details {
  flex: 1;
}

.profile-details .name {
  font-size: 16px;
  font-weight: 700;
}

.profile-details .member-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--card2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  margin: 4px 0;
}

.profile-details .since {
  font-size: 11px;
  color: var(--text-dim);
}

.profile-details .id-badge {
  display: inline-block;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--card2);
  color: var(--text-muted);
  margin-top: 4px;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 1px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-label .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.section-label .dot.green { background: var(--green); }
.section-label .dot.gold { background: var(--gold); }

.quick-access {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.quick-card {
  padding: 14px;
  border-radius: var(--radius);
  background: var(--card);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}

.quick-card.gold { border: 1px solid rgba(251, 191, 36, 0.4); }
.quick-card.green { border: 1px solid rgba(74, 222, 128, 0.4); }

.quick-card svg {
  width: 20px;
  height: 20px;
  margin-bottom: 4px;
}

.quick-card.gold svg { color: var(--gold); }
.quick-card.green svg { color: var(--green); }

.quick-card .title {
  font-size: 13px;
  font-weight: 700;
}

.quick-card.gold .title { color: var(--gold); }
.quick-card.green .title { color: var(--green); }

.quick-card .sub {
  font-size: 11px;
  color: var(--text-dim);
}

.quick-card .chevron {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 8px;
  text-align: center;
}

.stat-card.highlight-green {
  background: rgba(74, 222, 128, 0.06);
  border-color: rgba(74, 222, 128, 0.2);
}

.stat-card.highlight-gold {
  border-color: rgba(251, 191, 36, 0.4);
}

.stat-card .lbl {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.stat-card .val {
  font-size: 14px;
  font-weight: 700;
}

.stat-card .val.green { color: var(--green); }
.stat-card .val.gold { color: var(--gold); }

.action-link {
  width: 100%;
  padding: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.action-link.gold {
  color: var(--gold);
  border-color: rgba(251, 191, 36, 0.3);
}

.finance-section, .referral-section {
  margin-bottom: 16px;
}

.promo-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.promo-section .coming {
  font-size: 12px;
  color: var(--text-dim);
}

/* Support */
.support-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  margin-bottom: 12px;
}

.support-card svg {
  width: 48px;
  height: 48px;
  color: var(--green);
  margin-bottom: 12px;
}

.support-card h3 {
  margin-bottom: 8px;
}

.support-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.btn-support {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid var(--green);
  border-radius: var(--radius-sm);
  background: rgba(74, 222, 128, 0.1);
  color: var(--green);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

/* Parrain */
.referral-link-card {
  background: var(--card);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}

.referral-link-card h3 {
  color: var(--gold);
  font-size: 15px;
  margin-bottom: 8px;
}

.referral-link-card p {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.referral-url {
  display: flex;
  gap: 8px;
}

.referral-url input {
  flex: 1;
  padding: 10px 12px;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 12px;
  font-family: inherit;
}

/* Modals */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  z-index: 200;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 32px);
  max-width: 420px;
  background: var(--card);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: var(--radius);
  padding: 20px;
  z-index: 300;
  max-height: 85vh;
  overflow-y: auto;
}

.modal.hidden, .overlay.hidden {
  display: none;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
}

.modal-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-title-row h3 {
  font-size: 16px;
  color: var(--gold);
}

.modal-icon {
  font-size: 20px;
}

.modal-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card2);
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.modal-desc {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.modal textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  background: var(--card2);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  outline: none;
}

.modal textarea::placeholder {
  color: var(--text-dim);
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.char-count {
  font-size: 12px;
  color: var(--text-dim);
}

.btn-gold {
  padding: 10px 20px;
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: var(--radius-sm);
  background: var(--card2);
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.btn-green {
  padding: 12px 20px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--green);
  color: #000;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.btn-green.full {
  width: 100%;
  margin-top: 12px;
}

/* Cart Modal */
.cart-modal {
  border-color: rgba(74, 222, 128, 0.3);
}

.cart-header {
  position: relative;
  margin-bottom: 16px;
}

.cart-header h3 {
  font-size: 18px;
}

.cart-header p {
  font-size: 12px;
  color: var(--text-dim);
}

.cart-header .modal-close {
  position: absolute;
  top: 0;
  right: 0;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 0;
}

.cart-empty svg {
  width: 72px;
  height: 72px;
  color: var(--green);
  opacity: 0.4;
  margin-bottom: 12px;
}

.cart-empty p {
  color: var(--text-muted);
  font-size: 14px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item-info {
  flex: 1;
}

.cart-item-bin {
  font-weight: 700;
  font-size: 16px;
}

.cart-item-bank {
  font-size: 11px;
  color: var(--text-dim);
}

.cart-item-price {
  font-weight: 700;
  color: var(--gold);
}

.cart-item-remove {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 18px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  font-weight: 700;
  font-size: 16px;
}

.cart-total .val {
  color: var(--gold);
}

/* Deposit Modal */
.deposit-modal {
  border-color: var(--border);
  padding: 0;
  overflow: hidden;
}

.deposit-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
}

.deposit-header {
  padding: 20px 20px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.deposit-header .crypto-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 0;
}

.deposit-header .dep-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.deposit-header .dep-name {
  font-size: 18px;
  font-weight: 700;
}

.deposit-steps {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
}

.dep-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.dep-step-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  border: 2px solid var(--border);
  color: var(--text-dim);
}

.dep-step.active .dep-step-circle {
  border-color: #f7931a;
  background: rgba(247, 147, 26, 0.15);
  color: #f7931a;
}

.dep-step.done .dep-step-circle {
  border-color: var(--green);
  background: rgba(74, 222, 128, 0.15);
  color: var(--green);
}

.dep-step-label {
  font-size: 9px;
  color: var(--text-dim);
  text-align: center;
  max-width: 70px;
}

.deposit-body {
  padding: 20px;
  text-align: center;
}

.qr-code {
  width: 180px;
  height: 180px;
  margin: 0 auto 12px;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-code canvas, .qr-code img {
  width: 100% !important;
  height: 100% !important;
}

.qr-hint {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.address-field {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  font-size: 13px;
  font-family: monospace;
  color: var(--text-muted);
  word-break: break-all;
}

.btn-copy {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--green);
  color: #000;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.deposit-info {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: left;
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.6;
}

.deposit-info strong {
  color: var(--text-muted);
}

/* Filters modal */
.filters-modal {
  border-color: var(--border);
}

.filters-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.filter-group select {
  width: 100%;
  padding: 10px 12px;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
}

/* Hide profile header on sub-pages */
body.profile-mode .page-scroll {
  padding-top: 0;
}

body.profile-mode .profile-header,
body.profile-mode .notification-bar,
body.profile-mode .balance-row {
  display: none;
}

body.profile-mode .main-content {
  padding-top: 16px;
}

/* Utility */
.hidden { display: none !important; }
