/* =====================================================================
   I Like Kebabs – Mantine (dark) design rendszer + glass hatás
   Színek: Mantine palette (violet / indigo / cyan / teal / red / yellow)
   ===================================================================== */
:root {
  --body: #0b0c10;
  --dark-0: #c9c9c9;
  --dark-1: #b8b8b8;
  --dark-2: #828282;
  --dark-3: #696969;
  --dark-4: #424242;
  --dark-5: #3b3b3b;
  --dark-6: #2e2e2e;
  --dark-7: #242424;

  --text: #e9ecef;
  --dimmed: #909296;
  --dim: #5c5f66;

  --violet: #7950f2;  --violet-l: #b197fc;
  --indigo: #4c6ef5;  --indigo-l: #91a7ff;
  --blue: #228be6;    --blue-l: #74c0fc;
  --cyan: #15aabf;    --cyan-l: #66d9e8;
  --teal: #12b886;    --teal-l: #63e6be;
  --green: #40c057;   --green-l: #8ce99a;
  --yellow: #fab005;  --yellow-l: #ffe066;
  --orange: #fd7e14;  --orange-l: #ffc078;
  --red: #fa5252;     --red-l: #ffa8a8;
  --pink: #e64980;    --pink-l: #faa2c1;
  --grape: #be4bdb;   --grape-l: #e599f7;
  --gold: var(--yellow-l);

  --primary-grad: linear-gradient(135deg, #7048e8 0%, #4c6ef5 55%, #15aabf 100%);
  --brand-grad: linear-gradient(135deg, #ffa94d 0%, #ff6b6b 60%, #f03e3e 100%);

  --glass: rgba(28, 29, 34, .52);
  --glass-strong: rgba(22, 23, 28, .78);
  --glass-border: rgba(255, 255, 255, .08);
  --glass-hi: rgba(255, 255, 255, .06);
  --blur: blur(18px) saturate(150%);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --shadow: 0 10px 40px -10px rgba(0, 0, 0, .55);
  --header-h: 64px;
  --nav-w: 264px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; min-height: 100vh; background: var(--body); color: var(--text);
  font: 15px/1.55 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--indigo-l); text-decoration: none; transition: color .15s; }
a:hover { color: #fff; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
h2 { font-size: 26px; }
h3 { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
img { display: block; }
kbd {
  font: 600 11px/1 Inter, sans-serif; padding: 3px 6px; border-radius: 6px; color: var(--dimmed);
  border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04);
}
::selection { background: rgba(121, 80, 242, .45); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .1); border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(255, 255, 255, .18); }

/* ---------- háttér: statikus színátmenetek egy rögzített rétegen (gyors) ---------- */
.bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; transform: translateZ(0);
  background:
    radial-gradient(900px 600px at -5% -10%, rgba(103, 65, 217, .34), transparent 60%),
    radial-gradient(800px 600px at 105% 15%, rgba(16, 152, 173, .22), transparent 60%),
    radial-gradient(900px 500px at 40% 115%, rgba(232, 89, 12, .12), transparent 60%),
    var(--body);
}

