:root {
  --bg: #0a0a0d;
  --bg-2: #101015;
  --panel: #14141b;
  --panel-2: #1b1b24;
  --line: #26262f;
  --text: #f2f2f5;
  --text-dim: #9a9aa6;
  --text-faint: #62626e;
  --gold: #ffc42e;
  --gold-2: #ff9d17;
  --gold-glow: rgba(255, 176, 32, 0.45);
  --orange: #ff7a3d;
  --orange-2: #ff4d1f;
  --orange-glow: rgba(255, 90, 30, 0.45);
  --danger: #ff5a5a;
  --discord: #5865f2;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  min-height: 100%;
  font-family: "Segoe UI", Inter, system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1100px 600px at 78% -10%, rgba(255, 160, 30, 0.10), transparent 60%),
    radial-gradient(900px 500px at 12% 120%, rgba(255, 190, 60, 0.06), transparent 55%),
    var(--bg);
}

.hidden { display: none !important; }
a { color: inherit; }

/* ── Hulló parázs-szemcse háttéranimáció (ugyanaz, mint a SolarLauncherben) ── */
.particle-canvas {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}
.auth-screen, .app-shell { position: relative; z-index: 1; }

.brand-logo-img { width: 34px; height: 34px; flex-shrink: 0; filter: drop-shadow(0 0 10px var(--gold-glow)); }

/* ── Bejelentkező képernyő ── */
.auth-screen {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 20px;
}
.auth-split {
  width: 100%; max-width: 940px;
  display: grid; grid-template-columns: 380px 1fr;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
  overflow: hidden;
}
.auth-form-side { padding: 40px 34px; }
.auth-info-side {
  padding: 40px 34px;
  background: rgba(255, 176, 32, 0.03);
  border-left: 1px solid var(--line);
}
.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.auth-brand-name { font-weight: 800; letter-spacing: 1.5px; font-size: 15px; }
.auth-brand-name small { display: block; font-size: 10px; color: var(--text-faint); letter-spacing: 2px; font-weight: 600; }

/* ── Zárolt fiók képernyő (owner-i zárolás, ld. app.js) ── */
.locked-split { grid-template-columns: 1fr; max-width: 480px; }
.locked-form-side { text-align: center; padding: 46px 40px; }
.locked-form-side .auth-brand { justify-content: center; }
.ban-modal-icon {
  width: 72px; height: 72px; margin: 0 auto 18px; color: var(--danger);
  border: 2px solid var(--danger); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 28px rgba(255, 90, 90, .35);
}
.ban-modal-title { font-size: 20px; font-weight: 800; color: var(--danger); margin-bottom: 10px; }
.ban-modal-desc { font-size: 13.5px; color: var(--text-dim); line-height: 1.6; margin-bottom: 20px; }
.ban-modal-details {
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 22px; text-align: left;
}
.ban-modal-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 6px 0; }
.ban-modal-row span { color: var(--text-faint); }
.ban-modal-row b { color: var(--text); font-weight: 700; text-align: right; }

.auth-tabs {
  display: flex; background: var(--bg); border: 1px solid var(--line);
  border-radius: 12px; padding: 4px; margin-bottom: 20px;
}
.auth-tab {
  flex: 1; padding: 8px 0; border: none; cursor: pointer;
  background: transparent; color: var(--text-dim);
  font-weight: 600; font-size: 13px; border-radius: 9px;
  transition: background .18s, color .18s;
}
.auth-tab.active { background: var(--panel-2); color: var(--text); }
.auth-form label {
  display: block; font-size: 11px; color: var(--text-dim);
  margin: 12px 2px 6px; letter-spacing: .5px; text-transform: uppercase;
}
.auth-form input, .auth-form select {
  width: 100%; padding: 11px 13px; border-radius: 10px;
  background: var(--bg); border: 1px solid var(--line);
  color: var(--text); font-size: 14px; outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.auth-form input:focus, .auth-form select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 176, 32, 0.12);
}
.auth-error { color: var(--danger); font-size: 12px; min-height: 16px; margin: 10px 2px 4px; }
.auth-forgot-link {
  display: block; text-align: center; margin-top: 14px;
  color: var(--text-dim); font-size: 12px; text-decoration: underline;
  text-underline-offset: 2px; transition: color .16s;
}
.auth-forgot-link:hover { color: var(--gold); }
.btn-glow {
  width: 100%; padding: 12px; margin-top: 10px; border: none; cursor: pointer;
  border-radius: 11px; font-weight: 700; font-size: 14px; color: #1a1206;
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
  box-shadow: 0 8px 26px var(--gold-glow);
  transition: transform .12s, box-shadow .2s, filter .2s;
}
.btn-glow:hover { filter: brightness(1.05); box-shadow: 0 10px 34px var(--gold-glow); }
.btn-glow:active { transform: translateY(1px); }
.btn-glow-orange {
  background: linear-gradient(180deg, var(--orange), var(--orange-2));
  box-shadow: 0 8px 26px var(--orange-glow); color: #2a0f04;
}
.btn-glow-orange:hover { box-shadow: 0 10px 34px var(--orange-glow); }

.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 6px; }
.form-checks { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.check-row {
  display: flex; align-items: flex-start; gap: 9px; cursor: pointer;
  font-size: 12px; color: var(--text-dim); line-height: 1.5;
}
.check-row input[type="checkbox"] {
  margin-top: 2px; width: 15px; height: 15px; flex-shrink: 0; accent-color: var(--gold); cursor: pointer;
}
.link-inline { color: var(--gold); font-weight: 600; cursor: pointer; }
.inline-select {
  display: inline-block; width: auto; padding: 2px 6px; margin: 0 2px;
  border-radius: 6px; background: var(--panel-2); border: 1px solid var(--line);
  color: var(--gold); font-size: 12px; outline: none;
}
.auth-switch-hint { text-align: center; font-size: 12px; color: var(--text-faint); margin-top: 16px; }

.auth-info-title { font-size: 22px; font-weight: 800; color: var(--gold); margin-bottom: 22px; }
.auth-feature { display: flex; gap: 14px; margin-bottom: 22px; }
.auth-feature-icon {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px;
  background: rgba(255, 176, 32, 0.10); border: 1px solid rgba(255,176,32,.25);
  display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 16px;
}
.auth-feature-title { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.auth-feature-desc { font-size: 12.5px; color: var(--text-dim); line-height: 1.6; }

@media (max-width: 820px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-info-side { border-left: none; border-top: 1px solid var(--line); }
}

/* ── App-héj (bejelentkezés után) ── */
.app-shell { min-height: 100vh; display: flex; }
.app-sidebar {
  width: 270px; flex-shrink: 0;
  background: rgba(16,16,22,.7);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  padding: 28px 18px;
  position: sticky; top: 0; height: 100vh;
}
.app-brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 30px; }
.app-nav { display: flex; flex-direction: column; gap: 4px; }
.app-nav-item {
  display: flex; align-items: center; gap: 13px;
  padding: 13px 16px; border-radius: 12px; border: none; cursor: pointer;
  background: transparent; color: var(--text-dim);
  font-size: 14px; font-weight: 600; text-align: left; width: 100%;
  transition: background .16s, color .16s;
}
.app-nav-item svg { width: 19px; height: 19px; fill: currentColor; flex-shrink: 0; }
.app-nav-item:hover { background: var(--panel-2); color: var(--text); }
.app-nav-item.active {
  background: linear-gradient(90deg, rgba(255,176,32,.14) 0%, rgba(255,176,32,0) 100%);
  color: var(--gold); box-shadow: inset 3px 0 0 var(--gold);
}
.app-nav-divider {
  padding: 14px 16px 4px; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--text-faint);
}
.app-nav-spacer { flex: 1; }
.app-nav-bottom { display: flex; flex-direction: column; gap: 3px; padding-top: 12px; border-top: 1px solid var(--line); }

