/* ═══════════════════════════════════════════
   PIFA Transfermarkt – Styles
   Powered by eQuality
═══════════════════════════════════════════ */

:root {
  --primary:      #8b5cf6;
  --primary-dark: #7c3aed;
  --accent:       #d97706;
  --bg:           #06060e;
  --bg2:          #09091a;
  --bg3:          #0e0e24;
  --surface:      #12122a;
  --card:         #0f0f22;
  --border:       rgba(139,92,246,0.18);
  --border2:      rgba(139,92,246,0.38);
  --text:         #e2dff7;
  --text-muted:   #6b6b9a;
  --danger:       #ef4444;
  --success:      #22c55e;
  --warning:      #d97706;
  --radius:       4px;
  --radius-lg:    8px;
  --shadow:       0 8px 40px rgba(0,0,0,0.85);

  /* Attribute colors */
  --attr-elite:  #ffd700;
  --attr-gold:   #d97706;
  --attr-silver: #8b5cf6;
  --attr-bronze: #ef4444;
  --attr-low:    #2d2d4a;

  /* Fonts */
  --font-heading: 'Cinzel', 'Georgia', serif;
  --font-mono:    'Share Tech Mono', 'Courier New', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at 15% 40%, rgba(139,92,246,0.06) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 60%, rgba(217,119,6,0.04) 0%, transparent 55%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ── UTILS ── */
.hidden { display: none !important; }
a { color: var(--primary); text-decoration: none; cursor: pointer; }
button { cursor: pointer; font-family: inherit; }

/* ── NAVBAR ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(6,6,14,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  border-top: 2px solid var(--primary);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo {
  display: flex;
  align-items: baseline;
  gap: 6px;
  cursor: pointer;
  flex-shrink: 0;
}
.logo-pifa {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--primary);
}
.logo-tm {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-btn { font-family: var(--font-heading); letter-spacing: 1px; font-size: 0.78rem; }
.nav-btn:hover { color: var(--text); background: rgba(139,92,246,0.12); }
.nav-btn.active { color: var(--primary); background: rgba(139,92,246,0.12); border-bottom: 2px solid var(--primary); border-radius: 0; }
a.nav-btn { text-decoration: none; cursor: pointer; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-user {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(0,229,160,0.08);
  border: 1px solid rgba(0,229,160,0.2);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s;
}
.nav-user:hover { background: rgba(0,229,160,0.15); border-color: rgba(0,229,160,0.4); }
.prof-tab {
  flex: 1;
  background: none;
  border: 1.5px solid var(--border2);
  color: var(--text-muted);
  border-radius: 10px;
  padding: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  transition: all 0.15s;
  cursor: pointer;
  font-family: inherit;
}
.prof-tab.active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(26,111,255,0.08);
}

.count-badge {
  background: var(--primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 20px;
  line-height: 1.4;
  min-width: 18px;
  text-align: center;
}

/* ── BUTTONS ── */
.btn-primary {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 700;
  transition: background 0.15s, transform 0.1s;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:active { transform: scale(0.97); }

.btn-outline {
  background: none;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: var(--radius);
  padding: 8px 18px;
  font-size: 0.875rem;
  font-weight: 700;
  transition: background 0.15s;
}
.btn-outline:hover { background: rgba(26,111,255,0.1); }

.btn-ghost {
  background: none;
  color: var(--text-muted);
  border: 1.5px solid var(--border2);
  border-radius: var(--radius);
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 0.15s, border-color 0.15s;
}
.btn-ghost:hover { color: var(--text); border-color: var(--border2); }

.btn-full { width: 100%; text-align: center; padding: 14px 20px; font-size: 1rem; border-radius: 14px; }

.btn-danger {
  background: none;
  color: var(--danger);
  border: 1.5px solid rgba(255,77,109,0.3);
  border-radius: var(--radius);
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
}
.btn-danger:hover { background: rgba(255,77,109,0.08); }

/* ── MAIN ── */
.main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

/* ── VIEWS ── */
.view { display: none; }
.view.active { display: block; }
.view.hidden { display: none; }

.view-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.market-hero {
  position: relative;
  border-radius: 16px;
  margin-bottom: 24px;
  overflow: hidden;
}
.market-hero-bg {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.market-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 14, 0.58);
  z-index: 1;
}
.market-hero .view-header,
.market-hero .market-tabs {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
}
.market-hero .view-header {
  top: 0;
  margin-bottom: 0;
  padding: 20px 24px 4px;
}
.market-hero .market-tabs {
  bottom: 0;
}
.view-title-block h1 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: 3px;
  line-height: 1.2;
  text-shadow: 0 0 30px rgba(139,92,246,0.4);
}
.view-title-block h1::before { content: '◈ '; color: var(--primary); opacity: 0.7; }
.view-sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent);
  margin-top: 8px;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(217,119,6,0.5);
  animation: blink-cursor 1.2s infinite;
}

