:root{
  --bg:#060914;
  --bg2:#0A1024;

  --card: rgba(255,255,255,.06);
  --card2: rgba(255,255,255,.08);

  --border: rgba(255,255,255,.10);
  --text:#EAF0FF;
  --muted: rgba(234,240,255,.72);

  --accent:#4CC9F0;
  --accent2:#6C63FF;

  --shadow: 0 18px 60px rgba(0,0,0,.55);
  --r:18px;
}

*{box-sizing:border-box}

/* ===== GLOBAL STICKY FOOTER (FIX) ===== */
html, body{
  height:100%;
  margin:0;
}

body{
  min-height:100vh;
  display:flex;
  flex-direction:column;

  margin:0;
  font-family: Inter, Arial, system-ui;
  color:var(--text);

  /* 🔥 GLOBÁLIS NIIGHT HÁTTÉR */
  background:
    linear-gradient(135deg, rgba(6,9,20,.88), rgba(10,16,36,.88)),
    url("/assets/img/niight-header.jpg") center / cover no-repeat fixed,
    radial-gradient(900px 520px at 20% 10%, rgba(76,201,240,.18), transparent 60%),
    radial-gradient(900px 520px at 80% 12%, rgba(108,99,255,.18), transparent 60%),
    radial-gradient(700px 520px at 55% 92%, rgba(76,201,240,.10), transparent 55%);
}

a{color:var(--accent);text-decoration:none}
a:hover{opacity:.9}

.container{
  flex:1; /* 🔥 EZ TOLJA LE A FOOTERT ALULRA */
  width:min(1100px, calc(100% - 32px));
  margin:0 auto;
  padding:28px 0 64px;
}