.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.app-topbar {
  display: flex; align-items: center; justify-content: flex-start;
  padding: 22px 48px; border-bottom: 1px solid var(--line);
  gap: 14px;
}
.topbar-user {
  display: flex; align-items: center; gap: 11px; font-size: 14px;
  color: var(--text-dim); font-weight: 600; cursor: pointer;
  position: relative; padding: 7px 12px 7px 7px; border-radius: 12px;
  transition: background .16s;
}
.topbar-user:hover { background: var(--panel-2); }
.topbar-avatar {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--panel-2); border: 1px solid var(--line); image-rendering: pixelated;
}
.topbar-user-text { display: flex; flex-direction: column; gap: 3px; }
.topbar-pp-badge {
  display: inline-flex; align-items: center; gap: 4px; width: fit-content;
  padding: 2px 9px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,122,61,.18), rgba(255,77,31,.08));
  border: 1px solid rgba(255,122,61,.45);
  color: var(--orange); font-weight: 800; font-size: 11px;
}
.topbar-pp-badge svg, .topbar-pp-badge img { width: 13px; height: 13px; object-fit: contain; }
.topbar-caret { color: var(--text-faint); transition: transform .16s; }
.topbar-user.open .topbar-caret { transform: rotate(180deg); }
.topbar-dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 170px;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: 12px; padding: 6px;
  box-shadow: 0 16px 40px rgba(0,0,0,.5); z-index: 20;
}
.topbar-dropdown button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 10px; border: none; background: transparent; cursor: pointer;
  border-radius: 8px; color: var(--text); font-size: 13px; font-weight: 600;
  transition: background .14s, color .14s;
}
.topbar-dropdown button:hover { background: rgba(255,90,60,.12); color: var(--danger); }

.app-content { padding: 40px 48px; max-width: 1320px; margin: 0 auto; width: 100%; flex: 1; }
.view { display: none; }
.view.active { display: block; }

.app-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 48px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--text-faint);
}
.app-footer a { color: var(--text-faint); text-decoration: none; transition: color .16s; }
.app-footer a:hover { color: var(--gold); }

.page-title { font-size: 30px; font-weight: 800; margin-bottom: 8px; }
.page-note { color: var(--text-dim); font-size: 14.5px; margin-bottom: 32px; line-height: 1.6; }

.content-grid { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; }
@media (max-width: 980px) { .content-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--panel); border-radius: 20px; padding: 34px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.card + .card { margin-top: 24px; }

/* Főoldali "Legfrissebb hír" kártya (ld. src/news.js) */
.news-card-title { font-size: 17px; font-weight: 800; margin-top: 4px; }
.news-card-meta { font-size: 12px; color: var(--text-faint); margin-top: 4px; }
.news-card-content { font-size: 13.5px; color: var(--text-dim); line-height: 1.7; margin-top: 12px; white-space: pre-wrap; }
/* ÚJ: a felhívás mellé csatolható kép (ld. app.js loadHomeNews) - a
   card-title UTÁN, a cím ELŐTT jelenik meg. */
.news-card-image { display: block; width: 100%; max-height: 260px; object-fit: cover; border-radius: 12px; margin-top: 10px; }

/* Admin "Felhívások" lista (ld. index.html data-view="newsAdmin") */
.news-admin-item {
  background: rgba(255,255,255,.02); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 20px; margin-top: 14px;
}
.news-admin-item-image { display: block; width: 100%; max-height: 220px; object-fit: cover; border-radius: 10px; margin-bottom: 14px; }
.news-admin-item-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.news-admin-item-title { font-size: 15px; font-weight: 800; }
.news-admin-item-meta { font-size: 12px; color: var(--text-faint); margin-top: 3px; }
.news-admin-item-content { font-size: 13px; color: var(--text-dim); line-height: 1.7; margin-top: 10px; white-space: pre-wrap; }
.news-admin-item-actions { display: flex; gap: 8px; flex-shrink: 0; }
.news-admin-item-actions button {
  padding: 7px 12px; border-radius: 8px; font-size: 12px; font-weight: 700; cursor: pointer;
  background: transparent; border: 1px solid var(--line); color: var(--text-dim); transition: border-color .16s, color .16s;
}
.news-admin-item-actions button:hover { color: var(--text); border-color: var(--gold-2); }
.news-admin-item-actions .news-delete-btn:hover { color: var(--danger); border-color: var(--danger); }

/* ÚJ: kép-feltöltés az "Új felhívás" űrlapon (ld. index.html #newsImageInput) */
.news-image-preview-wrap { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.news-image-preview { width: 90px; height: 90px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }

/* ÚJ: Jelvények (ld. SolarBackend src/badges.js, index.html data-view="badges") */
.badge-color-input {
  display: block; width: 64px; height: 34px; padding: 3px; margin-top: 6px;
  border-radius: 8px; border: 1px solid var(--line); background: var(--bg); cursor: pointer;
}
.badge-icon-preview { width: 48px; height: 48px; border-radius: 10px; }
.badges-admin-item {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,.02); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 16px; margin-top: 12px;
}
.badges-admin-item-icon { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: var(--panel-2); }
.badges-admin-item-info { flex: 1; min-width: 0; }
.badges-admin-item-name { font-size: 14px; font-weight: 800; }
.badges-admin-item-meta { font-size: 12px; color: var(--text-faint); margin-top: 2px; }
.badges-admin-item-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ÚJ: jelvények a névtábla mellett (Profilod kártya / Játékos-profil).
   JAVÍTVA: korábban az ikon kicsi volt (20px), keretezett, és a jelvény
   NEVE csak hoverkor, egy tooltipben jelent meg - most az ikon nagyobb,
   keret nélküli (hogy animált/átlátszó GIF-ikonok se törjenek meg egy
   dobozkerettől), és a név MINDIG, közvetlenül az ikon mellett látszik. */