/* ---------- üveg ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow), inset 0 1px 0 var(--glass-hi);
}

/* ---------- AppShell: fejléc ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30; height: var(--header-h);
  display: flex; align-items: center; gap: 14px; padding: 0 20px;
  border-width: 0 0 1px; border-radius: 0; box-shadow: 0 1px 0 var(--glass-hi);
  background: rgba(14, 15, 19, .72);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { color: var(--text); }
.logo {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; color: #fff;
  background: var(--primary-grad); box-shadow: 0 6px 20px -4px rgba(112, 72, 232, .7), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 900; font-size: 18px; letter-spacing: -.02em; }
.brand-sub { color: var(--dimmed); font-size: 12px; font-weight: 500; }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.live {
  display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 99px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--glass-border);
  color: var(--dimmed); font-size: 13px; font-weight: 600; white-space: nowrap;
}
.live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); }
.live.ok { color: var(--teal-l); border-color: rgba(18, 184, 134, .3); background: rgba(18, 184, 134, .08); }
.live.ok .dot { background: var(--teal); box-shadow: 0 0 0 0 rgba(18, 184, 134, .6); animation: pulse 2s infinite; }
.live.bad { color: var(--red-l); border-color: rgba(250, 82, 82, .3); background: rgba(250, 82, 82, .08); }
.live.bad .dot { background: var(--red); }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(18, 184, 134, 0); } 100% { box-shadow: 0 0 0 0 rgba(18, 184, 134, 0); } }

/* ---------- AppShell: oldalsáv ---------- */
.shell { display: flex; padding-top: var(--header-h); min-height: 100vh; }
.navbar {
  position: fixed; top: var(--header-h); bottom: 0; left: 0; width: var(--nav-w); z-index: 25;
  display: flex; flex-direction: column; padding: 14px 12px;
  border-width: 0 1px 0 0; border-radius: 0; box-shadow: 1px 0 0 var(--glass-hi);
  background: rgba(14, 15, 19, .6); overflow-y: auto;
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
}
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--dim);
  padding: 14px 12px 6px;
}
.nav-label:first-child { padding-top: 4px; }
.nav a {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 7px 10px; border-radius: var(--radius-md);
  color: var(--dark-0); font-weight: 600; font-size: 14px; transition: background .15s, color .15s, transform .15s var(--ease);
}
.nav a:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.nav a:active { transform: scale(.98); }
.nav a.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(121, 80, 242, .28), rgba(76, 110, 245, .14));
  box-shadow: inset 0 0 0 1px rgba(151, 117, 250, .28), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.nav a.active::before {
  content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--violet-l);
}
.nav-ic {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 17px; flex: none;
  transition: transform .2s var(--ease);
}
.nav a:hover .nav-ic { transform: scale(1.08); }
.c-violet { background: rgba(121, 80, 242, .16); color: var(--violet-l); }
.c-indigo { background: rgba(76, 110, 245, .16); color: var(--indigo-l); }
.c-blue { background: rgba(34, 139, 230, .16); color: var(--blue-l); }
.c-cyan { background: rgba(21, 170, 191, .16); color: var(--cyan-l); }
.c-teal { background: rgba(18, 184, 134, .16); color: var(--teal-l); }
.c-yellow { background: rgba(250, 176, 5, .14); color: var(--yellow-l); }
.c-orange { background: rgba(253, 126, 20, .16); color: var(--orange-l); }
.c-red { background: rgba(250, 82, 82, .16); color: var(--red-l); }
.c-pink { background: rgba(230, 73, 128, .16); color: var(--pink-l); }
.c-grape { background: rgba(190, 75, 219, .16); color: var(--grape-l); }
.nav-foot { margin-top: auto; padding-top: 16px; }
.nav-card {
  padding: 14px; border-radius: var(--radius-lg); font-size: 13px; color: var(--dimmed);
  background: linear-gradient(135deg, rgba(121, 80, 242, .18), rgba(21, 170, 191, .1));
  border: 1px solid rgba(151, 117, 250, .2);
}
.nav-card-title { color: #fff; font-weight: 700; display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
.nav-card-title .ti { color: #8c9eff; font-size: 18px; }

.main { flex: 1; min-width: 0; margin-left: var(--nav-w); padding: 24px 28px 0; }
#app { max-width: 1280px; margin: 0 auto; }
#app.enter { animation: fadein .25s var(--ease); }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.foot { max-width: 1280px; margin: 0 auto; color: var(--dim); font-size: 12.5px; padding: 36px 0 28px; text-align: center; }

.header .burger { display: none; }
.scrim { display: none; }

/* ---------- gombok (glass) ---------- */
.glass-btn, .btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px;
  border-radius: var(--radius-md); font: 600 14px/1 Inter, sans-serif; color: var(--text); cursor: pointer; white-space: nowrap;
  background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 4px 14px -6px rgba(0, 0, 0, .6);
  transition: transform .15s var(--ease), background .2s, border-color .2s, box-shadow .2s;
}
.glass-btn:hover { color: #fff; background: linear-gradient(180deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, .05)); border-color: rgba(255, 255, 255, .2); }
.glass-btn:active, .btn:active { transform: translateY(1px) scale(.98); }
.glass-btn .ti { font-size: 17px; color: var(--dimmed); }
.icon-only { width: 38px; padding: 0; }
.icon-only .ti { font-size: 20px; color: var(--text); }
.btn {
  color: #fff; border-color: rgba(177, 151, 252, .45);
  background: var(--primary-grad);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 8px 24px -8px rgba(112, 72, 232, .8);
  height: 40px; padding: 0 18px;
}
.btn::after {
  content: ""; position: absolute; inset: 1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .22), transparent 55%);
}
.btn:hover { filter: brightness(1.1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 10px 28px -8px rgba(112, 72, 232, .95); }

/* ---------- Paper / kártyák ---------- */
.card {
  position: relative; padding: 18px 20px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(32, 33, 40, .82), rgba(24, 25, 31, .82));
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow), inset 0 1px 0 var(--glass-hi);
}
a.card { color: var(--text); transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; }
a.card:hover { transform: translateY(-2px); border-color: rgba(151, 117, 250, .35); box-shadow: var(--shadow), 0 0 0 1px rgba(151, 117, 250, .15), inset 0 1px 0 var(--glass-hi); }
.card + .card, .section { margin-top: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h3 { display: flex; align-items: center; gap: 10px; }
.card-head > a {
  display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--violet-l);
  padding: 5px 10px; border-radius: 8px; background: rgba(121, 80, 242, .1);
}
.card-head > a:hover { background: rgba(121, 80, 242, .2); color: #fff; }

/* ThemeIcon a címekben (a <i class="ti"> elemek) */
h3 > .ti, .stat .label > .ti {
  width: 30px; height: 30px; border-radius: 9px; display: inline-grid; place-items: center; font-size: 17px; flex: none;
  background: rgba(121, 80, 242, .16); color: var(--violet-l);
}
h2 > .ti {
  width: 44px; height: 44px; border-radius: 13px; display: inline-grid; place-items: center; font-size: 24px; vertical-align: middle;
  margin-right: 12px; color: #fff; background: var(--primary-grad);
  box-shadow: 0 8px 22px -6px rgba(112, 72, 232, .7), inset 0 1px 0 rgba(255, 255, 255, .3);
}

.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 470px), 1fr)); }
.grid.stats { grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }

/* Stats kártya (Mantine StatsGrid) */
.stat { padding: 16px 18px; overflow: hidden; }
.stat .label {
  display: flex; align-items: center; justify-content: space-between; flex-direction: row-reverse; gap: 8px;
  color: var(--dimmed); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
}
.stat .label > .ti { margin-left: auto; }
.stat .value { font-size: 28px; font-weight: 800; margin-top: 6px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .sub { font-size: 13px; color: var(--dimmed); margin-top: 2px; }
.stat::after {
  display: none;
  content: ""; position: absolute; right: -40px; bottom: -60px; width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(121, 80, 242, .18), transparent 70%); pointer-events: none;
}

/* Hero */
.hero { overflow: hidden; padding: 34px 30px; margin-bottom: 18px; border-radius: var(--radius-xl); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 240px at 0% 0%, rgba(121, 80, 242, .3), transparent 70%),
    radial-gradient(500px 260px at 100% 100%, rgba(21, 170, 191, .18), transparent 70%);
}

.hero > * { position: relative; }
.hero h1 {
  font-size: clamp(32px, 6vw, 54px); font-weight: 900; letter-spacing: -.035em;
  background: linear-gradient(120deg, #fff 10%, #d0bfff 45%, #99e9f2 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: var(--dark-0); margin: 10px 0 18px; max-width: 640px; font-size: 15.5px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 99px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); font-size: 13px; font-weight: 600; color: var(--text);
  transition: background .15s, border-color .15s;
}
a.pill:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); color: #fff; }
.pill.gold { color: var(--violet-l); border-color: rgba(151, 117, 250, .35); background: rgba(121, 80, 242, .14); }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 2px 0 20px; }
.page-head h2 { display: flex; align-items: center; }
.page-head p { margin: 8px 0 0; color: var(--dimmed); }
.updated {
  color: var(--dimmed); font-size: 12.5px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px;
}

