﻿:root {
  --bg-0: #04040e;
  --bg-1: #0b0b24;
  --accent: #22d3ee;
  --accent-2: #8b5cf6;
  --accent-3: #e879f9;
  --success: #34d399;
  --error: #f87171;
  --warn: #fbbf24;
  --text: #e8ecff;
  --text-dim: rgba(232, 236, 255, 0.55);
  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.09);
}

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

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: linear-gradient(160deg, var(--bg-0) 0%, #12072e 45%, var(--bg-0) 100%);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
main { flex: 1; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- SVG Icon System ---------- */
.si {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.2);
  flex-shrink: 0;
}
.si svg { width: 20px; height: 20px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.si-accent { background: rgba(139, 92, 246, 0.15); border-color: rgba(139, 92, 246, 0.3); }
.si-accent svg { stroke: var(--accent-2); }
.si-success { background: rgba(52, 211, 153, 0.12); border-color: rgba(52, 211, 153, 0.3); }
.si-success svg { stroke: var(--success); }
.si-warn { background: rgba(251, 191, 36, 0.12); border-color: rgba(251, 191, 36, 0.3); }
.si-warn svg { stroke: var(--warn); }
.si-error { background: rgba(248, 113, 113, 0.12); border-color: rgba(248, 113, 113, 0.3); }
.si-error svg { stroke: var(--error); }
.si-lg { width: 56px; height: 56px; border-radius: 14px; }
.si-lg svg { width: 28px; height: 28px; }

/* ---------- Navbar ---------- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  background: rgba(4, 4, 14, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.brand {
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 2px;
  color: #fff;
}
.brand span { color: var(--accent); }
.nav-links { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.nav-links a { color: var(--text-dim); font-size: 14px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

.btn-nav {
  background: linear-gradient(135deg, #0891b2, var(--accent-2));
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600;
}
.btn-nav:hover { text-decoration: none !important; filter: brightness(1.15); }

.aurora-link {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.35), rgba(34, 211, 238, 0.26));
  border: 1px solid rgba(168, 85, 247, 0.5);
  color: #f5e9ff !important;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.22);
}
.aurora-link:hover {
  text-decoration: none !important;
  filter: brightness(1.12);
  box-shadow: 0 0 22px rgba(34, 211, 238, 0.28);
}

/* ---------- Flash ---------- */
.flash {
  padding: 12px 20px;
  text-align: center;
  font-size: 14px;
  border-bottom: 1px solid var(--glass-border);
}
.flash-success { background: rgba(52, 211, 153, 0.12); color: var(--success); }
.flash-error { background: rgba(248, 113, 113, 0.12); color: var(--error); }

/* ---------- Gombok ---------- */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.25s;
  text-decoration: none !important;
}
.btn-primary { background: linear-gradient(135deg, #0891b2, var(--accent-2)); color: #fff; }
.btn-ghost { background: rgba(255, 255, 255, 0.07); color: var(--text); border: 1px solid var(--glass-border); }
.btn-success { background: linear-gradient(135deg, var(--success), #0ea5e9); color: #fff; }
.btn-danger { background: linear-gradient(135deg, #dc2626, #ef4444); color: #fff; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.btn-block { display: block; width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; display: inline-block; }

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 90px 20px 70px;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(34, 211, 238, 0.12), transparent 60%);
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(32px, 6vw, 56px);
  letter-spacing: clamp(3px, 1vw, 8px);
  text-shadow: 0 0 30px rgba(34, 211, 238, 0.6);
  margin-bottom: 10px;
}
.hero h1 span { color: var(--accent); }
.subtitle { color: var(--accent-3); letter-spacing: 3px; text-transform: uppercase; font-size: 14px; }
.tagline { color: var(--text-dim); margin: 18px 0 30px; font-size: 16px; }
.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-small { padding: 56px 20px 44px; }
.hero-small h1 { font-size: clamp(24px, 5vw, 40px); letter-spacing: clamp(2px, 0.5vw, 4px); text-shadow: 0 0 24px rgba(34, 211, 238, 0.5); margin-bottom: 8px; }

/* ---------- Szekciók ---------- */
.section { padding: 60px 20px; text-align: center; }
.section h2 { font-size: clamp(22px, 4vw, 30px); letter-spacing: 2px; margin-bottom: 30px; }
.section.dark { background: rgba(0, 0, 0, 0.25); }
.muted { color: var(--text-dim); margin-bottom: 20px; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  max-width: 1000px;
  margin: 0 auto;
}
.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 30px 24px;
  backdrop-filter: blur(10px);
  transition: transform 0.25s;
}
.card:hover { transform: translateY(-4px); }
.card-icon { margin-bottom: 14px; display: flex; justify-content: center; }
.card-icon.si { margin-bottom: 14px; }
.card h3 { margin-bottom: 10px; font-size: 17px; }
.card p { color: var(--text-dim); font-size: 14px; line-height: 1.6; overflow-wrap: break-word; word-break: break-word; }

.download-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.server-ip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--glass);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 12px;
  padding: 16px 26px;
  font-size: 16px;
  max-width: 100%;
}
.server-ip code { color: var(--success); font-size: 16px; word-break: break-all; }
.online-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px var(--success);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------- Auth kártyák ---------- */
.auth-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card {
  width: 400px;
  max-width: 92vw;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 32px;
  backdrop-filter: blur(14px);
}
.auth-card h1 { text-align: center; margin-bottom: 6px; letter-spacing: 1px; }
.auth-card .muted { text-align: center; }
.auth-card.wide { width: 1100px; max-width: 98vw; }
.auth-card.dashboard.wide { width: 1180px; }

.admin-actions { margin: 20px 0 0; }

.admin-form select,
.admin-form textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.25s;
}
.admin-form select:focus,
.admin-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}