.profile-name-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.profile-name-row .profile-name { margin-bottom: 0; }
.name-badges { display: inline-flex; flex-wrap: wrap; gap: 10px; }
.name-badge { display: inline-flex; align-items: center; gap: 7px; }
.name-badge-icon { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; cursor: default; }
.name-badge-label { font-size: 13.5px; font-weight: 800; white-space: nowrap; }

/* ÚJ: jelvény adása/elvétele a játékos-profil admin paneljén */
.admin-badge-grant-row { display: flex; gap: 8px; margin-top: 6px; }
.admin-badge-grant-row select { flex: 1; }
.admin-badge-grant-row .device-link { flex-shrink: 0; }
.admin-player-badges-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.admin-player-badge-chip {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 6px 4px 4px; font-size: 12px; font-weight: 700;
}
.admin-player-badge-chip img { width: 18px; height: 18px; border-radius: 5px; object-fit: cover; }
.admin-player-badge-chip button {
  background: none; border: none; color: var(--text-faint); cursor: pointer; font-size: 13px;
  line-height: 1; padding: 2px;
}
.admin-player-badge-chip button:hover { color: var(--danger); }

/* Havi bevétel - naptár nézet (ld. index.html data-view="revenue"/"revenueDetail") */
.revenue-calendar-year { margin-top: 30px; }
.revenue-calendar-year:first-child { margin-top: 0; }
.revenue-calendar-year-title {
  font-size: 20px; font-weight: 800; color: var(--gold); margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.revenue-calendar-year-total { font-size: 13px; font-weight: 600; color: var(--text-faint); }
.revenue-month-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.revenue-month-card {
  background: rgba(255,255,255,.02); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px; text-align: center; cursor: pointer;
  transition: transform .16s, border-color .16s, background .16s;
}
.revenue-month-card:hover { transform: translateY(-3px); border-color: var(--gold-2); background: rgba(255,176,32,.05); }
.revenue-month-card.has-data { border-color: rgba(255,176,32,.25); }
.revenue-month-card.no-data { opacity: .55; }
.revenue-month-card.future { opacity: .3; cursor: default; pointer-events: none; }
.revenue-month-name { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-dim); }
.revenue-month-amount { font-size: 17px; font-weight: 800; margin-top: 8px; }
.revenue-month-count { font-size: 11.5px; color: var(--text-faint); margin-top: 4px; }

.revenue-summary-card { text-align: center; padding: 32px; }
.revenue-summary-label { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-faint); }
.revenue-summary-amount { font-size: 38px; font-weight: 800; color: var(--gold); margin-top: 8px; }
.revenue-summary-count { font-size: 13px; color: var(--text-dim); margin-top: 6px; }
.revenue-detail-divider { height: 1px; background: var(--line); margin: 24px 0; }
.card-title { font-size: 17px; font-weight: 700; margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }

/* Profil kártya (Főoldal) */
.profile-card { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; }
.profile-skin-col { display: flex; flex-direction: column; align-items: center; gap: 8px; flex-shrink: 0; }
#homeSkinCanvas { border-radius: 16px; background: var(--panel-2); border: 1px solid var(--line); }
.profile-info { flex: 1; min-width: 200px; }
.profile-name { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.profile-empty-skin { color: var(--text-faint); font-size: 13px; }

/* ── Discord-fiók összekötés jelvénye - a Főoldal saját profiljában ÉS a
   tulajdonosi admin-panelben is ugyanez a minta jelenik meg (ld. app.js
   renderDiscordLinkBadge()). ── */
.discord-link-badge {
  display: flex; align-items: center; gap: 8px; margin-top: 10px;
  font-size: 12.5px; padding: 6px 10px; border-radius: 999px; width: fit-content;
}
.discord-link-badge-connected {
  background: rgba(88,101,242,.14); border: 1px solid rgba(88,101,242,.4); color: var(--text);
}
.discord-link-badge-empty {
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text-faint);
}
.discord-link-badge-empty code {
  background: rgba(255,255,255,.08); border-radius: 4px; padding: 1px 5px; font-size: 11.5px;
}
.discord-link-avatar {
  width: 20px; height: 20px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}

/* ÚJ: aktív némítás-/kitiltás-/kliens-tiltás kártya(ák) - a Főoldal saját
   profiljában ÉS a játékos-kereső profil-nézetében is (ld. app.js
   renderSanctionStatus()) - üres marad, ha nincs aktív szankció. JAVÍTVA:
   korábban csak egy hover-tooltipben volt a ki/mikor/meddig, most mindig
   látható, kártyaszerűen. */
.profile-sanction-status { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; width: 100%; }
.sanction-status-card {
  padding: 12px 14px; border-radius: 12px;
  background: rgba(255,90,90,.1); border: 1px solid rgba(255,90,90,.35);
}
.sanction-status-card-title { font-weight: 800; font-size: 13.5px; color: var(--danger); margin-bottom: 6px; }
.sanction-status-card-row { font-size: 12.5px; color: var(--text-dim); margin-top: 2px; }
.sanction-status-card-row span { color: var(--text-faint); }
.sanction-status-card-reason { font-size: 12.5px; color: var(--text-dim); margin-top: 6px; font-style: italic; }

/* ── Casino (SolarLucky nyerőgép) - státusz-oldal, a tényleges pörgetés
   in-game történik, ez csak a "van hány pörgetésed" kijelzés + egy dísz-
   nyerőgép (ld. app.js loadCasino()). A jobb oldali oszlopban a stat-kártya
   és a támogató side-rail egymás alatt jelenik meg (a .content-grid csak
   2 oszlopos, ez a wrapper foglalja el a második oszlopot). ── */
.side-rail-col { display: flex; flex-direction: column; gap: 20px; }

