:root{
  --bg: #05060f;

  --panel: rgba(255,255,255,.06);
  --panel2: rgba(255,255,255,.09);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.68);
  --line: rgba(255,255,255,.12);
  --shadow: 0 18px 70px rgba(0,0,0,.55);

  /* KÉK–LILA PALETTA */
  --b1: #2b6cff;   /* blue */
  --b2: #7c3aed;   /* violet */
  --b3: #22d3ee;   /* cyan */
  --b4: #a855f7;   /* purple */

  --ok: #22d3ee;   /* cyan */
  --warn: #a855f7; /* purple */

  --r-xl: 28px;
  --r-lg: 18px;
  --r-md: 14px;
}

*{ box-sizing:border-box; }
html, body{ height:100%; }
body{
  margin:0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  overflow-x:hidden;

  /* Alap háttér szín (ha valaki nem látja a rétegeket) */
  background: var(--bg);
}

/* FULLSCREEN háttér réteg — ettől nem lesz “kicsi”/levágott */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;

  /* Kék–lila glowk + finom vignetta */
  background:
    radial-gradient(1200px 700px at 15% 10%, rgba(43,108,255,.35), transparent 60%),
    radial-gradient(900px 600px at 85% 20%, rgba(124,58,237,.35), transparent 55%),
    radial-gradient(1200px 800px at 55% 95%, rgba(34,211,238,.30), transparent 60%),
    radial-gradient(900px 700px at 20% 85%, rgba(168,85,247,.28), transparent 62%),
    radial-gradient(1400px 900px at 50% 50%, rgba(0,0,0,.15), rgba(0,0,0,.55) 70%),
    linear-gradient(180deg, #05060f, #04040b);
  background-attachment: fixed;
  transform: translateZ(0);
}

/* plus glow layer (nagyon finom), hogy “premium” legyen */
body::after{
  content:"";
  position: fixed;
  inset: -120px;
  z-index: -3;
  pointer-events:none;
  background:
    radial-gradient(500px 500px at 25% 20%, rgba(34,211,238,.10), transparent 60%),
    radial-gradient(600px 600px at 80% 30%, rgba(168,85,247,.10), transparent 60%),
    radial-gradient(700px 700px at 55% 85%, rgba(43,108,255,.10), transparent 62%);
  filter: blur(20px);
  opacity: .85;
  transform: translateZ(0);
}

/* Grain — fullscreen, fixen */
.grain{
  pointer-events:none;
  position:fixed;
  inset:-200px;
  opacity:.07;
  z-index:-1;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  transform:translateZ(0);
  animation: drift 12s linear infinite;
  mix-blend-mode: overlay;
}
@keyframes drift { from{transform:translate(-3%, -2%)} to{transform:translate(3%, 2%)} }

.wrap{
  position:relative;
  width:min(1180px, calc(100% - 40px));
  margin-inline:auto;
  padding: 18px 0 70px;
}

/* Sticky nav */
header{
  position:sticky;
  top: 12px;
  z-index:50;
  margin: 10px 0 26px;
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding: 12px 14px;
  background: rgba(8,10,20,.60);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 40px rgba(0,0,0,.35);
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  padding-left: 8px;
  text-decoration:none;
  color:var(--text);
}

.logo{
  width:36px;height:36px;border-radius:12px;
  background:
    radial-gradient(16px 16px at 30% 30%, rgba(255,255,255,.28), transparent 60%),
    linear-gradient(135deg, rgba(34,211,238,.95), rgba(124,58,237,.85));
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.18);
}

.brand strong{ font-weight: 900; letter-spacing:.2px; }
.brand span{ display:block; font-size:12px; color:var(--muted); margin-top:-1px; }

.navlinks{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.pill{
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--text);
  text-decoration:none;
  padding:10px 12px;
  border-radius:999px;
  font-weight:900;
  font-size:13px;
  transition: .18s ease;
}

.pill:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.18);
}

.pill.primary{
  border-color: rgba(34,211,238,.35);
  background: linear-gradient(135deg, rgba(34,211,238,.18), rgba(124,58,237,.18));
}

.pill.primary:hover{
  border-color: rgba(168,85,247,.50);
  background: linear-gradient(135deg, rgba(34,211,238,.24), rgba(168,85,247,.18));
}

.pill.active{
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.09);
}

/* Hero */
.hero{
  position:relative;
  padding: 34px 18px 20px;
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow:hidden;
}

