/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f3f4f6;
  color: #111;
  min-height: 100vh;
  line-height: 1.5;
}
body.filtres-body {
  background: #eef1f4;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ===== HEADER ===== */
.header { position: sticky; top: 0; z-index: 100; }
.header-top {
  background: #131921;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 22px;
  padding: 10px 24px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.hamburger {
  background: none;
  color: #fff;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  line-height: 0;
}

.hamburger:hover {
  opacity: 0.85;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  display: block;
}

.search-bar {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 2000px;
  margin: 0 auto;
  justify-self: center;
  min-width: 0;
  cursor: pointer;
}
.search-bar input {
  width: 100%;
  height: 40px;
  padding: 0 16px 0 42px;
  border: none;
  border-radius: 0;
  font-size: 14px;
  background: #fff;
  color: #111;
  outline: none;
  box-shadow: none;
  cursor: pointer;
}
.search-bar input::placeholder {
  color: #767676;
  font-weight: 400;
}
.search-bar input:focus {
  box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.45);
}
.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  flex-shrink: 0;
}

.search-icon-mobile {
  display: none;
}

.search-icon-desktop {
  display: block;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
  padding-right: 2px;
}
.header-icon {
  color: #fff; display: flex; align-items: center; position: relative;
  padding: 6px;
}
.cart-icon-svg {
  display: block;
  flex-shrink: 0;
}
.cart-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: #ffd814;
  color: #131921;
  font-size: 11px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

.header-nav {
  background: #232f3e;
  display: flex; gap: 0; padding: 0 8px;
}
.nav-link {
  color: #fff;
  padding: 6px 12px;
  margin: 5px 4px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid transparent;
  border-radius: 0;
  transition: border-color 0.15s ease, background 0.15s ease;
  position: relative;
}
.nav-link:hover {
  background: transparent;
  border-color: #fff;
}
.nav-link.active {
  background: transparent;
  border-color: #fff;
}
.nav-link.active:hover {
  background: transparent;
  border-color: #fff;
}

/* ===== ANNOUNCEMENT ===== */
.announcement {
  background: #0d0f14;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 9px 20px;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.announcement-dot {
  color: #ef4444;
  font-size: 10px;
  line-height: 1;
}
.announcement-label {
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.announcement-sep {
  color: #6b7280;
  font-size: 12px;
  line-height: 1;
}
.announcement-highlight {
  color: #ff9900;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.announcement-time {
  color: #9ca3af;
  font-weight: 400;
  font-size: 13px;
}

/* ===== SIDEBAR ===== */
.sidebar {
  position: fixed;
  top: 0;
  left: -300px;
  width: 300px;
  height: 100vh;
  background: #fff;
  z-index: 200;
  transition: left 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}
.sidebar.open { left: 0; }
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 199;
  display: none;
}
.sidebar-overlay.open { display: block; }

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #232f3e;
  flex-shrink: 0;
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.sidebar-close {
  background: none;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  padding: 2px 4px;
  cursor: pointer;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
}

.sidebar-label {
  color: #888;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 18px 20px 10px;
  letter-spacing: 0.8px;
}

.sidebar-link,
.sidebar-support,
.sidebar-logout {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #333;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid #ececec;
  transition: background 0.15s;
}

.sidebar-link:hover,
.sidebar-support:hover,
.sidebar-logout:hover {
  background: #f7f7f7;
  color: #111;
}

.sidebar-link.active,
.sidebar-support.active {
  background: #f3f4f6;
  color: #111;
  font-weight: 600;
}

.sidebar-icon {
  width: 22px;
  flex-shrink: 0;
  font-size: 17px;
  line-height: 1;
  text-align: center;
}

.sidebar-icon-account {
  filter: hue-rotate(40deg) saturate(1.4);
}

.sidebar-footer {
  margin-top: auto;
  flex-shrink: 0;
}

.sidebar-support {
  border-bottom: none;
  border-top: 1px solid #ececec;
  padding: 16px 20px 14px;
}

.sidebar-logout {
  width: 100%;
  border: none;
  border-top: 1px solid #ececec;
  border-bottom: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  padding: 14px 20px 18px;
}

