:root{
  color-scheme: dark;
  --bg: #0a0f1e;
  --bg-2: #0b1224;
  --panel: rgba(17,24,39,.62);
  --panel-strong: rgba(29,35,58,.75);
  --line: rgba(148,163,184,.22);
  --text: #e6e8f0;
  --muted: #9aa5b1;
  --primary: #7dd3fc;
  --primary-2: #a78bfa;
  --accent: #22d3ee;
  --danger: #f87171;
  --success: #4ade80;
    /* Rang színek */
  --role-bronze: #9d9d9d;
  --role-silver: #0070dd;
  --role-gold: #a335ee;
  --role-unlimited: #ff8000;
  --role-editor: #1eff00;
  --role-vip: #e6cc80;
  --role-tartalomgyarto: #00ccff;
  --role-admin: #ff0000;
}

*,
*::before,
*::after{
  box-sizing: border-box;
}

html, body{
  min-height: 100%;
}

body{
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, Helvetica, sans-serif;
  background-color: #070a13; /* egyszínű háttér, nincs több gradient-lap */
}

body::before,
body::after{
  content: "";
  position: fixed;
  inset: auto;
  z-index: -1;
  filter: blur(40px);
  opacity: .6;
  pointer-events: none;
}

body::before{
  left: 10%;
  top: 6%;
  width: 380px;
  height: 220px;
  background: linear-gradient(90deg, #6236ff, #00e7ff);
}

body::after{
  right: 8%;
  top: 18%;
  width: 320px;
  height: 180px;
  background: linear-gradient(90deg, #00e7ff, #9b5cff);
}

a{
  color: var(--primary);
  text-decoration: none;
}

a:hover{
  text-decoration: underline;
}

.shell{
  max-width: 900px;
  margin: 0 auto;
  padding: 28px 18px 80px;
}

/* Topbar */

.topbar{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--muted);
}

.topbar-left{
  font-family: Orbitron, Inter, sans-serif;
  letter-spacing: .4px;
  font-size: 14px;
}

.topbar a{
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
}

.topbar a:hover{
  color: var(--primary);
}

/* Címek */

.title{
  text-align: left;
  margin: 0 0 8px;
  font-family: Orbitron, Inter, sans-serif;
  letter-spacing: .5px;
  font-weight: 600;
}

.title span{
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 18px rgba(125,211,252,.15);
  font-size: clamp(20px, 2.5vw, 26px);
}

.subtitle{
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--muted);
}

/* Kártyák, panelek */

.card{
  border: 1px solid var(--line);
  border-radius: 18px;
  backdrop-filter: blur(12px);
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02)),
    var(--panel);
  box-shadow: 0 10px 40px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.02);
  padding: 20px 18px 22px;
}

/* Sötét select mezőkhöz közös osztály */

.select-dark{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:linear-gradient(180deg, rgba(15,23,42,.95), rgba(15,23,42,1));
  color:var(--text);
  outline:none;
}

/* Legördülő lista háttere/betűszíne */
.select-dark option{
  background-color:#020617;
  color:var(--text);
}

.select-dark:focus{
  border-color:rgba(167,139,250,.55);
  box-shadow:0 0 0 3px rgba(167,139,250,.18);
}



/* Form mezők */

