/* Mon compte — bento immersif (dark cyan Traîner-Frontier) */
.compte-page h1 { letter-spacing: .06em; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.compte-bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.compte-tile {
  grid-column: 1 / -1;
  background: var(--glass);
  border: 1px solid rgba(62, 207, 255, .18);
  backdrop-filter: blur(18px) saturate(1.25);
  padding: 18px 20px;
  border-radius: 16px;
}

/* —— Hero profil premium (glass + cyan Traîner-Frontier) —— */
.compte-hero {
  position: relative;
  overflow: hidden;
  padding: 26px 28px;
  border-color: rgba(62, 207, 255, .34);
  background:
    linear-gradient(145deg, rgba(62, 207, 255, .12) 0%, rgba(62, 207, 255, .03) 28%, transparent 55%),
    linear-gradient(180deg, rgba(14, 28, 48, .72) 0%, rgba(8, 14, 26, .55) 100%),
    var(--glass);
  box-shadow:
    0 0 0 1px rgba(62, 207, 255, .1) inset,
    0 18px 40px rgba(0, 0, 0, .32),
    0 1px 0 rgba(255, 255, 255, .04) inset;
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
}
.compte-hero::before {
  content: "";
  position: absolute; inset: 0 auto 0 0; width: 3px;
  background: linear-gradient(180deg, #7ae4ff 0%, #3ecfff 38%, rgba(62, 207, 255, .15) 100%);
  box-shadow: 0 0 18px rgba(62, 207, 255, .35);
  pointer-events: none;
  z-index: 1;
}
.compte-hero-sheen {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 70% at 12% 20%, rgba(62, 207, 255, .14), transparent 60%),
    linear-gradient(115deg, rgba(255, 255, 255, .05) 0%, transparent 32%);
  pointer-events: none;
  z-index: 0;
}
.compte-hero-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px 32px;
  align-items: center;
}
.compte-avatar {
  width: 104px;
  flex-shrink: 0;
}
.compte-avatar-frame {
  position: relative;
  padding: 3px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(122, 228, 255, .7), rgba(62, 207, 255, .15) 45%, rgba(47, 125, 255, .35));
  box-shadow:
    0 0 0 1px rgba(62, 207, 255, .2),
    0 14px 32px rgba(0, 0, 0, .4);
}
.compte-skin {
  width: 96px; height: 96px; border-radius: 17px;
  border: none;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .35);
  image-rendering: pixelated;
  background: rgba(0, 0, 0, .45);
  display: block;
}
.compte-skin--empty {
  background:
    linear-gradient(145deg, rgba(62, 207, 255, .14), rgba(0, 0, 0, .5));
}
/* Presence — monoligne, même hauteur que .compte-grade */
.compte-presence {
  position: static;
  left: auto;
  bottom: auto;
  transform: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: min(100%, 22rem);
  min-width: 0;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(8, 14, 24, .72);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .03) inset;
  line-height: 1.2;
  overflow: hidden;
}
.compte-presence-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #7a8799;
  box-shadow: none;
}
.compte-presence-copy {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  min-width: 0;
  overflow: hidden;
}
.compte-presence-state {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: #a8b6c8;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.compte-presence-world {
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .01em;
  color: rgba(168, 182, 200, .78);
  text-transform: none;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.compte-presence.is-online {
  border-color: rgba(62, 207, 255, .42);
  background: rgba(62, 207, 255, .08);
  box-shadow: 0 0 0 1px rgba(62, 207, 255, .06) inset;
}
.compte-presence.is-online .compte-presence-dot {
  background: var(--cyan, #3ecfff);
  box-shadow: 0 0 0 3px rgba(62, 207, 255, .16);
}
.compte-presence.is-online .compte-presence-state {
  color: #d7f6ff;
}
.compte-presence.is-online .compte-presence-world {
  color: rgba(184, 240, 255, .78);
}
.compte-presence.is-offline {
  border-color: rgba(255, 255, 255, .1);
  background: rgba(8, 14, 24, .55);
}
.compte-presence.is-offline .compte-presence-dot {
  background: #6b7788;
  opacity: .85;
}
.compte-presence.is-offline .compte-presence-state {
  color: #8a97a8;
}
.compte-hero-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  justify-content: center;
}
.compte-hero-eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan, #3ecfff);
}
.compte-hero-name,
.compte-hero-text h2 {
  font-family: var(--display);
  font-size: clamp(1.55rem, 2.8vw, 2.05rem);
  margin: 0 0 14px;
  letter-spacing: .02em;
  line-height: 1.1;
  color: #f2f8ff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .25);
}
.compte-hero-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 0;
}
.compte-grade {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(62, 207, 255, .08);
  border: 1px solid rgba(62, 207, 255, .42);
  box-shadow: 0 0 0 1px rgba(62, 207, 255, .06) inset;
}
.compte-grade-name {
  font-weight: 700; color: #b8f0ff; font-size: .9rem;
  letter-spacing: .05em; text-transform: uppercase;
}
.compte-staff {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}
/* Fondateur — ambre / warn in-game */
.compte-staff--founder {
  background: rgba(245, 197, 66, .12);
  border: 1px solid rgba(245, 197, 66, .48);
  box-shadow: 0 0 0 1px rgba(245, 197, 66, .06) inset;
  color: #ffe9a8;
}
/* Modo — cyan Traîner-Frontier */
.compte-staff--modo {
  background: rgba(62, 207, 255, .10);
  border: 1px solid rgba(62, 207, 255, .45);
  box-shadow: 0 0 0 1px rgba(62, 207, 255, .06) inset;
  color: #b8f0ff;
}
/* Guide — vert jeu (--green #3dd68c) */
.compte-staff--guide {
  background: rgba(61, 214, 140, .10);
  border: 1px solid rgba(61, 214, 140, .42);
  box-shadow: 0 0 0 1px rgba(61, 214, 140, .06) inset;
  color: #b8f5d4;
}
.compte-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(0, 0, 0, .28);
  border: 1px solid rgba(62, 207, 255, .16);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset;
  min-width: 0;
}
.compte-actions .am-btn {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 16px;
}
.compte-actions .am-btn:hover {
  transform: none;
}
.compte-hero-banner { margin-top: 18px; position: relative; z-index: 1; }