.up { color: var(--teal-l); }
.down { color: var(--red-l); }
.muted { color: var(--dimmed); }
.dim { color: var(--dim); }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
th {
  text-align: left; font-weight: 700; color: var(--dimmed); font-size: 12px; text-transform: uppercase; letter-spacing: .04em;
  padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, .08); white-space: nowrap;
}
th.sortable { cursor: pointer; user-select: none; transition: color .15s; }
th.sortable:hover { color: var(--text); }
th.sorted { color: var(--violet-l); }
td { padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, .05); vertical-align: middle; transition: background .12s; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .015); }
tbody tr:hover td { background: rgba(255, 255, 255, .045); }
tbody tr td:first-child { border-radius: 10px 0 0 10px; }
tbody tr td:last-child { border-radius: 0 10px 10px 0; }
td.cheap, tbody tr td.cheap { background: rgba(18, 184, 134, .14); color: var(--teal-l); font-weight: 700; box-shadow: inset 0 0 0 1px rgba(18, 184, 134, .25); border-radius: 8px; }
td.pricey, tbody tr td.pricey { background: rgba(250, 82, 82, .13); color: var(--red-l); font-weight: 700; box-shadow: inset 0 0 0 1px rgba(250, 82, 82, .22); border-radius: 8px; }

.item { display: flex; align-items: center; gap: 12px; min-width: 210px; color: var(--text); }
.item img {
  width: 42px; height: 42px; flex: none; border-radius: 10px; padding: 2px;
  background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, .1), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .06);
}
.item .nm { font-weight: 600; line-height: 1.3; }
.item .tier {
  display: inline-block; font-size: 10.5px; font-weight: 800; color: var(--yellow-l); background: rgba(250, 176, 5, .12);
  padding: 1px 6px; border-radius: 6px; margin-right: 4px; vertical-align: 1px;
}
a.item:hover { color: var(--text); }
a.item:hover .nm { color: var(--violet-l); }

/* Badge (Mantine light) */
.badge {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 10px; border-radius: 99px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap;
  background: rgba(134, 142, 150, .16); color: var(--dark-0);
}
.badge .ti { font-size: 13px; }
.badge.green { background: rgba(18, 184, 134, .16); color: var(--teal-l); }
.badge.red { background: rgba(250, 82, 82, .16); color: var(--red-l); }
.badge.gold { background: rgba(250, 176, 5, .14); color: var(--yellow-l); }
.badge.blue { background: rgba(34, 139, 230, .16); color: var(--blue-l); }
.badge.purple { background: rgba(190, 75, 219, .16); color: var(--grape-l); }

