/* GlowFM Minecraft-Portal – gleiches Erscheinungsbild wie die übrigen Seiten auf glowfm.de */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #07070d;
  --bg-alt: #0d0d17;
  --card: rgba(20, 20, 35, 0.7);
  --card-solid: #14141f;
  --line: rgba(255, 255, 255, 0.07);
  --pink: #ff2d95;
  --cyan: #00e5ff;
  --violet: #a855f7;
  --gold: #ffb347;
  --green: #4ade80;
  --red: #f87171;
  --yellow: #facc15;
  --text: #ffffff;
  --muted: #a0a0b8;
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 20px;
}

html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--pink) #0a0a12; }
::-webkit-scrollbar { width: 12px; background: #0a0a12; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--pink), var(--violet), var(--cyan)); border-radius: 10px; border: 3px solid #0a0a12; }

body {
  font-family: var(--font-body); background: var(--bg); color: var(--text); line-height: 1.65;
  overflow-x: hidden; display: flex; flex-direction: column; min-height: 100vh;
}
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: 1px; line-height: 1.2; }
h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin-bottom: .6rem; }
h2 { font-size: 1.15rem; margin-bottom: .9rem; color: #fff; }
h3 { font-size: .95rem; margin-bottom: .5rem; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-shadow: 0 0 10px rgba(0, 229, 255, .6); }
::selection { background: var(--pink); color: #fff; }
.hidden { display: none !important; }
#particles { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 1rem 2rem; background: rgba(7, 7, 13, .8); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 45, 149, .15);
}
.header-left { justify-self: start; }
.header-brand { display: flex; align-items: center; gap: .8rem; }
.header-brand:hover { text-shadow: none; }
.header-logo-icon { height: 35px; width: auto; filter: drop-shadow(0 0 8px rgba(255, 45, 149, .4)); }
.logo-text {
  font-family: var(--font-display); font-weight: 900; font-size: 1.5rem;
  background: linear-gradient(135deg, var(--pink), var(--cyan)); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 12px rgba(255, 45, 149, .4));
}
.header-center { justify-self: center; }
.header-right { justify-self: end; }
.btn-login {
  display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1.4rem; border-radius: 50px;
  border: 1.5px solid var(--cyan); background: rgba(0, 229, 255, .05); color: var(--cyan); font-family: var(--font-display);
  font-weight: 700; font-size: .8rem; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; transition: all .3s;
  box-shadow: 0 0 12px rgba(0, 229, 255, .3);
}
.btn-login:hover { background: var(--cyan); color: var(--bg); box-shadow: 0 0 28px var(--cyan); }