.casino-machine-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 32px 24px; }
.slot-machine {
  display: flex; flex-direction: column; align-items: center; gap: 0;
  padding: 22px 26px 30px; border-radius: 22px;
  background: linear-gradient(180deg, #3a3a44, #1c1c22);
  border: 3px solid #55555f; box-shadow: 0 0 0 1px rgba(255,255,255,.04) inset, 0 18px 40px rgba(0,0,0,.45);
  position: relative;
}
.slot-machine-top {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 8px 18px; margin-bottom: 18px; border-radius: 10px;
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
  color: #1a1206; font-weight: 900; font-size: 15px; letter-spacing: 2px;
  box-shadow: 0 6px 18px var(--gold-glow);
}
.slot-machine-star { color: #1a1206; opacity: .8; }
.slot-machine-jackpot { text-transform: uppercase; }
.slot-machine-reels { display: flex; gap: 10px; }
.slot-reel {
  width: 62px; height: 62px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 30%, #26262e, #0c0c10 75%);
  border: 2px solid #55555f; box-shadow: inset 0 0 14px rgba(0,0,0,.7);
  font-size: 30px; font-weight: 900; color: var(--gold); text-shadow: 0 0 10px var(--gold-glow);
  overflow: hidden; transition: box-shadow .2s;
}
.slot-reel svg { width: 32px; height: 32px; }
.slot-reel.spinning {
  box-shadow: inset 0 0 14px rgba(0,0,0,.7), 0 0 16px var(--gold-glow);
  animation: casino-reel-blur .18s linear infinite;
}
.slot-reel.won { box-shadow: inset 0 0 14px rgba(0,0,0,.7), 0 0 22px var(--gold-glow); border-color: var(--gold); }
@keyframes casino-reel-blur {
  0% { transform: translateY(-3px); opacity: .75; }
  50% { transform: translateY(3px); opacity: 1; }
  100% { transform: translateY(-3px); opacity: .75; }
}
.slot-machine-lever-col { position: absolute; right: -20px; top: 24px; bottom: 30px; display: flex; align-items: flex-start; }
.slot-machine-lever-track { width: 8px; height: 100%; border-radius: 4px; background: linear-gradient(180deg, #6a6a76, #34343c); position: relative; }
.slot-machine-lever-knob {
  position: absolute; top: -4px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 20px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff7a6a, var(--danger) 70%);
  box-shadow: 0 4px 10px rgba(255,90,90,.5);
  transition: top .5s cubic-bezier(.34,1.56,.64,1);
}
.slot-machine-lever-track.pulled .slot-machine-lever-knob { top: calc(100% - 20px); }

.casino-actions { display: flex; gap: 12px; margin-top: 6px; flex-wrap: wrap; justify-content: center; }
.casino-actions .btn-glow, .casino-actions .btn-outline { width: auto; padding: 11px 22px; }

.casino-prize-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 16px;
}
.casino-prize-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
  background: rgba(255,255,255,.02); border: 1px solid var(--line); border-radius: 13px; padding: 16px 10px;
  transition: transform .16s, border-color .16s;
}
.casino-prize-card:hover { transform: translateY(-3px); border-color: var(--gold-2); }
.casino-prize-icon {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  color: var(--gold); background: rgba(255,176,32,.1); border: 1px solid rgba(255,176,32,.22); border-radius: 12px;
}
.casino-prize-icon svg { width: 22px; height: 22px; }
.casino-prize-name { font-size: 12px; font-weight: 700; line-height: 1.35; }
.casino-prize-server {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
  color: var(--gold); background: rgba(255,176,32,.1); border-radius: 999px; padding: 3px 9px;
}

.casino-stat-grid { grid-template-columns: 1fr; }

/* Statisztika-jelvények (Rangok/PrémiumPont/Online töltött idő). */
.stat-badge-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px; margin-bottom: 28px;
}
.stat-badge {
  display: flex; align-items: center; gap: 18px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 22px 24px; box-shadow: 0 10px 30px rgba(0,0,0,.2);
}
.stat-badge-icon {
  width: 52px; height: 52px; flex-shrink: 0; border-radius: 14px;
  background: rgba(255,176,32,.10); border: 1px solid rgba(255,176,32,.22);
  display: flex; align-items: center; justify-content: center; color: var(--gold);
}
.stat-badge-icon svg { width: 24px; height: 24px; fill: currentColor; }
.stat-badge-icon img { width: 30px; height: 30px; object-fit: contain; }
.stat-badge-label { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-faint); margin-bottom: 4px; }
/* JAVÍTVA: a LuckPerms rang-prefixek gyakran fonetikus KIS KAPITÁLIS Unicode
   karaktereket használnak (pl. "ᴛᴜʟᴀᴊᴅᴏɴᴏꜱ") a stilizált kinézethez - az
   alap "Segoe UI" ezeknek csak egy részét (Phonetic Extensions) fedi le, a
   ritkább Latin Extended-D karakterekre (pl. a "ꜱ" kis kapitális S-re)
   Windows-on egy MÁSIK, vizuálisan eltérő betűtípusra esik vissza - emiatt
   tűnt "más betűtípusúnak"/hibásnak pont az utolsó betű. A "Segoe UI
   Historic" a Windows saját, kifejezetten ezekhez a blokkokhoz csomagolt
   betűtípusa - előre véve a láncban egységesen fedi az egész prefixet. */
.stat-badge-value { font-size: 22px; font-weight: 800; color: var(--text); font-family: "Segoe UI Historic", "Segoe UI", Inter, system-ui, sans-serif; }
.stat-note {
  color: var(--text-faint); font-size: 12px; margin: -10px 0 22px;
}

/* Discord kártya - a Discord saját hivatalos iframe-widgetjét ágyazza be
   (élő, valós tag-lista, ugyanaz, mint amit a felhasználó referenciaként küldött). */
.discord-card { overflow: hidden; padding: 0; }
.discord-card-header {
  background: var(--discord); padding: 16px 22px; font-weight: 700;
  display: flex; align-items: center; gap: 10px; color: #fff;
}
.discord-card-body { padding: 0; }
.discord-widget-frame { display: block; border: none; }
.btn-discord {
  display: block; text-align: center; background: var(--discord); color: #fff !important;
  padding: 14px; text-decoration: none; font-weight: 700;
  transition: filter .16s;
}
.btn-discord:hover { filter: brightness(1.1); }