.hero::before{
  content:"";
  position:absolute; inset:-2px;
  background:
    radial-gradient(900px 400px at 15% 15%, rgba(43,108,255,.20), transparent 60%),
    radial-gradient(800px 420px at 85% 25%, rgba(124,58,237,.18), transparent 60%),
    radial-gradient(900px 460px at 60% 95%, rgba(34,211,238,.16), transparent 60%),
    radial-gradient(700px 420px at 20% 85%, rgba(168,85,247,.14), transparent 62%);
  pointer-events:none;
}

.heroGrid{
  position:relative;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  align-items:stretch;
}
@media (max-width: 900px){
  .heroGrid{ grid-template-columns: 1fr; }
}

.kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 7px 10px;
  border-radius:999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
  backdrop-filter: blur(10px);
  font-weight: 900;
  font-size: 12px;
  letter-spacing:.6px;
  text-transform: uppercase;
  color: rgba(255,255,255,.82);
}

.dot{
  width:8px;height:8px;border-radius:50%;
  background: var(--ok);
  box-shadow: 0 0 0 6px rgba(34,211,238,.12);
}

h1{
  margin: 14px 0 10px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.02;
  letter-spacing:-.8px;
}

.sub{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 62ch;
}

.ctaRow{ display:flex; gap:10px; flex-wrap:wrap; margin-top: 12px; }

.btn{
  cursor:pointer;
  border:none;
  border-radius: 16px;
  padding: 12px 14px;
  font-weight: 900;
  font-size: 14px;
  color: var(--text);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  transition:.18s ease;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:10px;
}

.btn:hover{ transform: translateY(-1px); background: rgba(255,255,255,.09); }
.btn.primary{
  background: linear-gradient(135deg, rgba(34,211,238,.24), rgba(168,85,247,.18));
  border-color: rgba(34,211,238,.35);
}

.panel{
  border-radius: var(--r-xl);
  border:1px solid var(--line);
  background: rgba(0,0,0,.22);
  backdrop-filter: blur(10px);
  overflow:hidden;
  box-shadow: 0 16px 55px rgba(0,0,0,.45);
  padding: 16px;
}

.statGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}
.stat{
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  border-radius: 16px;
  padding: 12px;
}
.stat b{ display:block; font-size:12px; color:var(--muted); letter-spacing:.3px; }
.stat span{ display:block; font-size:16px; font-weight:900; margin-top:4px; }

.divider{
  height:1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.14), transparent);
  margin: 22px 0;
}

.sectionHead{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin: 12px 0 12px;
}
.sectionHead h2{
  margin:0;
  font-size: 22px;
  letter-spacing:-.2px;
}
.sectionHead p{
  margin:0;
  color: var(--muted);
  max-width: 70ch;
  line-height:1.6;
}

.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.card{
  grid-column: span 4;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.05);
  box-shadow: 0 14px 50px rgba(0,0,0,.35);
  overflow:hidden;
  transition: .18s ease;
  position:relative;
}
.card:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.18);
}

.card .top{
  padding: 14px 14px 10px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.badge{
  font-size:12px;
  font-weight:900;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.20);
  color: rgba(255,255,255,.82);
  white-space:nowrap;
}
.title{
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -.2px;
  margin:0;
}
.subtitle{
  margin: 6px 0 0;
  color: var(--muted);
  line-height:1.55;
  font-size: 14px;
}