.field,
.auth-field{
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.field label,
.auth-field label{
  font-size: 13px;
  color: var(--muted);
}

.field input,
.field textarea,
.auth-field input,
.auth-field textarea{
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  color: var(--text);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  font: inherit;
}

.field input::placeholder,
.field textarea::placeholder,
.auth-field input::placeholder,
.auth-field textarea::placeholder{
  color: #9aa4b1;
}

.field input:focus,
.field textarea:focus,
.auth-field input:focus,
.auth-field textarea:focus{
  border-color: rgba(125,211,252,.6);
  box-shadow: 0 0 0 3px rgba(125,211,252,.18);
}

/* Gombok */

button{
  position: relative;
  border-radius: 14px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  cursor: pointer;
  color: var(--text);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  font-size: 14px;
  font-weight: 500;
  transition: transform .08s ease-out, box-shadow .2s, border-color .2s, background .2s;
}

button:hover{
  border-color: rgba(167,139,250,.55);
  box-shadow: 0 0 0 3px rgba(167,139,250,.18);
}

button:active{
  transform: translateY(1px);
}

button:disabled{
  opacity: .55;
  cursor: default;
  box-shadow: none;
}

.btn-primary{
  background:
    radial-gradient(circle at 0 0, rgba(125,211,252,.3), transparent 55%),
    radial-gradient(circle at 100% 0, rgba(167,139,250,.3), transparent 55%),
    linear-gradient(180deg, rgba(15,23,42,.9), rgba(15,23,42,.98));
  border-color: rgba(56,189,248,.5);
}

.btn-primary:hover{
  border-color: rgba(56,189,248,.8);
  box-shadow:
    0 0 0 1px rgba(56,189,248,.6),
    0 0 24px rgba(56,189,248,.3);
}

.btn-secondary{
  background: linear-gradient(180deg, rgba(148,163,184,.15), rgba(15,23,42,.95));
}

/* Auth linkek */

.links,
.auth-links{
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.links a,
.auth-links a{
  color: var(--primary);
  text-decoration: none;
}

.links a:hover,
.auth-links a:hover{
  text-decoration: underline;
}

/* Alert dobozok */

.alert,
.auth-error,
.auth-info{
  border-radius: 12px;
  padding: 8px 10px;
  margin-bottom: 8px;
  font-size: 13px;
}

.alert-info,
.auth-info{
  background: rgba(125,211,252,.08);
  border: 1px solid rgba(125,211,252,.5);
  color: #e0f2fe;
}

.alert-error,
.auth-error{
  background: rgba(248,113,113,.08);
  border: 1px solid rgba(248,113,113,.5);
  color: #fecaca;
}

/* Oldalspecifikus blokkokhoz pár extra */

.auth-card{
  max-width: 480px;
}

/* Lábléc */

.site-footer{
  margin-top: 32px;
  border-top: 1px solid rgba(148,163,184,.3);
  padding: 12px 18px 20px;
  font-size: 12px;
  color: var(--muted);
}

.site-footer-inner{
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.site-footer-brand{
  font-weight: 600;
}

.site-footer-copy{
  margin-left: 8px;
}

.footer-links{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links a{
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover{
  color: var(--primary);
}

/* Adatvédelmi oldal */

.policy-content{
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}

.policy-content h2{
  margin-top: 18px;
  margin-bottom: 6px;
  font-size: 16px;
}

.policy-content h3{
  margin-top: 14px;
  margin-bottom: 4px;
  font-size: 15px;
}

.policy-content p{
  margin: 4px 0 8px;
}

.policy-content ul{
  margin: 4px 0 10px 18px;
  padding: 0;
}

/* Kapcsolat */

.contact-list{
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  font-size: 14px;
}

.contact-list li{
  margin-bottom: 4px;
}

/* Cookie banner */

.cookie-banner{
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 520px;
  z-index: 60;
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(15,23,42,.98), rgba(15,23,42,.97)),
    var(--panel-strong);
  box-shadow:
    0 18px 40px rgba(0,0,0,.7),
    0 0 0 1px rgba(255,255,255,.03);
  padding: 12px 14px 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.cookie-banner.hidden{
  display: none;
}

.cookie-banner-main{
  flex: 1 1 auto;
}

.cookie-banner-title{
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.cookie-banner-text{
  font-size: 12px;
  color: var(--muted);
}

.cookie-banner-text a{
  color: var(--primary);
}

.cookie-banner-actions{
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 0 0 auto;
}

.cookie-banner-actions button{
  font-size: 12px;
  padding: 7px 10px;
}

.cookie-banner-actions .btn-secondary{
  background: rgba(15,23,42,.9);
}

/* Mobil */

@media (max-width: 600px){
  .shell{
    padding-top: 20px;
  }
  .card{
    padding: 16px 14px 18px;
  }
  .cookie-banner{
    padding: 10px 12px;
    bottom: 10px;
  }
}

/* Admin táblázatok és jelölők */

.table-admin{
  width:100%;
  border-collapse:collapse;
  font-size:12px;
}

.table-admin thead{
  background:rgba(15,23,42,.8);
}

.table-admin th,
.table-admin td{
  padding:6px 8px;
  border-bottom:1px solid rgba(148,163,184,.25);
  vertical-align:top;
}

.table-admin th{
  text-align:left;
  font-weight:600;
  color:var(--muted);
  white-space:nowrap;
}

.table-admin tr:last-child td{
  border-bottom:none;
}

.table-admin tr:nth-child(even){
  background:rgba(15,23,42,.4);
}

.pill{
  display:inline-block;
  padding:2px 8px;
  border-radius:999px;
  border:1px solid var(--line);
  font-size:11px;
  color:var(--muted);
  margin-left:6px;
}

.no-rows{
  font-size:13px;
  color:var(--muted);
  text-align:center;
  padding:12px 0 4px;
}

/* CTA gombok a szöveg alatt */
.cta-actions{
  margin-top: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;

  border: 1px solid var(--line);
  transition: transform .08s ease-out, box-shadow .2s, border-color .2s, background .2s, color .2s;
  user-select: none;
}

.btn-cta:active{
  transform: translateY(1px);
}

.btn-cta:focus-visible{
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* Ritka */
.btn-cta-silver{
  background: rgba(192,192,192,0.15);
  border-color: rgba(192,192,192,0.30);
  color: #c0c0c0;
}

.btn-cta-silver:hover{
  background: rgba(192,192,192,0.25);
  border-color: rgba(192,192,192,0.45);
  color: #e5e7eb;
  box-shadow: 0 0 0 3px rgba(192,192,192,0.12);
}

/* Epikus */
.btn-cta-gold{
  background: rgba(251,191,36,0.15);
  border-color: rgba(251,191,36,0.30);
  color: #fbbf24;
}

.btn-cta-gold:hover{
  background: rgba(251,191,36,0.25);
  border-color: rgba(251,191,36,0.50);
  color: #fde68a;
  box-shadow: 0 0 0 3px rgba(251,191,36,0.12);
}

/* Rang badge-ek */
.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.role-badge.bronze {
  color: var(--role-bronze);
  background: rgba(157, 157, 157, 0.15);
  border: 1px solid rgba(157, 157, 157, 0.3);
}

.role-badge.silver {
  color: var(--role-silver);
  background: rgba(0, 112, 221, 0.15);
  border: 1px solid rgba(0, 112, 221, 0.3);
}

.role-badge.gold {
  color: var(--role-gold);
  background: rgba(163, 53, 238, 0.15);
  border: 1px solid rgba(163, 53, 238, 0.3);
}

.role-badge.unlimited {
  color: var(--role-unlimited);
  background: rgba(255, 128, 0, 0.15);
  border: 1px solid rgba(255, 128, 0, 0.3);
}

.role-badge.editor {
  color: var(--role-editor);
  background: rgba(30, 255, 0, 0.15);
  border: 1px solid rgba(30, 255, 0, 0.3);
}

.role-badge.vip {
  color: var(--role-vip);
  background: rgba(230, 204, 128, 0.15);
  border: 1px solid rgba(230, 204, 128, 0.3);
}

.role-badge.tartalomgyarto {
  color: var(--role-tartalomgyarto);
  background: rgba(0, 204, 255, 0.15);
  border: 1px solid rgba(0, 204, 255, 0.3);
}

.role-badge.admin {
  color: var(--role-admin);
  background: rgba(255, 0, 0, 0.15);
  border: 1px solid rgba(255, 0, 0, 0.3);
}

/* Klipfal és egyéb helyeken username színezés */
.username-colored.bronze { color: var(--role-bronze); }
.username-colored.silver { color: var(--role-silver); }
.username-colored.gold { color: var(--role-gold); }
.username-colored.unlimited { color: var(--role-unlimited); }
.username-colored.editor { color: var(--role-editor); }
.username-colored.vip { color: var(--role-vip); }
.username-colored.tartalomgyarto { color: var(--role-tartalomgyarto); }
.username-colored.admin { color: var(--role-admin); }