/* Csomag kártyák (SolarynCoin / Kitiltáscsökkentés) */
.pkg-category { font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gold); font-weight: 700; margin: 26px 0 14px; }
.pkg-category:first-child { margin-top: 0; }
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.pkg-card {
  background: rgba(255,255,255,.02); border: 1px solid var(--line); border-radius: 15px;
  padding: 26px 18px; text-align: center; display: flex; flex-direction: column; align-items: center;
  transition: transform .16s, border-color .16s, background .16s;
}
.pkg-card:hover { transform: translateY(-4px); border-color: var(--gold-2); background: rgba(255,176,32,.05); }
.pkg-card.featured { border-color: var(--gold); box-shadow: 0 0 20px rgba(255,176,32,.12); }
.pkg-icon {
  width: 44px; height: 44px; margin-bottom: 14px; color: var(--gold);
  display: flex; align-items: center; justify-content: center;
}
.pkg-icon svg { width: 26px; height: 26px; display: block; }
.pkg-icon img { width: 36px; height: 36px; object-fit: contain; }
.pkg-name { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.pkg-price { font-size: 19px; font-weight: 800; margin-bottom: 16px; }
.rank-price { display: flex; align-items: center; justify-content: center; gap: 6px; }
.rank-price-icon { width: 22px; height: 22px; object-fit: contain; }
.btn-buy {
  display: inline-block; width: 100%; padding: 10px 0; border-radius: 9px; border: none;
  background: linear-gradient(180deg, var(--gold), var(--gold-2)); color: #1a1206 !important;
  font-weight: 800; font-size: 12px; text-transform: uppercase; text-decoration: none;
  font-family: inherit; cursor: pointer;
  box-shadow: 0 6px 18px var(--gold-glow); transition: filter .16s;
}
.btn-buy:hover { filter: brightness(1.06); }
.btn-buy:disabled { cursor: default; opacity: .7; filter: none; }
.btn-gift {
  width: 100%; padding: 8px 0; margin-top: 8px; border-radius: 9px;
  font-size: 11px; text-transform: uppercase; font-weight: 700;
}
.btn-gift:disabled { cursor: default; opacity: .5; }

/* ÚJ: némítás-/kitiltás-/kliens-tiltás-csökkentés kártya, ha a
   bejelentkezett játékosnak épp NINCS aktív szankciója az adott típusból
   (ld. app.js renderPkgCard "locked" paramétere) - a "Vásárlás" gomb
   letiltva, egy kis magyarázó felirat jelenik meg helyette. Az
   "Ajándékozás" gomb SZÁNDÉKOSAN nem tiltott itt - egy másik játékosnak,
   akinek van aktív szankciója, továbbra is vehető csökkentés (ld. shop.js
   /checkout gate, ami a giftTo célpont állapotát nézi ilyenkor). */
.pkg-card-locked { opacity: .8; }
.pkg-locked-note {
  font-size: 11px; color: var(--text-faint); margin-top: 8px; line-height: 1.4;
}

/* Rangkártyák (PrémiumPontból vásárolhatók, nem Stripe-fizetéssel) - a
   .pkg-card-hoz hasonló alapstílus, de magasabb, hogy elférjen benne a
   jogosultság-lista is. Szándékosan a SolarCenter saját, meleg arany/sötét
   témáját követi, nem egy máshonnan átvett dizájnt. */
.rank-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.rank-card {
  background: rgba(255,255,255,.02); border: 1px solid var(--line); border-radius: 15px;
  padding: 24px 20px; display: flex; flex-direction: column; align-items: center; text-align: center;
  transition: transform .16s, border-color .16s, background .16s;
}
.rank-card:hover { transform: translateY(-4px); border-color: var(--gold-2); background: rgba(255,176,32,.05); }
.rank-card.featured { border-color: var(--gold); box-shadow: 0 0 20px rgba(255,176,32,.12); }
.rank-card.insufficient { opacity: .6; }
.rank-card.insufficient:hover { transform: none; border-color: var(--line); background: rgba(255,255,255,.02); }
.rank-card-head { display: flex; flex-direction: column; align-items: center; }
.rank-card-name { font-weight: 800; font-size: 16px; margin-top: 4px; }
.rank-card-duration { font-size: 12px; color: var(--text-dim); margin: 4px 0 10px; }
.rank-perm-list { width: 100%; text-align: left; margin: 4px 0 18px; flex: 1; }

/* Vásárlás visszajelzés (toast) - a Stripe checkoutból való visszatéréskor
   és a vásárlás indításakor felugró üzenetek. */
.shop-toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 12px);
  background: var(--panel); border: 1px solid var(--gold-2); color: #f4e6c8;
  padding: 13px 22px; border-radius: 11px; font-size: 13px; font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,.4); z-index: 200; opacity: 0;
  transition: opacity .25s, transform .25s; max-width: min(90vw, 420px); text-align: center;
}
.shop-toast.visible { opacity: 1; transform: translate(-50%, 0); }
.shop-toast-error { border-color: #e05252; }

/* SolarynCoin - információs dobozok (fizetés/figyelmeztetés/GYIK) */
.info-box {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 22px 26px; margin-top: 18px;
}
.info-box-warn { border-color: rgba(255,176,32,.3); background: rgba(255,176,32,.04); }
.info-box-title {
  display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 14px;
  color: var(--gold); margin-bottom: 12px;
}
.info-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.info-list li {
  font-size: 13px; color: var(--text-dim); padding-left: 16px; position: relative; line-height: 1.6;
}
.info-list li::before { content: "•"; color: var(--gold); position: absolute; left: 0; }
.info-list li b { color: var(--text); }
.info-text { font-size: 13px; color: var(--text-dim); line-height: 1.7; }

/* Kódbeváltás */
.redeem-card { max-width: 420px; margin: 0 auto; text-align: center; padding: 40px 34px; }
.redeem-icon {
  width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 18px;
  background: rgba(255,176,32,.10); border: 1px solid rgba(255,176,32,.25);
  display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 24px;
}
.redeem-input {
  width: 100%; padding: 13px; border-radius: 11px; text-align: center; letter-spacing: 2px;
  background: var(--bg); border: 1px solid var(--line); color: var(--text); font-size: 15px;
  outline: none; margin-top: 18px; transition: border-color .18s;
}
.redeem-input:focus { border-color: var(--gold); }
.redeem-result { min-height: 18px; font-size: 13px; margin-top: 14px; color: var(--text-dim); }
.redeem-result.error { color: var(--danger); }

/* Átutalás */
.transfer-card { max-width: 440px; margin: 0 auto; padding: 40px 34px; }
.transfer-card label {
  display: block; font-size: 11px; color: var(--text-dim); margin: 16px 2px 6px;
  letter-spacing: .5px; text-transform: uppercase;
}
.transfer-card input {
  width: 100%; padding: 12px 14px; border-radius: 11px;
  background: var(--bg); border: 1px solid var(--line); color: var(--text); font-size: 14px; outline: none;
  transition: border-color .18s;
}
.transfer-card input:focus { border-color: var(--orange); }
.transfer-fee-note {
  font-size: 12.5px; color: var(--text-dim); margin-top: 18px; padding: 12px 14px;
  border-radius: 10px; background: rgba(255,122,61,.06); border: 1px solid rgba(255,122,61,.25);
}
.transfer-fee-note b { color: var(--orange); }
.transfer-card .btn-glow { width: 100%; margin-top: 20px; }

/* Napló */
.ledger-filters { padding: 20px 24px; margin-bottom: 20px; }
.ledger-filter-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 14px; }
.ledger-filter-field label {
  display: block; font-size: 11px; color: var(--text-dim); margin-bottom: 6px;
  letter-spacing: .5px; text-transform: uppercase;
}
.ledger-filter-field input {
  width: 100%; padding: 10px 13px; border-radius: 10px; color-scheme: dark;
  background: var(--bg); border: 1px solid var(--line); color: var(--text); font-size: 13px; outline: none;
  transition: border-color .18s;
}
.ledger-filter-field input:focus { border-color: var(--gold); }