.admin-row { display: flex; align-items: center; }
.badge-warn { background: rgba(251, 191, 36, 0.15); color: var(--warn); }

.users-table { margin-top: 8px; border: 1px solid var(--glass-border); border-radius: 12px; overflow: hidden; overflow-x: auto; }
.users-row {
  display: grid;
  grid-template-columns: 1.6fr 1.15fr 1fr 1fr 0.95fr 0.85fr;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--glass-border);
  font-size: 13px;
  min-width: 880px;
}
.users-row:last-child { border-bottom: none; }
.users-row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.users-head {
  background: rgba(255, 255, 255, 0.05);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-dim);
}
.users-row select,
.users-row input {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text);
  padding: 6px 8px;
  font-size: 13px;
  font-family: inherit;
}
.credit-form { display: flex; gap: 6px; align-items: center; }
.role-form select { width: 165px; }
@media (max-width: 1180px) {
  .users-table { border-radius: 0; margin-left: -18px; margin-right: -18px; width: calc(100% + 36px); }
}

/* ---------- InterGalaktikus bolt ---------- */
.balance-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 16px 0;
  font-size: 14px;
}
.balance-banner span { color: var(--text-dim); }
.balance-banner b { color: var(--success); font-size: 16px; }

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.shop-item {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  transition: all 0.25s;
}
.shop-item:hover { transform: translateY(-3px); border-color: rgba(34, 211, 238, 0.4); }
.shop-icon { font-size: 36px; margin-bottom: 10px; }
.shop-icon.si { margin-bottom: 10px; }
.shop-name { font-weight: 700; font-size: 15px; margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-desc { font-size: 12px; color: var(--text-dim); min-height: 32px; max-height: 48px; margin-bottom: 8px; line-height: 1.5; overflow: hidden; }
.shop-cat { display: inline-block; margin-bottom: 8px; }
.shop-price { font-size: 14px; font-weight: 600; color: var(--accent); margin-bottom: 12px; }

.tx-pos { color: var(--success); font-weight: 600; }
.tx-neg { color: var(--error); font-weight: 600; }
.badge-pending { background: rgba(251, 191, 36, 0.15); color: var(--warn); }

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 7px;
}
.field input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  transition: all 0.25s;
}
.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}
.auth-alt { text-align: center; margin-top: 18px; font-size: 14px; color: var(--text-dim); }

/* ---------- Dashboard ---------- */
.avatar {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.5);
}
.dashboard h1 { font-size: 24px; }
.dashboard .accent { color: var(--accent); }