.compte-kpi h2,
.compte-panel h2,
.compte-sanctions h2 {
  font-family: var(--display);
  font-size: 1.12rem;
  margin: 0 0 12px;
  letter-spacing: .03em;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.kpi-tile {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.08);
  transition: border-color 180ms ease, background 180ms ease;
}
.kpi-tile:hover {
  border-color: rgba(62, 207, 255, .35);
  background: rgba(0,0,0,.36);
}
.kpi-tile img,
.kpi-ico img {
  width: 28px; height: 28px; object-fit: contain;
  image-rendering: pixelated;
  flex-shrink: 0;
  display: block;
}
.kpi-ico {
  display: grid; place-items: center;
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 50%;
  background: rgba(62, 207, 255, .08);
  border: 1px solid rgba(62, 207, 255, .35);
  box-shadow: 0 0 12px rgba(62, 207, 255, .12);
}
.kpi-tile--dollars {
  border-color: rgba(62, 207, 255, .2);
}
.kpi-lab {
  display: block; font-size: 11px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; color: var(--muted);
}
.kpi-tile strong {
  font-family: var(--display);
  font-size: 1.28rem;
  color: #9ee9ff;
  display: block;
}

.compte-tabs {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 0;
  background: transparent;
  border: none;
  backdrop-filter: none;
}
.compte-tab {
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.28);
  color: #d7e6f5;
  font-family: var(--display);
  font-size: .88rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 10px 14px;
  border-radius: 999px;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}
.compte-tab:hover { border-color: rgba(62, 207, 255, .4); }
.compte-tab.on {
  background: rgba(62, 207, 255, .16);
  border-color: rgba(62, 207, 255, .55);
  color: #9ee9ff;
}

.panel-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 8px;
}
.panel-head h2 { margin: 0; }
.panel-hint { color: var(--muted); font-size: .85rem; }
.panel-empty { color: var(--muted); font-size: .95rem; padding: 12px 0; }