/* ── MARKET TABS ── */
.market-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  justify-content: center;
}
.market-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 12px 22px;
  margin-bottom: -1px;
  transition: all 0.15s;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
}
.market-tab:hover { color: #00f5d4; }
.market-tab.active {
  color: #00f5d4;
  border-bottom-color: #00f5d4;
  text-shadow: 0 0 8px rgba(0,245,212,0.9), 0 0 20px rgba(0,245,212,0.5), 0 0 40px rgba(0,245,212,0.25);
}
.market-tab-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  background: rgba(0,245,212,0.12);
  color: #00f5d4;
  padding: 1px 6px;
  border-radius: 20px;
  min-width: 18px;
  text-align: center;
}
.market-tab:not(.active) .market-tab-badge {
  background: var(--surface);
  color: var(--text-muted);
}

/* ── FILTERS ── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.filter-select {
  background: var(--surface);
  border: 1.5px solid var(--border2);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 9px 12px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s;
}
.filter-select:focus { border-color: var(--primary); }
.filter-select option { background: var(--bg2); }

.filter-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}
.filter-toggle input[type="checkbox"] { display: none; }
.toggle-track {
  width: 38px;
  height: 22px;
  background: var(--surface);
  border: 1.5px solid var(--border2);
  border-radius: 11px;
  position: relative;
  transition: background 0.2s, border-color 0.2s;
}
.toggle-thumb {
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: transform 0.2s, background 0.2s;
}
.filter-toggle input:checked ~ .toggle-track {
  background: rgba(26,111,255,0.2);
  border-color: var(--primary);
}
.filter-toggle input:checked ~ .toggle-track .toggle-thumb {
  transform: translateX(16px);
  background: var(--primary);
}
.toggle-label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }

.result-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  letter-spacing: 1px;
  text-align: center;
}

/* ── PLAYER GRID ── */
.player-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

