:root {
  --bg: #070b0a;
  --bg-soft: #0d1412;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-solid: #111a17;
  --line: rgba(255, 255, 255, 0.09);
  --text: #eef5f1;
  --muted: #9db3aa;
  --green: #3ee07f;
  --green-soft: #1e8f52;
  --discord: #5865f2;
  --radius: 18px;
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(62, 224, 127, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(62, 224, 127, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; position: relative; z-index: 1; }

/* ---------- header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 0;
  background: rgba(7, 11, 10, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-head .wrap { display: flex; align-items: center; gap: 28px; width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; letter-spacing: 0.02em; }
.brand-mark {
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 9px; background: linear-gradient(145deg, var(--green), var(--green-soft));
  color: #062014; font-weight: 900; font-size: 0.85rem; letter-spacing: -0.02em;
  box-shadow: 0 0 26px -6px rgba(62, 224, 127, 0.7);
}

.site-nav { display: flex; gap: 4px; margin-left: 8px; }
.site-nav a {
  padding: 8px 14px; border-radius: 10px; color: var(--muted); font-weight: 500; font-size: 0.95rem;
  transition: color 0.18s, background 0.18s;
}
.site-nav a:hover, .site-nav a.active { color: var(--text); background: var(--panel); }

.head-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* ---------- three-dot menu ---------- */

.menu-wrap { position: relative; margin-left: 4px; flex-shrink: 0; }

.menu-btn {
  width: 40px; height: 40px; padding: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--panel);
  cursor: pointer; transition: background 0.18s, border-color 0.18s;
}
.menu-btn:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(62, 224, 127, 0.4); }
.menu-btn span { display: block; width: 4px; height: 4px; border-radius: 50%; background: var(--text); transition: background 0.18s; }
.menu-wrap.open .menu-btn { background: rgba(62, 224, 127, 0.14); border-color: rgba(62, 224, 127, 0.5); }
.menu-wrap.open .menu-btn span { background: var(--green); }