.poke-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.poke-grid-pc {
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}
.poke-card {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; text-align: center;
  padding: 12px 8px;
  border-radius: 12px;
  background: rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.08);
  min-height: 132px;
  transition: border-color 180ms ease;
}
.poke-card:hover { border-color: rgba(62, 207, 255, .35); }
.poke-card.empty {
  justify-content: center;
  opacity: .55;
  border-style: dashed;
}
.poke-sprite {
  width: 72px; height: 72px; object-fit: contain;
}
.poke-info { display: flex; flex-direction: column; gap: 2px; width: 100%; }
.poke-info strong {
  font-size: .88rem; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.poke-info span { font-size: .78rem; color: var(--muted); }
.poke-empty-label { font-size: .8rem; color: var(--muted); }

.pc-toolbar {
  margin-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}
.compte-box-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.compte-box-select {
  position: relative;
  min-width: 180px;
  max-width: 280px;
  flex: 1 1 180px;
}
.compte-box-trigger {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(62, 207, 255, .32);
  background:
    linear-gradient(180deg, rgba(62, 207, 255, .08), transparent 55%),
    rgba(0, 0, 0, .48);
  color: #e8f4ff;
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.compte-box-trigger:hover {
  border-color: rgba(62, 207, 255, .55);
}
.compte-box-select.open .compte-box-trigger,
.compte-box-trigger:focus-visible {
  outline: none;
  border-color: rgba(62, 207, 255, .7);
  box-shadow: 0 0 0 3px rgba(62, 207, 255, .18);
}
.compte-box-caret {
  width: 9px; height: 9px;
  border-right: 2px solid #9ee9ff;
  border-bottom: 2px solid #9ee9ff;
  transform: rotate(45deg) translate(-2px, -2px);
  flex-shrink: 0;
  transition: transform .15s;
  opacity: .85;
}
.compte-box-select.open .compte-box-caret {
  transform: rotate(225deg) translate(-1px, -1px);
}
.compte-box-menu {
  position: absolute;
  left: 0; right: 0;
  top: calc(100% + 6px);
  z-index: 50;
  max-height: 260px;
  overflow: auto;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(62, 207, 255, .4);
  background: rgba(6, 12, 22, .98);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .55);
  scrollbar-width: thin;
}
.compte-box-option {
  width: 100%;
  display: block;
  padding: 10px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #e8eef8;
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.compte-box-option:hover,
.compte-box-option[aria-selected="true"] {
  background: rgba(62, 207, 255, .16);
  color: #fff;
}
.compte-box-option:disabled {
  opacity: .5;
  cursor: default;
}

.inv-sections {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px 18px;
}
.inv-sections > .inv-panel:nth-child(1),
.inv-sections > .inv-panel:nth-child(2),
.inv-sections > .inv-panel:last-child { grid-column: 1; }
.inv-side {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.inv-panel {
  padding: 14px 14px 16px;
  border-radius: 14px;
  background:
    linear-gradient(165deg, rgba(62, 207, 255, .07) 0%, transparent 42%),
    rgba(0, 0, 0, .28);
  border: 1px solid rgba(62, 207, 255, .16);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset;
  backdrop-filter: blur(10px);
}
.inv-sections h3,
.inv-panel h3 {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #9ee9ff;
  margin: 0 0 12px;
  font-weight: 700;
}
.inv-row, .inv-grid, .inv-col {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.inv-grid {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 8px;
  max-width: 720px;
}
.inv-col { flex-direction: column; }
.inv-slot {
  width: 64px;
  min-height: 76px;
  border-radius: 12px;
  background: rgba(0, 0, 0, .38);
  border: 1px dashed rgba(255, 255, 255, .12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  padding: 8px 4px 6px;
  position: relative;
  cursor: default;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.inv-slot--empty {
  opacity: .55;
}
.inv-slot--filled,
.inv-slot.has {
  cursor: pointer;
  border-style: solid;
  border-color: rgba(62, 207, 255, .34);
  background:
    linear-gradient(180deg, rgba(62, 207, 255, .1), transparent 60%),
    rgba(4, 14, 28, .72);
  box-shadow: 0 0 0 1px rgba(62, 207, 255, .06) inset;
}
.inv-slot--filled:hover,
.inv-slot.has:hover {
  border-color: rgba(62, 207, 255, .65);
  box-shadow: 0 0 0 1px rgba(62, 207, 255, .12) inset, 0 8px 20px rgba(0, 0, 0, .28);
}
.inv-slot img {
  width: 40px; height: 40px; object-fit: contain;
  image-rendering: pixelated;
  flex-shrink: 0;
}
.inv-name {
  display: block;
  width: 100%;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.15;
  color: #c9d7e8;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.inv-slot .cnt {
  position: absolute; right: 4px; top: 4px;
  min-width: 16px;
  padding: 1px 5px;
  border-radius: 999px;
  font-size: 10px; font-weight: 800;
  color: #041018;
  background: #9ee9ff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .35);
  text-align: center;
  line-height: 1.35;
}

.prog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.prog-card {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px;
  border-radius: 12px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.08);
}
.prog-card img {
  width: 36px; height: 36px; object-fit: contain;
  image-rendering: pixelated;
}
.prog-card h3 {
  margin: 0 0 4px; font-family: var(--display); font-size: 1rem;
}
.prog-card p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.4; }
.pill {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  color: #c5d4e4;
}
.pill-on {
  background: rgba(61, 214, 140, .12);
  border-color: rgba(61, 214, 140, .4);
  color: #b8f5d4;
}


/* —— Mes sanctions (sous le profil) —— */
.compte-sanctions {
  border-color: rgba(62, 207, 255, .26);
  background:
    linear-gradient(145deg, rgba(62, 207, 255, .09) 0%, rgba(62, 207, 255, .02) 34%, transparent 60%),
    linear-gradient(180deg, rgba(14, 28, 48, .58) 0%, rgba(8, 14, 26, .44) 100%),
    var(--glass);
  box-shadow:
    0 0 0 1px rgba(62, 207, 255, .08) inset,
    0 12px 28px rgba(0, 0, 0, .24);
}
.compte-sanctions .audit-table-wrap {
  margin-top: 0;
  border-color: rgba(62, 207, 255, .14);
  background: rgba(0, 0, 0, .28);
}
.compte-sanctions .audit-table th {
  background: rgba(62, 207, 255, .06);
  color: rgba(184, 240, 255, .78);
}
.compte-sanctions .audit-table tbody tr:hover {
  background: rgba(62, 207, 255, .05);
}
.compte-sanctions .audit-table tbody tr:last-child td { border-bottom: none; }
.compte-sanctions .audit-empty {
  padding: 18px 16px;
  letter-spacing: .01em;
}

/* Sanctions + generic tables */
.audit-table-wrap,
.orders-table-wrap {
  overflow-x: auto;
  margin-top: 4px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: rgba(0,0,0,.22);
}
.audit-table,
.orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
  table-layout: fixed;
}
.audit-table th, .audit-table td,
.orders-table th, .orders-table td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,.06);
  vertical-align: middle;
  word-break: break-word;
}
.audit-table th,
.orders-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  background: rgba(0,0,0,.28);
  font-weight: 700;
  white-space: nowrap;
}
.orders-table th:nth-child(1),
.orders-table td:nth-child(1) { width: 18%; }
.orders-table th:nth-child(2),
.orders-table td:nth-child(2) { width: 32%; }
.orders-table th:nth-child(3),
.orders-table td:nth-child(3) { width: 16%; }
.orders-table th:nth-child(4),
.orders-table td:nth-child(4) { width: 16%; }
.orders-table th:nth-child(5),
.orders-table td:nth-child(5) { width: 18%; }
.orders-table tbody tr {
  transition: background 180ms ease;
}
.orders-table tbody tr:hover {
  background: rgba(62, 207, 255, .05);
}
.orders-table tbody tr:last-child td { border-bottom: none; }
.audit-empty { color: var(--muted); padding: 16px; text-align: center; }