/* ── PLAYER CARD ── */
.player-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.player-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}
.player-card:hover {
  border-color: rgba(26,111,255,0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(26,111,255,0.12);
}
.player-card:hover::before { opacity: 1; }

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pos-badge {
  font-size: 0.7rem;
  font-weight: 900;
  padding: 3px 9px;
  border-radius: 6px;
  border: 1.5px solid;
  letter-spacing: 0.5px;
}
.pos-gk { color: #FFB800; border-color: rgba(255,184,0,0.4); background: rgba(255,184,0,0.08); }
.pos-def { color: #00e5a0; border-color: rgba(0,229,160,0.4); background: rgba(0,229,160,0.08); }
.pos-mid { color: #1a6fff; border-color: rgba(26,111,255,0.4); background: rgba(26,111,255,0.08); }
.pos-att { color: #ff4d6d; border-color: rgba(255,77,109,0.4); background: rgba(255,77,109,0.08); }

.platform-badge, .role-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  border: 1.5px solid var(--border2);
  color: var(--text-muted);
  background: var(--surface);
}
.available-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 6px;
  border: 1.5px solid rgba(0,229,160,0.4);
  color: var(--accent);
  background: rgba(0,229,160,0.08);
  letter-spacing: 0.3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.card-avatar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: -0.5px;
}
.card-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}
.card-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── ATTRIBUTES ── */
.card-attrs {
  display: grid;
  grid-template-columns: repeat(6,1fr);
  gap: 4px;
  background: var(--surface);
  border-radius: 10px;
  padding: 10px 8px;
  border: 1px solid var(--border);
}
.attr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.attr-val {
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1;
}
.attr-key {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}
.attr-elite  { color: var(--attr-elite); }
.attr-gold   { color: var(--attr-gold); }
.attr-silver { color: var(--attr-silver); }
.attr-bronze { color: var(--attr-bronze); }
.attr-low    { color: var(--attr-low); }

.card-overall {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}
.card-overall strong {
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 900;
}

/* ── SELF CARD ── */
.self-card {
  border-color: rgba(26,111,255,0.35);
  box-shadow: 0 0 0 1px rgba(26,111,255,0.15);
}
.self-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(26,111,255,0.18);
  border: 1.5px solid rgba(26,111,255,0.45);
  color: var(--primary);
  letter-spacing: 0.3px;
}

/* ── VM CARD INFO ── */
.vm-card-info {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 2px;
}
.vm-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  gap: 10px;
}
.vm-info-row:last-child { border-bottom: none; }
.vm-info-label { color: var(--text-muted); font-weight: 600; flex-shrink: 0; }
.vm-info-val { font-weight: 700; color: var(--text); text-align: right; }
.vm-no-club { color: var(--text-muted); font-weight: 600; }

/* ── RELIABILITY BAR ── */
.reliability-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: flex-end;
}
.reliability-bar {
  width: 80px;
  height: 6px;
  background: var(--bg3);
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
}
.reliability-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
}
.reliability-val {
  font-size: 0.82rem;
  font-weight: 800;
  min-width: 36px;
  text-align: right;
}

/* ── CARD ACTIONS ── */
.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.btn-scout {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 1.5px solid var(--border2);
  color: var(--text-muted);
  border-radius: 8px;
  padding: 7px 11px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  min-height: 36px;
  transition: all 0.15s;
  cursor: pointer;
}
.btn-scout:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(139,92,246,0.08);
}
.btn-scout.scouted {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(245,158,11,0.08);
}

.btn-offer {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  border-radius: 8px;
  padding: 7px 11px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  min-height: 36px;
  transition: all 0.15s;
  cursor: pointer;
}
.btn-offer:hover {
  background: rgba(139,92,246,0.12);
}

/* ── STATES ── */
.loading-state {
  grid-column: 1/-1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 80px 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty-state {
  grid-column: 1/-1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 80px 20px;
  text-align: center;
}
.empty-icon { font-size: 3rem; }
.empty-state h3 { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.empty-state p { font-size: 0.85rem; color: var(--text-muted); max-width: 320px; }

.login-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 80px 20px;
  text-align: center;
}
.login-prompt h3 { font-size: 1.1rem; font-weight: 700; }
.login-prompt p { color: var(--text-muted); font-size: 0.9rem; }

/* ── MODALS ── */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 20px;
}
.modal {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow);
}
.modal-wide { max-width: 680px; }
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--surface);
  border: 1px solid var(--border2);
  color: var(--text-muted);
  width: 32px; height: 32px;
  border-radius: 8px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}
.modal-close:hover { color: var(--text); }
.modal-title { font-size: 1.3rem; font-weight: 800; margin-bottom: 20px; }
.modal-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 16px; text-align: center; }
.login-remember-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-muted);
  user-select: none;
}
.login-remember-row input[type="checkbox"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
  flex-shrink: 0;
}