/* ÚJ: Csapat statisztika - kártya-rács a korábbi sima táblázat helyett (ld.
   app.js loadStaffStats()), a stat-badge/rank-card vizuális nyelvét követve. */
.staff-stats-summary { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-bottom: 22px; }
.staff-stat-summary-tile {
  display: flex; align-items: center; gap: 12px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px;
}
.staff-stat-summary-value { font-size: 18px; font-weight: 800; color: var(--text); }

.staff-stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.staff-stat-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 20px 22px; box-shadow: 0 10px 30px rgba(0,0,0,.2);
  transition: transform .16s, border-color .16s;
}
.staff-stat-card:hover { transform: translateY(-3px); border-color: var(--gold-2); }
.staff-stat-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.staff-stat-card-name { font-size: 16px; font-weight: 800; }
.staff-stat-card-rank { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--gold); }
.staff-stat-rows { display: flex; flex-direction: column; gap: 12px; }
.staff-stat-row { display: flex; align-items: center; gap: 12px; }
.staff-stat-row-icon {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px;
  background: rgba(255,176,32,.1); border: 1px solid rgba(255,176,32,.22);
  display: flex; align-items: center; justify-content: center; color: var(--gold);
}
.staff-stat-row-icon svg { width: 17px; height: 17px; }
.staff-stat-row-label { font-size: 11px; color: var(--text-faint); }
.staff-stat-row-value { font-size: 14px; font-weight: 700; }

.ledger-table-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow-x: auto; }
.ledger-table { width: 100%; border-collapse: collapse; font-size: 13px; }
/* A Napló táblának (6 oszlop) van szüksége minimum szélességre, hogy ne
   zsúfolódjon össze - az Admin/Gép-panelek 2-3 oszlopos táblái viszont NEM
   kaphatják meg ugyanezt, mert egy fél-szélességű rácsban ez vízszintes
   túlcsordulást ("kilógást") okozott. */
