/* Kwizlo.pl – ciemny, „gamingowy” motyw stron (ekrany gry mają osobny plik quiz.css) */
:root {
    color-scheme: dark;                 /* systemowe pola (select, plik, checkbox) też w ciemnej wersji */
    --bg: #110a2b;
    --bg-2: #1a0f3f;
    --ink: #f4f0ff;
    --muted: #b7aedb;
    --head: #d9ceff;                    /* nagłówki */
    --card: rgba(255, 255, 255, .06);
    --card-solid: #1c1244;
    --line: rgba(255, 255, 255, .13);
    --navy: #7c3aed;                    /* główny fiolet (przyciski) */
    --indigo: #b197fc;                  /* linki i akcenty na ciemnym tle */
    --indigo-soft: rgba(139, 92, 246, .2);
    --accent: #ff4d8d;                  /* róż */
    --accent-2: #ff9f43;                /* pomarańcz */
    --cyan: #22d3ee;
    --sun: #ffd23f;
    --radius: 18px;
    --grad-primary: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    --grad-accent: linear-gradient(135deg, #ff4d8d 0%, #ff9f43 100%);
    --grad-text: linear-gradient(90deg, #ff4d8d 0%, #ff9f43 50%, #ffd23f 100%);
    --glow: 0 0 0 1px rgba(177, 151, 252, .35), 0 10px 40px rgba(124, 58, 237, .35);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* „hidden” ma wygrywać z display: flex/inline-block klas */
/* Tło: ciemny granat z neonowymi poświatami i delikatną siatką „areny”. Stopka zawsze na dole. */
body { margin: 0; font-family: 'Nunito', system-ui, sans-serif; color: var(--ink); min-height: 100vh; min-height: 100dvh;
       display: flex; flex-direction: column; position: relative;
       background:
           radial-gradient(ellipse 70% 55% at 10% -5%, rgba(139, 92, 246, .55), transparent 60%),
           radial-gradient(ellipse 55% 45% at 95% 5%, rgba(255, 77, 141, .38), transparent 60%),
           radial-gradient(ellipse 60% 50% at 50% 105%, rgba(34, 211, 238, .22), transparent 60%),
           linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
       background-attachment: fixed; }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
               background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
               background-size: 44px 44px;
               -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%); }
body > * { position: relative; z-index: 1; }
body > main { flex: 1 0 auto; }
body > .footer { flex-shrink: 0; }
body > .topbar { z-index: 10; }
a { color: var(--indigo); text-decoration: none; }
a:hover { color: #d4c6ff; }
img { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
code { background: rgba(255,255,255,.08); padding: 1px 6px; border-radius: 6px; }

/* Logo: znak „?” w dymku + napis */
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 900; font-size: 1.6rem; letter-spacing: -.02em; color: #fff; line-height: 1; }
.logo__mark { width: 36px; height: 36px; border-radius: 11px 11px 11px 3px; background: var(--grad-accent); color: #fff; display: grid; place-items: center;
              font-size: 1.35rem; box-shadow: 0 0 18px rgba(255, 77, 141, .55), 3px 3px 0 var(--sun); }
.logo__tld { color: var(--sun); font-size: .7em; align-self: flex-end; margin: 0 0 3px -6px; }

/* Topbar: przezroczysty, rozmyty pasek */
.topbar { background: rgba(17, 10, 43, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
          border-bottom: 1px solid var(--line); position: sticky; top: 0; }
.topbar::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--grad-text); opacity: .8; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 16px; }
.topbar__logo { display: block; }
.topbar__logo:hover { color: inherit; }
.topbar__nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.topbar__nav a { color: var(--ink); font-weight: 700; padding: 8px 12px; border-radius: 999px; }
.topbar__nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.topbar__nav a.is-active { background: var(--grad-primary); color: #fff; box-shadow: 0 0 16px rgba(124, 58, 237, .6); }
.topbar__nav a.topbar__join { background: var(--grad-accent); color: #fff; box-shadow: 0 0 16px rgba(255, 77, 141, .45); }
.topbar__nav a.topbar__join:hover { filter: brightness(1.08); }
.topbar__nav a.topbar__cta { border: 2px solid var(--indigo); color: #fff; padding: 6px 12px; }
.topbar__nav a:focus-visible, .topbar__toggle:focus-visible, .topbar__quick:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.topbar__user { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.topbar__user form { margin: 0; }
.topbar__user button { background: none; border: 0; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; padding: 8px 10px; border-radius: 999px; }
.topbar__user button:hover { background: rgba(255,255,255,.08); color: #fff; }
.topbar__quick, .topbar__toggle { display: none; }

/* Menu mobilne */
@media (max-width: 1100px) {
    .topbar__inner { gap: 8px; }
    .topbar__logo { margin-right: auto; }
    .logo { font-size: 1.35rem; }
    .logo__mark { width: 32px; height: 32px; font-size: 1.15rem; }
    .topbar__quick { display: inline-flex; align-items: center; background: var(--grad-accent); color: #fff; font-weight: 800; padding: 8px 14px; border-radius: 999px; white-space: nowrap; box-shadow: 0 0 14px rgba(255, 77, 141, .45); }
    .topbar__quick:hover { color: #fff; }
    .topbar__toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.06); cursor: pointer; flex: none; }
    .burger, .burger::before, .burger::after, .burger span { display: block; }
    .burger { position: relative; width: 20px; height: 14px; }
    .burger::before, .burger::after, .burger span { position: absolute; left: 0; width: 100%; height: 2.5px; border-radius: 2px; background: #fff; transition: transform .2s, opacity .2s, top .2s; }
    .burger::before { content: ''; top: 0; }
    .burger span { top: 5.75px; }
    .burger::after { content: ''; top: 11.5px; }
    .nav-open .burger::before { top: 5.75px; transform: rotate(45deg); }
    .nav-open .burger span { opacity: 0; }
    .nav-open .burger::after { top: 5.75px; transform: rotate(-45deg); }
    .topbar__nav { position: absolute; left: 0; right: 0; top: 100%; background: rgba(23, 14, 56, .97); border-bottom: 1px solid var(--line);
                   flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 2px; padding: 10px 16px 16px; box-shadow: 0 20px 40px rgba(0,0,0,.45);
                   max-height: calc(100vh - 64px); overflow-y: auto; }
    html:not(.js) .topbar__inner { flex-wrap: wrap; }
    html:not(.js) .topbar__nav { position: static; width: 100%; box-shadow: none; border: 0; padding: 0; background: none; }
    .js .topbar__nav { display: none; }
    .js .nav-open .topbar__nav { display: flex; animation: nav-in .18s ease-out; }
    @keyframes nav-in { from { opacity: 0; transform: translateY(-6px); } }
    .topbar__nav a { padding: 12px 14px; border-radius: 12px; font-size: 1.05rem; }
    .topbar__nav a.topbar__join, .topbar__nav a.topbar__cta { text-align: center; margin-top: 6px; }
    .topbar__nav .topbar__user { flex-direction: column; align-items: stretch; gap: 2px; border-top: 1px solid var(--line); margin: 8px 0 0; padding-top: 8px; }
    .topbar__user form { display: flex; }
    .topbar__nav .topbar__user button { flex: 1; text-align: left; padding: 12px 14px; font-size: 1.05rem; border-radius: 12px; }
    .nav-open::before { background: rgba(5, 2, 20, .55); z-index: 5; mask-image: none; -webkit-mask-image: none; opacity: 1; }
}

/* Strona główna */
.hero { padding: 64px 0 40px; overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero__badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(34, 211, 238, .12);
               border: 1px solid rgba(34, 211, 238, .4); color: #9befff; font-weight: 800; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 18px; }
.hero__badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .3; } }
.hero h1 { margin: 0; font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.02; font-weight: 900; letter-spacing: -.03em; color: #fff; }
.hero h1 span { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 24px rgba(255, 77, 141, .35)); }
.hero__lead { font-size: 1.2rem; color: var(--muted); margin: 18px 0 26px; max-width: 34em; line-height: 1.55; }
/* Karta PIN z neonową, obracającą się ramką */
.joincard { position: relative; background: var(--card-solid); border-radius: 26px; padding: 30px; display: flex; flex-direction: column; gap: 12px;
            box-shadow: 0 20px 60px rgba(124, 58, 237, .45); isolation: isolate; }
.joincard::before { content: ''; position: absolute; inset: -2px; border-radius: 28px; z-index: -1;
                    background: conic-gradient(from var(--spin, 0deg), #ff4d8d, #ff9f43, #ffd23f, #22d3ee, #8b5cf6, #ff4d8d); animation: spin 6s linear infinite; }
.joincard::after { content: ''; position: absolute; inset: 0; border-radius: 26px; z-index: -1; background: var(--card-solid); }
@property --spin { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --spin: 360deg; } }
.joincard h2 { margin: 0; color: #fff; font-size: 1.5rem; }
.joincard p { margin: 0; }
.joincard__pin { font-size: 2.2rem; font-weight: 900; text-align: center; letter-spacing: .2em; padding: 14px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 40px auto; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; backdrop-filter: blur(6px);
        transition: transform .2s, box-shadow .2s, border-color .2s; }
.step:hover { transform: translateY(-4px); border-color: rgba(177, 151, 252, .5); box-shadow: var(--glow); }
.step h3 { margin: 12px 0 6px; color: #fff; }
.step p { margin: 0; line-height: 1.5; }
.step__n { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 1.25rem; background: var(--grad-accent); box-shadow: 0 0 18px rgba(255, 77, 141, .5); }
.step:nth-child(2) .step__n { background: linear-gradient(135deg, #22d3ee, #6d28d9); box-shadow: 0 0 18px rgba(34, 211, 238, .5); }
.step:nth-child(3) .step__n { background: linear-gradient(135deg, #ffd23f, #ff9f43); color: #2b1600; box-shadow: 0 0 18px rgba(255, 210, 63, .5); }
@media (max-width: 800px) {
    .hero { padding-top: 28px; }
    .hero__inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .joincard { order: -1; }   /* na telefonie uczeń widzi PIN od razu */
    .steps { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .joincard::before, .hero__badge::before { animation: none; } }

/* Nagłówki stron i bloki */
.block { margin: 24px auto 40px; }
.block__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.page-head { padding: 36px 16px 8px; }
.page-head h1 { margin: 0 0 4px; color: #fff; font-weight: 900; font-size: 2.1rem; letter-spacing: -.02em; }
.page-head p { margin: 0 0 8px; }
.tag { display: inline-block; align-self: flex-start; background: rgba(34, 211, 238, .14); border: 1px solid rgba(34, 211, 238, .35); color: #a5f3fc; font-weight: 800; font-size: .85rem; padding: 4px 12px; border-radius: 999px; }
.tag--alt { background: rgba(255, 210, 63, .14); border-color: rgba(255, 210, 63, .4); color: #ffe58a; }
.tag--warn { background: rgba(255, 77, 77, .14); border-color: rgba(255, 77, 77, .4); color: #ffb3b3; }
.empty { padding: 40px 16px; text-align: center; color: var(--muted); background: var(--card); border: 2px dashed var(--line); border-radius: var(--radius); }
.empty p { margin: 0 0 12px; }

/* Przyciski „z gry”: gradient, wypukłość, wciśnięcie. Zawsze ta sama wysokość, tekst się nie łamie. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; box-sizing: border-box; min-height: 42px; background: var(--grad-primary); color: #fff;
       padding: 8px 18px; border-radius: 999px; border: 0; cursor: pointer; font: inherit; font-weight: 800; line-height: 1.2; white-space: nowrap; text-align: center; vertical-align: middle;
       box-shadow: 0 4px 0 #3f1791, 0 8px 24px rgba(124, 58, 237, .35); transition: transform .1s, box-shadow .1s, filter .15s; }
.btn:hover { color: #fff; filter: brightness(1.1); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #3f1791, 0 4px 12px rgba(124, 58, 237, .3); }
.btn--ghost { background: rgba(255,255,255,.04); color: #fff; border: 2px solid rgba(177, 151, 252, .6); padding: 6px 16px; box-shadow: none; }
.btn--ghost:hover { background: rgba(177, 151, 252, .14); }
.btn--ghost:active { box-shadow: none; }
.btn--lg { min-height: 52px; padding: 12px 26px; font-size: 1.08rem; }
.btn--ghost.btn--lg { padding: 10px 24px; }
.btn--accent { background: var(--grad-accent); box-shadow: 0 4px 0 #a3204f, 0 8px 24px rgba(255, 77, 141, .4); }
.btn--accent:active { box-shadow: 0 1px 0 #a3204f; }
.btn--block { width: 100%; }
.btn--danger { background: linear-gradient(135deg, #ef4444, #b91c1c); box-shadow: 0 4px 0 #7f1414; }
.btn--danger:active { box-shadow: 0 1px 0 #7f1414; }
.actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; }
.actions--center { justify-content: center; }
.actions form { margin: 0; display: flex; }
.iconbtn { flex: none; width: 42px; height: 42px; display: inline-grid; place-items: center; padding: 0; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--muted); cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.iconbtn--danger { color: #ff8a8a; border-color: rgba(255, 99, 99, .4); }
.iconbtn--danger:hover, .iconbtn--danger:focus-visible { border-color: #ff6b6b; background: rgba(255, 77, 77, .15); color: #ffb3b3; }
.link-danger { background: none; border: 0; color: #ff8a8a; cursor: pointer; font: inherit; font-weight: 700; }

/* Lista quizów: „karty poziomów” */
.qlist { display: flex; flex-direction: column; gap: 12px; }
.qrow { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 16px 24px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
        backdrop-filter: blur(6px); transition: border-color .15s, box-shadow .15s, transform .15s; overflow: hidden; }
.qrow::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--grad-accent); }
.qrow:nth-child(4n+2)::before { background: linear-gradient(180deg, #22d3ee, #6d28d9); }
.qrow:nth-child(4n+3)::before { background: linear-gradient(180deg, #ffd23f, #ff9f43); }
.qrow:nth-child(4n+4)::before { background: linear-gradient(180deg, #34d399, #0d9488); }
.qrow:hover { border-color: rgba(177, 151, 252, .5); box-shadow: var(--glow); transform: translateX(2px); }
.qrow__title { font-weight: 900; font-size: 1.08rem; color: #fff; flex: 1; min-width: 180px; }
.qrow form { margin: 0; }

/* Formularze i kreator */
.form { display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; }
.input { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; background: rgba(10, 5, 30, .55); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.input::placeholder { color: rgba(220, 210, 255, .45); }
.input:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(139, 92, 246, .35); }
.input--title { font-size: 1.3rem; font-weight: 800; }
select.input option { background: var(--card-solid); color: var(--ink); }
.qedit { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 10px; margin: 0; backdrop-filter: blur(6px); }
.qedit__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.qedit__head strong { color: var(--sun); text-transform: uppercase; letter-spacing: .06em; font-size: .9rem; }
.qedit__opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; }
.qedit__opt { display: flex; align-items: center; gap: 8px; border-radius: 12px; padding: 4px 4px 4px 10px; border: 1px solid transparent; }
.qedit__opt .input { padding: 8px 10px; }
/* te same kolory co kafelki odpowiedzi w grze */
.qedit__opt--0 { background: rgba(107, 92, 255, .22); border-color: rgba(107, 92, 255, .5); }
.qedit__opt--1 { background: rgba(239, 107, 87, .2); border-color: rgba(239, 107, 87, .5); }
.qedit__opt--2 { background: rgba(224, 154, 12, .2); border-color: rgba(224, 154, 12, .5); }
.qedit__opt--3 { background: rgba(31, 165, 138, .22); border-color: rgba(31, 165, 138, .5); }
.qedit__opt input[type=radio] { width: 20px; height: 20px; accent-color: var(--sun); flex: none; }
.qedit__foot { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .95rem; }
.qedit__foot select { width: auto; padding: 6px 10px; }
.alert { background: rgba(255, 77, 77, .12); border: 1px solid rgba(255, 99, 99, .45); color: #ffc9c9; border-radius: 12px; padding: 12px 16px; }
.alert ul { margin: 4px 0 0; padding-left: 20px; }

/* Logowanie, rejestracja, import */
.auth { display: flex; justify-content: center; padding-top: 40px; padding-bottom: 20px; }
.auth__card { width: 100%; max-width: 440px; background: rgba(28, 18, 68, .82); border: 1px solid var(--line); border-radius: 24px; padding: 30px; display: flex; flex-direction: column; gap: 14px;
              box-shadow: var(--glow); backdrop-filter: blur(10px); }
.auth__card--wide { max-width: 620px; }
.auth__card h1 { margin: 0; color: #fff; font-size: 1.7rem; font-weight: 900; }
.auth__card h2 { margin: 0; color: var(--head); font-size: 1.15rem; }
.auth__card p { margin: 0; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
.field__err { color: #ff9b9b; font-weight: 600; font-size: .9rem; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.check--top { align-items: flex-start; font-weight: 500; font-size: .95rem; line-height: 1.45; }
.check--top input { margin-top: 3px; flex: none; width: 18px; height: 18px; accent-color: var(--accent); }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.howto { background: rgba(34, 211, 238, .08); border: 1px solid rgba(34, 211, 238, .3); border-radius: 14px; padding: 16px 18px; }
.howto ol { margin: 8px 0 0; padding-left: 20px; line-height: 1.6; }
.notes { margin: 0; padding-left: 18px; line-height: 1.6; }
/* Quiz z tekstu (AI) */
.ai { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; margin-bottom: 40px; }
@media (max-width: 900px) { .ai { grid-template-columns: minmax(0, 1fr); } }
.ai__step { margin: 0; }
.ai__num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--grad-accent); color: #fff; font-weight: 900; margin-right: 8px; }
.ai textarea.input { resize: vertical; min-height: 220px; font-size: .95rem; line-height: 1.5; }
.ai__opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 560px) { .ai__opts { grid-template-columns: 1fr; } }
.ai__chats { display: flex; flex-wrap: wrap; gap: 8px; }
.ai__chats a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.05); font-weight: 700; color: var(--ink); }
.ai__chats a:hover { border-color: var(--indigo); color: #fff; }
.ai__count { text-align: right; font-size: .85rem; }
.ai--one { grid-template-columns: minmax(0, 820px); margin-bottom: 24px; }
.ai__foot { justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ai__alt { max-width: 1120px; margin: 0 auto 40px; padding: 0 16px; }
.ai__alt > .wrap { padding: 0; margin-top: 16px; }
.ai__alt summary { cursor: pointer; color: var(--muted); font-weight: 700; padding: 12px 16px; border: 1px dashed var(--line); border-radius: 14px; max-width: 820px; }
.ai__alt summary:hover { color: #fff; border-color: var(--indigo); }
input[type=file].input { padding: 9px 10px; }
input[type=file]::file-selector-button { font: inherit; font-weight: 800; border: 0; border-radius: 999px; padding: 6px 14px; margin-right: 10px; background: var(--grad-primary); color: #fff; cursor: pointer; }

/* Moje konto: kafelki 2 × 2 równej wysokości, przycisk na dole */
.account { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: stretch; margin-bottom: 40px; }
@media (max-width: 800px) { .account { grid-template-columns: minmax(0, 1fr); } }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 14px; display: flex; flex-direction: column; min-width: 0; margin: 0;
         backdrop-filter: blur(6px); transition: border-color .15s, box-shadow .15s; }
.panel:hover { border-color: rgba(177, 151, 252, .45); box-shadow: var(--glow); }
.panel__head { display: flex; align-items: center; gap: 10px; min-height: 40px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.panel__icon { flex: none; width: 42px; height: 42px; border-radius: 13px; background: var(--grad-primary); display: grid; place-items: center; font-size: 1.25rem; box-shadow: 0 0 16px rgba(124, 58, 237, .5); }
.panel__head h2 { flex: 1; min-width: 0; margin: 0; font-size: 1.1rem; color: #fff; }
.acc__body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding-top: 14px; }
.acc__body p { margin: 0; }
.acc__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
@media (max-width: 1000px) { .acc__row { grid-template-columns: 1fr; } }
.acc__foot { padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; }
.acc--danger { border-color: rgba(255, 99, 99, .35); }
.acc--danger:hover { border-color: rgba(255, 99, 99, .6); box-shadow: 0 10px 40px rgba(239, 68, 68, .25); }
.acc--danger .panel__icon { background: linear-gradient(135deg, #ef4444, #b91c1c); box-shadow: 0 0 16px rgba(239, 68, 68, .5); }
.acc--danger h2 { color: #ffb3b3; }

/* Tabele (diagnostyka, dokumenty) */
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 12px; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { text-align: left; padding: 9px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-weight: 700; }
@media (max-width: 640px) { .table thead { display: none; } .table tr { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); } .table td { display: block; border: 0; padding: 2px 0; } }

/* Dokumenty prawne */
.legal { max-width: 860px; padding-top: 32px; padding-bottom: 24px; line-height: 1.7; }
.legal h1 { color: #fff; margin: 0 0 4px; font-weight: 900; }
.legal h2 { color: var(--head); font-size: 1.2rem; margin: 28px 0 8px; scroll-margin-top: 80px; }
.legal ol, .legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal .table { font-size: .9rem; }
.legal__toc { display: flex; flex-wrap: wrap; gap: 6px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin: 16px 0; font-size: .92rem; font-weight: 600; }

/* Stopka */
.footer { margin-top: 60px; padding: 24px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; text-align: center; background: rgba(10, 5, 30, .4); }
.footer__links { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-bottom: 8px; }
.footer__links a { color: var(--muted); font-weight: 700; }
.footer__links a:hover { color: #fff; }
