/* ============================================================
   TaliaRP — Style utilisateur v3 — Refonte complète
   Thème : Metro 2033 RP — brun-fumée + ambre chaud
   ============================================================ */

/* ── Variables ──────────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg-deep:   #050201;
  --bg-dark:   #0a0602;
  --bg-panel:  #110804;
  --bg-card:   #170b05;
  --bg-hover:  #1e0e06;
  --bg-input:  #0c0f14;

  /* Accent (ambre chaud / feu) */
  --blue-dim:    #4a2000;
  --blue-mid:    #7a3800;
  --blue-main:   #c26000;
  --blue-bright: #f08800;
  --blue-glow:   #ffaa33;

  /* Status */
  --red:    #e05570;
  --orange: #f08800;
  --green:  #44c47a;
  --yellow: #f0b030;

  /* Texte */
  --text-primary:   #e6d0b8;
  --text-secondary: #be9e78;
  --text-muted:     #7a5838;
  --text-bright:    #fff2e4;

  /* Borders */
  --border:        1px solid rgba(110,60,16,0.24);
  --border-glow:   1px solid rgba(190,96,0,0.42);
  --border-bright: 1px solid rgba(240,136,0,0.6);

  /* Shadows */
  --shadow-sm:   0 4px 12px rgba(0,0,0,0.3);
  --shadow-md:   0 8px 24px rgba(0,0,0,0.4);
  --shadow-lg:   0 16px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(190,96,0,0.1);
  --shadow-glow: 0 0 24px rgba(190,96,0,0.2);

  /* Shape */
  --radius:    8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Type */
  --font-main: 'Exo 2', sans-serif;
  --font-head: 'Cinzel', serif;
  --font-sub:  'Rajdhani', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;

  /* Transitions */
  --t-fast: 0.15s ease;
  --t-base: 0.22s ease;
  --t-slow: 0.38s ease;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  background: #060201;
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.65;
  overflow-x: hidden;
}

/* Grain de bruit subtil sur le fond */
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 120% 60% at 50% -10%, rgba(190,96,0,0.07) 0%, transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,0.022) 0px, transparent 200px);
  pointer-events: none; z-index: 0;
}

img { max-width: 100%; height: auto; }
::selection { background: rgba(190,96,0,0.32); color: #fff; }

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(110,60,16,0.45); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue-main); }

/* ── Focus ──────────────────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 3px; border-radius: 4px; }

/* ── Skip link ──────────────────────────────────────────────── */
.skip-link { position: absolute; top: -100px; left: 1rem; background: var(--blue-main); color: #fff; padding: 0.5rem 1rem; border-radius: var(--radius); z-index: 9999; font-size: 0.9rem; transition: top 0.2s; }
.skip-link:focus { top: 1rem; }

/* ── Scanline ───────────────────────────────────────────────── */
.scanline {
  position: fixed; inset: 0; pointer-events: none; z-index: 9999;
  opacity: 0.12;
  background: repeating-linear-gradient(to bottom, transparent 0px, transparent 3px, rgba(0,0,0,0.025) 3px, rgba(0,0,0,0.025) 4px);
}

/* ══════════════════════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════════════════════ */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(5,2,1,0.94);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid rgba(110,60,16,0.2);
  box-shadow: 0 1px 0 rgba(190,96,0,0.06), 0 4px 24px rgba(0,0,0,0.4);
}
.nav-inner {
  max-width: 1540px; margin: 0 auto;
  padding: 0 1.25rem; height: 60px;
  display: flex; align-items: center; gap: 0.4rem;
  overflow: hidden; min-width: 0;
}
.nav-logo { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.nav-logo img { height: 40px; width: auto; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4)); transition: filter var(--t-base); }
.nav-logo img:hover { filter: drop-shadow(0 4px 16px rgba(190,96,0,0.4)); }