.menu-drop {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 60;
  min-width: 218px; padding: 8px; display: none;
  border-radius: 14px; border: 1px solid var(--line);
  background: linear-gradient(170deg, #131d19, #0a100d);
  box-shadow: 0 30px 60px -24px #000;
}
.menu-wrap.open .menu-drop { display: block; }
.menu-drop a {
  display: block; padding: 10px 12px; border-radius: 9px;
  color: var(--muted); font-size: 0.95rem; font-weight: 500;
  transition: color 0.16s, background 0.16s;
}
.menu-drop a:hover, .menu-drop a:focus-visible { color: var(--text); background: var(--panel); }
.menu-drop a.active { color: var(--green); background: rgba(62, 224, 127, 0.1); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 15px 26px; font-size: 1.02rem; border-radius: 14px; }

.btn-primary { background: linear-gradient(140deg, var(--green), var(--green-soft)); color: #042314; box-shadow: 0 14px 34px -16px rgba(62, 224, 127, 0.9); }
.btn-primary:hover { box-shadow: 0 18px 40px -14px rgba(62, 224, 127, 0.95); }

.btn-discord { background: var(--discord); color: #fff; box-shadow: 0 14px 34px -18px rgba(88, 101, 242, 0.95); }
.btn-discord:hover { background: #6b77ff; }

.btn-ghost { background: var(--panel); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); }

.btn-danger { background: rgba(255, 92, 92, 0.12); border-color: rgba(255, 92, 92, 0.35); color: #ff9b9b; }
.btn-danger:hover { background: rgba(255, 92, 92, 0.2); }

.btn-sm { padding: 7px 12px; font-size: 0.85rem; border-radius: 9px; }

.arrow-out::after { content: "↗"; font-size: 0.85em; opacity: 0.8; }

/* ---------- hero ---------- */

.hero { position: relative; padding: 82px 0 70px; text-align: center; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; left: 50%; top: -220px; width: 880px; height: 620px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(62, 224, 127, 0.22), transparent 66%);
  filter: blur(18px); pointer-events: none;
}

.hero .wrap { position: relative; z-index: 2; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(62, 224, 127, 0.3);
  background: rgba(62, 224, 127, 0.09); color: #b6f5cf; font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }

.hero h1 {
  margin: 22px 0 8px;
  font-size: clamp(3rem, 9vw, 6.2rem);
  line-height: 0.94;
  font-weight: 900;
  letter-spacing: -0.035em;
  background: linear-gradient(180deg, #ffffff 20%, #a9dcc0 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero .lead { font-size: clamp(1.05rem, 2.4vw, 1.42rem); color: var(--muted); margin: 0 auto 36px; max-width: 560px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: stretch; }

.ip-btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 13px 22px; min-width: 300px;
  border-radius: 14px; border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  color: var(--text); font: inherit; text-align: left; cursor: pointer;
  box-shadow: var(--shadow); transition: border-color 0.2s, transform 0.15s, background 0.2s;
}
.ip-btn:hover { border-color: rgba(62, 224, 127, 0.5); background: linear-gradient(160deg, rgba(62, 224, 127, 0.14), rgba(255, 255, 255, 0.02)); }
.ip-btn:active { transform: translateY(1px); }
.ip-label { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.ip-value { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 1.16rem; font-weight: 600; letter-spacing: -0.01em; }
.ip-hint { font-size: 0.78rem; color: var(--green); font-weight: 600; }

.hero-meta { margin-top: 26px; display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; color: var(--muted); font-size: 0.9rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); display: inline-block; }

/* ---------- sections ---------- */

.section { padding: 66px 0; position: relative; z-index: 1; }
.section-head { margin-bottom: 34px; max-width: 640px; }
.section-head h2 { margin: 12px 0 10px; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.025em; line-height: 1.1; }
.section-head p { margin: 0; color: var(--muted); font-size: 1.02rem; }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.card {
  padding: 24px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  box-shadow: var(--shadow);
  transition: transform 0.2s, border-color 0.2s;
}
.card:hover { border-color: rgba(62, 224, 127, 0.35); transform: translateY(-3px); }
.card h3 { margin: 14px 0 8px; font-size: 1.08rem; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 0.94rem; }

.icon-box {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px;
  background: rgba(62, 224, 127, 0.12); border: 1px solid rgba(62, 224, 127, 0.28); color: var(--green);
}
.icon-box svg { width: 21px; height: 21px; }

/* steps */
.step { display: flex; gap: 16px; }
.step-num {
  flex: 0 0 38px; height: 38px; display: grid; place-items: center; border-radius: 10px;
  background: var(--panel); border: 1px solid var(--line);
  font-family: "JetBrains Mono", monospace; font-weight: 700; color: var(--green);
}
.step h3 { margin: 4px 0 6px; }
.step p { margin: 0; color: var(--muted); font-size: 0.94rem; }
.step code { font-family: "JetBrains Mono", monospace; font-size: 0.86em; background: rgba(62, 224, 127, 0.12); color: #b6f5cf; padding: 2px 6px; border-radius: 6px; }

/* cta band */
.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 34px 36px; border-radius: 24px;
  border: 1px solid rgba(62, 224, 127, 0.28);
  background: radial-gradient(circle at 18% 0%, rgba(62, 224, 127, 0.2), transparent 58%), linear-gradient(160deg, #101a16, #080d0b);
  box-shadow: var(--shadow);
}
.cta-band h2 { margin: 0 0 6px; font-size: 1.6rem; letter-spacing: -0.02em; }
.cta-band p { margin: 0; color: var(--muted); }

/* ---------- footer ---------- */

.site-foot { border-top: 1px solid var(--line); padding: 34px 0; margin-top: 40px; position: relative; z-index: 1; }
.site-foot .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 0.9rem; }
.site-foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-foot a:hover { color: var(--text); }

/* ---------- page head ---------- */

.page-head { padding: 62px 0 10px; text-align: center; }
.page-head h1 { margin: 14px 0 10px; font-size: clamp(2.2rem, 6vw, 3.6rem); letter-spacing: -0.03em; line-height: 1.05; }
.page-head p { margin: 0 auto; max-width: 560px; color: var(--muted); }

/* ---------- store ---------- */

.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.store-card { display: flex; flex-direction: column; gap: 12px; padding: 22px; }
.store-card .tag {
  align-self: flex-start; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: rgba(62, 224, 127, 0.12); color: #a9f0c5;
  border: 1px solid rgba(62, 224, 127, 0.25);
}
.store-card h3 { margin: 0; font-size: 1.2rem; }
.store-card p { margin: 0; color: var(--muted); font-size: 0.93rem; flex: 1; }
.store-card .price { font-family: "JetBrains Mono", monospace; font-size: 1.35rem; font-weight: 700; color: var(--green); }
.store-card .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }

.note {
  margin: 26px auto 0; max-width: 720px; text-align: center; color: var(--muted); font-size: 0.9rem;
  padding: 14px 18px; border-radius: 12px; border: 1px dashed var(--line); background: rgba(255, 255, 255, 0.02);
}

/* ---------- události ---------- */

.event-card { margin-bottom: 14px; padding: 20px; }
.event-card h3 { margin: 0; font-size: 1.1rem; }
.event-when { display: flex; gap: 8px 18px; flex-wrap: wrap; margin: 12px 0 0; font-size: 0.85rem; color: var(--muted); }
.event-when span {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03);
}
.event-desc { margin: 12px 0 0; white-space: pre-wrap; color: #d6dee2; }

/* ---------- store: platnost ranku ---------- */

.rank-term {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 0 0 12px; padding: 5px 11px; border-radius: 999px;
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.02em;
  color: #ffd88a; background: rgba(255, 200, 92, 0.12);
  border: 1px solid rgba(255, 200, 92, 0.28);
}
.rank-term::before { content: "⏳"; font-size: 0.85em; }

/* ---------- ticket chat ---------- */

.ticket-thread { margin-bottom: 14px; padding: 20px; }
.thread-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.thread-head h3 { margin: 0; font-size: 1.05rem; }
.thread-sub { margin: 4px 0 0; font-size: 0.82rem; color: var(--muted); }

.chat {
  display: flex; flex-direction: column; gap: 8px;
  margin: 14px 0; padding: 14px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(0, 0, 0, 0.24);
  max-height: 340px; overflow-y: auto;
}
.bubble { max-width: 82%; padding: 9px 13px; border-radius: 14px; font-size: 0.92rem; }
.bubble p { margin: 0; white-space: pre-wrap; word-break: break-word; }
.bubble .meta {
  font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 4px; font-weight: 600;
}
.bubble.me { align-self: flex-end; background: rgba(62, 224, 127, 0.13); border: 1px solid rgba(62, 224, 127, 0.28); border-bottom-right-radius: 5px; }
.bubble.them { align-self: flex-start; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); border-bottom-left-radius: 5px; }

.chat-form { display: flex; gap: 8px; }
.chat-form input { flex: 1; }
.chat-form button { flex-shrink: 0; }

/* ---------- staff ---------- */

.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.staff-card { text-align: center; padding: 26px 22px; }
.avatar {
  width: 66px; height: 66px; margin: 0 auto 14px; border-radius: 16px; display: grid; place-items: center;
  font-weight: 800; font-size: 1.3rem; color: #05291a;
  background: linear-gradient(145deg, var(--green), #1b7d49);
  box-shadow: 0 12px 30px -16px rgba(62, 224, 127, 0.9);
}
.staff-card h3 { margin: 0 0 4px; }
.role { display: inline-block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); margin-bottom: 10px; }
.staff-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* ---------- rules ---------- */

.rules-list { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.rule {
  display: flex; gap: 18px; padding: 22px 24px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--panel);
}
.rule-num { font-family: "JetBrains Mono", monospace; color: var(--green); font-weight: 700; font-size: 1.1rem; flex: 0 0 28px; }
.rule h3 { margin: 0 0 6px; font-size: 1.05rem; }
.rule p { margin: 0; color: var(--muted); font-size: 0.94rem; }

/* ---------- forms / modal ---------- */

label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; letter-spacing: 0.02em; }

input, select, textarea {
  width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04); color: var(--text); font: inherit; font-size: 0.95rem;
  transition: border-color 0.18s, background 0.18s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: rgba(62, 224, 127, 0.55); background: rgba(255, 255, 255, 0.06); }
textarea { resize: vertical; min-height: 90px; }
.field { margin-bottom: 14px; }

.modal-back {
  position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center;
  padding: 20px; background: rgba(3, 6, 5, 0.78); backdrop-filter: blur(6px);
}
.modal-back.open { display: flex; }
.modal {
  width: min(460px, 100%); max-height: 90vh; overflow-y: auto;
  padding: 26px; border-radius: 20px; border: 1px solid var(--line);
  background: linear-gradient(170deg, #131d19, #0a100d); box-shadow: 0 40px 80px -30px #000;
}
.modal h2 { margin: 0 0 4px; font-size: 1.4rem; letter-spacing: -0.02em; }
.modal .sub { margin: 0 0 20px; color: var(--muted); font-size: 0.9rem; }
.modal-close { position: absolute; top: 14px; right: 16px; background: none; border: 0; color: var(--muted); font-size: 1.4rem; cursor: pointer; }
.modal-inner { position: relative; }

.alert { padding: 11px 14px; border-radius: 10px; font-size: 0.9rem; margin-bottom: 14px; display: none; }
.alert.show { display: block; }
.alert-err { background: rgba(255, 92, 92, 0.12); border: 1px solid rgba(255, 92, 92, 0.3); color: #ffb3b3; }
.alert-ok { background: rgba(62, 224, 127, 0.12); border: 1px solid rgba(62, 224, 127, 0.3); color: #b6f5cf; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  padding: 12px 20px; border-radius: 12px; z-index: 200;
  background: linear-gradient(140deg, var(--green), var(--green-soft)); color: #042314;
  font-weight: 700; font-size: 0.92rem; box-shadow: 0 20px 40px -18px rgba(62, 224, 127, 0.9);
  opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- login ---------- */

.auth-card { max-width: 430px; margin: 0 auto; padding: 30px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 0.8rem; margin: 20px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- admin ---------- */

.admin-wrap { padding: 34px 0 70px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.admin-head h1 { margin: 0; font-size: 1.8rem; letter-spacing: -0.02em; }
.admin-head .who { color: var(--muted); font-size: 0.9rem; }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 22px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.tab {
  padding: 9px 15px; border-radius: 10px; border: 1px solid transparent; background: transparent;
  color: var(--muted); font: inherit; font-weight: 600; font-size: 0.92rem; cursor: pointer;
}
.tab:hover { color: var(--text); background: var(--panel); }
.tab.active { color: #05291a; background: linear-gradient(140deg, var(--green), var(--green-soft)); }

.panel { display: none; }
.panel.active { display: block; }
.panel h2 { margin: 0 0 16px; font-size: 1.25rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 640px; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
td code { font-family: "JetBrains Mono", monospace; font-size: 0.85em; color: #b6f5cf; }
.empty { padding: 26px; text-align: center; color: var(--muted); font-size: 0.92rem; }

.list-row {
  display: flex; align-items: flex-start; gap: 14px; padding: 15px 17px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--panel); margin-bottom: 10px;
}
.list-row .grow { flex: 1; min-width: 0; }
.list-row h4 { margin: 0 0 3px; font-size: 1rem; }
.list-row p { margin: 0; color: var(--muted); font-size: 0.88rem; }
.list-row .actions { display: flex; gap: 8px; flex-shrink: 0; }

.admin-form {
  padding: 20px; border-radius: 14px; border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  margin-bottom: 20px;
}
.admin-form h3 { margin: 0 0 16px; font-size: 1rem; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.tag-chip { font-size: 0.72rem; padding: 3px 9px; border-radius: 999px; background: rgba(62, 224, 127, 0.12); color: #a9f0c5; }

.status-select { min-width: 120px; padding: 7px 10px; font-size: 0.85rem; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .site-nav { display: none; }
}

@media (max-width: 620px) {
  .site-head .wrap { gap: 14px; }
  .menu-drop { min-width: 190px; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 54px 0 44px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .ip-btn { min-width: 0; }
  .cta-band { padding: 26px 22px; }
  .site-foot .wrap { flex-direction: column; align-items: flex-start; }
  .head-actions .btn-ghost { display: none; }
  .section { padding: 48px 0; }
}