.card .body{
  padding: 0 14px 14px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.metaRow{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.chip{
  font-size:12px;
  font-weight:900;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.86);
}
.chip.ok{ border-color: rgba(0, 0, 0, 0.3); background: rgba(34,211,238,.10); }
.chip.warn{ border-color: rgba(168,85,247,.30); background: rgba(168,85,247,.10); }

.links{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top: 2px;
}

.linkBtn{
  text-decoration:none;
  color: var(--text);
  font-weight:900;
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  transition: .18s ease;
}
.linkBtn:hover{ transform: translateY(-1px); background: rgba(255,255,255,.07); }

.small{
  color: var(--muted);
  line-height:1.6;
  margin: 8px 0 0;
  font-size: 14px;
  max-width: 85ch;
}

footer{
  margin-top: 26px;
  color: rgba(255,255,255,.55);
  font-size: 13px;
  text-align:center;
}

/* Member avatar */
.avatar{
  width:44px;
  height:44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.25);
  overflow:hidden;
  flex: 0 0 auto;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
.avatar img{
  width:100%;
  height:100%;
  display:block;
  image-rendering: pixelated;
}

.topLeft{
  display:flex;
  gap:10px;
  align-items:center;
  min-width:0;
}
.truncate{ min-width:0; }
.truncate .title, .truncate .subtitle{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

@media (max-width: 980px){ .card{ grid-column: span 6; } }
@media (max-width: 620px){
  .card{ grid-column: span 12; }
  .nav{ border-radius: 22px; }
  .statGrid{ grid-template-columns: 1fr; }
}
/* ===== TIER CHIPEK (kék-lila témához) ===== */
.chip.tier-s{ border-color: rgba(34,211,238,.45); background: rgba(34,211,238,.14); }
.chip.tier-a{ border-color: rgba(168,85,247,.45); background: rgba(168,85,247,.14); }
.chip.tier-b{ border-color: rgba(43,108,255,.45); background: rgba(43,108,255,.14); }
.chip.tier-c{ border-color: rgba(124,58,237,.45); background: rgba(124,58,237,.14); }
.chip.tier-d{ border-color: rgba(255,255,255,.20); background: rgba(255,255,255,.07); }

/* ===== Karakter kép a tagkártyában ===== */
.bodyshot{
  width: 96px;
  height: 140px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
  overflow:hidden;
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
  flex: 0 0 auto;
}
.bodyshot img{
  width:100%;
  height:100%;
  display:block;
  object-fit: cover;
  image-rendering: pixelated;
}

.memberMain{
  display:flex;
  gap:12px;
  align-items:flex-start;
  min-width:0;
}

/* Csapat lista (tagok oldal tetején) */
.teamList{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.teamLine{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}
/* ===== Tag kereső + modal + nagyobb leírás ===== */

.searchBar{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  border-radius: 18px;
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 50px rgba(0,0,0,.30);
}

.searchBar .left{
  display:flex;
  align-items:center;
  gap:10px;
  flex: 1 1 360px;
  min-width: 260px;
}

.searchInput{
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  outline: none;
  font-weight: 800;
}
.searchInput::placeholder{ color: rgba(255,255,255,.45); }

.countPill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 10px 12px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  font-weight: 900;
  font-size: 13px;
  white-space: nowrap;
}

/* Kártyán legyen nagyobb, több soros leírás */
.memberDesc{
  margin: 8px 0 0;
  color: rgba(255,255,255,.74);
  line-height: 1.65;
  font-size: 15px;
  white-space: normal;         /* fontos: ne vágja le */
  overflow: visible;
}

/* Tag kártya kattintható */
.memberCard{
  cursor: pointer;
}
.memberCard:active{
  transform: translateY(0px) scale(.995);
}

/* ===== Modal ===== */
.modalOverlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(10px);
  display: none;
  z-index: 9999;
  padding: 18px;
}
.modalOverlay.open{ display: flex; }

.modal{
  width: min(1050px, 100%);
  margin: auto;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(10,12,24,.72);
  box-shadow: 0 22px 90px rgba(0,0,0,.65);
  overflow: hidden;
}

.modalTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.20);
}

.modalTop .titleLine{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.modalClose{
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.9);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 900;
  cursor: pointer;
}

.modalBody{
  display:grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 14px;
  padding: 14px;
}
@media (max-width: 900px){
  .modalBody{ grid-template-columns: 1fr; }
}

.viewerWrap{
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  overflow:hidden;
  padding: 12px;
}
.viewerCanvas{
  width: 100%;
  height: 420px;
  display:block;
  border-radius: 16px;
  background: rgba(0,0,0,.25);
}
@media (max-width: 900px){
  .viewerCanvas{ height: 360px; }
}

.viewerControls{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  margin-top: 10px;
}

.range{
  width: min(360px, 100%);
}

.profileBox{
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  padding: 14px;
}

.profileBox h3{
  margin: 0;
  font-size: 18px;
  letter-spacing: -.2px;
}
.profileBox .bigDesc{
  margin: 10px 0 0;
  color: rgba(255,255,255,.78);
  font-size: 16px;
  line-height: 1.75;
}

.profileMeta{
  margin-top: 12px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.profileLinks{
  margin-top: 12px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
/* ===== Rang chipek ===== */
.chip.rank-owner{ border-color: rgba(255,215,0,.55); background: rgba(255,215,0,.14); }
.chip.rank-admin{ border-color: rgba(255,80,180,.50); background: rgba(255,80,180,.14); }
.chip.rank-mod{ border-color: rgba(80,255,180,.45); background: rgba(80,255,180,.12); }
.chip.rank-member{ border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.06); }