.nav-links { display: flex; gap: 0.05rem; list-style: none; flex: 0 1 auto; min-width: 0; overflow: hidden; }
.nav-links a {
  display: flex; align-items: center; padding: 0.38rem 0.62rem;
  color: var(--text-secondary); text-decoration: none;
  font-family: var(--font-sub); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  border-radius: 6px; border: 1px solid transparent;
  transition: all var(--t-fast); white-space: nowrap;
}
.nav-links a:hover { color: var(--text-bright); background: rgba(190,96,0,0.09); border-color: rgba(190,96,0,0.2); }
.nav-links a.active { color: var(--blue-bright); background: rgba(190,96,0,0.12); border-color: rgba(190,96,0,0.28); }

.nav-right { display: flex; align-items: center; gap: 0.3rem; margin-left: auto; flex-shrink: 0; }

/* Search */
.nav-search-form {
  display: flex; align-items: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(110,60,16,0.22); border-radius: 7px;
  padding: 0.18rem 0.18rem 0.18rem 0.5rem; gap: 0.15rem;
  transition: border-color var(--t-base); flex-shrink: 0;
}
.nav-search-form:focus-within { border-color: rgba(190,96,0,0.5); background: rgba(190,96,0,0.04); }
.nav-search-input { background: none; border: none; outline: none; color: var(--text-primary); font-family: var(--font-main); font-size: 0.8rem; width: 80px; }
.nav-search-input::placeholder { color: var(--text-muted); }
.nav-search-btn { background: none; border: none; cursor: pointer; color: var(--text-muted); font-size: 0.9rem; padding: 0.18rem 0.35rem; transition: color var(--t-fast); line-height: 1; border-radius: 4px; }
.nav-search-btn:hover { color: var(--blue-bright); }

/* Balance */
.nav-balance {
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--green); font-weight: 700;
  background: rgba(68,196,122,0.1); border: 1px solid rgba(68,196,122,0.28);
  padding: 0.22rem 0.5rem; border-radius: 7px; white-space: nowrap;
  transition: color var(--t-slow);
}

/* Notif bell */
.nav-notif-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(110,60,16,0.28);
  color: var(--text-secondary); text-decoration: none; font-size: 0.95rem;
  transition: all var(--t-fast); flex-shrink: 0;
}
.nav-notif-btn:hover { border-color: var(--blue-main); color: var(--blue-bright); background: rgba(190,96,0,0.08); }
.nav-notif-count {
  position: absolute; top: -3px; right: -3px;
  background: var(--red); color: #fff;
  font-size: 0.58rem; font-weight: 700; font-family: var(--font-sub);
  min-width: 16px; height: 16px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px; border: 2px solid var(--bg-deep);
  animation: pulse-notif 2s ease-in-out infinite;
}
@keyframes pulse-notif { 0%,100%{ opacity:1; } 50%{ opacity:0.65; } }