/* ===== Card (glass) ===== */
.card{
  background: linear-gradient(180deg, var(--card2), var(--card));
  border:1px solid var(--border);
  border-radius: var(--r);
  padding:18px;
  margin:14px 0;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

/* ===== HERO kiemelés (tedd a hero cardra: class="card hero-card") ===== */
.hero-card{
  padding:28px;
  background:
    radial-gradient(600px 240px at 20% 0%, rgba(76,201,240,.20), transparent 60%),
    radial-gradient(520px 220px at 85% 25%, rgba(108,99,255,.16), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
  border-color: rgba(76,201,240,.35);
}

/* ===== Featured blokk (tedd rá: class="featured") ===== */
.featured{
  background: rgba(0,0,0,.25);
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  padding:16px;
}

/* ===== Buttons ===== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 14px;
  border:1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  color:var(--text);
  background: rgba(255,255,255,.05);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}

.btn:hover{
  transform: translateY(-1px);
  border-color: rgba(76,201,240,.35);
  box-shadow: 0 10px 30px rgba(76,201,240,.14);
  background: rgba(255,255,255,.07);
}

.btn-primary{
  border-color: rgba(76,201,240,.45) !important;
  background: linear-gradient(90deg, rgba(76,201,240,.20), rgba(108,99,255,.14)) !important;
  box-shadow: 0 14px 40px rgba(76,201,240,.12);
  color: var(--text) !important;
}

.btn-sm{
  padding:8px 11px;
  border-radius: 11px;
  font-size: 13px;
}

.btn.is-on{
  border-color: rgba(76,201,240,.45);
  box-shadow: 0 12px 40px rgba(76,201,240,.10);
}

/* Gyorslink gombok (tedd rá: class="btn quick") */
.btn.quick{
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border-color: rgba(255,255,255,.12);
}

.btn.quick:hover{
  border-color: rgba(76,201,240,.45);
  box-shadow: 0 12px 40px rgba(76,201,240,.18);
}

/* ===== Typo ===== */
h1,h2,h3{margin-top:0}
h1{
  font-size: clamp(26px, 3vw, 40px);
  line-height:1.05;
  letter-spacing:-.02em;
}
.meta{
  color:var(--muted);
  font-size:13px;
  line-height:1.45;
}

/* ===== NAVBAR ===== */
.navbar{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(6,9,20,.55);
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow:
    inset 0 -1px 0 rgba(76,201,240,.25),
    0 10px 40px rgba(0,0,0,.45);
}

.nav-inner{
  width:min(1100px, calc(100% - 32px));
  margin:0 auto;
  padding:12px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.brand{
  font-weight:900;
  letter-spacing:.18em;
  font-size:13px;
  color:var(--text);
  text-decoration:none;
  opacity:.95;
}

.nav-links{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.navlink{
  display:inline-flex;
  align-items:center;
  padding:10px 12px;
  border-radius: 12px;
  color: var(--muted);
  text-decoration:none;
  border:1px solid transparent;
  transition: transform .15s ease, border-color .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}

.navlink:hover{
  transform: translateY(-1px);
  color: var(--text);
  background: rgba(255,255,255,.05);
  border-color: rgba(76,201,240,.22);
  box-shadow: 0 10px 30px rgba(76,201,240,.12);
}

.navlink.active{
  color: var(--text);
  background: linear-gradient(90deg, rgba(76,201,240,.14), rgba(108,99,255,.10));
  border-color: rgba(76,201,240,.30);
}

.lang{ display:flex; gap:8px; }

/* Admin gomb finom pulse */
@keyframes pulse{
  0%{ box-shadow: 0 0 0 rgba(76,201,240,0); }
  50%{ box-shadow: 0 0 28px rgba(76,201,240,.30); }
  100%{ box-shadow: 0 0 0 rgba(76,201,240,0); }
}
.navbar .btn-primary{
  animation: pulse 3.2s infinite;
}

/* ===== Footer (ha van <footer>) ===== */
footer{
  margin-top:auto; /* 🔥 EZ KELL A STICKY FOOTERHEZ */
  background:
    radial-gradient(600px 200px at 50% 0%, rgba(76,201,240,.08), transparent 60%);
  border-top:1px solid rgba(255,255,255,.08);
}

/* Mobil */
@media (max-width: 720px){
  .nav-inner{ padding: 10px 0; }
  .brand{ width:100%; }
  .nav-links{ width:100%; justify-content:flex-start; }
  .lang{ width:100%; justify-content:flex-end; }
}

/* ===== Team page ===== */
.team-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}
@media (max-width: 980px){
  .team-grid{ grid-template-columns: 1fr; }
}

.team-card{ padding:16px; }

.team-row{
  display:flex;
  gap:12px;
  align-items:flex-start;
}

.team-ava{
  width:64px;
  height:64px;
  border-radius: 14px;
  object-fit: cover;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.20);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

.team-ava--empty{
  background:
    radial-gradient(40px 40px at 30% 30%, rgba(76,201,240,.18), transparent 60%),
    rgba(255,255,255,.04);
}

.team-name{
  font-weight: 800;
  letter-spacing: -.01em;
  font-size: 16px;
  margin-top: 2px;
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-role{ margin-top:6px; }

.badge{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.10);
  background: linear-gradient(90deg, rgba(76,201,240,.12), rgba(108,99,255,.10));
  color: var(--text);
  font-size: 12px;
  opacity: .95;
}

.team-bio{
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.team-bio a{
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(76,201,240,.30);
}
.team-bio a:hover{ opacity: .9; }

/* ===== Inputs (search) ===== */
.input{
  width:100%;
  padding:12px 14px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.22);
  color: var(--text);
  outline:none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.input:focus{
  border-color: rgba(76,201,240,.40);
  box-shadow: 0 12px 40px rgba(76,201,240,.14);
  background: rgba(0,0,0,.28);
}
::placeholder{ color: rgba(234,240,255,.45); }

/* ===== Blog grid ===== */
.blog-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 14px;
}
@media (max-width: 980px){
  .blog-grid{ grid-template-columns: 1fr; }
}

.post-card{
  padding:16px;
  position:relative;
  overflow:hidden;
}
.post-card:before{
  content:"";
  position:absolute; inset:-2px;
  background: radial-gradient(520px 220px at 20% 0%, rgba(76,201,240,.12), transparent 60%);
  opacity:.9;
  pointer-events:none;
}
.post-card > *{ position:relative; }

.post-title{
  margin:0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.01em;
}
.post-date{
  margin-top:4px;
  color: var(--muted);
  font-size: 12px;
}
.post-excerpt{
  margin-top:10px;
  color: var(--muted);
  line-height: 1.55;
}

/* kereső sor layout */
.search-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
.search-row .input{ flex: 1 1 420px; }

/* ===== Inputs (search) ===== */
.input{
  width:100%;
  padding:12px 14px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.22);
  color: var(--text);
  outline:none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.input:focus{
  border-color: rgba(76,201,240,.40);
  box-shadow: 0 12px 40px rgba(76,201,240,.14);
  background: rgba(0,0,0,.28);
}
::placeholder{ color: rgba(234,240,255,.45); }

/* ===== Blog grid ===== */
.blog-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 14px;
}
@media (max-width: 980px){
  .blog-grid{ grid-template-columns: 1fr; }
}

.post-card{
  padding:16px;
  position:relative;
  overflow:hidden;
}
.post-card:before{
  content:"";
  position:absolute; inset:-2px;
  background: radial-gradient(520px 220px at 20% 0%, rgba(76,201,240,.12), transparent 60%);
  opacity:.9;
  pointer-events:none;
}
.post-card > *{ position:relative; }

.post-title{
  margin:0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.01em;
}
.post-date{
  margin-top:4px;
  color: var(--muted);
  font-size: 12px;
}
.post-excerpt{
  margin-top:10px;
  color: var(--muted);
  line-height: 1.55;
}

/* kereső sor layout */
.search-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
.search-row .input{ flex: 1 1 420px; }

/* ===== Global form fix (dark inputs everywhere) ===== */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="number"],
select,
textarea{
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.22);
  color: var(--text);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

select{
  appearance:none;
}

textarea{ resize: vertical; min-height: 120px; }

input::placeholder,
textarea::placeholder{
  color: rgba(234,240,255,.45);
}

input:focus,
select:focus,
textarea:focus{
  border-color: rgba(76,201,240,.40);
  box-shadow: 0 12px 40px rgba(76,201,240,.14);
  background: rgba(0,0,0,.28);
}

/* Autofill (Chrome) fix */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus{
  -webkit-text-fill-color: var(--text) !important;
  -webkit-box-shadow: 0 0 0px 1000px rgba(0,0,0,.22) inset !important;
  transition: background-color 9999s ease-out 0s;
}

.section-title{
  font-size:14px;
  font-weight:800;
  letter-spacing:.02em;
  margin-bottom:12px;
  color: var(--text);
}

.admin-actions{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap:16px;
  margin-top:12px;
}

.admin-card{
  display:block;
  padding:18px;
  border-radius:16px;
  text-decoration:none;
}

.admin-card.is-disabled{
  opacity:.65;
  cursor:not-allowed;
}

.badge-lock{
  margin-left:8px;
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
}

/* ===== Admin blog page polish ===== */
.admin-title{
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -.02em;
  margin: 0 0 14px;
}

.toolbar{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  margin-bottom:14px;
}

.table-wrap{
  overflow:auto;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow: 0 18px 60px rgba(0,0,0,.40);
}

/* table */
.table{
  width:100%;
  border-collapse: collapse;
  min-width: 860px;
}
.table th, .table td{
  padding: 14px 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  vertical-align: middle;
}
.table th{
  text-align:left;
  color: rgba(234,240,255,.75);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.table tr:hover td{
  background: rgba(255,255,255,.03);
}

/* column helpers */
.cell-title{
  font-weight: 900;
  letter-spacing: -.01em;
}
.cell-sub{
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

/* status badges */
.badge{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  font-size: 12px;
  color: var(--text);
  background: rgba(255,255,255,.04);
}
.badge.published{
  border-color: rgba(76,201,240,.30);
  background: linear-gradient(90deg, rgba(76,201,240,.14), rgba(255,255,255,.03));
}
.badge.draft{
  border-color: rgba(255,210,90,.28);
  background: linear-gradient(90deg, rgba(255,210,90,.14), rgba(255,255,255,.03));
}
.badge.pinned{
  border-color: rgba(108,99,255,.28);
  background: linear-gradient(90deg, rgba(108,99,255,.14), rgba(255,255,255,.03));
}

/* action buttons group */
.actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.btn.danger{
  border-color: rgba(255,80,120,.28);
}
.btn.danger:hover{
  border-color: rgba(255,80,120,.45);
  box-shadow: 0 10px 30px rgba(255,80,120,.12);
}

/* ===== Blog edit (admin) ===== */
.editor-form{ margin-top: 14px; }

.meta-card{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.18));
}

.form-grid-1{ display:grid; grid-template-columns: 1fr; gap:12px; }

.form-group{ display:flex; flex-direction:column; gap:6px; }
.form-group label{ font-size:13px; color: var(--muted); }

.checkbox-row{
  display:flex;
  gap:18px;
  flex-wrap:wrap;
  margin-top:12px;
}
.check{ display:flex; gap:8px; align-items:center; color: var(--text); font-size:13px; opacity:.95; }
.check input{ width:auto; }

.hint{
  margin-top:8px;
  font-size:12px;
  color: rgba(234,240,255,.55);
}

.lang-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
  margin-top:14px;
}
@media (max-width: 980px){
  .lang-grid{ grid-template-columns: 1fr; }
}