.gnav { position: relative; display: flex; align-items: center; justify-content: center; }
.gnav-links { display: flex; align-items: center; gap: .35rem; list-style: none; }
.gnav-link {
  display: block; padding: .5rem .95rem; border-radius: 50px; white-space: nowrap; font-family: var(--font-display); font-size: .85rem;
  font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); transition: color .3s, text-shadow .3s, background .3s;
  background: none; border: 0; cursor: pointer;
}
.gnav-link:hover, .gnav-link.active { color: var(--cyan); text-shadow: 0 0 15px var(--cyan); }
.gnav-link.active { background: rgba(0, 229, 255, .07); }
.gnav-toggle {
  display: none; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; align-items: center; justify-content: center;
  flex-direction: column; gap: 4px; border: 1.5px solid rgba(0, 229, 255, .6); background: rgba(0, 229, 255, .05);
}
.gnav-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--cyan); transition: transform .3s, opacity .3s; }
.gnav.open .gnav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.gnav.open .gnav-toggle span:nth-child(2) { opacity: 0; }
.gnav.open .gnav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.gnav-more { position: relative; }
.gnav-more-btn span { display: inline-block; font-size: .7em; margin-left: .2rem; transition: transform .25s; }
.gnav-more:hover .gnav-more-btn span, .gnav-more.open .gnav-more-btn span { transform: rotate(180deg); }
.gnav-sub {
  position: absolute; top: calc(100% + .55rem); right: 0; z-index: 1250; min-width: 215px; padding: .5rem; list-style: none;
  display: flex; flex-direction: column; gap: .1rem; border-radius: 16px; background: rgba(12, 12, 22, .97);
  border: 1px solid rgba(0, 229, 255, .3); box-shadow: 0 0 30px rgba(0, 229, 255, .15), 0 16px 40px rgba(0, 0, 0, .6);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility .2s;
}
.gnav-sub::before { content: ''; position: absolute; left: 0; right: 0; top: -.6rem; height: .6rem; }
.gnav-more:hover .gnav-sub, .gnav-more:focus-within .gnav-sub, .gnav-more.open .gnav-sub { opacity: 1; visibility: visible; transform: none; }
.gnav-sublink { display: block; padding: .55rem .8rem; border-radius: 10px; white-space: nowrap; font-size: .88rem; font-weight: 600; color: var(--muted); }
.gnav-sublink:hover { color: #fff; background: rgba(0, 229, 255, .08); text-shadow: none; }
.gnav-sublink.active { color: var(--cyan); background: rgba(0, 229, 255, .1); }

/* ---------- Seitentitel & Portal-Reiter ---------- */
.page-header { text-align: center; padding: 4rem 2rem 2rem; background: radial-gradient(ellipse at 50% 0%, rgba(0, 229, 255, .1), transparent 60%); }
.page-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem); font-weight: 900; background: linear-gradient(135deg, var(--cyan), var(--violet));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 20px rgba(0, 229, 255, .4));
}
.page-sub { color: var(--muted); font-size: 1.05rem; max-width: 640px; margin: 0 auto; }
.portal-tabs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; max-width: 1200px; margin: 0 auto 1.5rem; padding: 0 1rem;
}
.portal-tabs a {
  padding: .55rem 1.1rem; border-radius: 50px; border: 1px solid var(--line); background: var(--card); color: var(--muted);
  font-weight: 600; font-size: .9rem; transition: all .25s;
}
.portal-tabs a:hover { color: #fff; border-color: rgba(0, 229, 255, .4); text-shadow: none; }
.portal-tabs a.active { color: #fff; border-color: var(--pink); background: rgba(255, 45, 149, .12); box-shadow: 0 0 18px rgba(255, 45, 149, .25); }

.portal { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem 4rem; }

/* ---------- Bausteine ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.card + .card { margin-top: 1.2rem; }
.card.glow { border-color: rgba(255, 45, 149, .35); box-shadow: 0 0 30px rgba(255, 45, 149, .12); }
.grid { display: grid; gap: 1.2rem; }
.grid .card + .card { margin-top: 0; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.section { margin-top: 1.6rem; }
.section-title { font-size: 1.2rem; margin: 2.2rem 0 1rem; color: var(--cyan); text-transform: uppercase; letter-spacing: 2px; }
.row { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; }
.row.spread { justify-content: space-between; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.grad { background: linear-gradient(135deg, var(--pink), var(--cyan)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.empty { text-align: center; color: var(--muted); padding: 1.6rem; }
.error { color: var(--red); margin-top: .6rem; min-height: 1.2em; font-size: .9rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .75rem 1.5rem; border-radius: 50px; border: 0;
  font-family: var(--font-display); font-weight: 700; font-size: .82rem; letter-spacing: 1px; text-transform: uppercase; cursor: pointer;
  color: #fff; background: linear-gradient(135deg, var(--pink), var(--violet)); box-shadow: 0 0 15px rgba(255, 45, 149, .4); transition: all .25s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 0 28px var(--pink); text-shadow: none; }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.btn.ghost { background: rgba(0, 229, 255, .05); border: 1.5px solid rgba(0, 229, 255, .5); color: var(--cyan); box-shadow: none; }
.btn.ghost:hover { background: rgba(0, 229, 255, .12); box-shadow: 0 0 18px rgba(0, 229, 255, .35); }
.btn.danger { background: rgba(248, 113, 113, .12); border: 1.5px solid rgba(248, 113, 113, .6); color: var(--red); box-shadow: none; }
.btn.small { padding: .5rem 1rem; font-size: .72rem; }
.link-btn { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: .9rem; }
.link-btn:hover { color: var(--red); }

label { display: block; font-size: .82rem; font-weight: 600; color: var(--muted); margin: .9rem 0 .35rem; letter-spacing: .3px; }
input, select, textarea {
  width: 100%; padding: .8rem 1rem; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .03);
  color: var(--text); font-family: var(--font-body); font-size: .95rem; transition: border-color .25s, box-shadow .25s;
}
select option { background: var(--card-solid); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 15px rgba(0, 229, 255, .25); }
textarea { min-height: 130px; resize: vertical; }
input[type=checkbox] { width: auto; accent-color: var(--pink); }

.badge { display: inline-block; padding: .15rem .65rem; border-radius: 50px; font-size: .75rem; font-weight: 800; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); }
.tag { display: inline-block; padding: .12rem .55rem; margin: 0 .3rem .2rem 0; border-radius: 8px; font-size: .75rem; font-weight: 700; background: rgba(255, 255, 255, .07); color: var(--muted); }
.tag.red { background: rgba(248, 113, 113, .15); color: var(--red); }
.tag.yellow { background: rgba(250, 204, 21, .15); color: var(--yellow); }
.tag.green { background: rgba(74, 222, 128, .15); color: var(--green); }
.tag.purple { background: rgba(168, 85, 247, .18); color: #d8b4fe; }
.tag.cyan { background: rgba(0, 229, 255, .12); color: var(--cyan); }
.chip { display: inline-block; padding: .2rem .7rem; border-radius: 50px; font-size: .75rem; font-weight: 800; white-space: nowrap; }
.chip.OPEN { background: rgba(250, 204, 21, .15); color: var(--yellow); }
.chip.IN_PROGRESS { background: rgba(0, 229, 255, .14); color: var(--cyan); }
.chip.ANSWERED { background: rgba(74, 222, 128, .15); color: var(--green); }
.chip.CLOSED { background: rgba(255, 255, 255, .07); color: var(--muted); }
.prio { font-size: .72rem; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; }
.prio.HIGH { color: var(--gold); }
.prio.URGENT { color: var(--red); }
.prio.LOW { color: var(--muted); }
.alert { padding: .8rem 1rem; border-radius: 12px; margin-top: 1rem; font-size: .92rem; }
.alert.red { background: rgba(248, 113, 113, .12); border: 1px solid rgba(248, 113, 113, .35); }
.alert.yellow { background: rgba(250, 204, 21, .1); border: 1px solid rgba(250, 204, 21, .3); }
.alert.cyan { background: rgba(0, 229, 255, .08); border: 1px solid rgba(0, 229, 255, .3); }
.alert.green { background: rgba(74, 222, 128, .1); border: 1px solid rgba(74, 222, 128, .3); }
.cmd { font-family: ui-monospace, Consolas, monospace; background: rgba(0, 229, 255, .08); color: var(--cyan); padding: .1rem .45rem; border-radius: 6px; font-size: .88em; }
.code { font-family: var(--font-display); font-size: 2rem; letter-spacing: 6px; color: var(--pink); text-shadow: 0 0 20px rgba(255, 45, 149, .6); }

.spinner { width: 46px; height: 46px; margin: 4rem auto; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .08); border-top-color: var(--pink); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast {
  position: fixed; left: 50%; bottom: 2rem; transform: translate(-50%, 140%); z-index: 2000; padding: .85rem 1.4rem; border-radius: 14px;
  background: rgba(12, 12, 22, .97); border: 1px solid rgba(255, 45, 149, .5); box-shadow: 0 0 25px rgba(255, 45, 149, .3); transition: transform .3s;
}
.toast.show { transform: translate(-50%, 0); }

/* ---------- Startseite ---------- */
.hero { text-align: center; padding: 1rem 0 .5rem; }
.ipbox {
  display: inline-flex; align-items: center; gap: 1rem; padding: .7rem .7rem .7rem 1.4rem; border-radius: 50px; border: 1px solid rgba(0, 229, 255, .35);
  background: rgba(0, 229, 255, .05); font-family: var(--font-display); font-size: 1.15rem; letter-spacing: 1px;
}
.live { display: inline-flex; align-items: center; gap: .55rem; margin-top: 1.1rem; color: var(--muted); }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.server .count { font-family: var(--font-display); font-size: 2.2rem; color: var(--cyan); text-shadow: 0 0 18px rgba(0, 229, 255, .5); }
.feature .icon { font-size: 1.8rem; margin-bottom: .4rem; }
.steps { counter-reset: s; list-style: none; display: grid; gap: .8rem; }
.steps li { counter-increment: s; display: flex; gap: .9rem; align-items: flex-start; }
.steps li::before {
  content: counter(s); flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display);
  font-weight: 900; background: linear-gradient(135deg, var(--pink), var(--violet)); box-shadow: 0 0 12px rgba(255, 45, 149, .5);
}

/* ---------- Spielstand / Statistiken ---------- */
.profile { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.profile img { border-radius: 14px; box-shadow: 0 0 20px rgba(255, 45, 149, .35); image-rendering: pixelated; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; margin-top: 1.1rem; }
.stat { padding: .9rem 1rem; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.stat .label { font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.stat .value { font-family: var(--font-display); font-size: 1.15rem; margin-top: .2rem; word-break: break-word; }
.stat.hl { border-color: rgba(255, 45, 149, .35); background: rgba(255, 45, 149, .07); }
.bar { height: 10px; border-radius: 10px; background: rgba(255, 255, 255, .07); overflow: hidden; margin-top: .5rem; }
.bar > span { display: block; height: 100%; border-radius: 10px; background: linear-gradient(90deg, var(--pink), var(--violet), var(--cyan)); box-shadow: 0 0 12px rgba(255, 45, 149, .5); }
.bar.done > span { background: linear-gradient(90deg, #22c55e, var(--green)); }
.quest { padding: .8rem 0; border-bottom: 1px solid var(--line); }
.quest:last-child { border-bottom: 0; }
.quest .row { justify-content: space-between; }
.bp-tier { font-family: var(--font-display); font-size: 3rem; font-weight: 900; line-height: 1; }
.top-list { list-style: none; counter-reset: t; }
.top-list li { counter-increment: t; display: flex; justify-content: space-between; gap: .8rem; padding: .55rem .2rem; border-bottom: 1px solid var(--line); }
.top-list li::before { content: "#" counter(t); width: 2.2rem; color: var(--muted); font-weight: 800; }
.top-list li:nth-child(1)::before { color: #facc15; }
.top-list li:nth-child(2)::before { color: #d4d4d8; }
.top-list li:nth-child(3)::before { color: #d97706; }
.top-list li span:first-of-type { flex: 1; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.switch-row:last-child { border-bottom: 0; }

/* ---------- Tickets ---------- */
.ticket-row {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.1rem; margin-top: .6rem; border-radius: 14px;
  background: rgba(255, 255, 255, .025); border: 1px solid var(--line); color: var(--text); transition: border-color .2s, background .2s;
}
.ticket-row:hover { border-color: rgba(0, 229, 255, .4); background: rgba(0, 229, 255, .04); text-shadow: none; }
.ticket-row .meta { font-size: .8rem; color: var(--muted); margin-top: .2rem; }
.ticket-row .new { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 10px var(--pink); margin-right: .45rem; }
.filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.filters button { padding: .4rem .9rem; border-radius: 50px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font-weight: 600; }
.filters button.on { color: #fff; border-color: var(--pink); background: rgba(255, 45, 149, .12); }
.toolbar { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: .6rem; margin-bottom: .6rem; }
.msg { margin-top: 1rem; padding: 1rem 1.1rem; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.msg.staff { border-color: rgba(0, 229, 255, .3); background: rgba(0, 229, 255, .05); }
.msg.internal { border-color: rgba(250, 204, 21, .4); background: rgba(250, 204, 21, .06); }
.msg.system { padding: .4rem .9rem; background: transparent; border: 1px dashed var(--line); color: var(--muted); font-size: .85rem; text-align: center; }
.msg .head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: .8rem; color: var(--muted); margin-bottom: .4rem; }
.msg .author { color: #fff; font-weight: 700; }
.msg .text { white-space: pre-wrap; word-break: break-word; }
.ticket-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1.2rem; align-items: start; }
.side .card + .card { margin-top: 1rem; }
.stars { display: inline-flex; gap: .2rem; }
.stars button { background: none; border: 0; font-size: 1.7rem; cursor: pointer; color: rgba(255, 255, 255, .2); transition: transform .15s, color .15s; }
.stars button.on { color: var(--yellow); text-shadow: 0 0 12px rgba(250, 204, 21, .6); }
.stars button:hover { transform: scale(1.15); }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .8rem; margin-bottom: 1.2rem; }

/* ---------- Tabellen & Spielerakte ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); padding: .6rem; border-bottom: 1px solid var(--line); }
td { padding: .7rem .6rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: rgba(0, 229, 255, .04); }
.member { display: flex; gap: .8rem; align-items: center; }
.member img { border-radius: 10px; image-rendering: pixelated; }
.online-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #555; margin-right: .4rem; }
.online-dot.on { background: var(--green); box-shadow: 0 0 8px var(--green); }

/* ---------- Inventar, Endertruhe & Werkbank ---------- */
.invlayout { display: grid; grid-template-columns: auto 1fr 1fr; gap: 18px; margin-top: 16px; align-items: start; }
.invgrid { display: grid; grid-template-columns: repeat(9, minmax(0, 52px)); gap: 4px; }
.invgrid.armor { grid-template-columns: repeat(5, minmax(0, 52px)); }
.invgrid.hotbar { padding-top: 6px; border-top: 1px dashed var(--line); }
.slot { aspect-ratio: 1; min-width: 0; background: #0c0c16; border: 1px solid rgba(255, 255, 255, .1); border-radius: 8px; position: relative; cursor: pointer; user-select: none; transition: border-color .12s, transform .12s; }
.slot:hover { border-color: var(--violet); }
.slot.locked { cursor: default; opacity: .8; }
.slot.sel { border-color: var(--pink); box-shadow: 0 0 0 2px var(--pink) inset; transform: scale(1.04); }
.slot.used::after { content: ""; position: absolute; top: 3px; left: 3px; width: 6px; height: 6px; border-radius: 50%; background: var(--pink); }
.slot.target { border-style: dashed; border-color: var(--pink); }
.item { position: absolute; inset: 3px; border-radius: 6px; background: color-mix(in srgb, var(--c) 55%, #0c0c16); border: 1px solid var(--c); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.item.glint { box-shadow: 0 0 10px 1px #c084fc inset; }
.iname { font-size: 8.5px; line-height: 1.1; text-align: center; color: #fff; text-shadow: 0 1px 2px #000; padding: 2px; word-break: break-word; }
.iamount { position: absolute; right: 3px; bottom: 1px; font-size: 12px; font-weight: 800; color: #fff; text-shadow: 1px 1px 0 #000; }
.idur { position: absolute; left: 3px; bottom: 3px; height: 3px; border-radius: 2px; max-width: calc(100% - 6px); }
.craft { display: flex; align-items: center; gap: 14px; }
.craftgrid { display: grid; grid-template-columns: repeat(3, 56px); gap: 4px; }
.arrow { font-size: 28px; color: var(--muted); }
.slot.result { width: 72px; cursor: default; }
.slot.result.ready { border-color: var(--green); box-shadow: 0 0 14px -2px var(--green); }

/* ---------- Footer ---------- */
.site-footer { background: #04040a; border-top: 1px solid rgba(255, 255, 255, .05); padding: 4rem 2rem 2rem; margin-top: auto; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2.5fr 1fr 1fr 1fr; gap: 3rem; }
.footer-brand .logo-text { font-size: 1.6rem; margin-bottom: 1rem; display: inline-block; }
.footer-brand p { color: var(--muted); font-size: .9rem; max-width: 300px; line-height: 1.6; }
.footer-col h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: 2px; color: var(--cyan); margin-bottom: 1.2rem; }
.footer-col a { display: block; color: var(--muted); font-size: .9rem; margin-bottom: .6rem; transition: color .3s, text-shadow .3s; }
.footer-col a:hover { color: var(--pink); text-shadow: 0 0 10px var(--pink); }
.footer-bottom {
  max-width: 1200px; margin: 3rem auto 0; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .05); display: flex;
  justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .85rem; color: var(--muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .gnav-toggle { display: flex; }
  .gnav-links {
    display: none; position: absolute; top: calc(100% + .9rem); left: 50%; transform: translateX(-50%); z-index: 1200; flex-direction: column;
    align-items: stretch; min-width: 220px; padding: .6rem; max-height: calc(100vh - 7rem); overflow-y: auto; background: rgba(12, 12, 22, .97);
    border: 1px solid rgba(0, 229, 255, .3); border-radius: 16px; box-shadow: 0 0 30px rgba(0, 229, 255, .15), 0 16px 40px rgba(0, 0, 0, .6);
  }
  .gnav.open .gnav-links { display: flex; }
  .gnav-link { text-align: center; padding: .8rem 1rem; }
  .gnav-more-btn { display: none; }
  .gnav-sub { position: static; opacity: 1; visibility: visible; transform: none; min-width: 0; padding: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; }
  .gnav-sublink { text-align: center; padding: .7rem 1rem; }
  .invlayout { grid-template-columns: 1fr; }
  .ticket-layout { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .grid.three, .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .toolbar { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .site-header { padding: .8rem 1rem; gap: .5rem; }
  .logo-text { font-size: 1.15rem; }
  .btn-login span + span { display: none; }
  .btn-login { padding: .6rem .8rem; }
  .grid.two, .grid.three, .grid.four { grid-template-columns: 1fr; }
  .page-header { padding: 2.5rem 1rem 1.2rem; }
  .portal { padding: 0 1rem 3rem; }
  .card { padding: 1.2rem; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-brand p { margin: 0 auto; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .toolbar { grid-template-columns: 1fr; }
  .invgrid { grid-template-columns: repeat(9, minmax(0, 1fr)); }
  .iname { font-size: 7px; }
  .ipbox { font-size: .95rem; }
}