.info-list { margin: 22px 0; }
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--glass-border);
  font-size: 14px;
  min-width: 0;
  gap: 12px;
}
.info-row span { color: var(--text-dim); min-width: 0; }
.info-row b { color: var(--text); font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Letöltések ---------- */
.downloads-list {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.download-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 16px 18px;
  transition: all 0.25s;
  text-align: left;
}
.download-item:hover { transform: translateY(-2px); border-color: rgba(34, 211, 238, 0.4); }
.dl-icon { font-size: 26px; }
.dl-icon.si { width: 40px; height: 40px; }
.dl-info { flex: 1; min-width: 0; }
.dl-name {
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 5px;
}
.dl-meta {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: var(--text-dim);
  align-items: center;
}
.badge {
  background: rgba(34, 211, 238, 0.15);
  color: var(--accent);
  padding: 2px 9px;
  border-radius: 6px;
  font-weight: 600;
}

.empty-box {
  max-width: 420px;
  margin: 0 auto;
  background: var(--glass);
  border: 1px dashed var(--glass-border);
  border-radius: 16px;
  padding: 40px 24px;
}
.empty-icon { font-size: 40px; margin-bottom: 12px; }
.empty-icon.si { margin-bottom: 12px; }

.info-note {
  max-width: 640px;
  margin: 26px auto 0;
  background: rgba(52, 211, 153, 0.07);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 13px;
  color: var(--text-dim);
  overflow-wrap: break-word;
}

.tx-table .users-row {
  grid-template-columns: 1.2fr 2fr 0.8fr;
  min-width: 0;
}

.uuid {
  font-family: Consolas, 'Cascadia Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  word-break: break-all;
}

/* ---------- Letöltések hero ---------- */
.downloads-hero {
  text-align: center;
  padding: 64px 20px 36px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--glass-border);
}
.downloads-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 700px 260px at 50% -10%, rgba(139,92,246,0.22), transparent 65%),
    radial-gradient(ellipse 600px 300px at 20% 100%, rgba(34,211,238,0.14), transparent 60%),
    linear-gradient(180deg, rgba(18,7,46,0.6), transparent);
  pointer-events: none;
}
.downloads-hero h1 { position: relative; font-size: clamp(24px, 5vw, 38px); letter-spacing: clamp(1px, 0.4vw, 2px); margin-bottom: 10px; }
.downloads-hero p { position: relative; max-width: 620px; margin: 0 auto; }
.downloads-stats {
  position: relative;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-dim);
}
.downloads-stats span {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--glass-border);
  padding: 6px 12px;
  border-radius: 999px;
}
.downloads-section { padding-top: 32px; }
.downloads-feature { max-width: 780px; margin: 0 auto 28px; }
.download-hero-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, rgba(34,211,238,0.08), rgba(139,92,246,0.12));
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: 18px;
  padding: 22px 22px;
  box-shadow: 0 0 30px rgba(139,92,246,0.15), 0 8px 24px rgba(0,0,0,0.3);
  backdrop-filter: blur(10px);
}
.dl-hero-left { display: flex; gap: 16px; flex: 1; min-width: 0; text-align: left; }
.dl-hero-icon { font-size: 36px; width: 56px; height: 56px; display: grid; place-items: center; background: rgba(255,255,255,0.06); border-radius: 12px; flex-shrink: 0; }
.dl-hero-icon.si { font-size: inherit; }
.dl-hero-name { font-weight: 800; font-size: 16px; margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-hero-meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--text-dim); align-items: center; margin-bottom: 8px; }
.dl-hero-meta .ver { color: var(--accent); font-weight: 700; }
.badge-accent { background: rgba(139,92,246,0.2); color: #c4b5fd; }
.dl-hero-desc { font-size: 13px; color: var(--text-dim); line-height: 1.5; overflow-wrap: break-word; }
.btn-download {
  flex-shrink: 0;
  background: linear-gradient(135deg, #0ea5e9, #8b5cf6);
  padding: 14px 28px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
  min-width: 140px;
}
.btn-download span { font-size: 16px; font-weight: 800; }
.btn-download small { font-size: 11px; opacity: 0.8; margin-top: 4px; }
.downloads-grid {
  max-width: 780px;
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 14px;
  text-align: left;
}
.dl-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 18px 16px;
}
.dl-card-icon { font-size: 22px; margin-bottom: 8px; }
.dl-card-icon.si { margin-bottom: 8px; }
.dl-card h3 { font-size: 14px; margin-bottom: 10px; }
.dl-card ul, .dl-card ol { font-size: 13px; color: var(--text-dim); padding-left: 18px; line-height: 1.7; }
@media (max-width: 760px) {
  .download-hero-card { flex-direction: column; align-items: stretch; }
  .btn-download { width: 100%; }
  .downloads-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .navbar { padding: 12px 16px; }
  .nav-links { gap: 10px; }
  .nav-links a { font-size: 12px; }
  .auth-card { padding: 24px 18px; }
  .hero { padding: 50px 16px 40px; }
  .hero-small { padding: 36px 16px 28px; }
  .section { padding: 40px 16px; }
  .info-row { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* ---------- Footer ---------- */
.footer {
  margin-top: auto;
  padding: 18px;
  text-align: center;
  color: rgba(232, 236, 255, 0.3);
  font-size: 12px;
  border-top: 1px solid var(--glass-border);
}