[data-view="ledger"] .ledger-table { min-width: 720px; }
.ledger-table th {
  text-align: left; padding: 14px 18px; font-size: 11px; text-transform: uppercase; letter-spacing: .5px;
  color: var(--text-faint); border-bottom: 1px solid var(--line); white-space: nowrap;
}
.ledger-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--text-dim); vertical-align: top; }
.ledger-table tr:last-child td { border-bottom: none; }
.ledger-amount-positive { color: #2ecc71; font-weight: 700; white-space: nowrap; }
.ledger-amount-negative { color: var(--danger); font-weight: 700; white-space: nowrap; }
.ledger-amount-zero { color: var(--text-dim); font-weight: 700; white-space: nowrap; }
.ledger-balance { color: var(--text); font-weight: 700; white-space: nowrap; }
.ledger-empty { text-align: center; padding: 40px 20px; color: var(--text-faint); font-size: 13px; }

@media (max-width: 640px) {
  .ledger-filter-row { grid-template-columns: 1fr; }
}

/* Admin panel (játékos-profil, csak "tulajdonos" rangnak) + Gép-részletek */
.admin-panel { border-top: 3px solid var(--orange); margin-top: 24px; }
.admin-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 24px; }
.admin-info-item {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.admin-info-label { font-size: 11px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .5px; }

/* Email megjelenítés/szerkesztés - alapból csak olvasható szöveg + egy
   "Változtatás" link, ami felfedi a szerkeszthető mezőt (ld. app.js). */
.admin-email-view { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.admin-email-edit-row { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.admin-email-edit-row input {
  flex: 1; padding: 7px 10px; border-radius: 8px; font-size: 13px;
  background: var(--bg); border: 1px solid var(--line); color: var(--text); outline: none;
  transition: border-color .18s;
}
.admin-email-edit-row input:focus { border-color: var(--orange); }
.link-btn {
  background: none; border: none; padding: 0; margin: 0; white-space: nowrap;
  color: var(--orange); font-size: 12px; font-weight: 700; cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px; transition: color .16s;
}
.link-btn:hover { color: var(--gold); }

/* Fiók zárolása - a .ban-panel-t (ld. Gép-részletek nézet) ÚJRAHASZNÁLJUK
   itt is, hogy a két hely (kliens-tiltás / fiók-zárolás) egységes, modern
   megjelenést kapjon, nem külön-külön kialakított, eltérő stílust. */
.admin-lock-panel { margin-bottom: 24px; }
/* JAVÍTVA: a "Fiók végleges törlése" cím korábban közvetlenül a fenti
   .content-grid táblák alá lógott (egyik oldalon sem volt margó közöttük),
   emiatt vizuálisan egybefolyt velük - ez a felső margó választja el őket. */
.admin-danger-title { color: var(--danger); margin-top: 32px; }
.admin-delete-panel .btn-glow:disabled { cursor: not-allowed; opacity: .45; filter: none; }
#adminDeleteUsernameHint { color: var(--text); font-weight: 700; }
.ban-panel .btn-outline { width: 100%; margin-top: 10px; }
.admin-subsection-title { font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--orange); font-weight: 700; margin: 28px 0 14px; }

/* ÚJ: skin/köpeny törlés/tiltás sorai (ld. index.html #playerProfileAdminPanel) -
   a .ban-panel .btn-outline fenti szabálya "width: 100%"-ot ír elő, ami itt
   NEM kívánt (két gombnak kell egymás mellett elférnie), ezért a
   .admin-media-actions gombjait felülírjuk. */
.admin-media-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.admin-media-row:last-of-type { border-bottom: none; }
.admin-media-label { font-size: 13px; color: var(--text-dim); }
.admin-media-actions { display: flex; gap: 8px; flex-shrink: 0; }
.admin-media-actions .btn-outline, .admin-media-actions .btn-glow { width: auto; margin-top: 0; padding: 7px 14px; font-size: 12px; }
.admin-media-actions button:disabled { opacity: .4; cursor: default; }
.admin-tables-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.admin-table-title { font-size: 13px; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.device-link {
  background: transparent; border: 1px solid rgba(255,122,61,.4); color: var(--orange);
  border-radius: 8px; padding: 4px 10px; font-size: 12.5px; font-weight: 700; cursor: pointer;
  transition: background .16s, border-color .16s;
}
.device-link:hover { background: rgba(255,122,61,.12); border-color: var(--orange); }

.ban-panel label {
  display: block; font-size: 11px; color: var(--text-dim); margin: 16px 2px 6px;
  letter-spacing: .5px; text-transform: uppercase;
}
.ban-panel label:first-of-type { margin-top: 4px; }
.ban-panel input[type="text"], .ban-panel input[type="number"], .ban-panel select {
  width: 100%; padding: 12px 14px; border-radius: 11px;
  background: var(--bg); border: 1px solid var(--line); color: var(--text); font-size: 14px; outline: none;
  transition: border-color .18s;
}
.ban-panel input:focus, .ban-panel select:focus { border-color: var(--orange); }
.ban-duration-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ban-panel .btn-glow { width: 100%; margin-top: 20px; background: linear-gradient(180deg, var(--danger), #c23a3a); box-shadow: 0 8px 26px rgba(255,90,90,.35); color: #2a0606; }

@media (max-width: 760px) {
  .admin-tables-grid { grid-template-columns: 1fr; }
}

/* Skin nézet */
.skin-layout { display: flex; gap: 32px; align-items: flex-start; flex-wrap: wrap; }
.skin-upload-col { flex: 1; min-width: 260px; }
.skin-drop {
  border: 2px dashed var(--line); border-radius: 16px;
  padding: 42px; text-align: center; color: var(--text-faint);
  background: var(--panel-2); cursor: pointer; transition: border-color .18s, color .18s;
}
.skin-drop:hover { border-color: var(--gold); color: var(--text-dim); }
.skin-model-toggle { display: flex; gap: 10px; margin-top: 16px; }
.pill {
  padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--text-dim); cursor: pointer; font-size: 13px;
  transition: all .16s;
}
.pill.active { background: rgba(255,176,32,.12); color: var(--gold); border-color: rgba(255,176,32,.4); }
.skin-upload-col .btn-outline { width: 100%; margin-top: 16px; }
.skin-preview-col { display: flex; flex-direction: column; align-items: center; gap: 10px; flex-shrink: 0; }
#skinPreview3d { border-radius: 16px; background: var(--panel-2); border: 1px solid var(--line); cursor: grab; }
#skinPreview3d:active { cursor: grabbing; }
.skin-preview-hint { color: var(--text-faint); font-size: 12px; }

.skin-status { font-size: 13px; margin-top: 14px; color: var(--text-dim); }
.skin-status.error { color: var(--danger); }

/* Játékosok */
.text-accent { color: var(--gold); }

.player-search-panel {
  max-width: 640px; margin: 0 auto 32px; text-align: center; padding: 40px 34px;
  border-top: 3px solid var(--gold);
}
.player-search-title { font-size: 26px; font-weight: 800; margin-bottom: 22px; }
.player-search-label {
  display: block; font-size: 11px; color: var(--text-dim); text-transform: uppercase;
  letter-spacing: .5px; margin-bottom: 8px; text-align: left;
}
.player-search-row { display: flex; gap: 12px; }
.player-search-field {
  flex: 1; position: relative; display: flex; align-items: center;
}
.player-search-field svg {
  position: absolute; left: 16px; width: 17px; height: 17px; color: var(--text-faint);
  pointer-events: none; transition: color .18s;
}
.player-search-row input {
  width: 100%; padding: 14px 16px 14px 44px; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--line);
  color: var(--text); font-size: 14.5px; outline: none;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.player-search-row input::placeholder { color: var(--text-faint); }
.player-search-row input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(255,176,32,.14); background: var(--bg-2); }
.player-search-row input:focus + svg,
.player-search-field:focus-within svg { color: var(--gold); }
.btn-search {
  display: flex; align-items: center; gap: 8px;
  padding: 0 26px; border: none; border-radius: 999px; cursor: pointer;
  background: linear-gradient(180deg, var(--gold), var(--gold-2)); color: #1a1206;
  font-weight: 700; font-size: 13px; transition: filter .16s, transform .16s;
  box-shadow: 0 8px 22px var(--gold-glow);
}
.btn-search:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-search:active { transform: translateY(1px); }

.player-result-heading { font-size: 20px; font-weight: 800; margin-bottom: 18px; }
.player-result-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.player-card {
  display: flex; align-items: center; gap: 14px; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px; transition: transform .16s, border-color .16s;
}
.player-card:hover { transform: translateY(-3px); border-color: var(--gold-2); }
.player-card-canvas { border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); flex-shrink: 0; }
.player-card-info { flex: 1; min-width: 0; }
.player-card-label { font-size: 10px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-faint); margin-bottom: 2px; }
.player-card-name { font-weight: 700; font-size: 15px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-result-note { color: var(--text-dim); font-size: 13px; text-align: center; margin-top: 10px; }

/* ÚJ: főoldali "Barátok" kártya (ld. app.js loadHomeFriends) - a .player-card
   mintáját újrahasznosítja, csak a névszín jelzi zölden az elérhető
   barátokat (ugyanaz a zöld, mint a .ledger-amount-positive-nél). */
.friend-card-name.online { color: #2ecc71; }
#homeFriendsCard .player-result-grid { margin-top: 4px; }

.btn-back {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
  background: transparent; border: none; color: var(--text-dim); cursor: pointer;
  font-size: 13px; font-weight: 600; padding: 4px 0; transition: color .16s;
}
.btn-back:hover { color: var(--gold); }

/* ── Oldalsó "side rail" (Support + Gyors elérés) - minden alfülön ugyanaz a
   komponens jelenik meg jobb oldalt, JS tölti fel (ld. renderSideRail()),
   hogy a tartalomterület sose maradjon üresen jobbra. ── */
.side-card { text-align: center; }
.side-card-icon {
  width: 48px; height: 48px; margin: 0 auto 16px; border-radius: 14px;
  background: rgba(88,101,242,.14); border: 1px solid rgba(88,101,242,.3);
  display: flex; align-items: center; justify-content: center; color: var(--discord);
}
.side-card-title { font-weight: 800; font-size: 16px; margin-bottom: 8px; }
.side-card-desc { color: var(--text-dim); font-size: 13px; line-height: 1.6; margin-bottom: 4px; }

/* ── Kódbeváltás "hogyan működik" sáv ── */
.how-it-works { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-top: 24px; }
.how-step {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 22px;
}
.how-step-num {
  width: 32px; height: 32px; border-radius: 10px; margin-bottom: 12px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #1a1206;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px;
}
.how-step-title { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.how-step-desc { color: var(--text-dim); font-size: 12.5px; line-height: 1.6; }

/* ── Jogi dokumentumok nézet ── */
.legal-tabs { display: flex; gap: 10px; margin-bottom: 20px; }
.legal-tab {
  background: var(--panel); border: 1px solid var(--line); color: var(--text-dim);
  padding: 10px 20px; border-radius: 11px; cursor: pointer; font-weight: 700;
  font-size: 13px; transition: all .16s;
}
.legal-tab:hover { color: var(--text); }
.legal-tab.active { background: linear-gradient(180deg, var(--gold), var(--gold-2)); color: #1a1206; box-shadow: 0 6px 18px var(--gold-glow); }
.legal-card { max-width: 900px; }
.legal-panel { display: none; }
.legal-panel.active { display: block; animation: fadeSlideUp .3s ease both; }
.legal-panel h3 { font-size: 19px; margin-bottom: 18px; }
.legal-panel h4 { color: var(--gold); font-size: 14px; margin: 22px 0 8px; }
.legal-panel h4:first-of-type { margin-top: 0; }
.legal-panel p { color: var(--text-dim); font-size: 13.5px; line-height: 1.8; margin-bottom: 6px; }
.legal-panel ul { color: var(--text-dim); font-size: 13.5px; line-height: 1.9; padding-left: 20px; margin-bottom: 6px; }
.legal-panel b { color: var(--text); }

/* ── Modál (süti beállítások) ── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(5,5,7,.7); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; z-index: 100;
  animation: fadeSlideUp .18s ease both;
}
.modal-card {
  width: 420px; max-width: calc(100vw - 40px); background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: 18px; padding: 30px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.modal-card h3 { font-size: 18px; margin-bottom: 10px; }
.modal-card p { font-size: 13px; color: var(--text-dim); line-height: 1.6; margin-bottom: 18px; }
.cookie-options { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }
.modal-actions { display: flex; gap: 10px; }
.modal-actions button { flex: 1; margin-top: 0; }
.btn-outline {
  padding: 12px; border-radius: 11px; cursor: pointer; font-size: 13px; font-weight: 700;
  background: transparent; color: var(--text); border: 1px solid var(--line);
  transition: border-color .16s, background .16s;
}
.btn-outline:hover { border-color: var(--gold); background: rgba(255,176,32,.06); }

/* Vásárlás sikeres-visszaigazolás modál (Stripe checkoutból visszatérve) */
.purchase-success-card { text-align: center; }
.purchase-success-icon {
  width: 64px; height: 64px; margin: 0 auto 18px; color: #2ecc71;
  border: 2px solid #2ecc71; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 24px rgba(46,204,113,.25);
  animation: purchaseCheckPop .35s cubic-bezier(.34,1.56,.64,1) both;
}
.purchase-success-icon svg { width: 34px; height: 34px; }
.purchase-success-card h3 { text-align: center; }
.purchase-success-card .modal-actions { justify-content: center; }
.purchase-success-card .modal-actions button { flex: 0 1 160px; }
@keyframes purchaseCheckPop {
  from { transform: scale(.4); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Ajándékozás modál (címzett/üzenet bekérése) és az ajándék-értesítés
   idézett üzenete - a .transfer-card input-hoz hasonló mezőstílus, de a
   modal-card-on belül is használható (nem csak a .transfer-card-on belül). */
.gift-modal-label {
  display: block; font-size: 11px; color: var(--text-dim); margin: 14px 2px 6px;
  letter-spacing: .5px; text-transform: uppercase; text-align: left;
}
.gift-modal-input {
  width: 100%; padding: 12px 14px; border-radius: 11px; font-family: inherit;
  background: var(--bg); border: 1px solid var(--line); color: var(--text); font-size: 14px; outline: none;
  transition: border-color .18s; resize: vertical;
}
.gift-modal-input:focus { border-color: var(--gold); }
.gift-message {
  font-style: italic; color: var(--text); background: rgba(255,176,32,.06);
  border: 1px solid rgba(255,176,32,.2); border-radius: 10px; padding: 12px 14px; margin: -8px 0 18px;
}

@media (max-width: 760px) {
  .app-shell { flex-direction: column; }
  .app-sidebar { width: 100%; height: auto; position: relative; flex-direction: row; overflow-x: auto; padding: 12px; }
  .app-brand, .app-nav-spacer { display: none; }
  .app-nav { flex-direction: row; }
  .app-nav-bottom { border-top: none; border-left: 1px solid var(--line); padding-top: 0; padding-left: 12px; flex-direction: row; }
  .app-content { padding: 24px 18px; }
}

/* ── Animációk ── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.auth-split { animation: fadeSlideUp .5s cubic-bezier(.2,.7,.3,1) both; }
.app-shell:not(.hidden) .app-sidebar { animation: fadeSlideUp .45s cubic-bezier(.2,.7,.3,1) both; }

.view { animation: fadeSlideUp .35s cubic-bezier(.2,.7,.3,1) both; }

.app-nav-item { position: relative; overflow: hidden; }
.app-nav-item::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: rgba(255,255,255,.08); opacity: 0; transform: scale(.6);
  transition: opacity .3s, transform .3s;
}
.app-nav-item:active::after { opacity: 1; transform: scale(1); transition: 0s; }

.card { animation: fadeSlideUp .4s cubic-bezier(.2,.7,.3,1) both; }
.stat-badge { animation: fadeSlideUp .4s cubic-bezier(.2,.7,.3,1) both; }
.stat-badge:nth-child(2) { animation-delay: .04s; }
.stat-badge:nth-child(3) { animation-delay: .08s; }
.stat-badge:nth-child(4) { animation-delay: .12s; }
.stat-badge:nth-child(5) { animation-delay: .16s; }
.stat-badge:nth-child(6) { animation-delay: .2s; }

.topbar-dropdown { animation: dropdownOpen .16s ease both; transform-origin: top left; }
@keyframes dropdownOpen {
  from { opacity: 0; transform: scale(.92) translateY(-6px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