/* ── TABS (in modal) ── */
.tab-bar {
  display: flex;
  background: var(--surface);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 20px;
  gap: 4px;
}
.tab-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 9px;
  border-radius: 8px;
  transition: all 0.15s;
}
.tab-btn.active {
  background: var(--bg3);
  color: var(--text);
  border: 1px solid var(--border2);
}

/* ── FORMS ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.form-group label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--surface);
  border: 1.5px solid var(--border2);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.95rem;
  padding: 12px 14px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select option { background: var(--bg2); }
.code-input { text-transform: uppercase; letter-spacing: 2px; font-weight: 700; font-size: 1.1rem; }

.field-error { font-size: 0.78rem; color: var(--danger); min-height: 14px; }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.chip {
  border: 1.5px solid var(--border2);
  background: var(--surface);
  color: var(--text-muted);
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.selected {
  border-color: var(--primary);
  background: rgba(26,111,255,0.12);
  color: var(--primary);
}

/* ── OFFER MODAL ── */
.offer-target {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.offer-target strong { color: var(--accent); }

/* ── PROFILE VIEW ── */
.profile-wrapper {
  max-width: 700px;
}
.profile-hero {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
  position: relative;
}
.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
}
.profile-info { flex: 1; }
.profile-name { font-size: 1.5rem; font-weight: 900; color: var(--text); }
.profile-role-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.profile-detail {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.profile-detail span { display: flex; gap: 6px; }

.profile-code-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}
.profile-code-label { font-size: 0.72rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; }
.profile-code-val { font-size: 1rem; font-weight: 800; color: var(--accent); letter-spacing: 2px; }
.btn-copy {
  background: none;
  border: 1.5px solid var(--border2);
  color: var(--text-muted);
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  transition: all 0.15s;
}
.btn-copy:hover { border-color: var(--accent); color: var(--accent); }

.profile-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.section-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

/* ── ATTR SLIDERS ── */
.attr-slider-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.attr-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.attr-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 1px;
  width: 28px;
  flex-shrink: 0;
}
.attr-slider {
  flex: 1;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 3px;
  background: var(--surface);
  outline: none;
  cursor: pointer;
}
.attr-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 2px solid var(--bg2);
  transition: transform 0.1s;
}
.attr-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }
.attr-display {
  font-size: 1rem;
  font-weight: 900;
  width: 28px;
  text-align: right;
  flex-shrink: 0;
}

.availability-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1.5px solid var(--border2);
}
.availability-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}
.availability-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.toggle-big { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.toggle-big input { display: none; }
.toggle-big .track {
  width: 50px; height: 28px;
  background: var(--surface);
  border: 1.5px solid var(--border2);
  border-radius: 14px;
  position: relative;
  transition: all 0.2s;
}
.toggle-big .thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: transform 0.2s, background 0.2s;
}
.toggle-big input:checked ~ .track {
  background: rgba(0,229,160,0.15);
  border-color: var(--accent);
}
.toggle-big input:checked ~ .track .thumb {
  transform: translateX(22px);
  background: var(--accent);
}
.toggle-big .status-text { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); }
.toggle-big input:checked ~ .status-text { color: var(--accent); }