/* ===== MAIN CONTENT ===== */
.main-content { max-width: 1400px; margin: 0 auto; padding: 20px 24px 40px; }
.main-content.home-view {
  max-width: 1120px;
  padding: 20px 24px 40px;
}
.main-content.catalogue-view { max-width: 100%; padding: 16px 20px 40px; }
.main-content.support-view {
  max-width: 1060px;
  margin: 0 auto;
  padding: 20px 20px 40px;
  background: transparent;
  min-height: auto;
}
.main-content.filtres-view {
  max-width: 100%;
  margin: 0;
  padding: 32px 20px 48px;
  background: #eef1f4;
  min-height: calc(100vh - 96px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* ===== HERO STACK (Home top) ===== */
.hero-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}

.announcement-card {
  background: #0d0f14;
  border: 1px solid rgba(255, 153, 0, 0.35);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.welcome-card-dark {
  background: #1a1c23;
  border: 1px solid rgba(255, 153, 0, 0.35);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  padding: 24px 28px;
}

/* Welcome Banner */
.welcome-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 16px;
}
.welcome-tag {
  background: none;
  color: #ffcc00;
  font-size: 10px;
  font-weight: 800;
  padding: 0;
  border-radius: 0;
  display: inline-block;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}
.welcome-banner h1 { color: #fff; font-size: 26px; font-weight: 800; line-height: 1.2; }
.welcome-banner p { color: #9ca3af; font-size: 13px; margin-top: 6px; }
.btn-discover {
  background: #ffcc00;
  color: #131921;
  font-weight: 700;
  padding: 12px 36px;
  border-radius: 999px;
  font-size: 15px;
  transition: background 0.2s;
  flex-shrink: 0;
}
.btn-discover:hover { background: #f0b800; }

/* Charts Row */
.charts-row {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 14px;
}
@media (max-width: 900px) { .charts-row { grid-template-columns: 1fr; } }

.chart-widget {
  background: #1a1c23;
  border-radius: 0;
  padding: 18px 20px 0;
  position: relative;
  border: 1px solid rgba(255, 153, 0, 0.35);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.chart-label-inventaire {
  display: block;
  color: #ff9900;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.chart-title-wrap {
  margin-bottom: 12px;
}

.chart-title {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 0;
}

.chart-title-underline {
  display: block;
  width: 72px;
  height: 2px;
  background: #ff9900;
  margin-top: 6px;
}

.chart-title .highlight {
  color: #ff9900;
  font-weight: 700;
}

.chart-canvas-wrap {
  height: 200px;
  position: relative;
  padding-bottom: 16px;
}

.chart-widget-donut {
  display: flex;
  flex-direction: column;
  min-height: 300px;
}

.chart-widget-donut .chart-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
}

.chart-canvas-donut {
  flex: 1;
  height: 195px;
  min-height: 195px;
  padding: 8px 12px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chart-canvas-donut canvas {
  width: 100% !important;
  height: 100% !important;
  max-width: 220px;
  max-height: 195px;
}

.donut-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 12px 0 16px;
  margin-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.donut-footer small {
  color: #9ca3af;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.4px;
  line-height: 1.2;
}

.donut-footer span {
  color: #ff9900;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}

/* ===== INFO CARDS ===== */
.info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
@media (max-width: 900px) { .info-cards { grid-template-columns: 1fr; } }

.info-card {
  background: #fff;
  border-radius: 0;
  padding: 20px 22px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  border: 1px solid #e3e6e6;
  min-height: 130px;
}

.info-card-horizontal,
.info-card-telegram {
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.info-card-horizontal:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
  border-color: #d1d5db;
}

.info-card-telegram:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.2);
  border-color: #7dd3fc;
}

.info-card-horizontal {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.info-card-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 0;
  border: 1px solid #e3e6e6;
  box-shadow: 0 1px 3px rgba(15, 17, 17, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-card-icon-box-shield {
  background: #ede9fe;
  border-radius: 10px;
  border: none;
  box-shadow: none;
}

.info-card-icon-box-telegram {
  background: #e0f2fe;
}

.info-card-content {
  flex: 1;
  min-width: 0;
}

.info-card-telegram {
  background: #f0f9ff;
  border-color: #bae6fd;
}

a.info-card-telegram {
  text-decoration: none;
  color: inherit;
}

.info-card h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #111;
  line-height: 1.3;
}

.info-card p {
  color: #6b7280;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.info-card .telegram-handle {
  display: inline-block;
  color: #2563eb;
  font-weight: 700;
  font-size: 14px;
  margin-top: 8px;
}

.info-card-stats {
  display: flex;
  align-items: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 14px;
  width: 100%;
}

.stat-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.stat-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 0;
  border: 1px solid #e3e6e6;
  box-shadow: 0 1px 3px rgba(15, 17, 17, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon-wrap-beige {
  background: #fff7ed;
}

.stat-icon-wrap-card {
  background: #f0f2f2;
  border-radius: 8px;
  border: none;
  box-shadow: none;
}

.stat-card-svg,
.filled-card-icon {
  display: block;
}

.stat-icon-wrap-green {
  background: #dcfce7;
}

.stat-cell-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.stat-label {
  font-size: 11px;
  color: #6b7280;
  line-height: 1.3;
}

.stat-value {
  font-size: 18px;
  font-weight: 800;
  color: #111;
  line-height: 1.2;
}

.stat-pill {
  display: inline-block;
  background: #22c55e;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 0;
  letter-spacing: 0.3px;
  width: fit-content;
  margin-top: 2px;
}

/* ===== RESTOCK SECTION ===== */
.restock-panel {
  background: #fff;
  border: 1px solid #e3e6e6;
  border-radius: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  padding: 18px 20px 16px;
  overflow: hidden;
}
.restock-heading-wrap {
  margin-bottom: 14px;
}
.restock-heading {
  font-size: 17px;
  font-weight: 800;
  color: #111;
  padding: 0;
  margin: 0;
}
.restock-heading-accent {
  display: block;
  width: 36px;
  height: 3px;
  background: #f59e0b;
  border-radius: 2px;
  margin-top: 6px;
}
.restock-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 11px 14px;
  font-size: 13px;
  color: #555;
  border: 1px solid #e0e0e0;
  border-radius: 0;
  margin: 0 0 14px;
}
.restock-meta-label {
  color: #6b7280;
  font-weight: 400;
}
.restock-meta-date {
  color: #111;
  font-weight: 700;
}
.restock-meta-date em {
  font-style: normal;
  color: #111;
  font-weight: 700;
}
.restock-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.restock-card {
  background: #fff;
  border: 1px solid #e3e6e6;
  border-radius: 0;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.restock-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
  border-color: #d1d5db;
}

.restock-card-top,
.restock-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  gap: 12px;
}

.restock-card-divider {
  height: 1px;
  background: #ececec;
  margin: 0;
}

.restock-card-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.restock-icon-box {
  width: 32px;
  height: 32px;
  background: #e3e6e6;
  border: 1px solid #c7ccd1;
  border-radius: 6px;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.restock-card-emoji {
  font-size: 16px;
  line-height: 1;
}

.restock-title {
  font-size: 14px;
  font-weight: 700;
  color: #111;
}

.restock-qty-pill {
  background: #e5e7eb;
  border: 1px solid #d1d5db;
  color: #111;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

.restock-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tag-amazon {
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  color: #0369a1;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}

.tag-star-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff4e5;
  border: 1px solid #fadbb2;
  color: #b86b00;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  line-height: 1.4;
  white-space: nowrap;
}

.restock-card .tag-amazon,
.restock-card .tag-star-pill {
  border-radius: 0;
}

.restock-ago {
  color: #9ca3af;
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ===== CATALOGUE ===== */
.catalogue-page { width: 100%; }

.catalogue-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px; padding: 0 2px;
}
.catalogue-count { color: #111; font-size: 13px; font-weight: 400; }
.catalogue-count .count-range { color: #c45500; font-weight: 700; }
.catalogue-empty {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 48px 20px;
  text-align: center;
  color: #666;
  font-size: 14px;
}
.sort-btn {
  background: #fff; border: 1px solid #d5d9d9;
  padding: 8px 14px; border-radius: 8px;
  font-size: 13px; color: #111; cursor: pointer;
}

.catalogue-sort-dropdown {
  position: relative;
  flex-shrink: 0;
}

.catalogue-sort-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 210px;
  padding: 8px 14px;
  background: #f0f2f2;
  border: 1px solid #d5d9d9;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: #111;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  white-space: nowrap;
}

.catalogue-sort-trigger:hover {
  background: #e3e6e6;
}

.catalogue-sort-dropdown.open .catalogue-sort-trigger {
  background: #e3e6e6;
  border-color: #a2a6a6;
}

.catalogue-sort-chevron {
  flex-shrink: 0;
  color: #111;
  transition: transform 0.15s;
}

.catalogue-sort-dropdown.open .catalogue-sort-chevron {
  transform: rotate(180deg);
}

.catalogue-sort-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 100%;
  background: #fff;
  border: 1px solid #e3e6e6;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  padding: 6px 0;
  z-index: 50;
  overflow: hidden;
}

.catalogue-sort-dropdown.open .catalogue-sort-menu {
  display: block;
}

.catalogue-sort-option {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: #111;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s;
  white-space: nowrap;
}

.catalogue-sort-option:hover {
  background: #f7fafa;
}

.catalogue-sort-option.selected {
  background: #eaeded;
  font-weight: 600;
}

.catalogue-list {
  display: flex; flex-direction: column; gap: 10px;
}

.product-card {
  position: relative;
  background: #fff;
  border: 1px solid #f9d4b8;
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 28px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  border-left: 3px solid #ff9900;
  pointer-events: none;
  transition: border-left-color 0.2s ease, border-left-width 0.2s ease;
}

.product-card::after {
  display: none;
}

.product-card:hover {
  border-color: #ff9900;
  box-shadow: 0 0 0 1px rgba(255, 153, 0, 0.22);
}

.product-card:hover::before {
  border-left-width: 4px;
  border-left-color: #e77600;
}

.product-col { min-width: 0; }

/* Colonne banque */
.product-col-bank {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  flex: 0 0 auto;
  width: 280px;
  min-width: 240px;
  max-width: 300px;
}

.product-card-middle {
  display: flex;
  align-items: center;
  min-width: 0;
}

.product-tags-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  width: 100%;
}

.tag-amazon-pill {
  display: inline-flex;
  align-items: center;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  color: #0369a1;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.product-card .tag-amazon-pill-catalogue {
  gap: 5px;
  background: #fff8f1;
  border: 1px solid #fcd4a8;
  color: #c2410c;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  text-transform: none;
  letter-spacing: 0;
}

.product-card .tag-amazon-icon {
  color: #9ca3af;
  flex-shrink: 0;
}

.product-card .tag-star-pill-catalogue {
  gap: 5px;
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
}

.product-card .tag-star-icon {
  color: #facc15;
  font-size: 11px;
  line-height: 1;
  flex-shrink: 0;
}

.product-bank-main {
  display: flex;
  align-items: center;
  gap: 12px;
}
.product-network {
  flex-shrink: 0;
  width: 52px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #f9d4b8;
  border-radius: 8px;
  padding: 4px 6px;
  transition: border-color 0.2s ease;
}

.product-card:hover .product-network {
  border-color: #ff9900;
}
.product-bank-text { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }

.network-logo-big { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.network-logo-big svg { display: block; width: 100%; height: auto; max-height: 24px; }

.product-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.product-bin {
  background: #fff3e6;
  border: 1px solid #ffb84d;
  color: #c45500;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  line-height: 1.3;
}
.product-bank-name {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  color: #111;
  line-height: 1.25;
}
.product-type {
  color: #565959;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1px;
  font-weight: 500;
}

/* Colonnes LOCALISATION / INFOS */
.product-col-loc,
.product-col-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.col-label {
  color: #888;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  font-weight: 600;
}
.col-value {
  font-weight: 700;
  font-size: 13px;
  color: #111;
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1.3;
}
.col-value-country {
  color: #111;
  text-transform: uppercase;
  font-weight: 800;
}
.col-value-age {
  font-weight: 700;
  text-transform: none;
}
.col-sub {
  color: #565959;
  font-size: 11px;
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.1px;
}

/* Colonne prix */
.product-col-price {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  margin-left: auto;
  padding-right: 4px;
}

.product-price-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.product-date-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #6f879e;
  color: #fff;
  font-size: 11px;
  padding: 5px 11px;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  margin-left: 0;
  box-shadow: 0 2px 8px rgba(79, 102, 124, 0.28);
}
.product-date-icon {
  flex-shrink: 0;
  color: #fff;
  opacity: 0.95;
}
.product-price {
  color: #c45500;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

/* Desktop catalogue row */
@media (min-width: 769px) {
  .product-card {
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
    min-height: 88px;
  }

  .product-tags-row .product-date-tag {
    display: none;
  }

  .product-col-bank {
    width: 280px;
    min-width: 280px;
    max-width: 280px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
  }

  .product-card-middle {
    position: absolute;
    inset: 0;
    display: block;
    flex: none;
    pointer-events: none;
  }

  .product-col-loc,
  .product-col-info {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: auto;
    min-width: 140px;
    margin: 0;
    padding: 0;
  }

  .product-col-loc {
    left: 50%;
  }

  .product-col-info {
    left: 75%;
  }

  .product-col-price {
    flex-shrink: 0;
    margin-left: auto;
    position: relative;
    z-index: 1;
    padding-left: 0;
  }
}

.btn-ajouter, .btn-retirer {
  background: #ffd814;
  color: #111;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: 8px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #fcd200;
  transition: background 0.15s;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
  min-width: 96px;
  justify-content: center;
}
.btn-ajouter:hover, .btn-retirer:hover { background: #f7ca00; }
.btn-cart-icon { flex-shrink: 0; }

.pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 16px; margin-top: 24px;
}
.pagination button:not(:disabled):hover { background: #f3f4f6; cursor: pointer; }
.pagination button:not(:disabled) { cursor: pointer; }
.pagination button {
  padding: 8px 20px; border-radius: 8px; font-size: 14px;
  border: 1px solid #ddd; background: #fff;
}
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }
.pagination span { font-size: 14px; color: #666; }

/* ===== ACHATS ===== */
.page-back {
  color: #666; font-size: 13px; margin-bottom: 12px;
  display: inline-flex; align-items: center; gap: 4px;
}
.page-back:hover { color: #333; }
.page-title { font-size: 28px; font-weight: 800; margin-bottom: 4px; display: flex; align-items: center; gap: 10px; }
.page-subtitle { color: #888; font-size: 14px; margin-bottom: 20px; }

.summary-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
@media (max-width: 900px) { .summary-cards { grid-template-columns: repeat(2, 1fr); } }

.summary-card {
  background: #fff; border-radius: 12px; padding: 20px;
  border: 1px solid #e5e7eb; display: flex; align-items: center; gap: 14px;
}
.summary-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #111;
}
.summary-icon-box-yellow { background: #fef9c3; }
.summary-icon-box-green { background: #dcfce7; }
.summary-icon-box-red { background: #fee2e2; }
.summary-icon-box-blue { background: #dbeafe; }
.summary-label { color: #888; font-size: 12px; }
.summary-value { font-size: 20px; font-weight: 800; }

.filter-bar {
  background: #fff; border-radius: 12px; padding: 12px 20px;
  display: flex; align-items: center; gap: 16px; margin-bottom: 20px;
  border: 1px solid #e5e7eb; flex-wrap: wrap;
}
.filter-search {
  flex: 1; display: flex; align-items: center; gap: 8px; min-width: 200px;
}
.filter-search input {
  border: none; outline: none; font-size: 14px; width: 100%;
}
.filter-select {
  background: #fff; border: 1px solid #ddd; padding: 8px 12px;
  border-radius: 8px; font-size: 13px; color: #333;
}

.filter-dropdown {
  position: relative;
  flex-shrink: 0;
}

.filter-dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 148px;
  padding: 9px 14px;
  background: #fff;
  border: 1px solid #d5d9d9;
  border-radius: 10px;
  font-size: 13px;
  color: #111;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}

.filter-dropdown.open .filter-dropdown-trigger {
  border-color: #007185;
  box-shadow: 0 0 0 1px #007185;
}

.filter-dropdown-text {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.filter-dropdown-label {
  color: #565959;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.filter-dropdown-value {
  color: #111;
  font-weight: 700;
}

.filter-dropdown-chevron {
  flex-shrink: 0;
  color: #111;
  transition: transform 0.15s;
}

.filter-dropdown.open .filter-dropdown-chevron {
  transform: rotate(180deg);
}

.filter-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 100%;
  background: #fff;
  border: 1px solid #e3e6e6;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  padding: 6px 0;
  z-index: 50;
  max-height: 260px;
  overflow-y: auto;
}

.filter-dropdown.open .filter-dropdown-menu {
  display: block;
}

.filter-dropdown-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 9px 14px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: #111;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s;
}

.filter-dropdown-option:hover {
  background: #f7fafa;
}

.filter-dropdown-option.selected {
  background: #e6f4f7;
  font-weight: 600;
}

.filter-option-check {
  flex-shrink: 0;
  color: #111;
}

.empty-state {
  background: #fff; border-radius: 12px; padding: 60px 20px;
  text-align: center; color: #888; font-size: 15px;
  border: 1px solid #e5e7eb;
}

/* ===== PANIER ===== */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: start;
}
@media (max-width: 900px) {
  .cart-layout { grid-template-columns: 1fr; }
}

.cart-container {
  background: #fff;
  border-radius: 12px;
  padding: 24px 28px 28px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  border: 1px solid #e5e7eb;
}
.cart-container-full { max-width: 100%; }

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 14px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 0;
}
.cart-header h2 { font-size: 24px; font-weight: 700; color: #111; }
.cart-price-label { color: #888; font-size: 13px; font-weight: 400; }

.cart-empty {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 28px 8px 12px;
}
.cart-illustration {
  flex: 0 0 360px;
  max-width: 360px;
}
.cart-illustration img {
  display: block;
  width: 100%;
  height: auto;
}
.cart-empty-copy {
  flex: 1;
  min-width: 240px;
}
.cart-empty-copy h3 {
  font-size: 28px;
  font-weight: 700;
  color: #111;
  margin-bottom: 10px;
  line-height: 1.2;
}
.cart-empty-copy p {
  color: #565959;
  font-size: 14px;
  margin-bottom: 14px;
  line-height: 1.5;
}
.cart-empty-copy a {
  color: #007185;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
}
.cart-empty-copy a:hover {
  text-decoration: underline;
  color: #c45500;
}

@media (max-width: 768px) {
  .cart-empty {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding-top: 20px;
  }
  .cart-illustration {
    flex-basis: auto;
    max-width: 280px;
    width: 100%;
  }
}

.cart-items { }
.cart-item {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 20px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid #e5e7eb;
}
.cart-item:last-child { border-bottom: none; }

.cart-item-thumb {
  width: 110px; height: 70px; object-fit: cover;
  border-radius: 6px; border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.cart-item-body { min-width: 0; }
.cart-item-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.cart-item-title {
  font-size: 15px; font-weight: 700; color: #111;
  text-transform: uppercase; line-height: 1.4;
}
.cart-item-stock {
  color: #067d62; font-size: 13px; font-weight: 600;
  margin-top: 4px;
}
.cart-item-meta {
  color: #555; font-size: 12px; margin-top: 6px;
  letter-spacing: 0.02em;
}
.cart-item-delete {
  background: none; border: none; padding: 0;
  color: #007185; font-size: 13px; margin-top: 10px;
  cursor: pointer; text-decoration: none;
}
.cart-item-delete:hover { color: #c45500; text-decoration: underline; }

.cart-item-price {
  color: #111; font-size: 16px; font-weight: 700;
  white-space: nowrap; padding-top: 2px;
}

.cart-subtotal-row {
  text-align: right; padding-top: 20px;
  margin-top: 4px; border-top: 1px solid #e5e7eb;
  font-size: 15px; color: #111;
}
.cart-subtotal-row strong { font-size: 17px; font-weight: 800; }

/* Sidebar checkout */
.cart-sidebar { position: sticky; top: 100px; }
.checkout-panel {
  background: #fff; border-radius: 12px; padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.delivery-info {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13px; color: #333; line-height: 1.5;
  margin-bottom: 20px; padding-bottom: 20px;
  border-bottom: 1px solid #e5e7eb;
}
.delivery-check {
  color: #0d9488;
  flex-shrink: 0;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.delivery-highlight {
  color: #007185;
  font-weight: 700;
}
.checkout-subtotal {
  font-size: 15px; color: #111; margin-bottom: 16px;
}
.checkout-subtotal strong { font-size: 17px; font-weight: 800; }

.btn-deposit-funds {
  width: 100%; padding: 12px 20px; font-size: 14px;
  border-radius: 8px; margin-bottom: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.balance-box {
  background: #f3f3f3; border-radius: 8px;
  padding: 16px 18px; text-align: center;
}
.balance-label {
  display: block; font-size: 13px; color: #555;
  margin-bottom: 6px;
}
.balance-amount {
  display: block; font-size: 28px; font-weight: 800;
  color: #b12704;
}

.toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: #131921; color: #fff; padding: 14px 28px; border-radius: 8px;
  font-size: 14px; font-weight: 600; z-index: 500; opacity: 0; transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3); border-left: 4px solid #ffcc00;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== COMPTE ===== */
.account-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
@media (max-width: 1100px) {
  .account-grid { grid-template-columns: 1fr; }
}

.account-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  border: 1px solid #eceff1;
  display: flex;
  flex-direction: column;
}
.account-card h3,
.activity-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #4b5563;
  margin-bottom: 18px;
  letter-spacing: 0.6px;
}

/* Credit Card Widget */
.credit-card-widget {
  background: linear-gradient(135deg, #121318 0%, #1f1a17 45%, #2a241f 100%);
  border-radius: 18px;
  padding: 36px 40px 32px;
  color: #fff;
  position: relative;
  min-height: 310px;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.cc-glow {
  position: absolute;
  top: -40px;
  right: -30px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(255, 170, 40, 0.28) 0%, rgba(255, 170, 40, 0) 72%);
  pointer-events: none;
}
.cc-border-glow {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  pointer-events: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 196, 70, 0.45),
    inset 1px 0 0 rgba(255, 196, 70, 0.18),
    inset -1px 0 0 rgba(255, 196, 70, 0.28);
  border: 1px solid rgba(255, 196, 70, 0.12);
}
.cc-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.cc-user {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}
.cc-balance {
  text-align: right;
}
.cc-balance-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #9ca3af;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.cc-balance strong {
  color: #ff9900;
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
  display: block;
}
.cc-chip {
  margin: 30px 0 22px;
  position: relative;
  z-index: 1;
}
.cc-number {
  font-size: 16px;
  letter-spacing: 1.4px;
  color: #f3f4f6;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  position: relative;
  z-index: 1;
  margin-bottom: 28px;
}
.cc-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  position: relative;
  z-index: 1;
}
.cc-btn {
  border: none;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 28px;
  cursor: pointer;
  line-height: 1;
}
.cc-btn-deposit {
  background: #ffd814;
  color: #0f1111;
}
.cc-btn-deposit:hover {
  background: #f7ca00;
}
.cc-btn-withdraw {
  background: rgba(255, 255, 255, 0.08);
  color: #6b7280;
  cursor: not-allowed;
}
.btn-yellow {
  background: #ffd814;
  color: #0f1111;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  transition: background 0.2s;
}
.btn-yellow:hover { background: #f7ca00; }
.btn-gray {
  background: #3d4654;
  color: #9ca3af;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
}
.btn-gray:disabled { opacity: 1; cursor: not-allowed; }
.btn-full { width: 100%; padding: 14px; font-size: 15px; border-radius: 8px; }

/* Credentials */
.cred-list {
  display: flex;
  flex-direction: column;
  margin-top: 4px;
}
.cred-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid #e8edf0;
}
.cred-item:last-child {
  border-bottom: none;
  padding-bottom: 8px;
}
.cred-item:first-child {
  padding-top: 12px;
}
.cred-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #fff4e5;
  border: 1px solid #fde0b8;
  font-size: 17px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cred-item-body {
  flex: 1;
  min-width: 0;
  padding-right: 12px;
}
.cred-item-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}
.cred-label {
  font-size: 13px;
  color: #4b5563;
  margin-bottom: 8px;
  font-weight: 700;
}
.cred-value {
  font-size: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #111827;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.4;
}
.cred-value-input {
  width: 100%;
  border: none;
  background: none;
  outline: none;
  padding: 0;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.btn-cred-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #f59e0b;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-cred-action:hover {
  background: #ffedd5;
  border-color: #fcd9b0;
}
.cred-eye-btn {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  color: #6b7280;
  padding: 7px 10px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cred-eye-btn:hover {
  background: #e5e7eb;
}
.cred-eye-btn .eye-open { display: none; }
.cred-eye-btn.is-visible .eye-closed { display: none; }
.cred-eye-btn.is-visible .eye-open { display: block; }
.telegram-status-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  background: #f0f2f5;
  border: 1px solid #c5cad1;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 13px;
  color: #4b5563;
  font-weight: 700;
  margin-top: 0;
}
.telegram-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6b7280;
  flex-shrink: 0;
}
.telegram-status-pill.is-active {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}
.telegram-status-pill.is-active .telegram-dot {
  background: #10b981;
}

/* Telegram Config Modal */
.telegram-modal {
  background: #0d1117;
  border-radius: 20px;
  padding: 32px;
  max-width: 520px;
  width: 90%;
  position: relative;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}
.telegram-modal-header {
  margin-bottom: 28px;
  padding-right: 36px;
}
.telegram-modal-header-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.telegram-modal-icon {
  font-size: 24px;
  line-height: 1;
}
.telegram-modal-header h2 {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  margin: 0;
}
.telegram-modal-header p {
  color: #9ca3af;
  font-size: 14px;
  margin: 0;
}
.telegram-modal-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.telegram-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
}
.telegram-toggle-label {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.telegram-toggle {
  width: 52px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #374151;
  padding: 3px;
  cursor: pointer;
  position: relative;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}
.telegram-toggle.is-on {
  background: #ff9f0a;
  border-color: #ffb84d;
  box-shadow: 0 0 0 1px rgba(255, 159, 10, 0.35), 0 4px 14px rgba(255, 159, 10, 0.35);
}
.telegram-toggle-knob {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}
.telegram-toggle.is-on .telegram-toggle-knob {
  transform: translateX(24px);
}
.telegram-field-label {
  color: #9ca3af;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  margin-top: 4px;
}
.telegram-field-input {
  width: 100%;
  background: #161b22;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 14px 16px;
  color: #fff;
  font-size: 14px;
  outline: none;
}
.telegram-field-input::placeholder {
  color: #6b7280;
}
.telegram-field-input:focus {
  border-color: rgba(255, 255, 255, 0.28);
}
.telegram-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}
.btn-telegram-test {
  background: #1f2937;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.btn-telegram-test:hover {
  background: #273244;
}
.btn-telegram-save {
  background: #ffcc00;
  color: #111;
  border: none;
  border-radius: 10px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.btn-telegram-save:hover {
  background: #f2c200;
}

/* Gift Code */
.account-card-gift { min-height: 100%; }
.gift-desc {
  color: #6b7280;
  font-size: 13px;
  margin-bottom: 16px;
  line-height: 1.5;
}
.gift-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  outline: none;
  color: #111;
  background: #fff;
}
.gift-input::placeholder { color: #9ca3af; font-weight: 500; }
.gift-input:focus { border-color: #f59e0b; box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.15); }
.gift-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 12px;
}
.gift-illustration {
  display: flex;
  justify-content: center;
  margin-top: auto;
  padding-top: 24px;
}

/* Activity Section */
.activity-section {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  border: 1px solid #eceff1;
}
.activity-title { margin-bottom: 20px; }
.activity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 800px) {
  .activity-grid { grid-template-columns: 1fr; }
}
.activity-col-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.activity-col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.activity-col-header h4 {
  font-size: 15px;
  font-weight: 700;
  color: #111;
}
.activity-col-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.activity-col-icon-mail,
.activity-col-icon-doc {
  font-size: 18px;
  line-height: 1;
}
.activity-col-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.activity-badge {
  background: #f3f4f6;
  color: #6b7280;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 0;
  border: 1px solid #d1d5db;
  white-space: nowrap;
}
.btn-activity-view {
  background: #ffd814;
  color: #0f1111;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
  text-decoration: none;
}
.btn-activity-view:hover { background: #f7ca00; }
.activity-empty {
  text-align: center;
  padding: 42px 24px;
  color: #6b7280;
  background: #f7fafc;
  border: 2px dashed #d7e3ea;
  border-radius: 12px;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.activity-empty-icon {
  color: #94a3b8;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.activity-empty p {
  font-size: 14px;
  color: #6b7280;
}

/* ===== SUPPORT ===== */
.support-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.support-warning {
  background: #1e222d;
  border: none;
  border-top: 1px solid rgba(243, 156, 18, 0.35);
  border-bottom: 1px solid rgba(243, 156, 18, 0.35);
  border-radius: 0;
  padding: 14px 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.support-warning-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.support-warning-text {
  font-size: 13px;
  line-height: 1.55;
}

.support-warning-main {
  color: #f3f4f6;
  font-weight: 700;
  margin-bottom: 4px;
}

.support-warning-sub {
  color: #9ca3af;
  margin-bottom: 6px;
}

.support-warning-attention {
  color: #d1d5db;
  font-size: 13px;
}

.support-warning-attention strong {
  color: #f39c12;
  font-weight: 700;
}

.support-title-box {
  background: #1e222d;
  border: 1px solid #2d3545;
  border-radius: 0;
  padding: 18px 22px;
}

.support-title-box small {
  color: #9ca3af;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 600;
}

.support-title-box h1 {
  color: #ffffff;
  font-size: 30px;
  font-weight: 800;
  margin-top: 4px;
  line-height: 1.15;
}

.support-grid {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.support-right-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.support-form-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  min-height: 0;
}

.support-tickets-card {
  width: 100%;
  flex-shrink: 0;
}

.btn-create-ticket {
  margin-top: 0;
}

.support-faq-card {
  display: flex;
  flex-direction: column;
}

@media (max-width: 900px) {
  .support-grid {
    grid-template-columns: 1fr;
  }

  .support-form-card {
    height: auto;
    min-height: 0;
  }

  .support-faq-card {
    flex: none;
  }
}

.dark-card {
  background: #1e222d;
  border: 1px solid #2d3545;
  border-radius: 0;
  padding: 18px 20px 20px;
}

.dark-card h3 {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.support-shell .accent-bar {
  width: 4px;
  height: 20px;
  background: #f39c12;
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(243, 156, 18, 0.7);
}

.accent-bar {
  width: 3px;
  height: 18px;
  background: #fb923c;
  border-radius: 0;
  display: inline-block;
  flex-shrink: 0;
}

.form-label {
  color: #f9fafb;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

.form-label .required { color: #ef4444; }

.form-select,
.form-textarea {
  width: 100%;
  background: #0b1220;
  border: 1px solid #374151;
  color: #fff;
  padding: 12px 14px;
  border-radius: 0;
  font-size: 14px;
  margin-bottom: 16px;
  outline: none;
  appearance: none;
  resize: none;
}

.form-select {
  color: #9ca3af;
  background-color: #0b1220;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
  height: 44px;
}

.form-select:valid,
.form-select option:checked {
  color: #fff;
}

.form-select option {
  background: #0b1220;
  color: #fff;
}

.support-form-card .form-textarea,
#ticketMessage {
  min-height: 120px;
  max-height: 420px;
  resize: vertical;
  overflow: auto;
  display: block;
  line-height: 1.5;
  margin-bottom: 14px;
  cursor: text;
}

.form-textarea::placeholder,
#ticketMessage::placeholder {
  color: #6b7280;
}

.support-shell .form-select:focus,
.support-form-card .form-textarea:focus,
.support-form-card #ticketMessage:focus {
  border-color: #f39c12;
}

.support-shell .btn-create-ticket {
  background: linear-gradient(180deg, #f5a623 0%, #f39c12 55%, #e67e22 100%);
  color: #fff;
  font-weight: 700;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  width: 100%;
  border: none;
  box-shadow: 0 4px 20px rgba(243, 156, 18, 0.4);
  transition: filter 0.15s, box-shadow 0.15s;
  margin-top: 0;
  letter-spacing: 0.2px;
}

.support-shell .btn-create-ticket:hover {
  filter: brightness(1.06);
  box-shadow: 0 6px 24px rgba(243, 156, 18, 0.48);
}

.btn-orange {
  background: linear-gradient(180deg, #fb923c 0%, #ea580c 100%);
  color: #fff;
  font-weight: 700;
  padding: 14px 16px;
  border-radius: 0;
  font-size: 14px;
  width: 100%;
  box-shadow: 0 0 0 1px rgba(251, 146, 60, 0.25), 0 6px 18px rgba(234, 88, 12, 0.35);
  transition: filter 0.15s;
  margin-top: 0;
}

.support-shell .faq-icon-close {
  color: #f39c12;
}

.btn-orange:hover {
  filter: brightness(1.05);
}

.form-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  padding: 10px 14px;
  border-radius: 0;
  font-size: 13px;
  margin-bottom: 12px;
}

.ticket-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ticket-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #0b1220;
  border: 1px solid #1f2937;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.15s;
}

.ticket-item + .ticket-item {
  margin-top: 0;
}

.ticket-item:hover {
  background: #151b24;
}

.ticket-item-info {
  min-width: 0;
}

.ticket-title {
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.35;
}

.ticket-id {
  color: #6b7280;
  font-size: 11px;
  margin-top: 4px;
}

.badge-open {
  background: #1f2937;
  color: #10b981;
  font-size: 9px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 0;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.badge-closed {
  background: #374151;
  color: #f3f4f6;
  font-size: 9px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 0;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.no-tickets {
  color: #6b7280;
  text-align: center;
  padding: 28px 16px;
  font-size: 13px;
  border: 1px dashed #374151;
  border-radius: 0;
  background: transparent;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.support-shell .faq-item {
  background: #252b38;
  border-color: #343d4f;
}

.faq-item {
  padding: 14px 16px;
  border: 1px solid #1f2937;
  border-radius: 0;
  background: #0b1220;
  color: #f3f4f6;
  font-size: 13px;
  cursor: pointer;
}

.faq-item:last-child {
  padding-bottom: 14px;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  line-height: 1.4;
}

.faq-icon {
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  width: 18px;
  text-align: center;
}

.faq-icon-plus {
  display: block;
  color: #fff;
}

.faq-icon-close {
  display: none;
  color: #fb923c;
  font-size: 20px;
}

.faq-item.open .faq-icon-plus { display: none; }
.faq-item.open .faq-icon-close { display: block; }

.faq-answer {
  display: none;
  color: #9ca3af;
  font-size: 12px;
  line-height: 1.6;
  margin-top: 10px;
  padding-right: 24px;
}

.faq-item.open .faq-answer { display: block; }

/* ===== TICKET DETAIL ===== */
.ticket-detail-card {
  background: #1e1e2d; border-radius: 12px; padding: 28px;
  max-width: 900px; margin: 0 auto;
}
.ticket-detail-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.ticket-detail-header h2 { color: #fff; font-size: 20px; font-weight: 700; }
.ticket-meta { color: #9ca3af; font-size: 12px; margin-top: 6px; }
.ticket-actions { text-align: right; }
.close-ticket-link { color: #ef4444; font-size: 12px; margin-top: 8px; display: block; cursor: pointer; }
.close-ticket-link:hover { text-decoration: underline; }

.ticket-messages {
  display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 24px;
}

.message-bubble {
  background: #2a2a3d; border-radius: 12px; padding: 16px;
  max-width: 75%;
}
.message-user {
  margin-left: auto;
  background: #2a2a3d;
}
.message-support {
  margin-right: auto;
  background: #1f2937;
  border: 1px solid #374151;
}
.message-meta { color: #6b7280; font-size: 11px; margin-bottom: 6px; }
.message-text { color: #fff; font-size: 14px; line-height: 1.5; white-space: pre-wrap; }

.ticket-closed-notice {
  background: rgba(55, 65, 81, 0.5);
  border: 1px solid #374151;
  color: #9ca3af;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 13px;
  text-align: center;
}

.ticket-not-found {
  text-align: center; padding: 40px 20px; color: #9ca3af;
}
.ticket-not-found p { margin-bottom: 16px; font-size: 15px; }
.ticket-not-found .btn-orange { width: auto; padding: 12px 28px; }

.ticket-reply textarea {
  width: 100%; background: #2a2a3d; border: 1px solid #374151;
  color: #fff; padding: 16px; border-radius: 10px;
  min-height: 100px; font-size: 14px; outline: none; resize: vertical;
  margin-bottom: 12px;
}
.ticket-reply textarea::placeholder { color: #6b7280; }
.btn-send {
  background: #f97316; color: #fff; font-weight: 700;
  padding: 10px 28px; border-radius: 8px; font-size: 14px;
  float: right;
}

/* ===== MODALS ===== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  z-index: 300; display: none; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }

#depositModal.modal-overlay.open {
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}

#welcomeModal.modal-overlay {
  background: #b8b8b8;
  backdrop-filter: none;
}

.welcome-card {
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 14px;
  padding: 32px 36px 36px;
  max-width: 440px;
  width: calc(100% - 48px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}
.welcome-step[hidden] { display: none; }
.welcome-card h1 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 10px;
  color: #111;
  text-align: left;
}
.welcome-sub {
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.55;
  text-align: left;
}
.welcome-or {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #9ca3af;
  font-size: 13px;
  margin: 18px 0;
}
.welcome-or::before,
.welcome-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}
.btn-welcome-primary {
  width: 100%;
  background: #ffcc00;
  color: #111;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 20px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 18px rgba(255, 204, 0, 0.45);
}
.btn-welcome-primary:hover {
  background: #f2c200;
  box-shadow: 0 8px 22px rgba(255, 204, 0, 0.5);
}
.btn-welcome-outline {
  width: 100%;
  background: #fff;
  color: #111;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 20px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  cursor: pointer;
  margin-top: 0;
}
.btn-welcome-primary + .btn-welcome-outline {
  margin-top: 10px;
}
.btn-welcome-outline:hover { background: #f9fafb; }
.welcome-error {
  color: #dc2626;
  font-size: 12px;
  font-weight: 600;
  margin: -6px 0 12px;
}
.token-input {
  width: 100%;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #111;
  margin-bottom: 16px;
  outline: none;
}
.token-input::placeholder { color: #9ca3af; }
.token-input:focus { border-color: #0d9488; box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.12); }
.warning-box {
  background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px;
  padding: 14px; display: flex; gap: 10px; margin-bottom: 20px;
}
.warning-box strong { color: #dc2626; font-size: 13px; display: block; margin-bottom: 4px; }
.warning-box p { color: #dc2626; font-size: 12px; line-height: 1.5; }
.token-label { color: #0d9488; font-weight: 700; font-size: 14px; margin-bottom: 8px; display: block; }
.token-field {
  background: #fff; border: 1px solid #d1d5db; border-radius: 8px;
  padding: 12px; font-size: 11px; font-family: monospace; color: #666;
  word-break: break-all; margin-bottom: 20px;
}

.deposit-modal {
  background: #0d1117;
  border-radius: 20px;
  padding: 32px;
  max-width: 560px;
  width: min(560px, calc(100vw - 32px));
  max-height: min(90vh, 900px);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  position: relative;
  margin: auto;
  flex-shrink: 0;
  box-sizing: border-box;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

.deposit-modal .modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  margin: 0;
  float: none;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: #1f2937; color: #fff; width: 32px; height: 32px;
  border-radius: 50%; font-size: 14px; display: flex;
  align-items: center; justify-content: center;
}
.deposit-header {
  margin-bottom: 24px;
  width: 100%;
  min-width: 0;
  padding-right: 36px;
  box-sizing: border-box;
}
.deposit-header-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.deposit-icon-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.deposit-header-accent {
  display: block;
  width: 22px;
  height: 3px;
  background: #f59e0b;
  border-radius: 2px;
}
.deposit-header h2 { color: #fff; font-size: 22px; font-weight: 700; margin: 0; }
.deposit-icon { font-size: 24px; line-height: 1; }
.deposit-header p { color: #9ca3af; font-size: 14px; margin: 0; }

.deposit-step-details {
  display: none;
  width: 100%;
  min-width: 0;
}

.deposit-modal.deposit-step-address .deposit-step-details {
  display: block;
}

.deposit-modal:not(.deposit-step-address) .crypto-grid {
  margin-bottom: 0;
}

.crypto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
  width: 100%;
  min-width: 0;
}
.crypto-btn {
  background: #161b22; color: #fff; padding: 14px;
  border-radius: 12px; font-size: 14px; font-weight: 600;
  display: flex; align-items: center; gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: border-color 0.2s;
}
.crypto-btn:hover {
  border-color: rgba(255, 255, 255, 0.28);
}
.crypto-btn.active { border-color: #f97316; }
.crypto-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}
.crypto-logo.btc,
.crypto-logo.ltc {
  background: transparent;
  border-radius: 0;
  width: auto;
  min-width: 24px;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
}
.crypto-logo.eth {
  background: #627eea;
  color: #fff;
}
.crypto-logo.sol {
  background: linear-gradient(180deg, #19fb9b 0%, #00d1ff 42%, #7c3aed 100%);
  color: #fff;
}

.deposit-rules {
  border: 1px solid #d97706;
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 24px;
  background: #1a1a1a;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.deposit-rules-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.rules-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
}

.deposit-rules-title {
  color: #f08c00;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.deposit-rules-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.deposit-rules-list li {
  color: #ffffff;
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 8px;
  padding-left: 14px;
  position: relative;
}

.deposit-rules-list li:last-child {
  margin-bottom: 0;
}

.deposit-rules-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #f08c00;
  font-weight: 700;
}

.deposit-rules-list li strong {
  color: #ffffff;
  font-weight: 700;
}

.deposit-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  min-width: 0;
}

.qr-code {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.deposit-address-section {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  text-align: center;
  overflow: hidden;
}

.qr-placeholder {
  background: #fff;
  border-radius: 10px;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
  padding: 8px;
  box-sizing: border-box;
}

#depositQr {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.qr-center-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 5px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  z-index: 2;
}

.qr-logo-symbol {
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
}

.qr-center-logo.btc { background: #f7931a; color: #fff; }
.qr-center-logo.eth { background: #627eea; color: #fff; }
.qr-center-logo.ltc { background: #bfbbbb; color: #333; }
.qr-center-logo.sol { background: #9945ff; color: #fff; }
.qr-center-logo.ltc .qr-logo-symbol { font-size: 16px; }
.qr-center-logo.sol .qr-logo-symbol { font-size: 15px; }

.deposit-address-section label {
  color: #9ca3af;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  text-align: center;
}
.address-field {
  background: #161b22;
  border: 1px solid #f97316;
  border-radius: 8px;
  padding: 14px;
  color: #f97316;
  font-family: monospace;
  font-size: 12px;
  margin-bottom: 12px;
  line-height: 1.45;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-x: auto;
  white-space: nowrap;
  text-align: center;
  word-break: normal;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #f97316 #161b22;
}

.address-field::-webkit-scrollbar {
  height: 6px;
}

.address-field::-webkit-scrollbar-thumb {
  background: #f97316;
  border-radius: 999px;
}
.btn-copy {
  background: linear-gradient(180deg, #ffd814 0%, #f59e0b 55%, #ea580c 100%);
  color: #111;
  font-weight: 700;
  padding: 13px;
  border-radius: 8px;
  font-size: 14px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
}

/* ===== FILTRES PAGE ===== */
.filtres-page {
  width: 100%;
  max-width: 820px;
}

.filtres-card {
  width: 100%;
  background: #fff;
  border: 1px solid #d5dbe1;
  border-radius: 14px;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.08);
  padding: 26px 28px 24px;
  position: relative;
}

.filtres-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  color: #007185;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #b8d4dc;
  cursor: pointer;
  padding: 0;
}

.filtres-head {
  padding-right: 36px;
  margin-bottom: 20px;
}

.filtres-head h2 {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filters-title-icon {
  flex-shrink: 0;
  font-size: 22px;
  line-height: 1;
}

.filters-subtitle {
  color: #6b7280;
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 4px;
}

.filters-active-count {
  color: #111;
  font-size: 12px;
  font-weight: 700;
}

.filters-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.filter-field label {
  color: #007185;
  font-size: 12px;
  font-weight: 700;
}

.filter-field input[type="text"],
.filter-field select {
  width: 100%;
  height: 40px;
  border: 1px solid #b8c4cc;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 14px;
  color: #111;
  background: #fff;
  outline: none;
  appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.filter-field select {
  text-align: center;
  text-align-last: center;
  color: #374151;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
}

.filter-field input[type="text"]:focus,
.filter-field select:focus {
  border-color: #f08804;
  box-shadow: 0 0 0 1px #f08804;
}

.filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.filter-shortcuts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: -2px;
}

.filter-shortcuts-label {
  color: #006680;
  font-size: 12px;
  font-weight: 700;
}

.filter-shortcuts-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-shortcut-btn {
  border: 1px solid #e0e0e0;
  background: #fff;
  color: #006680;
  font-size: 11px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.filter-shortcut-btn:hover {
  border-color: #c7ccd1;
}

.filter-shortcut-btn.active {
  background: #ffcc00;
  border-color: #ffcc00;
  color: #111;
  box-shadow: none;
}

.filter-age-field {
  gap: 6px;
  margin-top: 2px;
}

.filter-age-box {
  background: #fff;
  border: 1px solid #d5dbe1;
  border-radius: 10px;
  padding: 12px 14px 14px;
}

.filter-age-display {
  display: block;
  color: #111;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 10px;
}

.filter-age-display strong {
  font-weight: 800;
}

.filter-age-slider {
  position: relative;
  height: 36px;
  margin-top: 0;
}

.filter-age-track-bg {
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  height: 8px;
  background: #e8edf0;
  border-radius: 999px;
  pointer-events: none;
}

.filter-age-slider input[type="range"] {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  height: 36px;
  margin: 0;
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  top: 0;
}

.filter-age-slider input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  background: transparent;
  border-radius: 999px;
}

.filter-age-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffd200;
  border: none;
  margin-top: -5px;
  pointer-events: auto;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(100, 116, 139, 0.35);
}

.filter-age-slider input[type="range"]::-moz-range-track {
  height: 8px;
  background: transparent;
  border-radius: 999px;
}

.filter-age-slider input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffd200;
  border: none;
  pointer-events: auto;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(100, 116, 139, 0.35);
}

.filter-age-track {
  position: absolute;
  top: 14px;
  height: 8px;
  background: #ffd200;
  border-radius: 999px;
  pointer-events: none;
}

.filters-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}

.btn-filter-reset {
  height: 42px;
  border: 1px solid #b8c4cc;
  border-radius: 8px;
  background: #fff;
  color: #111;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.btn-filter-apply {
  height: 42px;
  border: none;
  border-radius: 8px;
  background: #ffcc00;
  color: #111;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.btn-filter-apply:hover {
  background: #f5c400;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  /* Header: logo + icônes en haut, barre de recherche pleine largeur en dessous */
  .header-top {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 12px;
    padding: 10px 12px 14px;
  }

  .header-brand {
    grid-column: 1;
    grid-row: 1;
    gap: 10px;
  }

  .header-right {
    grid-column: 2;
    grid-row: 1;
    gap: 12px;
    padding-right: 0;
  }

  .search-bar {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .search-bar input {
    height: 38px;
    border: 1px solid #d5d9d9;
    border-radius: 8px;
    font-size: 13px;
    padding: 0 14px 0 40px;
  }

  .search-icon-mobile {
    display: block;
    left: 12px;
  }

  .search-icon-desktop {
    display: none;
  }

  .logo-img {
    height: 32px;
  }

  .header-nav {
    display: none;
  }

  /* Fond blanc entre les blocs sombres */
  body {
    background: #fff;
  }

  .header {
    background: #131921;
  }

  /* Accueil : bandes blanches entre chaque section */
  .main-content,
  .main-content.home-view {
    max-width: 100%;
    padding: 12px 0 32px;
    margin: 0;
    background: #fff;
  }

  .hero-stack {
    gap: 12px;
    margin-bottom: 0;
    padding: 0;
    background: #fff;
  }

  .announcement-card {
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 12px 14px;
    margin: 0;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 6px;
    font-size: 11px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .announcement-card::-webkit-scrollbar {
    display: none;
  }

  .announcement-sep {
    flex-shrink: 0;
  }

  .welcome-card-dark {
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 18px 14px;
    margin: 0;
  }

  .welcome-banner {
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
  }

  .welcome-banner > div {
    flex: 1;
    min-width: 0;
  }

  .welcome-banner h1 {
    font-size: 17px;
    line-height: 1.25;
  }

  .welcome-banner p {
    font-size: 11px;
    margin-top: 4px;
    line-height: 1.35;
  }

  .welcome-tag {
    font-size: 9px;
    margin-bottom: 6px;
  }

  .btn-discover {
    padding: 10px 18px;
    font-size: 13px;
    flex-shrink: 0;
  }

  .charts-row {
    gap: 12px;
    margin-top: 0;
  }

  .chart-widget {
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: linear-gradient(180deg, #1e2a3a 0%, #131921 100%);
    padding: 16px 14px 0;
    margin: 0;
  }

  .chart-title {
    font-size: 12px;
    line-height: 1.4;
  }

  .chart-title-underline {
    width: 56px;
    margin-top: 5px;
  }

  .chart-canvas-wrap {
    height: 180px;
  }

  .chart-widget-donut {
    min-height: auto;
    border-top: none;
    margin-top: 0;
  }

  .info-cards {
    padding: 16px 14px 14px;
    gap: 12px;
    margin-bottom: 14px;
    background: #f3f4f6;
    margin-top: 12px;
  }

  .restock-panel {
    margin: 0 14px;
  }

  .main-content.catalogue-view,
  .main-content.support-view,
  .main-content.filtres-view {
    padding-left: 12px;
    padding-right: 12px;
  }

  .main-content.filtres-view {
    padding-top: 20px;
  }

  /* ===== MES ACHATS (mobile) ===== */
  .main-content:not(.home-view):not(.catalogue-view):not(.support-view):not(.filtres-view) {
    padding: 12px 14px 32px;
    background: #fff;
  }

  .page-back {
    font-size: 12px;
    margin-bottom: 10px;
  }

  .page-title {
    font-size: 22px;
    margin-bottom: 2px;
  }

  .page-subtitle {
    font-size: 13px;
    margin-bottom: 14px;
  }

  .summary-cards {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 14px;
  }

  .summary-card {
    padding: 16px 18px;
    border-radius: 10px;
  }

  .summary-value {
    font-size: 18px;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px;
    border-radius: 10px;
    margin-bottom: 14px;
  }

  .filter-search {
    min-width: 0;
    width: 100%;
    padding: 10px 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
  }

  .filter-search input {
    font-size: 13px;
  }

  .filter-dropdown {
    width: 100%;
  }

  .filter-dropdown-trigger {
    width: 100%;
    min-width: 0;
  }

  .empty-state {
    padding: 48px 20px;
    border: 2px dashed #d1d5db;
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
  }

  /* ===== MON COMPTE (mobile) ===== */
  html,
  body {
    overflow-x: hidden;
    max-width: 100%;
  }

  .account-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 12px;
  }

  .account-card {
    padding: 18px 16px;
    border-radius: 12px;
    min-width: 0;
    overflow: hidden;
  }

  .account-card h3,
  .activity-title {
    font-size: 11px;
    margin-bottom: 14px;
  }

  .credit-card-widget {
    padding: 22px 20px 20px;
    min-height: 0;
    border-radius: 14px;
  }

  .cc-user {
    font-size: 16px;
  }

  .cc-balance strong {
    font-size: 28px;
  }

  .cc-chip {
    margin: 18px 0 14px;
  }

  .cc-number {
    font-size: 13px;
    margin-bottom: 18px;
    letter-spacing: 1px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .cc-btn {
    font-size: 13px;
    padding: 10px 22px;
  }

  .cred-list {
    margin-top: 0;
  }

  .cred-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    overflow: hidden;
    min-width: 0;
  }

  .cred-item:first-child {
    padding-top: 0;
  }

  .cred-item-icon {
    width: 36px;
    height: 36px;
    font-size: 15px;
    flex-shrink: 0;
  }

  .cred-item-body {
    flex: 1;
    min-width: 0;
    padding-right: 0;
    overflow: hidden;
  }

  .cred-item-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 0;
  }

  .cred-label {
    font-size: 12px;
    margin-bottom: 6px;
  }

  .cred-value,
  .cred-value-input {
    font-size: 12px;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .btn-cred-action {
    font-size: 11px;
    padding: 6px 10px;
    white-space: nowrap;
  }

  .cred-eye-btn {
    padding: 6px 8px;
  }

  .telegram-status-pill {
    width: 100%;
    max-width: 100%;
    font-size: 12px;
    padding: 6px 10px;
  }

  .account-card-gift {
    min-height: 0;
  }

  .gift-desc {
    font-size: 12px;
    margin-bottom: 12px;
  }

  .gift-input {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .gift-illustration {
    padding-top: 16px;
  }

  .activity-section {
    padding: 18px 16px;
    border-radius: 12px;
    margin-top: 0;
  }

  .activity-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .activity-col-header h4 {
    font-size: 14px;
  }

  .activity-col-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .activity-empty {
    padding: 36px 16px;
    min-height: 140px;
  }

  /* ===== MODAL DÉPÔT (mobile) ===== */
  #depositModal.modal-overlay.open {
    align-items: center;
    justify-content: center;
    padding: 12px;
    overflow-y: auto;
  }

  .deposit-modal {
    width: min(560px, calc(100vw - 24px));
    max-height: calc(100dvh - 24px);
    padding: 22px 16px 24px;
    margin: auto;
    border-radius: 16px;
  }

  .deposit-header {
    margin-bottom: 18px;
  }

  .deposit-header h2 {
    font-size: 20px;
  }

  .deposit-rules {
    padding: 14px 16px;
    margin-bottom: 16px;
  }

  .deposit-details {
    gap: 16px;
  }

  .qr-placeholder {
    width: 200px;
    height: 200px;
  }

  /* ===== CATALOGUE (mobile) ===== */
  .main-content.catalogue-view {
    padding: 12px 14px 32px;
    background: #fff;
  }

  .catalogue-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 12px;
  }

  .catalogue-count {
    font-size: 12px;
  }

  .catalogue-sort-dropdown {
    width: 100%;
  }

  .catalogue-sort-trigger {
    width: 100%;
    min-width: 0;
  }

  .catalogue-list {
    gap: 12px;
  }

  .product-card {
    position: relative;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 14px 16px 16px;
    border-radius: 12px;
    min-height: 0;
  }

  .product-col-bank {
    width: 100%;
    min-width: 0;
    max-width: none;
    z-index: auto;
  }

  .product-card-middle {
    position: static;
    inset: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    width: 100%;
    pointer-events: auto;
  }

  .product-col-loc,
  .product-col-info {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    align-items: center;
    text-align: center;
    pointer-events: auto;
  }

  .col-label {
    text-align: center;
    width: 100%;
  }

  .col-value {
    justify-content: center;
    font-size: 14px;
  }

  .col-sub {
    text-align: center;
  }

  .product-col-price {
    width: 100%;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    margin-left: 0;
    padding-right: 0;
    padding-left: 0;
    border-left: none;
    border-top: 1px solid #f0f0f0;
    padding-top: 14px;
    margin-top: 2px;
  }

  .product-date-tag {
    position: absolute;
    top: 10px;
    right: 14px;
    z-index: 2;
    margin-left: 0;
    align-self: auto;
  }

  .product-price-row {
    width: 100%;
    justify-content: space-between;
    align-items: center;
  }

  .product-price {
    font-size: 24px;
  }

  .product-bank-name {
    font-size: 13px;
  }
}

/* ===== UTILITIES ===== */
.flag-fr { font-size: 16px; }
.visa-logo { color: #1a1f71; font-weight: 900; font-size: 14px; font-style: italic; }
.mc-logo { display: flex; gap: 0; }
.mc-circle { width: 16px; height: 16px; border-radius: 50%; }
.mc-red { background: #eb001b; }
.mc-orange { background: #f79e1b; margin-left: -6px; }