/* —— Achats toolbar —— */
.orders-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
  margin: 4px 0 14px;
}
.orders-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  flex: 1;
  min-width: 0;
}
.orders-chip-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.08);
}
.orders-chip {
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  color: #b8c9da;
  font: inherit;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .03em;
  padding: 6px 12px;
  border-radius: 999px;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}
.orders-chip:hover {
  color: #e8f4ff;
  border-color: rgba(62, 207, 255, .25);
}
.orders-chip.on {
  background: rgba(62, 207, 255, .16);
  border-color: rgba(62, 207, 255, .5);
  color: #9ee9ff;
}
.orders-search {
  flex: 1;
  min-width: 180px;
  max-width: 280px;
}
.orders-search input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(0,0,0,.4);
  color: #e8f4ff;
  border: 1px solid rgba(62, 207, 255, .22);
  border-radius: 10px;
  padding: 9px 12px;
  font: inherit;
  font-size: .9rem;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.orders-search input::placeholder { color: #7e90a8; }
.orders-search input:focus {
  outline: none;
  border-color: rgba(62, 207, 255, .55);
  box-shadow: 0 0 0 3px rgba(62, 207, 255, .12);
}
#refreshOrders { cursor: pointer; flex-shrink: 0; }

.orders-status {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.orders-status--paid {
  background: rgba(62, 207, 255, .12);
  border: 1px solid rgba(62, 207, 255, .4);
  color: #9ee9ff;
}
.orders-status--pending {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #c5d4e4;
}
.orders-status--failed {
  background: rgba(248, 113, 113, .1);
  border: 1px solid rgba(248, 113, 113, .32);
  color: #fecaca;
}
.orders-amount { font-weight: 700; color: #d7eef8; font-variant-numeric: tabular-nums; }
.orders-pay { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.orders-date { color: #c5d4e4; font-variant-numeric: tabular-nums; white-space: nowrap; }
.orders-article { font-weight: 600; color: #e8f4ff; }

.orders-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 48px 20px;
  border-radius: 12px;
  border: 1px dashed rgba(62, 207, 255, .28);
  background: rgba(62, 207, 255, .04);
}
.orders-empty-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(62, 207, 255, .2), rgba(62, 207, 255, .04));
  border: 1px solid rgba(62, 207, 255, .35);
  position: relative;
}
.orders-empty-icon::after {
  content: "";
  position: absolute;
  inset: 14px 12px 18px;
  border: 2px solid rgba(158, 233, 255, .65);
  border-radius: 4px;
  border-top-width: 6px;
}
.orders-empty strong {
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: .03em;
  color: #e8f4ff;
}
.orders-empty p {
  margin: 0;
  max-width: 42ch;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.5;
}
.orders-empty .btn { margin-top: 6px; cursor: pointer; }

/* Mobile card rows for orders */
.orders-cards { display: none; }


@media (max-width: 900px) {
  .compte-hero-main {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .compte-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }
  .compte-actions .am-btn { flex: 1 1 auto; min-width: 110px; }
}

@media (max-width: 1024px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .poke-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .inv-sections { grid-template-columns: 1fr; }
  .inv-side { grid-column: 1; grid-row: auto; flex-direction: row; flex-wrap: wrap; }
  .inv-grid { grid-template-columns: repeat(9, minmax(0, 1fr)); max-width: 100%; }
}

@media (max-width: 720px) {
  .orders-table-wrap { display: none; }
  .orders-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .orders-card {
    padding: 14px;
    border-radius: 12px;
    background: rgba(0,0,0,.28);
    border: 1px solid rgba(255,255,255,.08);
    display: grid;
    gap: 8px;
  }
  .orders-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
  }
  .orders-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: .85rem;
    color: var(--muted);
  }
}

@media (max-width: 640px) {
  .compte-tile { padding: 14px; }
  .compte-hero { padding: 20px 16px; }
  .compte-hero-main { grid-template-columns: 1fr; justify-items: start; gap: 18px; }
  .compte-avatar { width: auto; }
  .compte-skin { width: 80px; height: 80px; }
  .compte-hero-name,
  .compte-hero-text h2 { margin-bottom: 12px; }
  .compte-actions { width: 100%; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .poke-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prog-grid { grid-template-columns: 1fr; }
  .inv-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .inv-slot { width: 100%; min-height: 72px; height: auto; }
  .orders-search { max-width: none; width: 100%; }
  .orders-toolbar { flex-direction: column; align-items: stretch; }
  #refreshOrders { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .kpi-tile, .compte-tab, .poke-card,
  .compte-actions .am-btn, .orders-chip, .orders-table tbody tr,
  .orders-search input { transition: none !important; filter: none !important; }
}