/* ── OFFERS VIEW ── */
.offers-tabs {
  display: flex;
  gap: 4px;
  background: var(--surface);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 20px;
  max-width: 300px;
}
.offer-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.offer-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.offer-name { font-size: 0.95rem; font-weight: 800; color: var(--text); }
.offer-meta { font-size: 0.78rem; color: var(--text-muted); }
.offer-msg { font-size: 0.85rem; color: var(--text); line-height: 1.5; }
.offer-status {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.offer-status.pending  { background: rgba(255,184,0,0.12); color: #FFB800; border: 1px solid rgba(255,184,0,0.3); }
.offer-status.accepted { background: rgba(0,229,160,0.12); color: var(--accent); border: 1px solid rgba(0,229,160,0.3); }
.offer-status.rejected { background: rgba(255,77,109,0.12); color: var(--danger); border: 1px solid rgba(255,77,109,0.3); }
.offer-actions { display: flex; gap: 8px; margin-top: 4px; }
.offer-role-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.offer-role-label { font-size: 0.75rem; color: var(--text-muted); }
.offer-role-chip {
  font-size: 0.75rem; font-weight: 700; padding: 3px 10px;
  background: rgba(26,111,255,0.15); color: var(--primary);
  border: 1px solid rgba(26,111,255,0.35); border-radius: 20px;
}

/* ── PLAYER DETAIL – Aura Layout ── */
.pd-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.pd-tab {
  flex: 1;
  background: none;
  border: 1.5px solid var(--border2);
  color: var(--text-muted);
  border-radius: 10px;
  padding: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  transition: all 0.15s;
  cursor: pointer;
}
.pd-tab.active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(26,111,255,0.08);
}
.pd-header {
  text-align: center;
  margin-bottom: 18px;
}
.pd-player-name {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1.2;
}
.pd-player-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.pd-hero-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 18px;
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.pd-hero-top {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.pd-hero-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--border2);
  margin-top: 3px;
}
.pd-hero-dot.avail {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(0,229,160,0.5);
}
.pd-hero-ovr { text-align: right; }
.pd-hero-ovr-val {
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}
.pd-hero-ovr-lbl {
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.pd-hero-avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  font-weight: 900;
  color: #fff;
  border: 3px solid var(--border2);
}
.pd-hero-avail {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}
.pd-hero-avail.avail { color: var(--accent); }

.pd-quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.pd-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 10px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
.pd-stat-val {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--text);
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pd-stat-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.rel-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: -0.3px;
}
.pd-stat-arrow {
  font-size: 0.9rem;
  color: var(--border2);
  margin-top: 2px;
}
.pd-section-title {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.pd-attrs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.pd-attr-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.pd-attr-header {
  display: flex;
  align-items: baseline;
  gap: 3px;
}
.pd-attr-val {
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
}
.pd-attr-lvl {
  font-size: 0.58rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}
.pd-attr-name {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text);
}
.pd-attr-bar {
  height: 5px;
  background: var(--bg3);
  border-radius: 3px;
  overflow: hidden;
}
.pd-attr-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}
.pd-attr-xp {
  font-size: 0.67rem;
  color: var(--text-muted);
}
.pd-info-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.pd-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.pd-info-row:last-child { border-bottom: none; }
.pd-info-label { color: var(--text-muted); }
.pd-info-val { font-weight: 600; color: var(--text); }
.pd-desc {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.6;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  margin-top: 4px;
}
.pd-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ── PLAYER DETAIL (in modal) ── */
.detail-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}
.detail-avatar {
  width: 72px; height: 72px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
}
.detail-name { font-size: 1.4rem; font-weight: 900; }
.detail-sub { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }
.detail-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

.detail-attrs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  background: var(--surface);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}
.detail-attr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.detail-attr-val {
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
}
.detail-attr-key {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}
.detail-overall-box {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 20px;
}
.detail-overall-box strong {
  display: block;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}
.detail-section { margin-bottom: 20px; }
.detail-section-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.detail-info-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.detail-info-label { color: var(--text-muted); }
.detail-info-val { font-weight: 600; color: var(--text); }
.detail-desc { font-size: 0.85rem; color: var(--text); line-height: 1.6; }
.detail-actions { display: flex; gap: 10px; margin-top: 20px; }

/* ── LIVE INDICATOR ── */
.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
}
.live-dot::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  background: var(--bg3);
  border: 1px solid var(--border2);
  color: var(--text);
  border-radius: 30px;
  padding: 12px 24px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 1000;
  box-shadow: var(--shadow);
  pointer-events: none;
  transition: opacity 0.3s;
}
.toast.success { border-color: rgba(0,229,160,0.4); color: var(--accent); }
.toast.error   { border-color: rgba(255,77,109,0.4); color: var(--danger); }