/* Avatar & username */
.nav-avatar { width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(190,96,0,0.65); object-fit: cover; cursor: pointer; transition: border-color var(--t-fast); }
.nav-avatar:hover { border-color: var(--blue-bright); }
.nav-username { font-family: var(--font-sub); font-weight: 600; color: var(--text-bright); font-size: 0.78rem; text-decoration: none; white-space: nowrap; }
.nav-username:hover { color: var(--blue-bright); }
.nav-username-text { display: flex; align-items: center; gap: 0.3rem; }
.nav-rank-badge { font-size: 0.58rem; padding: 0.07rem 0.4rem; border-radius: 10px; font-family: var(--font-mono); font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: #fff; flex-shrink: 0; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 0.4rem; background: none; border: none; z-index: 1100; flex-shrink: 0; }
.hamburger span { display: block; width: 20px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: all 0.28s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Maintenance */
.maintenance-banner { background: linear-gradient(90deg,#7a3300,#aa4800,#7a3300); color: #fef3c7; text-align: center; padding: .45rem 1rem; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .04em; z-index: 999; border-bottom: 1px solid #cc5500; }
.maintenance-banner a { color: #fef3c7; text-decoration: underline; }

/* ══════════════════════════════════════════════════════════════
   LAYOUT
   ══════════════════════════════════════════════════════════════ */
.page-wrap { position: relative; z-index: 1; max-width: 1260px; margin: 0 auto; padding: 2rem 1.25rem 3rem; }
.page-header { margin-bottom: 1.75rem; padding-bottom: 1rem; border-bottom: var(--border); }
.page-header h1 { font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; color: var(--text-bright); letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.15; }
.page-header p { color: var(--text-secondary); margin-top: 0.35rem; font-size: 0.9rem; }

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }

/* ══════════════════════════════════════════════════════════════
   PANELS & CARDS
   ══════════════════════════════════════════════════════════════ */
.panel {
  background: linear-gradient(160deg, rgba(255,255,255,0.034) 0%, rgba(255,255,255,0.012) 100%), var(--bg-panel);
  border: var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative; z-index: 1;
  box-shadow: var(--shadow-md);
  min-width: 0; overflow-wrap: break-word;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.panel:hover { border-color: rgba(190,96,0,0.32); box-shadow: var(--shadow-lg); }

.panel-title {
  font-family: var(--font-sub); font-size: 0.85rem; font-weight: 700;
  color: var(--text-bright); letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 1.25rem; padding-bottom: 0.75rem;
  border-bottom: var(--border);
  display: flex; align-items: center; gap: 0.5rem;
}
.panel-title::after {
  content: ''; display: block; width: 36px; height: 2px; margin-top: 0.65rem;
  background: linear-gradient(90deg, var(--blue-bright), transparent);
  border-radius: 2px; flex-shrink: 0;
}

/* Stat cards */
.stat-card {
  background: linear-gradient(160deg, rgba(255,255,255,0.034) 0%, rgba(255,255,255,0.01) 100%), var(--bg-panel);
  border: var(--border); border-radius: var(--radius-lg); padding: 1.35rem;
  position: relative; overflow: hidden;
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(190,96,0,0.3), transparent);
}
.stat-card:hover { border-color: rgba(190,96,0,0.35); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.stat-icon { width: 36px; height: 36px; margin-bottom: 0.75rem; color: var(--blue-bright); opacity: 0.9; }
.stat-value { font-family: var(--font-sub); font-size: 1.75rem; font-weight: 700; color: var(--text-bright); line-height: 1.1; }
.stat-label { font-size: 0.76rem; color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 0.3rem; }

/* ══════════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.56rem 1.25rem; border: 1px solid transparent;
  border-radius: 8px; min-height: 38px;
  font-family: var(--font-sub); font-size: 0.88rem; font-weight: 700;
  letter-spacing: 0.02em; text-decoration: none; cursor: pointer;
  transition: all var(--t-base); white-space: nowrap; line-height: 1;
}
.btn-primary {
  background: linear-gradient(180deg, #f08800, #c06000);
  border-color: rgba(240,136,0,0.55); color: #060200;
  box-shadow: 0 2px 8px rgba(190,96,0,0.2);
}
.btn-primary:hover { background: linear-gradient(180deg, #ffaa33, #d47000); box-shadow: 0 6px 20px rgba(190,96,0,0.3); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary { background: rgba(255,255,255,0.03); border-color: rgba(110,60,16,0.26); color: var(--text-secondary); }
.btn-secondary:hover { background: rgba(190,96,0,0.08); border-color: rgba(190,96,0,0.42); color: var(--text-bright); }
.btn-danger { background: rgba(224,85,112,0.1); border-color: rgba(224,85,112,0.42); color: #ff9aaa; }
.btn-danger:hover { background: rgba(224,85,112,0.22); box-shadow: 0 4px 14px rgba(224,85,112,0.2); }
.btn-success { background: rgba(68,196,122,0.1); border-color: rgba(68,196,122,0.38); color: #7ae8a8; }
.btn-success:hover { background: rgba(68,196,122,0.2); }
.btn-sm { padding: 0.3rem 0.75rem; font-size: 0.78rem; min-height: 30px; border-radius: 6px; }
.btn-lg { padding: 0.78rem 1.75rem; font-size: 1rem; border-radius: 10px; }

/* ══════════════════════════════════════════════════════════════
   FORMS
   ══════════════════════════════════════════════════════════════ */
.form-group { margin-bottom: 1.15rem; }
.form-group label { display: block; font-family: var(--font-sub); font-size: 0.8rem; font-weight: 700; color: var(--text-secondary); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 0.42rem; }
.form-control {
  width: 100%; padding: 0.62rem 0.9rem; min-height: 42px;
  background: var(--bg-input);
  border: 1px solid rgba(110,60,16,0.24); border-radius: 8px;
  color: var(--text-primary); font-family: var(--font-main); font-size: 0.95rem;
  transition: border-color var(--t-base), box-shadow var(--t-base); outline: none;
}
.form-control:hover { border-color: rgba(110,60,16,0.38); }
.form-control:focus { border-color: rgba(190,96,0,0.68); box-shadow: 0 0 0 3px rgba(190,96,0,0.12); background: rgba(190,96,0,0.02); }
.form-control::placeholder { color: var(--text-muted); }
select.form-control option { background: #0e0906; }
textarea.form-control { resize: vertical; min-height: 110px; line-height: 1.6; }
.form-hint { font-size: 0.76rem; color: var(--text-muted); margin-top: 0.28rem; display: block; line-height: 1.5; }
.checkbox-group { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-family: var(--font-sub); font-size: 0.88rem; color: var(--text-secondary); }
.checkbox-group input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--blue-main); }
.pwd-strength { height: 3px; border-radius: 2px; background: rgba(110,60,16,0.22); margin-top: 0.5rem; transition: all 0.3s; }
.pwd-weak { background: var(--red); width: 25%; } .pwd-fair { background: var(--orange); width: 50%; } .pwd-good { background: var(--yellow); width: 75%; } .pwd-strong { background: var(--green); width: 100%; }

/* ══════════════════════════════════════════════════════════════
   ALERTS
   ══════════════════════════════════════════════════════════════ */
.alert {
  padding: 0.88rem 1rem; border-radius: 9px; border: 1px solid;
  margin-bottom: 1rem; font-size: 0.9rem;
  display: flex; align-items: flex-start; gap: 0.55rem; line-height: 1.5;
  background: rgba(255,255,255,0.024);
}
.alert-error   { border-color: rgba(224,85,112,0.4);  color: #ffa0b8; background: rgba(224,85,112,0.05); }
.alert-success { border-color: rgba(68,196,122,0.38); color: #8ae8b0; background: rgba(68,196,122,0.05); }
.alert-info    { border-color: rgba(190,96,0,0.42);   color: #ffaa44; background: rgba(190,96,0,0.05); }
.alert-warning { border-color: rgba(240,176,48,0.4);  color: #f4cc78; background: rgba(240,176,48,0.05); }

/* ══════════════════════════════════════════════════════════════
   BADGES
   ══════════════════════════════════════════════════════════════ */
.badge { display: inline-flex; align-items: center; padding: 0.2rem 0.55rem; border-radius: 999px; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.05em; font-weight: 700; text-transform: uppercase; border: 1px solid; white-space: nowrap; }
.badge-green  { background: rgba(68,196,122,0.12);  color: #7ae8a8; border-color: rgba(68,196,122,0.32); }
.badge-red    { background: rgba(224,85,112,0.12);  color: #ff9aaa; border-color: rgba(224,85,112,0.34); }
.badge-yellow { background: rgba(240,176,48,0.12);  color: #f4cc78; border-color: rgba(240,176,48,0.32); }
.badge-blue   { background: rgba(190,96,0,0.12);    color: #ffaa44; border-color: rgba(190,96,0,0.32); }
.badge-gray   { background: rgba(110,60,16,0.1);    color: #be9e78; border-color: rgba(110,60,16,0.2); }
.badge-orange { background: rgba(210,130,60,0.12);  color: #eeaa70; border-color: rgba(210,130,60,0.3); }
.badge-superadmin { background: rgba(224,85,112,0.16); color: #ff9aaa; border-color: rgba(224,85,112,0.44); }
.badge-admin      { background: rgba(240,176,48,0.14); color: #f4cc78; border-color: rgba(240,176,48,0.4); }
.badge-moderator  { background: rgba(190,96,0,0.13);   color: #f08800; border-color: rgba(190,96,0,0.38); }
.badge-user       { background: rgba(110,60,16,0.09);  color: #be9e78; border-color: rgba(110,60,16,0.2); }

/* ══════════════════════════════════════════════════════════════
   TABLES
   ══════════════════════════════════════════════════════════════ */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: var(--border); border-radius: var(--radius-lg); background: #0d1018; }
table { width: 100%; border-collapse: collapse; font-size: 0.87rem; min-width: 480px; }
thead tr { background: #141920; border-bottom: var(--border); }
th { font-family: var(--font-sub); font-size: 0.72rem; font-weight: 700; color: #8898a8; letter-spacing: 0.07em; text-transform: uppercase; padding: 0.7rem 0.9rem; text-align: left; white-space: nowrap; }
td { padding: 0.7rem 0.9rem; border-bottom: 1px solid rgba(110,60,16,0.08); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tbody tr { transition: background var(--t-fast); }
tbody tr:hover { background: rgba(190,96,0,0.05); }

/* ══════════════════════════════════════════════════════════════
   PAGINATION
   ══════════════════════════════════════════════════════════════ */
.pagination { display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; margin-top: 1.5rem; }
.pagination a, .pagination span { padding: 0.35rem 0.75rem; border: var(--border); border-radius: var(--radius); font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-secondary); text-decoration: none; transition: all var(--t-fast); min-width: 34px; text-align: center; }
.pagination a:hover { border-color: var(--blue-main); color: var(--text-bright); background: rgba(190,96,0,0.07); }
.pagination .current { background: var(--blue-main); border-color: var(--blue-bright); color: #fff; box-shadow: 0 0 12px rgba(190,96,0,0.28); }

/* ══════════════════════════════════════════════════════════════
   SHOP CARDS
   ══════════════════════════════════════════════════════════════ */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: 1.1rem; }
.shop-card {
  background: linear-gradient(160deg, rgba(255,255,255,0.034) 0%, rgba(255,255,255,0.01) 100%), var(--bg-panel);
  border: var(--border); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
}
.shop-card:hover { border-color: rgba(190,96,0,0.38); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.shop-card-img { width: 100%; height: 190px; background: #0e1318; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.shop-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.shop-card:hover .shop-card-img img { transform: scale(1.04); }
.shop-card-body { padding: 1rem 1rem 0.75rem; flex: 1; display: flex; flex-direction: column; gap: 0.4rem; }
.shop-card-name  { font-family: var(--font-head); font-size: 0.95rem; font-weight: 700; color: var(--text-bright); line-height: 1.2; }
.shop-card-cat   { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.6px; }
.shop-card-desc  { font-size: 0.84rem; color: var(--text-secondary); flex: 1; line-height: 1.5; }
.shop-card-footer { padding: 0.75rem 1rem; border-top: var(--border); display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.shop-price { font-family: var(--font-mono); font-size: 1.05rem; color: var(--green); font-weight: 700; white-space: nowrap; }
.shop-price-block { display: flex; flex-direction: column; gap: 2px; flex-shrink: 0; }
.shop-price-original { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); text-decoration: line-through; white-space: nowrap; }
.shop-price-badge { font-size: 0.68rem; color: var(--orange); font-weight: 700; background: rgba(190,96,0,0.12); padding: 1px 5px; border-radius: 3px; display: inline-block; }
.shop-price-final { font-family: var(--font-mono); font-size: 1.05rem; color: var(--green); font-weight: 700; white-space: nowrap; }

/* ══════════════════════════════════════════════════════════════
   TICKET CARDS
   ══════════════════════════════════════════════════════════════ */
.ticket-card { background: linear-gradient(160deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%), var(--bg-panel); border: var(--border); border-radius: var(--radius-lg); padding: 1.25rem; transition: border-color var(--t-base); margin-bottom: 0.6rem; }
.ticket-card:hover { border-color: rgba(190,96,0,0.32); }
.ticket-message { background: var(--bg-card); border-left: 3px solid var(--blue-main); padding: 0.8rem 1rem; border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 0.75rem; font-size: 0.9rem; line-height: 1.6; }
.ticket-message.admin-msg { border-left-color: var(--yellow); background: rgba(240,176,48,0.04); }

/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */
footer {
  position: relative; z-index: 1; text-align: center;
  padding: 2rem 1.5rem; border-top: var(--border);
  color: var(--text-muted); font-size: 0.82rem;
  background: rgba(5,2,1,0.5);
}
footer a { color: var(--text-secondary); text-decoration: none; transition: color var(--t-fast); }
footer a:hover { color: var(--blue-bright); }

/* ══════════════════════════════════════════════════════════════
   TOASTS & WIDGETS
   ══════════════════════════════════════════════════════════════ */
#toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; z-index: 9998; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.75rem 1rem; min-width: 230px; max-width: 340px;
  background: rgba(17,10,4,0.96); border: 1px solid rgba(190,96,0,0.28);
  border-radius: 10px; box-shadow: 0 8px 28px rgba(0,0,0,0.5);
  font-size: 0.88rem; color: var(--text-primary); pointer-events: auto;
  animation: toastSlide 0.25s ease;
}
@keyframes toastSlide { from { opacity:0; transform:translateX(16px); } to { opacity:1; transform:none; } }
.toast.toast-success { border-color: rgba(68,196,122,0.4); }
.toast.toast-error   { border-color: rgba(224,85,112,0.4); }
.toast.toast-warning { border-color: rgba(240,176,48,0.4); }

/* ══════════════════════════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════════════════════════ */
@keyframes glow { 0%,100%{ filter: drop-shadow(0 0 6px rgba(190,96,0,0.4)); } 50%{ filter: drop-shadow(0 0 18px rgba(190,96,0,0.7)); } }
@keyframes fadeInUp { from{ opacity:0; transform:translateY(16px); } to{ opacity:1; transform:translateY(0); } }
@keyframes pulse-new { 0%,100%{ opacity:1; } 50%{ opacity:0.6; } }
@keyframes pulse-online { 0%,100%{ opacity:1; transform:scale(1); } 50%{ opacity:0.6; transform:scale(0.88); } }
@keyframes fillBar { from{ width:0%; } }
@keyframes skeleton-shimmer { 0%{ background-position:-200% 0; } 100%{ background-position:200% 0; } }

.fade-in { animation: fadeInUp 0.42s ease forwards; }
.badge-new-anim { animation: pulse-new 2s ease-in-out infinite; }
.progress-bar-animated { animation: fillBar 0.9s ease-out forwards; }
.card-lift { transition: transform var(--t-base), box-shadow var(--t-base); }
.card-lift:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.skeleton { background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-hover) 50%, var(--bg-card) 75%); background-size: 200% 100%; animation: skeleton-shimmer 1.5s infinite; border-radius: var(--radius); }

/* ══════════════════════════════════════════════════════════════
   MISC UTILITIES
   ══════════════════════════════════════════════════════════════ */
.text-muted { color: var(--text-muted); } .text-bright { color: var(--text-bright); } .text-success { color: var(--green); } .text-danger { color: var(--red); } .text-mono { font-family: var(--font-mono); } .text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; }
.hide-mobile { display: block; } .show-mobile { display: none; }
.kbd { display: inline-flex; align-items: center; justify-content: center; padding: 0.1rem 0.38rem; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); border-radius: 4px; font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); }
.site-announcement { padding: 0.65rem 1rem; font-size: 0.88rem; display: flex; align-items: center; gap: 0.5rem; border-radius: var(--radius); margin-bottom: 0.5rem; }
.chart-panel canvas { display: block; width: 100% !important; }
.leaderboard-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.leaderboard-tabs a.active { background: var(--blue-main); border-color: var(--blue-bright); color: #fff; }
.changelog-entry { transition: opacity 0.28s; }
.player-hero { position: relative; overflow: hidden; border-radius: var(--radius-lg); }
.player-hero::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--blue-main), transparent); }

/* Sidebar admin (minimal dans style.css - full dans admin.css) */
.admin-layout { display: flex; }
.admin-sidebar { width: 240px; min-width: 240px; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */

/* ── Homepage responsive extras ─────────────────────────── */
.home-features { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
@media (max-width: 900px) { .home-features { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .home-features { grid-template-columns: 1fr; } }
.home-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
@media (max-width: 768px) { .home-steps { grid-template-columns: 1fr; } }
.home-donor-strip { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.home-discord { display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: center; }
@media (max-width: 720px) { .home-discord { grid-template-columns: 1fr; text-align: center; } }

@media (max-width: 1200px) {
  .page-wrap { padding: 1.5rem 1rem 2.5rem; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .nav-links { overflow: hidden; }
}
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none !important; position: fixed; top: 60px; left: 0; right: 0;
    background: rgba(5,2,1,0.97); backdrop-filter: blur(14px);
    border-bottom: var(--border-glow); flex-direction: column !important;
    padding: 0.75rem 1rem 1.25rem; gap: 0.2rem; z-index: 999;
  }
  .nav-links.open { display: flex !important; }
  .nav-links a { padding: 0.65rem 0.9rem; font-size: 0.95rem; }
  .nav-inner { height: 56px; gap: 0.3rem; }
  .nav-username { display: none !important; }
  .table-wrap table { min-width: unset; }
  thead { display: none; }
  tbody tr { display: block; border: var(--border); border-radius: var(--radius); margin-bottom: 0.6rem; padding: 0.6rem 0.75rem; background: var(--bg-card); }
  tbody td { display: flex; justify-content: space-between; align-items: center; padding: 0.28rem 0; border: none; font-size: 0.82rem; gap: 0.5rem; }
  tbody td::before { content: attr(data-label); font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; flex-shrink: 0; font-family: var(--font-mono); }
  .btn { font-size: 0.84rem; }
  .shop-grid { grid-template-columns: repeat(2,1fr) !important; gap: 0.75rem !important; }
  .hide-mobile { display: none !important; }
  .show-mobile { display: block !important; }
  .home-steps { grid-template-columns: 1fr; }
  .home-discord { grid-template-columns: 1fr; text-align: center; }
  .home-hero-meta { flex-direction: column; gap: 0.5rem; align-items: center; }
}
@media (max-width: 600px) {
  body { font-size: 0.92rem; }
  .page-wrap { padding: 0 0.75rem 1.5rem; }
  .nav-balance { display: none; }
  .nav-search-form { display: none; }
  .page-header h1 { font-size: 1.2rem; }
  .grid-4 { grid-template-columns: repeat(2,1fr) !important; }
  .shop-grid { grid-template-columns: 1fr !important; }
  .panel { padding: 1rem; }
  .stat-value { font-size: 1.35rem; }
}
@media (max-width: 480px) {
  .home-hero-cta { flex-direction: column; align-items: stretch; }
  .home-hero-cta .btn { width: 100%; text-align: center; justify-content: center; }
  .home-hero h1 { font-size: 1.4rem; }
  .page-header h1 { font-size: 1.05rem; }
  .grid-4 { grid-template-columns: 1fr !important; }
  .nav-notif-btn { width: 30px; height: 30px; }
}
@media (max-width: 360px) {
  .panel { padding: 0.75rem; }
  .nav-balance, .nav-username { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
@media print {
  .navbar, footer, .scanline { display: none !important; }
  .page-wrap { padding: 0 !important; max-width: 100% !important; }
  body { background: #fff !important; color: #000 !important; }
}