/* listák */
.list { display: flex; flex-direction: column; }
.row {
  display: flex; align-items: center; gap: 12px; padding: 10px 10px; margin: 0 -10px; border-radius: var(--radius-md);
  transition: background .15s;
}
.row + .row { border-top: 1px solid rgba(255, 255, 255, .04); }
.row:hover { background: rgba(255, 255, 255, .04); }
.row .grow { flex: 1; min-width: 0; }
.row .big { font-weight: 800; color: var(--teal-l); white-space: nowrap; font-size: 15px; }
.route-path { color: var(--dimmed); font-size: 12.5px; margin-top: 1px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.route-path .ti { font-size: 14px; }

/* ---------- SegmentedControl (csúszó kijelölés) ---------- */
.controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.seg {
  position: relative; display: inline-flex; max-width: 100%; overflow-x: auto; scrollbar-width: none;
  padding: 4px; border-radius: var(--radius-md); background: rgba(0, 0, 0, .28);
  border: 1px solid rgba(255, 255, 255, .07); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .35);
}
.seg::-webkit-scrollbar { display: none; }
.seg-ind {
  position: absolute; top: 0; left: 0; z-index: 0; border-radius: 9px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .07));
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 4px 14px -4px rgba(0, 0, 0, .6);
}
.seg-ind.anim { transition: transform .28s var(--ease), width .28s var(--ease), height .28s var(--ease); }
.seg button, .seg a {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px; flex: none;
  border: 0; background: transparent; color: var(--dimmed); padding: 7px 14px; border-radius: 9px; cursor: pointer;
  font: 600 13.5px/1.2 Inter, sans-serif; text-decoration: none; transition: color .2s;
}
.seg button .ti, .seg a .ti { font-size: 16px; }
.seg button:hover, .seg a:hover { color: var(--text); }
.seg button.on, .seg a.on { color: #fff; }
.seg:not(.ready) button.on, .seg:not(.ready) a.on { background: rgba(255, 255, 255, .1); }

/* mezők */
input[type=search], input[type=text], select {
  height: 40px; background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .09); color: var(--text);
  border-radius: var(--radius-md); padding: 0 14px; font: 500 14px Inter, sans-serif; min-width: 0;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .3); transition: border-color .15s, box-shadow .15s, background .15s;
}
input::placeholder { color: var(--dim); }
input:focus, select:focus { outline: none; border-color: var(--violet); background: rgba(0, 0, 0, .35); box-shadow: 0 0 0 3px rgba(121, 80, 242, .25); }
.search-box { position: relative; flex: 1; min-width: min(100%, 280px); max-width: 560px; }
.search-box input { width: 100%; padding-left: 40px; }
.search-box::before {
  content: ""; position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px;
  pointer-events: none; z-index: 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23909296' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10' cy='10' r='7'/%3E%3Cpath d='M21 21l-6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40; max-height: 400px; overflow-y: auto; padding: 6px;
  background: var(--glass-strong); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius-lg); box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .7);
  animation: fadein .18s var(--ease);
}
.suggest a { display: flex; padding: 6px 8px; border-radius: 10px; color: var(--text); }
.suggest a:hover, .suggest a.sel { background: rgba(121, 80, 242, .18); color: #fff; }

/* állapotok */
.empty, .loading, .error { padding: 34px 16px; text-align: center; color: var(--dimmed); }
.error { color: var(--red-l); }
.loading::before {
  content: ""; display: block; width: 34px; height: 34px; margin: 0 auto 12px; border-radius: 50%;
  border: 3px solid rgba(121, 80, 242, .2); border-top-color: var(--violet-l); animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.note { color: var(--dimmed); font-size: 13px; margin-top: 14px; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; color: var(--dimmed); font-size: 13px; align-items: center; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: 0; margin-right: 6px; }

/* grafikon */
.chart { position: relative; width: 100%; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .axis text { fill: var(--dim); font-size: 11px; font-family: Inter, sans-serif; }
.chart .grid line { stroke: rgba(255, 255, 255, .07); stroke-dasharray: 3 5; }
.tip {
  position: fixed; z-index: 60; pointer-events: none; padding: 9px 12px; font-size: 13px; max-width: 280px; border-radius: 10px;
  background: rgba(12, 13, 17, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 14px 40px -8px rgba(0, 0, 0, .7);
}
.tip b { color: #fff; }

/* guild */
.member-name { font-weight: 600; color: var(--text); }
.member-name:hover { color: var(--violet-l); }
.podium { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.podium .card { padding: 16px; margin: 0; }
.podium > .card:first-child:has(.medal) { border-color: rgba(250, 176, 5, .35); background: linear-gradient(160deg, rgba(250, 176, 5, .12), var(--glass) 60%); }
.medal { font-size: 28px; line-height: 1; }
.battle { padding: 16px 0; }
.battle + .battle { border-top: 1px solid rgba(255, 255, 255, .06); }
.battle-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.battle .guilds { color: var(--dimmed); font-size: 13px; margin-top: 6px; }
.vs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kill-weapon { width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .04); }

/* események */
.event-roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 10px; margin-top: 14px; }
.role-box { background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 255, 255, .07); border-radius: var(--radius-md); padding: 12px; }
.role-box .names { color: var(--dimmed); font-size: 13px; margin-top: 6px; }
.bar { height: 6px; background: rgba(255, 255, 255, .08); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.bar span { display: block; height: 100%; border-radius: 99px; background: var(--primary-grad); transition: width .6s var(--ease); }

.price-hero { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.price-hero img {
  width: 92px; height: 92px; border-radius: 18px; padding: 4px;
  background: radial-gradient(circle at 50% 35%, rgba(121, 80, 242, .25), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .08);
}
.price-hero h2 { font-size: 24px; }
.flipbox { border-color: rgba(18, 184, 134, .35); background: linear-gradient(135deg, rgba(18, 184, 134, .16), var(--glass) 70%); }

/* ---------- mobil ---------- */
@media (max-width: 1000px) {
  .header .burger { display: inline-flex; }
  .navbar {
    transform: translateX(-105%); transition: transform .3s var(--ease); width: min(84vw, 300px);
    background: var(--glass-strong); box-shadow: 20px 0 60px rgba(0, 0, 0, .5);
  }
  body.nav-open .navbar { transform: none; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 20; background: rgba(0, 0, 0, .5); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .3s; }
  body.nav-open .scrim { opacity: 1; pointer-events: auto; }
  .main { margin-left: 0; padding: 18px 16px 0; }
}
@media (max-width: 640px) {
  :root { --header-h: 58px; }
  .header { padding: 0 12px; gap: 10px; }
  .hide-sm { display: none; }
  .brand-sub { display: none; }
  .live { padding: 0 11px; }
  .live #live-text { display: none; }
  h2 { font-size: 21px; }
  h2 > .ti { width: 38px; height: 38px; font-size: 20px; margin-right: 10px; }
  .card { padding: 16px; }
  .table-wrap { margin: 0 -16px; padding: 0 16px; }
  .stat .value { font-size: 24px; }
  .hero { padding: 26px 18px; }
  td, th { padding: 8px 9px; }
  .item { min-width: 180px; }
  .item img { width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .seg-ind.anim { transition: none !important; }
}


/* =====================================================================
   Új komponensek
   ===================================================================== */
/* DataTable eszköztár */
.dt-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.dt-toolbar .search-box { max-width: 340px; }
.dt-count { margin-left: auto; color: var(--dimmed); font-size: 12.5px; font-weight: 600; }
.dt-more { display: flex; justify-content: center; margin-top: 14px; }
select {
  appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23909296' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 16px;
}
select option { background: #1f2026; color: var(--text); }
th .ti { font-size: 13px; vertical-align: -1px; }
.th-arrow { display: inline-block; margin-left: 4px; color: var(--violet-l); }

/* Tabs (aláhúzott fülek a guild oldalon) */
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid rgba(255, 255, 255, .08); margin-bottom: 18px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; color: var(--dimmed); font-weight: 600; font-size: 14px;
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color .15s, border-color .15s;
}
.tabs a .ti { font-size: 17px; }
.tabs a:hover { color: var(--text); }
.tabs a.on { color: #fff; border-bottom-color: var(--violet-l); }

/* RingProgress / Progress */
.progress { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 99px; background: var(--primary-grad); transition: width .6s var(--ease); }
.ring { --p: 0; width: 64px; height: 64px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 800; font-size: 13px;
  background: radial-gradient(closest-side, #1d1e24 76%, transparent 78% 100%), conic-gradient(var(--violet-l) calc(var(--p) * 1%), rgba(255, 255, 255, .08) 0); }

/* sparkline a stat kártyákban */
.spark { display: block; width: 100%; height: 34px; margin-top: 8px; }

/* oszlopdiagram */
.bars svg { width: 100%; height: auto; display: block; }
.bars rect.b { fill: url(#barg); transition: opacity .15s; }
.bars rect.b:hover { opacity: .75; }
.bars .axis text { fill: var(--dim); font-size: 11px; font-family: Inter, sans-serif; }
.bars .grid line { stroke: rgba(255, 255, 255, .07); stroke-dasharray: 3 5; }

/* kulcs-érték sorok */
.kv { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; font-size: 14px; }
.kv > :nth-child(odd) { color: var(--dimmed); }
.kv > :nth-child(even) { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

/* Spotlight (Ctrl+K) */
.spot-wrap {
  position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px;
  background: rgba(5, 6, 9, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fadein .15s var(--ease);
}
.spot-wrap[hidden] { display: none; }
.spot {
  width: min(640px, 100%); max-height: 70vh; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-lg);
  background: rgba(24, 25, 31, .97); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 30px 80px -10px rgba(0, 0, 0, .8);
}
.spot-input { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.spot-input .ti { font-size: 20px; color: var(--dimmed); }
.spot-input input { flex: 1; height: 56px; border: 0; background: transparent; box-shadow: none; font-size: 16px; padding: 0; }
.spot-input input:focus { box-shadow: none; background: transparent; }
.spot-list { overflow-y: auto; padding: 8px; }
.spot-group { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); padding: 10px 10px 4px; }
.spot-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; color: var(--text); cursor: pointer; }
.spot-item .nav-ic { width: 32px; height: 32px; }
.spot-item small { display: block; color: var(--dimmed); font-size: 12px; }
.spot-item.sel, .spot-item:hover { background: rgba(121, 80, 242, .18); color: #fff; }
.spot-item img { width: 32px; height: 32px; }
.spot-foot { display: flex; gap: 14px; padding: 10px 16px; border-top: 1px solid rgba(255, 255, 255, .08); color: var(--dim); font-size: 12px; }

/* recept */
.recipe { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.recipe .ri { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: var(--radius-md); background: rgba(0, 0, 0, .2); border: 1px solid rgba(255, 255, 255, .06); }
.recipe .ri img { width: 38px; height: 38px; }
.recipe .ri .q { margin-left: auto; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

/* skeleton betöltés */
.skel { border-radius: 10px; background: linear-gradient(90deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .08), rgba(255, 255, 255, .04)); background-size: 200% 100%; animation: skel 1.2s linear infinite; }
@keyframes skel { to { background-position: -200% 0; } }

.c-green { background: rgba(64, 192, 87, .16); color: var(--green-l); }
.header .show-sm { display: none; }
@media (max-width: 640px) { .header .show-sm { display: inline-flex; } }
.stat .value .ti { font-size: .8em; }
@media (max-width: 640px) {
  .grid.stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 14px; }
  .stat .value { font-size: 20px; overflow-wrap: anywhere; }
  .stat .label { font-size: 11px; }
  .stat .label > .ti { width: 26px; height: 26px; font-size: 15px; }
}

/* nyelvválasztó a fejlécben */
.lang {
  display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 4px 0 10px; border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03)); border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); color: var(--dimmed); cursor: pointer;
}
.lang .ti { font-size: 16px; }
.lang select {
  height: 32px; border: 0; background-color: transparent; box-shadow: none; padding: 0 26px 0 2px; font-weight: 700; font-size: 13px;
  color: var(--text); background-position: right 6px center;
}
.lang select:focus { box-shadow: none; background-color: transparent; }

/* esemény űrlap */
.ev-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.ev-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--dimmed); text-transform: uppercase; letter-spacing: .04em; }
.ev-grid label.wide { grid-column: 1 / -1; }
.ev-grid input, .ev-grid textarea { width: 100%; text-transform: none; letter-spacing: 0; }
input[type=password], input[type=datetime-local], textarea {
  height: 40px; background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .09); color: var(--text);
  border-radius: var(--radius-md); padding: 0 14px; font: 500 14px Inter, sans-serif; color-scheme: dark;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .3); transition: border-color .15s, box-shadow .15s;
}
textarea { height: auto; padding: 10px 14px; resize: vertical; min-height: 64px; }
input[type=password]:focus, input[type=datetime-local]:focus, textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(121, 80, 242, .25); }
button.pill { cursor: pointer; font-family: inherit; }
button.pill:hover { background: rgba(121, 80, 242, .18); border-color: rgba(151, 117, 250, .4); }
.btn:disabled { opacity: .6; cursor: wait; }
.event-card + .event-card { margin-top: 14px; }
.role-box.yes { border-color: rgba(18, 184, 134, .3); background: rgba(18, 184, 134, .07); }
.role-box.no { border-color: rgba(250, 82, 82, .25); background: rgba(250, 82, 82, .06); }
.ring span { font-size: 16px; }

/* értesítés (toast) */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; display: flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-radius: 12px; font-weight: 600; background: rgba(24, 25, 31, .97); border: 1px solid rgba(18, 184, 134, .4);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .7); animation: fadein .2s var(--ease); transition: opacity .4s; max-width: calc(100vw - 32px);
}
.toast.err { border-color: rgba(250, 82, 82, .5); color: var(--red-l); }
.toast.out { opacity: 0; }

/* heti guild cél */
.goal { margin-bottom: 14px; }
.goal-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: 13.5px; font-weight: 600; color: var(--dimmed); margin-bottom: 8px; flex-wrap: wrap; }
.goal-head .ti { color: var(--violet-l); }
.goal-bar { height: 10px; }
.goal.big .goal-bar { height: 16px; }
.goal.big .goal-head b { font-size: 18px; color: var(--text); }

/* telepítés gomb a menüben */
.install-btn { width: 100%; margin-top: 12px; height: 36px; font-size: 13px; }

/* a hidden attribútum mindig nyerjen (pl. .controls display:flex ellen) */
[hidden] { display: none !important; }

/* belépés */
.user-btn { padding: 0 10px 0 6px; gap: 8px; }
.user-btn img { width: 24px; height: 24px; border-radius: 50%; }
.login-box { max-width: 460px; }
.login-code { display: flex; align-items: center; gap: 10px; margin: 12px 0; }
.login-code code {
  flex: 1; font: 800 22px/1 ui-monospace, Consolas, monospace; letter-spacing: .06em; padding: 14px 16px; border-radius: 12px;
  background: rgba(121, 80, 242, .14); border: 1px solid rgba(151, 117, 250, .35); color: #fff; text-align: center;
}
.login-hint { border-color: rgba(151, 117, 250, .3); }
.seg.rsvp button { padding: 6px 12px; }

/* naptár */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-head h3 { text-transform: capitalize; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-dow { font-size: 11px; font-weight: 700; color: var(--dim); text-transform: uppercase; text-align: center; padding: 4px 0; }
.cal-day { min-height: 92px; border-radius: 10px; padding: 6px; background: rgba(0, 0, 0, .2); border: 1px solid rgba(255, 255, 255, .05); overflow: hidden; }
.cal-day.out { opacity: .4; }
.cal-day.today { border-color: rgba(151, 117, 250, .6); box-shadow: inset 0 0 0 1px rgba(151, 117, 250, .3); }
.cal-num { font-size: 12px; font-weight: 700; color: var(--dimmed); margin-bottom: 4px; }
.cal-ev {
  display: block; font-size: 11.5px; line-height: 1.3; padding: 3px 6px; border-radius: 6px; margin-bottom: 3px; color: var(--text);
  background: rgba(121, 80, 242, .2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cal-ev:hover { background: rgba(121, 80, 242, .35); color: #fff; }
.cal-ev.mine { background: rgba(18, 184, 134, .22); }
.event-card.flash { box-shadow: 0 0 0 2px var(--violet-l), var(--shadow); transition: box-shadow .3s; }
@media (max-width: 640px) {
  .cal { gap: 3px; }
  .cal-day { min-height: 64px; padding: 4px; }
  .cal-ev { font-size: 10px; padding: 2px 4px; }
  .cal-ev b, .cal-ev .dim { display: none; }
}

.login-steps { margin: 12px 0 0; padding-left: 20px; color: var(--dark-0); font-size: 14px; }
.login-steps li { margin-bottom: 6px; }
.login-code code { user-select: all; }
.event-card.cancelled { opacity: .55; }
.event-card.cancelled h3 { text-decoration: line-through; }