/* ── SETTINGS BUTTON ── */
.btn-settings {
  background: var(--surface);
  border: 1.5px solid var(--border2);
  color: var(--text);
  border-radius: 10px;
  height: 36px;
  padding: 0 14px;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  flex-shrink: 0;
  white-space: nowrap;
}
.btn-settings:hover {
  color: var(--text);
  border-color: var(--primary);
  background: rgba(26,111,255,0.1);
}

/* ── SETTINGS PANEL ── */
.settings-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  z-index: 590;
}
.settings-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 380px;
  max-width: 100vw;
  background: var(--bg2);
  border-left: 1px solid var(--border2);
  z-index: 600;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  box-shadow: -12px 0 48px rgba(0,0,0,0.55);
}
.settings-panel.open {
  transform: translateX(0);
}
.settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg2);
  z-index: 1;
}
.settings-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.3px;
}
.settings-section {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.settings-section:last-child { border-bottom: none; }
.settings-section-title {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.settings-account-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.settings-avatar {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
}
.settings-account-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
}
.settings-account-email {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.settings-info-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.settings-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.settings-info-row:last-child { border-bottom: none; }
.settings-info-label { color: var(--text-muted); }
.settings-info-val { font-weight: 600; color: var(--text); text-align: right; }
.settings-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.5;
}
.settings-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 12px 16px;
}
.settings-code {
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 2px;
}

/* ── AUTH GATE ── */
.auth-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 70vh;
  gap: 20px;
  max-width: 480px;
  margin: 0 auto;
  padding: 40px 24px;
}
.auth-gate-logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}
.logo-pifa-hero {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: 4px;
  color: var(--primary);
}
.logo-tm-hero {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
}
.auth-gate-logo .logo-pifa {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: 4px;
}
.auth-gate-sub {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 380px;
}
.auth-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 320px;
  margin-top: 8px;
}
.auth-gate-btn {
  width: 100%;
  text-align: center;
  padding: 14px 20px;
  font-size: 1rem;
  border-radius: 14px;
}
.auth-gate-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  opacity: 0.7;
}

/* ── TRANSFERMARKT LINK ── */
.tm-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,229,160,0.08);
  border: 1.5px solid rgba(0,229,160,0.3);
  color: var(--accent);
  border-radius: var(--radius);
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
  margin-top: 4px;
}
.tm-link-btn:hover {
  background: rgba(0,229,160,0.14);
  border-color: rgba(0,229,160,0.55);
  color: var(--accent);
}
.tm-link-full {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 16px;
}

/* ── MARKET LIST VIEW ── */
.market-list-wrap { overflow-x: auto; }
.market-list {
  min-width: 820px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.mlist-header,
.mlist-row {
  display: grid;
  grid-template-columns: 1fr 52px 82px 80px;
  column-gap: 12px;
  padding: 13px 20px;
  align-items: center;
}
.mlist-header {
  background: rgba(139,92,246,0.12);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.63rem;
  color: var(--primary);
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  text-align: center;
}
.mlist-header > div:first-child { text-align: left; }
.mlist-row {
  border-bottom: 1px solid rgba(139,92,246,0.08);
  cursor: pointer;
  transition: background 0.12s;
  font-size: 0.88rem;
}
.mlist-row:last-child { border-bottom: none; }
.mlist-row:hover { background: rgba(139,92,246,0.09); }
.mlist-row.mlist-self { background: rgba(34,197,94,0.05); }
.mlist-row.mlist-avail { border-left: 2px solid var(--accent); padding-left: 18px; }
.mlist-name-cell {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-align: left;
}
.mlist-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.mlist-name-text { word-break: break-word; }
.avail-spark { font-size: 0.8rem; flex-shrink: 0; }
.mlist-cell {
  color: var(--text-muted);
  font-size: 0.84rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}
.mlist-zw-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border: 1px solid;
  border-radius: 20px;
  white-space: nowrap;
}
.mlist-kopf-val { font-family: var(--font-mono); color: var(--accent); font-weight: 700; }
.muted-val { color: rgba(139,92,246,0.25); }
.mlist-actions-cell { display: flex; gap: 4px; justify-content: center; }

