@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ───────────────────────────────────────────
   1. CSS VÁLTOZÓK — TÉMÁK
──────────────────────────────────────────── */

/* ── NEON (eredeti, de finomítva) ── */
:root,
[data-theme="neon"] {
    --bg:           #070b16;
    --bg2:          #0d1525;
    --bg3:          #111d35;
    --surface:      rgba(13, 21, 37, 0.95);
    --border:       rgba(0, 255, 255, 0.12);
    --border-hover: rgba(0, 255, 255, 0.35);

    --text:         #c8d8e8;
    --text-bright:  #e8f4ff;
    --text-muted:   #5a7080;
    --text-dim:     #3a4a58;

    --accent:       #00ffff;
    --accent2:      #ff00ff;
    --accent3:      #fbbf24;
    --accent4:      #34d399;
    --accent-red:   #ff4466;

    --link:         #00ddff;
    --link-hover:   #80ffff;

    --font-body:    'Exo 2', 'Segoe UI', system-ui, sans-serif;
    --font-mono:    'JetBrains Mono', 'Consolas', monospace;
    --font-size:    15px;
    --line-height:  1.65;

    --radius:       12px;
    --radius-sm:    8px;
    --radius-lg:    20px;

    --shadow:       0 4px 24px rgba(0, 0, 0, 0.6);
    --shadow-glow:  0 0 20px rgba(0, 255, 255, 0.15);
    --shadow-glow2: 0 0 20px rgba(255, 0, 255, 0.15);

    --header-bg:    linear-gradient(135deg, #0a1020 0%, #0d1830 100%);
    --card-bg:      linear-gradient(145deg, #0d1525, #0a1020);
    --input-bg:     rgba(0, 0, 0, 0.4);
    --scrollbar:    #1e3a4a;

    --nav-bg:       rgba(7, 11, 22, 0.97);
    --nav-border:   rgba(0, 255, 255, 0.1);
    --nav-link:     #8ab4c8;
    --nav-active:   #00ffff;
}

/* ── READABLE — Olvasható sötét ── */
[data-theme="readable"] {
    --bg:           #0f1319;
    --bg2:          #171e28;
    --bg3:          #1e2836;
    --surface:      rgba(23, 30, 40, 0.97);
    --border:       rgba(100, 160, 200, 0.18);
    --border-hover: rgba(100, 180, 230, 0.45);

    --text:         #d8e8f4;
    --text-bright:  #f0f7ff;
    --text-muted:   #6a8898;
    --text-dim:     #445566;

    --accent:       #5bc8f5;
    --accent2:      #e879a0;
    --accent3:      #f5c542;
    --accent4:      #52d4a0;
    --accent-red:   #f06080;

    --link:         #5bc8f5;
    --link-hover:   #9de2ff;

    --font-body:    'Exo 2', 'Segoe UI', system-ui, sans-serif;
    --font-mono:    'JetBrains Mono', 'Consolas', monospace;
    --font-size:    16px;
    --line-height:  1.75;

    --radius:       12px;
    --radius-sm:    8px;
    --radius-lg:    20px;

    --shadow:       0 4px 28px rgba(0, 0, 0, 0.7);
    --shadow-glow:  0 0 24px rgba(91, 200, 245, 0.12);
    --shadow-glow2: 0 0 24px rgba(232, 121, 160, 0.12);

    --header-bg:    linear-gradient(135deg, #111820 0%, #162030 100%);
    --card-bg:      linear-gradient(145deg, #171e28, #111820);
    --input-bg:     rgba(0, 0, 0, 0.5);
    --scrollbar:    #2a4a5a;

    --nav-bg:       rgba(12, 17, 24, 0.98);
    --nav-border:   rgba(91, 200, 245, 0.12);
    --nav-link:     #8aa8c0;
    --nav-active:   #5bc8f5;
}

/* ── MIDNIGHT — Mélyfekete, hideg kék ── */
[data-theme="midnight"] {
    --bg:           #03050c;
    --bg2:          #080e1a;
    --bg3:          #0e1626;
    --surface:      rgba(8, 14, 26, 0.98);
    --border:       rgba(60, 120, 200, 0.15);
    --border-hover: rgba(80, 160, 255, 0.4);

    --text:         #b8cce0;
    --text-bright:  #ddeeff;
    --text-muted:   #405570;
    --text-dim:     #253040;

    --accent:       #4080ff;
    --accent2:      #a060ff;
    --accent3:      #60c8ff;
    --accent4:      #30e0c0;
    --accent-red:   #ff4466;

    --link:         #6090ff;
    --link-hover:   #90b8ff;

    --font-body:    'Exo 2', 'Segoe UI', system-ui, sans-serif;
    --font-mono:    'JetBrains Mono', 'Consolas', monospace;
    --font-size:    15px;
    --line-height:  1.7;

    --radius:       12px;
    --radius-sm:    8px;
    --radius-lg:    20px;

    --shadow:       0 4px 32px rgba(0, 0, 0, 0.8);
    --shadow-glow:  0 0 28px rgba(64, 128, 255, 0.15);
    --shadow-glow2: 0 0 28px rgba(160, 96, 255, 0.15);

    --header-bg:    linear-gradient(135deg, #050810 0%, #0a1225 100%);
    --card-bg:      linear-gradient(145deg, #080e1a, #050810);
    --input-bg:     rgba(0, 0, 0, 0.6);
    --scrollbar:    #1a2a4a;

    --nav-bg:       rgba(3, 5, 12, 0.99);
    --nav-border:   rgba(64, 128, 255, 0.1);
    --nav-link:     #607090;
    --nav-active:   #4080ff;
}

/* ── FOREST — Sötétzöld, fantasy ── */
[data-theme="forest"] {
    --bg:           #060e0a;
    --bg2:          #0c1810;
    --bg3:          #142018;
    --surface:      rgba(12, 24, 16, 0.97);
    --border:       rgba(50, 180, 80, 0.15);
    --border-hover: rgba(60, 220, 100, 0.4);

    --text:         #b8d8c0;
    --text-bright:  #d8f0dc;
    --text-muted:   #507060;
    --text-dim:     #304038;

    --accent:       #40dd80;
    --accent2:      #ffd060;
    --accent3:      #80e8c0;
    --accent4:      #c0ff80;
    --accent-red:   #ff6060;

    --link:         #50e890;
    --link-hover:   #90ffc0;

    --font-body:    'Exo 2', 'Segoe UI', system-ui, sans-serif;
    --font-mono:    'JetBrains Mono', 'Consolas', monospace;
    --font-size:    15px;
    --line-height:  1.7;

    --radius:       12px;
    --radius-sm:    8px;
    --radius-lg:    20px;

    --shadow:       0 4px 28px rgba(0, 0, 0, 0.75);
    --shadow-glow:  0 0 24px rgba(64, 221, 128, 0.12);
    --shadow-glow2: 0 0 24px rgba(255, 208, 96, 0.12);

    --header-bg:    linear-gradient(135deg, #080f0a 0%, #0e1c12 100%);
    --card-bg:      linear-gradient(145deg, #0c1810, #080f0a);
    --input-bg:     rgba(0, 0, 0, 0.5);
    --scrollbar:    #1a3a20;

    --nav-bg:       rgba(6, 14, 10, 0.98);
    --nav-border:   rgba(50, 180, 80, 0.1);
    --nav-link:     #60886a;
    --nav-active:   #40dd80;
}

/* ── LIGHT — Világos téma ── */
[data-theme="light"] {
    --bg:           #f0f4f8;
    --bg2:          #ffffff;
    --bg3:          #e4eaf2;
    --surface:      rgba(255, 255, 255, 0.98);
    --border:       rgba(0, 100, 160, 0.15);
    --border-hover: rgba(0, 140, 210, 0.45);

    --text:         #1e2d3d;
    --text-bright:  #0d1824;
    --text-muted:   #6080a0;
    --text-dim:     #9ab0c4;

    --accent:       #0088cc;
    --accent2:      #cc0088;
    --accent3:      #cc8800;
    --accent4:      #008855;
    --accent-red:   #cc2244;

    --link:         #0077bb;
    --link-hover:   #0055aa;

    --font-body:    'Exo 2', 'Segoe UI', system-ui, sans-serif;
    --font-mono:    'JetBrains Mono', 'Consolas', monospace;
    --font-size:    15px;
    --line-height:  1.7;

    --radius:       12px;
    --radius-sm:    8px;
    --radius-lg:    20px;

    --shadow:       0 2px 16px rgba(0, 50, 100, 0.12);
    --shadow-glow:  0 0 20px rgba(0, 136, 204, 0.1);
    --shadow-glow2: 0 0 20px rgba(204, 0, 136, 0.1);

    --header-bg:    linear-gradient(135deg, #ddeeff 0%, #e8f0fa 100%);
    --card-bg:      linear-gradient(145deg, #ffffff, #f4f8fc);
    --input-bg:     rgba(0, 0, 0, 0.04);
    --scrollbar:    #a0b8d0;

    --nav-bg:       rgba(240, 248, 255, 0.98);
    --nav-border:   rgba(0, 100, 160, 0.12);
    --nav-link:     #4470a0;
    --nav-active:   #0088cc;
}

/* ── CONTRAST — Maximum olvashatóság, nagy betűk, erős kontraszt ── */
[data-theme="contrast"] {
    --bg:           #111418;
    --bg2:          #1a1f26;
    --bg3:          #222830;
    --surface:      rgba(26, 31, 38, 0.98);
    --border:       rgba(255, 220, 100, 0.22);
    --border-hover: rgba(255, 220, 100, 0.55);

    --text:         #f0ead0;
    --text-bright:  #fff8e8;
    --text-muted:   #a09070;
    --text-dim:     #605040;

    --accent:       #ffdc64;
    --accent2:      #ff8040;
    --accent3:      #60e860;
    --accent4:      #40d4ff;
    --accent-red:   #ff5050;

    --link:         #ffdc64;
    --link-hover:   #fff0a0;

    --font-body:    'Exo 2', 'Segoe UI', system-ui, sans-serif;
    --font-mono:    'JetBrains Mono', 'Consolas', monospace;
    --font-size:    17px;
    --line-height:  1.85;

    --radius:       12px;
    --radius-sm:    8px;
    --radius-lg:    20px;

    --shadow:       0 4px 28px rgba(0, 0, 0, 0.75);
    --shadow-glow:  0 0 24px rgba(255, 220, 100, 0.18);
    --shadow-glow2: 0 0 24px rgba(255, 128, 64, 0.18);

    --header-bg:    linear-gradient(135deg, #0e1116 0%, #171c22 100%);
    --card-bg:      linear-gradient(145deg, #1a1f26, #111418);
    --input-bg:     rgba(0, 0, 0, 0.5);
    --scrollbar:    #3a3020;

    --nav-bg:       rgba(10, 12, 16, 0.99);
    --nav-border:   rgba(255, 220, 100, 0.14);
    --nav-link:     #c0a860;
    --nav-active:   #ffdc64;
}

/* Contrast téma body override */
html[data-theme="contrast"] body,
html[data-theme="contrast"] {
    --bg:     #111418 !important;
    --card:   #1a1f26 !important;
    --text:   #f0ead0 !important;
    --cyan:   #ffdc64 !important;
    --accent: #ffdc64 !important;
    --gold:   #60e860 !important;
    --purple: #ff8040 !important;
    --gray:   #a09070 !important;
    --green:  #40d4ff !important;
    font-size: 17px !important;
}
html[data-theme="contrast"] body {
    background-color: #111418 !important;
    color: #f0ead0 !important;
    font-size: 17px !important;
    line-height: 1.85 !important;
    letter-spacing: 0.01em;
}
/* Kontrasztos táblázat sorok */
html[data-theme="contrast"] tbody tr:nth-child(odd) {
    background: rgba(255, 220, 100, 0.04) !important;
}
html[data-theme="contrast"] tbody td {
    color: #f0ead0 !important;
    font-size: inherit;
}

/* ───────────────────────────────────────────
   2. RESET & ALAP
──────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: var(--font-size);
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: var(--line-height);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ───────────────────────────────────────────
   3. TIPOGRÁFIA
──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-bright);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
h5, h6 { font-size: 1rem; }

p {
    margin-bottom: 0.85em;
    color: var(--text);
}

a {
    color: var(--link);
    text-decoration: none;
    transition: color 0.2s, text-shadow 0.2s;
}

a:hover {
    color: var(--link-hover);
}

strong, b { color: var(--text-bright); font-weight: 700; }
em, i { color: var(--text); font-style: italic; }

small { font-size: 0.82em; color: var(--text-muted); }

code, pre, kbd {
    font-family: var(--font-mono);
    font-size: 0.88em;
}

pre {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    overflow-x: auto;
    color: var(--text-bright);
    white-space: pre-wrap;
    word-break: break-word;
}

code {
    background: rgba(0,0,0,0.25);
    padding: 1px 5px;
    border-radius: 4px;
    color: var(--accent);
}

hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1.5rem 0;
}

/* ───────────────────────────────────────────
   4. LAYOUT
──────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 18px;
}

.container-sm  { max-width: 760px;  margin: 0 auto; padding: 0 18px; }
.container-lg  { max-width: 1400px; margin: 0 auto; padding: 0 18px; }
.container-fluid { width: 100%; padding: 0 18px; }

.page-wrap {
    max-width: 1140px;
    margin: 0 auto;
    padding: 24px 18px;
}

/* Grid helper */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.flex   { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-sm  { gap: 8px; }
.gap     { gap: 16px; }
.gap-lg  { gap: 24px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }

@media (max-width: 768px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .hide-mobile { display: none !important; }
}

/* ───────────────────────────────────────────
   5. ANIMÁLT HÁTTÉR
──────────────────────────────────────────── */
.animated-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    background: var(--bg);
    background-image:
        radial-gradient(ellipse at 20% 20%, color-mix(in srgb, var(--accent) 4%, transparent) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 80%, color-mix(in srgb, var(--accent2) 3%, transparent) 0%, transparent 55%);
}

/* ───────────────────────────────────────────
   6. KÁRTYÁK / SECTION CARD
──────────────────────────────────────────── */
.card,
.section-card,
.neon-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover,
.section-card:hover,
.neon-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow), var(--shadow-glow);
}

.card-header,
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.card-header h2,
.section-header h2 {
    color: var(--accent);
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.card-header h2 i,
.section-header h2 i {
    color: var(--accent);
    font-size: 1em;
}

/* Hero kártya */
.hero-card {
    position: relative;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 40px;
    margin-bottom: 28px;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%);
    pointer-events: none;
}

.hero-title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 6px;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* ───────────────────────────────────────────
   7. FEJLÉC / OLDAL FEJLÉC
──────────────────────────────────────────── */
.page-header {
    padding: 22px 24px;
    background: var(--header-bg);
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
}

.page-header h1 {
    color: var(--accent);
    font-size: 1.7rem;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.page-header h1 i {
    color: var(--accent);
    font-size: 1em;
}

.page-header .subtitle {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-top: 6px;
}

/* ───────────────────────────────────────────
   8. NAVIGÁCIÓ (FOMENU)
──────────────────────────────────────────── */
.fomenu,
#fomenu,
nav.main-nav {
    background: var(--nav-bg);
    border-bottom: 1px solid var(--nav-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.fomenu a,
#fomenu a,
nav.main-nav a {
    color: var(--nav-link);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 10px 14px;
    display: inline-block;
    transition: color 0.2s;
    text-decoration: none;
}

.fomenu a:hover,
#fomenu a:hover,
nav.main-nav a:hover,
.fomenu a.active,
#fomenu a.active {
    color: var(--nav-active);
}

/* ───────────────────────────────────────────
   9. TÁBLÁZATOK
──────────────────────────────────────────── */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

thead tr {
    background: color-mix(in srgb, var(--accent) 10%, transparent);
}

thead th,
thead td {
    color: var(--accent);
    padding: 11px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

tbody td {
    padding: 10px 14px;
    border-bottom: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
    color: var(--text);
    vertical-align: middle;
}

tbody tr {
    background: color-mix(in srgb, var(--accent) 2%, transparent);
    transition: background 0.15s;
}

tbody tr:hover {
    background: color-mix(in srgb, var(--accent) 8%, transparent);
}

tbody tr:last-child td { border-bottom: none; }

/* ───────────────────────────────────────────
   10. GOMBOK
──────────────────────────────────────────── */
.btn,
button,
input[type="submit"],
input[type="button"] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;
}

/* Elsődleges */
.btn-primary,
.btn-neon,
input[type="submit"] {
    background: color-mix(in srgb, var(--accent) 15%, transparent);
    border-color: color-mix(in srgb, var(--accent) 50%, transparent);
    color: var(--accent);
}

.btn-primary:hover,
.btn-neon:hover,
input[type="submit"]:hover {
    background: color-mix(in srgb, var(--accent) 25%, transparent);
    border-color: var(--accent);
    box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 30%, transparent);
    color: var(--accent);
}

/* Másodlagos / veszély */
.btn-danger,
.btn-del {
    background: color-mix(in srgb, var(--accent-red) 12%, transparent);
    border-color: color-mix(in srgb, var(--accent-red) 40%, transparent);
    color: var(--accent-red);
}

.btn-danger:hover,
.btn-del:hover {
    background: color-mix(in srgb, var(--accent-red) 22%, transparent);
    border-color: var(--accent-red);
    color: var(--accent-red);
}

/* Semleges */
.btn-secondary {
    background: color-mix(in srgb, var(--text-muted) 12%, transparent);
    border-color: color-mix(in srgb, var(--text-muted) 30%, transparent);
    color: var(--text-muted);
}

.btn-secondary:hover {
    background: color-mix(in srgb, var(--text-muted) 20%, transparent);
    border-color: var(--text-muted);
    color: var(--text);
}

/* Frissítés gomb */
.btn-refresh {
    background: color-mix(in srgb, var(--accent) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
    color: var(--accent);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.18s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-refresh:hover {
    background: color-mix(in srgb, var(--accent) 18%, transparent);
    color: var(--accent);
}

/* Show more */
.show-more {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px;
    margin-top: 12px;
    background: color-mix(in srgb, var(--accent) 6%, transparent);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--accent);
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
    font-family: var(--font-body);
    font-weight: 600;
}

.show-more:hover {
    background: color-mix(in srgb, var(--accent) 14%, transparent);
}

/* ───────────────────────────────────────────
   11. FORM ELEMEK
──────────────────────────────────────────── */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    color: var(--text-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
    font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
select,
textarea,
.form-control {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--border);
    color: var(--text-bright);
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
select:focus,
textarea:focus,
.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2360808a'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--accent);
    width: 15px;
    height: 15px;
}

/* ───────────────────────────────────────────
   12. ÜZENETEK / ÉRTESÍTÉSEK
──────────────────────────────────────────── */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid;
}

.alert-success {
    background: color-mix(in srgb, var(--accent4) 10%, transparent);
    border-color: color-mix(in srgb, var(--accent4) 40%, transparent);
    color: var(--accent4);
}

.alert-error,
.alert-err {
    background: color-mix(in srgb, var(--accent-red) 10%, transparent);
    border-color: color-mix(in srgb, var(--accent-red) 35%, transparent);
    color: #f87171;
}

.alert-warning,
.alert-warn {
    background: color-mix(in srgb, var(--accent3) 10%, transparent);
    border-color: color-mix(in srgb, var(--accent3) 35%, transparent);
    color: var(--accent3);
}

.alert-info {
    background: color-mix(in srgb, var(--accent) 8%, transparent);
    border-color: color-mix(in srgb, var(--accent) 30%, transparent);
    color: var(--accent);
}

/* ───────────────────────────────────────────
   13. BADGE / CIMKE
──────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid;
}

.badge-cyan    { background: color-mix(in srgb, var(--accent) 12%, transparent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); color: var(--accent); }
.badge-magenta { background: color-mix(in srgb, var(--accent2) 12%, transparent); border-color: color-mix(in srgb, var(--accent2) 35%, transparent); color: var(--accent2); }
.badge-gold    { background: color-mix(in srgb, var(--accent3) 12%, transparent); border-color: color-mix(in srgb, var(--accent3) 35%, transparent); color: var(--accent3); }
.badge-green   { background: color-mix(in srgb, var(--accent4) 12%, transparent); border-color: color-mix(in srgb, var(--accent4) 35%, transparent); color: var(--accent4); }
.badge-red     { background: color-mix(in srgb, var(--accent-red) 12%, transparent); border-color: color-mix(in srgb, var(--accent-red) 35%, transparent); color: var(--accent-red); }

.stat-badge {
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    color: var(--accent);
    border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 700;
}

/* ───────────────────────────────────────────
   14. MODAL
──────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
    backdrop-filter: blur(6px);
}

.modal-content,
.modal-content-custom {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    max-width: 700px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow), var(--shadow-glow);
}

.modal-close,
.close-btn {
    position: absolute;
    top: 14px; right: 16px;
    width: 32px; height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    border: none;
    background: transparent;
    font-family: inherit;
}

.modal-close:hover,
.close-btn:hover {
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    color: var(--accent);
}

/* ───────────────────────────────────────────
   15. AKKORDEÓN
──────────────────────────────────────────── */
.accordion { display: flex; flex-direction: column; gap: 10px; }

.accordion-item {
    background: color-mix(in srgb, var(--accent) 4%, transparent);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    cursor: pointer;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
    background: color-mix(in srgb, var(--accent) 6%, transparent);
    transition: background 0.2s;
    border: none;
    width: 100%;
    text-align: left;
    font-family: var(--font-body);
}

.accordion-header:hover {
    background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.accordion-content {
    display: none;
    padding: 18px;
    background: color-mix(in srgb, var(--bg2) 95%, transparent);
    border-top: 1px solid var(--border);
    color: var(--text);
    line-height: var(--line-height);
    font-size: 0.92rem;
}

.accordion-content.show {
    display: block;
    animation: fadeIn 0.2s ease;
}

/* ───────────────────────────────────────────
   16. PROGRESS BAR
──────────────────────────────────────────── */
.progress-wrap {
    background: color-mix(in srgb, var(--text) 8%, transparent);
    border-radius: 20px;
    height: 18px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.progress-fill {
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(90deg, var(--accent), var(--accent4));
    transition: width 0.6s ease;
}

.progress-fill.warn {
    background: linear-gradient(90deg, var(--accent-red), var(--accent3));
}

/* ───────────────────────────────────────────
   17. RANGLISTA / ONLINE DOT
──────────────────────────────────────────── */
.online-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent4);
    box-shadow: 0 0 6px var(--accent4);
    flex-shrink: 0;
    display: inline-block;
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px; height: 30px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.82rem;
    border: 1px solid;
}

.rank-1 { background: rgba(255, 215, 0, 0.15); color: #ffd700; border-color: #ffd700; box-shadow: 0 0 10px rgba(255,215,0,0.25); }
.rank-2 { background: rgba(192, 192, 192, 0.15); color: #c0c0c0; border-color: #c0c0c0; }
.rank-3 { background: rgba(205, 127, 50, 0.15); color: #cd7f32; border-color: #cd7f32; }
.rank-o { background: color-mix(in srgb, var(--text) 5%, transparent); color: var(--text-muted); border-color: var(--border); }

/* ───────────────────────────────────────────
   18. EGYÉNI ELEMEK (ITEM KÁRTYÁK, STAT)
──────────────────────────────────────────── */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.stat-item {
    background: color-mix(in srgb, var(--bg) 80%, transparent);
    padding: 9px 13px;
    border-left: 3px solid var(--accent);
    border-radius: 4px;
}

.stat-label {
    color: var(--accent);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: block;
    margin-bottom: 3px;
    font-weight: 700;
}

.stat-value {
    color: var(--text-bright);
    font-weight: 700;
    font-size: 0.92rem;
}

.bonus-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    background: color-mix(in srgb, var(--accent2) 5%, transparent);
    padding: 14px;
    border-radius: var(--radius-sm);
    border: 1px solid color-mix(in srgb, var(--accent2) 20%, transparent);
}

.bonus-item { text-align: center; }
.bonus-label { color: var(--accent2); font-size: 0.75rem; display: block; font-weight: 700; text-transform: uppercase; }

/* ───────────────────────────────────────────
   19. SCROLLBAR
──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--scrollbar); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.scrollbar::-webkit-scrollbar { width: 7px; }
.scrollbar::-webkit-scrollbar-thumb { background: var(--scrollbar); border-radius: 4px; }

/* ───────────────────────────────────────────
   20. ANIMÁCIÓK
──────────────────────────────────────────── */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pulse-green {
    0%, 100% { box-shadow: 0 0 15px color-mix(in srgb, var(--accent4) 25%, transparent); }
    50%       { box-shadow: 0 0 35px color-mix(in srgb, var(--accent4) 50%, transparent); }
}

@keyframes pulse-warn {
    0%, 100% { box-shadow: 0 0 15px color-mix(in srgb, var(--accent3) 20%, transparent); }
    50%       { box-shadow: 0 0 35px color-mix(in srgb, var(--accent3) 45%, transparent); }
}

.pulse-green { animation: pulse-green 2s infinite; }
.pulse-warn  { animation: pulse-warn 1.2s infinite; }

/* ───────────────────────────────────────────
   21. INFO BOX
──────────────────────────────────────────── */
.info-box {
    background: color-mix(in srgb, var(--accent) 5%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 15%, transparent);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 0.88rem;
    color: var(--text);
    line-height: 1.65;
}

.info-box strong { color: var(--accent); }

/* ───────────────────────────────────────────
   22. TÉMAVÁLASZTÓ GOMB (lebegő)
──────────────────────────────────────────── */
.theme-switcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.theme-switcher-toggle {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--bg2);
    border: 2px solid var(--border);
    color: var(--accent);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow), 0 0 12px color-mix(in srgb, var(--accent) 20%, transparent);
    transition: all 0.2s;
}

.theme-switcher-toggle:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow), 0 0 20px color-mix(in srgb, var(--accent) 35%, transparent);
    transform: scale(1.05);
}

.theme-panel {
    position: absolute;
    bottom: 56px;
    right: 0;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    min-width: 210px;
    box-shadow: var(--shadow);
    display: none;
    backdrop-filter: blur(16px);
}

.theme-panel.open { display: block; animation: fadeIn 0.15s ease; }

.theme-panel-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    border: 1px solid transparent;
    margin-bottom: 3px;
    font-size: 0.86rem;
    color: var(--text);
    font-family: var(--font-body);
    background: transparent;
    width: 100%;
    text-align: left;
}

.theme-option:hover {
    background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.theme-option.active {
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    border-color: color-mix(in srgb, var(--accent) 35%, transparent);
}

.theme-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.15);
}

/* Light témában a widget kontrasztosabb legyen */
html[data-theme="light"] .theme-panel {
    background: #ffffff;
    border-color: rgba(0,0,0,0.12);
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}
html[data-theme="light"] .theme-switcher-toggle {
    background: #ffffff;
    border-color: #ccddee;
}
html[data-theme="light"] .theme-option {
    color: #1e2d3d;
}
html[data-theme="light"] .theme-panel-title {
    color: #6080a0;
}

/* ───────────────────────────────────────────
   23. UTILITY OSZTÁLYOK
──────────────────────────────────────────── */
.text-accent   { color: var(--accent) !important; }
.text-accent2  { color: var(--accent2) !important; }
.text-muted    { color: var(--text-muted) !important; }
.text-bright   { color: var(--text-bright) !important; }
.text-green    { color: var(--accent4) !important; }
.text-red      { color: var(--accent-red) !important; }
.text-gold     { color: var(--accent3) !important; }
.text-center   { text-align: center !important; }
.text-right    { text-align: right !important; }
.text-sm       { font-size: 0.82rem !important; }
.text-lg       { font-size: 1.1rem !important; }
.text-xl       { font-size: 1.4rem !important; }
.font-mono     { font-family: var(--font-mono) !important; }
.font-bold     { font-weight: 700 !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 8px !important; }
.mt-2 { margin-top: 16px !important; }
.mt-3 { margin-top: 24px !important; }
.mt-4 { margin-top: 32px !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 8px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-3 { margin-bottom: 24px !important; }
.mb-4 { margin-bottom: 32px !important; }
.p-2  { padding: 16px !important; }
.p-3  { padding: 24px !important; }

.border-top    { border-top: 1px solid var(--border) !important; }
.border-bottom { border-bottom: 1px solid var(--border) !important; }

.rounded     { border-radius: var(--radius) !important; }
.rounded-sm  { border-radius: var(--radius-sm) !important; }
.rounded-lg  { border-radius: var(--radius-lg) !important; }
.rounded-full { border-radius: 50px !important; }

.d-none   { display: none !important; }
.d-block  { display: block !important; }
.d-flex   { display: flex !important; }
.d-grid   { display: grid !important; }
.w-100    { width: 100% !important; }
.h-100    { height: 100% !important; }
.overflow-hidden { overflow: hidden !important; }
.overflow-auto   { overflow: auto !important; }
.position-relative { position: relative !important; }

/* Bootstrap kompatibilitás (ha még van BS import) */
.row { display: flex; flex-wrap: wrap; margin: 0 -10px; }
.col { flex: 1; padding: 0 10px; }
.col-6 { flex: 0 0 50%; max-width: 50%; padding: 0 10px; }
.col-md-6 { flex: 0 0 50%; max-width: 50%; padding: 0 10px; }
.col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; padding: 0 10px; }
.col-md-8 { flex: 0 0 66.666%; max-width: 66.666%; padding: 0 10px; }
.col-md-12 { flex: 0 0 100%; max-width: 100%; padding: 0 10px; }

@media (max-width: 768px) {
    .col-6, .col-md-6, .col-md-4, .col-md-8, .col-md-12 {
        flex: 0 0 100%; max-width: 100%;
    }
    .row { margin: 0; }
    .col, .col-6, .col-md-6, .col-md-4, .col-md-8, .col-md-12 { padding: 0; }
    .page-wrap { padding: 14px 12px; }
    .hero-card { padding: 22px 18px; }
    .hero-title { font-size: 1.5rem; }
    .modal-content, .modal-content-custom { padding: 20px 16px; }
    table { font-size: 0.82rem; }
    thead th, thead td { padding: 8px 10px; }
    tbody td { padding: 8px 10px; }
}

/* ───────────────────────────────────────────
   24. FEJLÉCEK NEON SZÖVEG ÁRNYÉK
──────────────────────────────────────────── */
.title-neon,
.neon-title {
    color: var(--accent);
    text-shadow: 0 0 20px color-mix(in srgb, var(--accent) 45%, transparent);
}

.page-title {
    color: var(--accent);
    font-size: 2rem;
    text-align: center;
    text-shadow: 0 0 20px color-mix(in srgb, var(--accent) 40%, transparent);
    margin-bottom: 4px;
}

.page-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 28px;
}

/* ───────────────────────────────────────────
   25. FOOTER
──────────────────────────────────────────── */
.page-footer {
    text-align: center;
    margin-top: 40px;
    padding: 16px;
    color: var(--text-dim);
    font-size: 0.78rem;
    border-top: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════════════════════
   26. TÉMA OVERRIDE — MAGAS SPECIFICITÁS
   Ezek a szabályok felülírják az egyes oldalak saját :root és
   inline style blokkjait. A [data-theme] selectorok specificitása
   nagyobb mint a sima :root, ezért ezek nyernek.
   FONTOS: a body háttér, szövegszín és font itt van definiálva
   hogy az oldalak saját body {} szabályait is legyőzze.
═══════════════════════════════════════════════════════════════ */

/* Body alap — minden témánál */
html[data-theme] body {
    background-color: var(--bg) !important;
    color: var(--text) !important;
    font-family: var(--font-body) !important;
    font-size: var(--font-size) !important;
    line-height: var(--line-height) !important;
}

/* Neon téma — body és background overrides */
html[data-theme="neon"] body,
html[data-theme="neon"] {
    --bg:     #070b16 !important;
    --card:   #0d1525 !important;
    --text:   #c8d8e8 !important;
    --cyan:   #00ffff !important;
    --accent: #00ffff !important;
    --gold:   #fbbf24 !important;
    --purple: #a78bfa !important;
    --gray:   #6b7280 !important;
    --green:  #34d399 !important;
}

/* Readable téma */
html[data-theme="readable"] body,
html[data-theme="readable"] {
    --bg:     #0f1319 !important;
    --card:   #171e28 !important;
    --text:   #d8e8f4 !important;
    --cyan:   #5bc8f5 !important;
    --accent: #5bc8f5 !important;
    --gold:   #f5c542 !important;
    --purple: #c084fc !important;
    --gray:   #6a8898 !important;
    --green:  #52d4a0 !important;
}

/* Midnight téma */
html[data-theme="midnight"] body,
html[data-theme="midnight"] {
    --bg:     #03050c !important;
    --card:   #080e1a !important;
    --text:   #b8cce0 !important;
    --cyan:   #4080ff !important;
    --accent: #4080ff !important;
    --gold:   #60c8ff !important;
    --purple: #a060ff !important;
    --gray:   #405570 !important;
    --green:  #30e0c0 !important;
}

/* Forest téma */
html[data-theme="forest"] body,
html[data-theme="forest"] {
    --bg:     #060e0a !important;
    --card:   #0c1810 !important;
    --text:   #b8d8c0 !important;
    --cyan:   #40dd80 !important;
    --accent: #40dd80 !important;
    --gold:   #ffd060 !important;
    --purple: #c0ff80 !important;
    --gray:   #507060 !important;
    --green:  #40dd80 !important;
}

/* Light téma */
html[data-theme="light"] body,
html[data-theme="light"] {
    --bg:     #f0f4f8 !important;
    --card:   #ffffff !important;
    --text:   #1e2d3d !important;
    --cyan:   #0088cc !important;
    --accent: #0088cc !important;
    --gold:   #cc8800 !important;
    --purple: #7744cc !important;
    --gray:   #6080a0 !important;
    --green:  #008855 !important;
}

/* ── Témafüggő háttérszínek explicit override-ja ── */
/* Ezek az inline style="background-color: #..." jellegű
   hardkódolt értékeket győzik le ahol a class alapú
   megközelítés nem elég */

html[data-theme="light"] body {
    background-color: #f0f4f8 !important;
}
html[data-theme="light"] .animated-bg {
    background: #e8f0fa !important;
}
html[data-theme="readable"] body {
    background-color: #0f1319 !important;
}
html[data-theme="midnight"] body {
    background-color: #03050c !important;
}
html[data-theme="forest"] body {
    background-color: #060e0a !important;
}

/* ── Font méret téma szerint ── */
html[data-theme="readable"] body,
html[data-theme="readable"] p,
html[data-theme="readable"] td,
html[data-theme="readable"] li,
html[data-theme="readable"] div {
    font-size: inherit;
}
html[data-theme="readable"] {
    font-size: 16px !important;
}

/* ── Kártyák és section elemek témafüggő override ── */
html[data-theme] .section-card,
html[data-theme] .neon-card,
html[data-theme] .card,
html[data-theme] #news_body,
html[data-theme] .blokk,
html[data-theme] .data-card {
    background: var(--card-bg) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

/* ── Táblázatok ── */
html[data-theme] table {
    color: var(--text) !important;
}
html[data-theme] th {
    color: var(--accent) !important;
    background: color-mix(in srgb, var(--accent) 10%, transparent) !important;
}

/* ── Light témában linkek ── */
html[data-theme="light"] a {
    color: var(--link) !important;
}
html[data-theme="light"] a:hover {
    color: var(--link-hover) !important;
}

/* ── Témaváltó menü ikonok javítása ── */
.tema-dot-btn {
    font-family: 'Font Awesome 6 Free', 'Segoe UI Emoji', sans-serif !important;
}

/* ── Scrollbar téma szerint ── */
html[data-theme="light"] ::-webkit-scrollbar-thumb { background: #a0b8d0 !important; }
html[data-theme="light"] ::-webkit-scrollbar-track { background: #dde8f4 !important; }