.lang-box{
  border:1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  padding:16px;
  background: rgba(0,0,0,.18);
  box-shadow: 0 16px 50px rgba(0,0,0,.35);
}

.lang-head{
  font-size:14px;
  font-weight:900;
  letter-spacing:.01em;
  margin-bottom:12px;
  color: var(--text);
  opacity:.95;
}

.editor{
  min-height: 320px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  line-height: 1.55;
}

.save-bar{
  position: sticky;
  bottom: 16px;
  display:flex;
  justify-content:flex-end;
  padding-top: 16px;
  margin-top: 14px;
  background: linear-gradient(180deg, transparent, rgba(6,9,20,.92) 45%);
}

/* ===== Admin Tickets ===== */
.page-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  flex-wrap:wrap;
}
.page-head h1{
  margin:0;
  font-size:34px;
  font-weight:900;
  letter-spacing:-.02em;
}
.page-sub{ margin-top:6px; color: var(--muted); }

.head-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
}

.filters{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:12px;
}

.pill-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: var(--text);
  text-decoration:none;
  font-size:13px;
}
.pill-btn:hover{ background: rgba(255,255,255,.05); }
.pill-btn.active{
  border-color: rgba(76,201,240,.35);
  background: linear-gradient(90deg, rgba(76,201,240,.14), rgba(255,255,255,.03));
}

.table-wrap{
  overflow:auto;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow: 0 18px 60px rgba(0,0,0,.40);
  margin-top: 14px;
}

.table{
  width:100%;
  border-collapse: collapse;
  min-width: 980px;
}
.table th, .table td{
  padding: 14px 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  vertical-align: middle;
}
.table th{
  text-align:left;
  color: rgba(234,240,255,.75);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.table tr:hover td{
  background: rgba(255,255,255,.03);
}

.badge.open{
  border-color: rgba(255,210,90,.30);
  background: linear-gradient(90deg, rgba(255,210,90,.14), rgba(255,255,255,.03));
}
.badge.in_progress{
  border-color: rgba(76,201,240,.30);
  background: linear-gradient(90deg, rgba(76,201,240,.14), rgba(255,255,255,.03));
}
.badge.closed{
  border-color: rgba(160,170,190,.28);
  background: linear-gradient(90deg, rgba(160,170,190,.14), rgba(255,255,255,.03));
}

.cell-main{ font-weight:900; letter-spacing:-.01em; }
.cell-sub{ color: var(--muted); font-size: 13px; margin-top:2px; }

.row-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}