/* ── ARCADE RANKINGS ── */
@keyframes blink-cursor {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
.arcade-cabinet {
  max-width: 640px;
  background: #01010a;
  border: 2px solid var(--accent);
  border-radius: 6px;
  box-shadow: 0 0 50px rgba(217,119,6,0.25), 0 0 100px rgba(217,119,6,0.08), inset 0 0 60px rgba(0,0,0,0.9);
  overflow: hidden;
}
.arcade-screen {
  padding: 28px 24px 24px;
  position: relative;
}
.arcade-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.18) 0px, rgba(0,0,0,0.18) 1px, transparent 1px, transparent 4px);
  pointer-events: none;
  z-index: 0;
}
.arcade-title-area {
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.arcade-game-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 3px;
  text-shadow: 0 0 12px var(--accent);
  margin-bottom: 4px;
}
.arcade-role-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.85rem;
  color: #fff;
  text-shadow: 0 0 20px rgba(255,255,255,0.6);
  line-height: 1.6;
  margin-bottom: 10px;
}
.arcade-hs-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(217,119,6,0.6);
  letter-spacing: 4px;
}
.arcade-table {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(217,119,6,0.25);
  margin-bottom: 18px;
  overflow: hidden;
}
.arcade-table-header {
  display: grid;
  grid-template-columns: 80px 1fr 70px;
  padding: 7px 16px;
  background: rgba(217,119,6,0.12);
  border-bottom: 1px solid rgba(217,119,6,0.25);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--accent);
  letter-spacing: 3px;
}
.arcade-row {
  display: grid;
  grid-template-columns: 80px 1fr 70px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(217,119,6,0.1);
  cursor: pointer;
  transition: background 0.1s;
  position: relative;
  z-index: 1;
}
.arcade-row:last-child { border-bottom: none; }
.arcade-row:hover { background: rgba(217,119,6,0.07); }
.arcade-row.arc-1st { background: rgba(255,215,0,0.07); }
.arcade-row.arc-2nd { background: rgba(192,192,192,0.04); }
.arcade-row.arc-3rd { background: rgba(205,127,50,0.04); }
.arc-rank {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.5rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  letter-spacing: 1px;
}
.arcade-row.arc-1st .arc-rank { color: #ffd700; text-shadow: 0 0 10px #ffd700; }
.arcade-row.arc-2nd .arc-rank { color: #c0c0c0; text-shadow: 0 0 10px #c0c0c0; }
.arcade-row.arc-3rd .arc-rank { color: #cd7f32; text-shadow: 0 0 10px #cd7f32; }
.arc-name {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text);
  display: flex;
  align-items: center;
  letter-spacing: 1px;
  overflow: hidden;
}
.arc-name-self { color: var(--success); }
.arc-score {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.6rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  text-shadow: 0 0 10px var(--accent);
}
.arcade-footer {
  text-align: center;
  position: relative;
  z-index: 1;
}
.arcade-blink {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--accent);
  letter-spacing: 3px;
  opacity: 0.8;
  animation: blink-cursor 1.2s infinite;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-inner { gap: 6px; padding: 0 12px; flex-wrap: nowrap; overflow: hidden; }
  .nav-links { gap: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; flex-shrink: 1; flex-wrap: nowrap; min-width: 0; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-btn { padding: 8px 10px; font-size: 0.72rem; letter-spacing: 0.5px; white-space: nowrap; flex-shrink: 0; }
  .nav-ext { display: none; }
  .nav-right { flex-shrink: 0; gap: 6px; }
  .nav-user { padding: 5px 10px; font-size: 0.75rem; }
  .btn-settings .settings-label { display: none; }
  .main { padding: 20px 14px 60px; }
  .view-header { flex-direction: column; align-items: center; text-align: center; margin-bottom: 18px; }
  .view-title-block h1::before { display: none; }
  .view-title-block h1 { font-size: 1.25rem; letter-spacing: 2px; }
  .player-grid { grid-template-columns: 1fr; }
  .modal { padding: 22px 18px; width: 95vw; }
  .settings-panel { width: 100vw; }
  .market-tab { font-size: 0.72rem; padding: 10px 10px; letter-spacing: 0.5px; }
  .market-tab-badge { display: none; }
  .filter-bar { gap: 8px; }
  .filter-select { font-size: 0.8rem; }
  .pd-attrs-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .pd-quick-stats { gap: 8px; }
  .arcade-cabinet { margin: 0 4px; }
  .arcade-role-title { font-size: 0.65rem; }
  .arcade-game-title { font-size: 0.62rem; }
  .rankings-list { padding: 0 4px; }
}

/* ── MOBILE MARKET LIST ── */
@media (max-width: 600px) {
  .market-list-wrap { -webkit-overflow-scrolling: touch; }
  .market-list { min-width: 300px; }
  .mlist-header,
  .mlist-row {
    grid-template-columns: 1fr 44px 74px 60px;
    column-gap: 6px;
    padding: 11px 12px;
  }
  .mlist-header { font-size: 0.55rem; letter-spacing: 0.3px; }
  .mlist-name-text { font-size: 0.82rem; white-space: normal; }
  .mlist-cell { font-size: 0.76rem; }
  .mlist-zw-badge { font-size: 0.62rem; padding: 2px 5px; }
  .mlist-kopf-val { font-size: 0.72rem; }
}

@media (max-width: 400px) {
  .nav-btn { padding: 7px 6px; font-size: 0.65rem; }
  .market-tab { padding: 9px 7px; font-size: 0.66rem; }
  .mlist-row { padding: 11px 12px; }
}

/* ── RANGLISTE ── */
.rankings-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 700px;
}
.rank-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.rank-row:hover { border-color: var(--border2); background: var(--surface); }
.rank-row.rank-gold   { border-color: rgba(255,215,0,0.35);  background: rgba(255,215,0,0.05); }
.rank-row.rank-silver { border-color: rgba(192,192,192,0.35); background: rgba(192,192,192,0.05); }
.rank-row.rank-bronze { border-color: rgba(205,127,50,0.35);  background: rgba(205,127,50,0.05); }
.rank-row.rank-self   { border-color: rgba(0,229,160,0.3); }
.rank-num {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--text-muted);
  min-width: 32px;
  text-align: center;
}
.rank-num.rank-gold   { color: #FFD700; }
.rank-num.rank-silver { color: #C0C0C0; }
.rank-num.rank-bronze { color: #CD7F32; }
.rank-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.rank-info { flex: 1; min-width: 0; }
.rank-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rank-sub { font-size: 0.75rem; color: var(--text-muted); }
.rank-score {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary);
  text-align: right;
  line-height: 1;
  flex-shrink: 0;
}
.rank-score-lbl {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1px;
}
.rank-rel-circle {
  width: 48px;
  height: 48px;
  font-size: 0.7rem;
  flex-shrink: 0;
}

/* ── KARRIERE ── */
.karriere-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 40px;
}
.karriere-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s, transform 0.15s;
}
.karriere-card:hover {
  transform: translateY(-2px);
  border-color: var(--border2);
}
.karriere-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid;
  border-color: inherit;
}
.karriere-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}
.karriere-abbr {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.karriere-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}
.karriere-desc {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}
.karriere-section-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: -6px;
}
.karriere-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.karriere-list li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-left: 14px;
  position: relative;
}
.karriere-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 0.7rem;
  top: 2px;
}
.karriere-list-req li::before { color: var(--accent); }
.karriere-apply-btn {
  margin-top: auto;
  width: 100%;
  text-align: center;
  padding: 12px;
}
.karriere-hint {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 0 20px 40px;
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .karriere-grid { grid-template-columns: 1fr; padding: 0 14px 32px; }
}
