/* ---------------------------------------------------------------- Guide */
.gd-dialog .gd-legacy { display: none !important; }
.dialog.gd-dialog { width: min(1180px, calc(100vw - 32px)); max-width: none; }
.gd-dialog .dialog-card { width: 100%; box-sizing: border-box; height: min(90vh, 860px); max-height: 90vh; display: flex; flex-direction: column; overflow: hidden; }
.gd { --line: #22324d; --panel: #0a1322; --muted: #8ea0bf; --accent: #5fe0ff; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 14px; }
.gd-ico, .gq-ico { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.gd-head { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 16px; align-items: end; padding-right: 48px; }
.gd-head .eyebrow { margin: 0; grid-column: 1; }
.gd-head h2 { margin: 0; grid-column: 1; }
.gd-search { grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: center; gap: 8px; width: min(340px, 50vw); min-height: 42px; padding: 0 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); }
.gd-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: #e8eefc; font: inherit; outline: none; }
.gd-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 16px; }
.gd-nav { display: flex; flex-direction: column; gap: 4px; overflow: auto; }
.gd-nav button { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 0; background: transparent; color: #b8c6e0; font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.gd-nav button span { flex: 1; }
.gd-nav button em { font-style: normal; font-size: .72rem; color: var(--muted); }
.gd-nav button:hover { background: #142238; }
.gd-nav button.on { background: var(--accent); color: #06202a; }
.gd-nav button.on em { color: #06202a; }
.gd-content { overflow: auto; padding-right: 6px; display: flex; flex-direction: column; gap: 10px; }
.gd-sec { display: flex; align-items: center; gap: 8px; margin: 4px 0 2px; font-size: 1.15rem; color: #e8eefc; }
.gd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gd-card { padding: 14px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.gd-card.wide { grid-column: 1 / -1; }
.gd-card h4 { margin: 0 0 6px; font-size: .98rem; color: var(--accent); }
.gd-card p { margin: 6px 0 0; color: #c9d5ea; line-height: 1.5; font-size: .9rem; }
.gd-card b { color: #e8eefc; }
.gd-steps { margin: 4px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.gd-steps li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; grid-template-rows: auto auto; column-gap: 10px; padding: 10px; border-radius: 12px; background: #0e1828; }
.gd-steps li::before { content: counter(s); grid-row: span 2; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: #0e3946; color: var(--accent); font-weight: 800; }
.gd-steps strong { font-size: .9rem; }
.gd-steps span { font-size: .82rem; color: #b8c6e0; line-height: 1.45; }
.gd-table { margin-top: 8px; border: 1px solid var(--line); border-radius: 12px; overflow: auto; }
.gd-tr { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(90px, 1fr); gap: 10px; padding: 8px 12px; border-top: 1px solid #1a2840; font-size: .85rem; color: #c9d5ea; }
.gd-tr:first-child { border-top: 0; }
.gd-th { background: #0e1828; font-size: .7rem; font-weight: 800; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.gd-empty { color: var(--muted); padding: 30px; text-align: center; }

/* ---------------------------------------------------------- QG des Guildes */
.dialog.gq-dialog { width: min(1180px, calc(100vw - 32px)); max-width: none; }
.gq-dialog .dialog-card { width: 100%; box-sizing: border-box; max-height: 92vh; overflow: auto; }
.gq { --line: #22324d; --panel: #0a1322; --soft: #142238; --muted: #8ea0bf; --accent: #5fe0ff; --gold: #f2c45a; display: flex; flex-direction: column; gap: 14px; }
.gq .gold { color: #ffd76a; } .gq .ether { color: #d4c4ff; } .gq .ess { color: #ffaed6; } .gq .ok { color: #54e39e; } .gq .ko { color: #ff8a98; }
.gq-muted { color: var(--muted); font-size: .86rem; line-height: 1.45; margin: 0; }
.gq-lab { font-size: .7rem; font-weight: 800; letter-spacing: .08em; color: var(--gold); }
.gq-big { font: 700 1.15rem Sora, sans-serif; }
.gq-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.gq-hero { display: flex; align-items: center; gap: 18px; padding: 18px 56px 18px 18px; border-radius: 18px; background: linear-gradient(90deg, #2a2410, transparent 75%); border: 1px solid #5a4a1c; flex-wrap: wrap; }
.gq-hero h2 { margin: 2px 0 4px; }
.gq-hero .eyebrow { margin: 0; color: var(--gold); }
.gq-crest { width: 72px; height: 72px; flex: none; }
.gq-crest svg { width: 100%; height: 100%; }
.gq-tag { min-width: 76px; height: 76px; padding: 0 8px; box-sizing: border-box; border-radius: 18px; display: grid; place-items: center; background: #1b2b47; border: 3px solid #d6b56a; color: var(--gold); font: 800 1.15rem Sora, sans-serif; letter-spacing: .04em; flex: none; }
.gq-hname { flex: 1; min-width: 220px; }
.gq-act { width: 280px; display: grid; gap: 6px; }
.gq-act > div { display: flex; justify-content: space-between; font-size: .86rem; }
.gq-act span { color: var(--muted); }
.gq-act i, .gq-ibar { display: block; height: 10px; border-radius: 99px; background: #1f2d45; overflow: hidden; }
.gq-act s, .gq-ibar s { display: block; height: 100%; background: var(--gold); text-decoration: none; }
.gq-act small { font-size: .75rem; color: var(--muted); }
.gq-tabs { display: flex; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.gq-tab { min-height: 44px; padding: 0 18px; border-radius: 12px; border: 0; background: var(--soft); color: #b8c6e0; font: inherit; font-weight: 700; cursor: pointer; }
.gq-tab.active { background: var(--accent); color: #06202a; }
.gq-tab em { font-style: normal; padding: 1px 7px; border-radius: 99px; background: var(--gold); color: #2a1c00; font-size: .75rem; }
.gq-two { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; }
.gq-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.gq-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.gq-card h3 { margin: 0; font-size: 1rem; }
.gq-card.danger { border-color: #5a2a35; }
.gq-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.gq-kpis > div { display: grid; gap: 2px; padding: 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.gq-kpis span { font-size: .75rem; color: var(--muted); }
.gq-kpis strong { font: 700 1.2rem Sora, sans-serif; }
.gq-news { display: grid; gap: 2px; padding: 8px 0; border-top: 1px solid #1a2840; }
.gq-news:first-of-type { border-top: 0; }
.gq-news small { color: var(--muted); font-size: .72rem; }
.gq-kv { display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; }
.gq-kv span { color: #c9d5ea; }
.gq-next { background: #13233b; border-color: #5a4a1c; }
.gq-costs { display: grid; gap: 5px; }
.gq-costs > div { display: flex; justify-content: space-between; font-size: .9rem; }
.gq-costs span { color: var(--muted); }
.gq-btn { min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid #2c4060; background: transparent; color: #e8eefc; font: inherit; font-weight: 700; cursor: pointer; }
.gq-btn.sm { min-height: 38px; font-size: .85rem; }
.gq-btn.xs { min-height: 34px; padding: 0 10px; font-size: .8rem; border-radius: 9px; }
.gq-btn.primary { border: 0; background: var(--accent); color: #06202a; }
.gq-btn.danger { border-color: #5a2a35; color: #ff9aa6; }
.gq-btn:disabled { opacity: .45; cursor: not-allowed; }
.gq-btn:hover:not(:disabled) { filter: brightness(1.12); }
.gq-lobby { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.gq-perk { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; background: #0e1828; color: var(--gold); }
.gq-perk span { display: grid; color: #e8eefc; }
.gq-perk small { color: var(--muted); font-size: .8rem; }
.gq-form { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 10px; align-items: end; }
.gq-form label, .gq-line { display: grid; gap: 4px; font-size: .82rem; font-weight: 700; color: var(--muted); }
.gq-form label small { font-weight: 600; }
.gq-form .full { grid-column: 1 / -1; }
.gq-form input, .gq-form textarea, .gq-line input, .gq-area, .gq-select, .gq-amount input { min-height: 42px; padding: 0 10px; border-radius: 10px; border: 1px solid #2c4060; background: #0e1828; color: #e8eefc; font: inherit; font-weight: 600; box-sizing: border-box; }
.gq-form textarea, .gq-area { min-height: 90px; padding: 10px; resize: vertical; width: 100%; }
.gq-select { flex: 1; min-width: 200px; }
.gq-amount { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); }
.gq-amount input { width: 130px; }
.gq-seg { display: flex; gap: 3px; padding: 3px; border-radius: 12px; background: #0e1828; border: 1px solid var(--line); }
.gq-seg button { flex: 1; min-height: 38px; border: 0; border-radius: 9px; background: transparent; color: #b8c6e0; font: inherit; font-weight: 700; cursor: pointer; }
.gq-seg button.on { background: #22324d; color: #e8eefc; }
.gq-items { display: flex; flex-wrap: wrap; gap: 6px; }
.gq-items span { padding: 4px 8px; border-radius: 8px; background: #0e1828; font-size: .78rem; color: #c9d5ea; }
.gq-infra { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.gq-ib.off { opacity: .85; }
.gq-ihead { display: flex; align-items: center; gap: 12px; }
.gq-ihead > span:last-child { display: grid; }
.gq-ihead small { color: var(--muted); font-size: .8rem; }
.gq-iico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #2a2410; color: var(--gold); flex: none; }
.gq-note { margin-top: 4px; }

@media (max-width: 900px) {
  .gd-body { grid-template-columns: 1fr; }
  .gd-nav { flex-direction: row; overflow-x: auto; }
  .gd-nav button { flex: none; }
  .gd-nav button em { display: none; }
  .gd-grid { grid-template-columns: minmax(0, 1fr); }
  .gd-head { grid-template-columns: 1fr; padding-right: 40px; }
  .gd-search { grid-column: 1; grid-row: auto; width: 100%; margin-top: 8px; }
  .gq-two, .gq-lobby { grid-template-columns: minmax(0, 1fr); }
  .gq-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gq-act { width: 100%; }
  .gq-form { grid-template-columns: minmax(0, 1fr); }
}

/* Membres de guilde */
.gq-mhead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.gq-seg-sm { flex: none; }
.gq-seg-sm button { padding: 0 14px; white-space: nowrap; }
.gq-select-sm { min-width: 0; flex: none; min-height: 38px; }
.gq-mtable { border: 1px solid var(--line); border-radius: 14px; overflow: auto; }
.gq-mrow { display: grid; grid-template-columns: minmax(170px, 2fr) 100px 70px 80px 110px 80px minmax(170px, 1.4fr); gap: 12px; align-items: center; padding: 10px 14px; border-top: 1px solid #1a2840; font-size: .9rem; min-width: 860px; }
.gq-mrow:first-child { border-top: 0; }
.gq-mth { background: #0e1828; font-size: .7rem; font-weight: 800; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.gq-mname { display: flex; align-items: center; gap: 10px; min-width: 0; }
.gq-mname strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gq-mname em { font-style: normal; font-size: .7rem; padding: 2px 7px; border-radius: 99px; background: #0e3946; color: #a8efff; font-weight: 800; }
.gq-avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #1b2b47; border: 2px solid #d6b56a; color: var(--gold); font-style: normal; font-weight: 800; flex: none; }
.gq-status { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.gq-status i { width: 9px; height: 9px; border-radius: 50%; background: #5d6f8f; flex: none; }
.gq-status.on { color: #9ff0c4; }
.gq-status.on i { background: #54e39e; box-shadow: 0 0 0 3px rgba(84, 227, 158, .18); }
.gq-pad { padding: 18px; }

/* ---------- Activités de guilde : entraînement, salle des boss, banque, marché ---------- */
.ga-panel { display: grid; gap: 12px; }
.ga-phead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ga-phead h3 { margin: 0; flex: 1; font-size: 1.05rem; }
.ga-grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.ga-lab { font-size: .7rem; font-weight: 800; letter-spacing: .08em; color: #8ea0bf; }
.ga-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ga-big { font-size: 1.3rem; font-weight: 800; min-width: 44px; }
.ga-row input[type=range] { flex: 1; min-width: 140px; accent-color: #5fe0ff; }
.ga-live { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: rgba(95, 224, 255, .08); border: 1px solid rgba(95, 224, 255, .35); }
.ga-live strong { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.ga-live small { color: #8ea0bf; }
.ga-hlist { display: grid; gap: 6px; max-height: 360px; overflow: auto; padding-right: 2px; }
.ga-h { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: #0a1322; border: 1px solid #22324d; cursor: pointer; }
.ga-h.on { border-color: #5fe0ff; background: rgba(95, 224, 255, .06); }
.ga-h span { display: grid; min-width: 0; }
.ga-h small { color: #8ea0bf; font-size: .76rem; }
.ga-h b { color: #f2c45a; }
.ga-h input { width: 18px; height: 18px; accent-color: #5fe0ff; }
.ga-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ga-chips button { min-width: 48px; min-height: 38px; border-radius: 10px; border: 1px solid #2c4060; background: transparent; color: inherit; font: inherit; font-weight: 800; cursor: pointer; }
.ga-chips button.on { background: #5fe0ff; color: #06202a; border-color: #5fe0ff; }
.ga-bosses { display: flex; flex-wrap: wrap; gap: 6px; }
.ga-boss { display: grid; place-items: center; min-width: 54px; padding: 6px 8px; border-radius: 10px; background: #13233b; border: 1px solid #2c4060; font-weight: 800; }
.ga-boss b { font-size: .68rem; color: #8ea0bf; }
.ga-boss em { font-style: normal; font-size: .72rem; color: #9ff0c4; }
.ga-boss.r5, .ga-boss.r6, .ga-boss.r7 { border-color: #ef4444; color: #ffb3b3; }
.ga-boss.win { background: rgba(84, 227, 158, .15); border-color: #54e39e; }
.ga-boss.ko { background: rgba(255, 125, 141, .15); border-color: #ff7d8d; }
.ga-boss.skip { opacity: .4; }
.ga-room { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ga-room > div { display: grid; }
.ga-room small { color: #8ea0bf; }
.ga-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px; max-height: 300px; overflow: auto; padding: 2px; }
.ga-tile { position: relative; aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px; border: 2px solid var(--r); background: color-mix(in srgb, var(--r) 14%, #0a1322); cursor: pointer; padding: 0; color: #e8eefc; }
.ga-tile.sel { outline: 2px solid #fff; outline-offset: 1px; }
.ga-tile .ga-ti { font-size: 1.3rem; }
.ga-tile b { position: absolute; left: 3px; top: 1px; font-size: .62rem; font-weight: 800; color: var(--r); }
.ga-tile em { position: absolute; right: 3px; bottom: 1px; font-style: normal; font-size: .6rem; font-weight: 800; color: #f2c45a; }
.ga-sel { display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--r); background: color-mix(in srgb, var(--r) 8%, transparent); }
.ga-sel strong { color: var(--r); }
.ga-sel small, .ga-sel span { color: #b8c6e0; font-size: .8rem; }
.ga-legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: .74rem; color: #8ea0bf; }
.ga-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.ga-list { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 8px 10px; border-left: 3px solid var(--r); border-radius: 8px; background: #0a1322; margin-bottom: 6px; }
.ga-list span { display: grid; }
.ga-list small { color: #8ea0bf; font-size: .74rem; }
.ga-banner { position: fixed; inset: auto; margin: 0; left: 50%; top: 14px; transform: translateX(-50%); z-index: 9500; display: flex; align-items: center; gap: 10px; max-width: min(720px, calc(100vw - 24px)); padding: 12px 14px; border-radius: 14px; background: #10243a; border: 1px solid #f2c45a; color: #e8eefc; font-weight: 700; box-shadow: 0 12px 30px rgba(0, 0, 0, .5); }
.ga-banner:not(:popover-open) { display: none; }
.ga-banner button { border: 0; background: transparent; color: #b8c6e0; font-size: 1.2rem; cursor: pointer; min-width: 32px; min-height: 32px; }
.ga-bico { font-size: 1.2rem; }
.ga-center { border: 0; padding: 0; background: transparent; max-width: calc(100vw - 32px); }
.ga-center::backdrop { background: rgba(4, 8, 16, .65); }
.ga-ccard { display: grid; gap: 10px; max-width: 460px; padding: 22px; border-radius: 18px; background: #0e1828; border: 1px solid #ef4444; box-shadow: 0 20px 50px rgba(0, 0, 0, .6); color: #e8eefc; text-align: center; }
.ga-ccard strong { font-size: 1.35rem; }
.ga-ccard p { margin: 0; color: #b8c6e0; }
.ga-ccard .ga-row { justify-content: center; }
.ga-btn { min-height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid #2c4060; background: transparent; color: #e8eefc; font: inherit; font-weight: 800; cursor: pointer; }
.ga-btn.primary { border: 0; background: #5fe0ff; color: #06202a; }
@media (max-width: 860px) { .ga-grid2 { grid-template-columns: 1fr; } }

/* ---------- Annuaire et classement des guildes ---------- */
.gr { display: flex; flex-direction: column; gap: 12px; }
.gr-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.gr-seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.gr-seg button { min-height: 34px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: #c9d6ee; font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer; }
.gr-seg button.on { background: #1b2b47; color: var(--gold); }
.gr-note { margin: 0; font-size: .82rem; }
.gr-table { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.gr-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 52px 74px minmax(110px, 160px); gap: 10px; align-items: center; padding: 9px 12px; border-top: 1px solid var(--line); }
.gr-row:first-child { border-top: 0; }
.gr-headrow { background: rgba(255, 255, 255, .03); font-size: .78rem; color: var(--muted); font-weight: 700; }
.gr-row.self { background: rgba(214, 181, 106, .08); }
.gr-rank { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 9px; background: #1b2b47; font-weight: 800; }
.gr-rank.r1 { background: #d6b56a; color: #2a1c00; }
.gr-rank.r2 { background: #c0cad8; color: #1b2433; }
.gr-rank.r3 { background: #b9784a; color: #fff; }
.gr-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.gr-name > span { display: grid; min-width: 0; }
.gr-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gr-name small, .gr-val small { color: var(--muted); font-size: .76rem; }
.gr-val { display: grid; text-align: right; font-weight: 800; color: var(--gold); }
.gq-tag.sm { min-width: 44px; height: 32px; padding: 0 6px; border-radius: 9px; border-width: 2px; font-size: .78rem; }
.gr-mine { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.gr-kpi { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.gr-kpi span { font-size: .78rem; color: var(--muted); }
.gr-kpi strong { font-size: 1.3rem; }
.gr-kpi small { color: var(--muted); font-size: .76rem; }
.gr-kpi.dungeon strong { color: #5fe0ff; } .gr-kpi.raid strong { color: #ff7eb6; } .gr-kpi.fracture strong { color: #b48cff; }
.gr-dir { margin-top: 14px; }
.gr-dirhead { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.gr-dirhead h3 { margin-right: auto; }
.gr-dirhead h3 small { color: var(--muted); font-weight: 500; margin-left: 4px; }
.gr-search { min-height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: #0e1828; color: inherit; font: inherit; min-width: 200px; }
.gr-cards { display: flex; flex-direction: column; gap: 8px; }
.gr-card { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.gr-card[hidden] { display: none; }
.gr-card small { color: var(--muted); display: block; }
.gr-card p { margin: 4px 0 0; font-size: .85rem; color: #c9d6ee; }
.gr-cardside { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
@media (max-width: 600px) {
  .gr-row { grid-template-columns: 36px minmax(0, 1fr) minmax(80px, auto); }
  .gr-row > span:nth-child(3), .gr-row > span:nth-child(4) { display: none; }
  .gr-card { grid-template-columns: auto 1fr; }
  .gr-cardside { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .gr-search { min-width: 0; width: 100%; }
}

/* ---------- Invitations, membres et taxe ---------- */
.gm-panel { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 14px; border: 1px solid rgba(214, 181, 106, .4); background: rgba(214, 181, 106, .05); }
.gm-phead { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.gm-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; }
.gm-row > span { display: grid; min-width: 0; }
.gm-row small { color: var(--muted); }
.gm-row em { font-style: normal; color: var(--muted); font-size: .82rem; }
.gm-msg { margin: 0; padding: 7px 10px; border-radius: 10px; }
.gm-msg.ok { background: rgba(84, 227, 158, .12); color: #8ff0c2; }
.gm-msg.bad { background: rgba(255, 125, 141, .12); color: #ffb0ba; }
.gm-invites { display: flex; flex-direction: column; gap: 8px; }
.gm-inv { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.gm-inv > div { display: grid; }
.gm-inv small { color: var(--muted); }
.gm-inv.pending { border-color: rgba(214, 181, 106, .5); }
.gm-inv em { font-style: normal; color: var(--muted); }
.gm-act { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.gm-tax { display: flex; align-items: center; gap: 10px; }
.gm-tax input { flex: 1; accent-color: var(--gold); }
.gm-tax b { min-width: 60px; text-align: right; color: var(--gold); }
.gm-member { margin-bottom: 12px; }
.gm-lobbyinv { margin-bottom: 12px; }
.gm-pop { position: fixed; inset: 0; margin: auto; width: min(440px, calc(100vw - 32px)); height: fit-content; padding: 18px 20px 16px; border: 1px solid #d6b56a; border-radius: 18px; background: #101c30; color: var(--text, #edf4ff); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); display: none; flex-direction: column; gap: 12px; z-index: 9999; }
.gm-pop.on { display: flex; }
.gm-pop .eyebrow { margin: 0; color: #d6b56a; }
.gm-x { position: absolute; right: 12px; top: 8px; border: 0; background: transparent; color: inherit; font-size: 1.6rem; cursor: pointer; }
.gm-timer { display: block; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.gm-timer s { display: block; height: 100%; background: #d6b56a; animation: gmTimer 10s linear forwards; }
@keyframes gmTimer { from { width: 100%; } to { width: 0; } }
@media (prefers-reduced-motion: reduce) { .gm-timer s { animation: none; } }
.gm-pop .gq-btn.primary { background: #5fe0ff; color: #06202a; }
