/* ==========================================================================
   Higjiena Kibernetike · KREN — stilet kryesore
   ========================================================================== */

@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url(/assets/fonts/poppins-400.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url(/assets/fonts/poppins-600.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url(/assets/fonts/poppins-700.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 800; font-display: swap; src: url(/assets/fonts/poppins-800.woff2) format("woff2"); }

:root {
  --bg: #0d0a18;
  --bg-2: #120e22;
  --surface: #181231;
  --surface-2: #211a40;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #f4f1ff;
  --muted: #b9b1d9;
  --brand: #8251df;
  --brand-2: #5b4cf5;
  --brand-soft: rgba(130, 81, 223, 0.16);
  --accent: #3ee0c4;
  --success: #34d399;
  --danger: #ff5d73;
  --warning: #ffc857;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
  --container: 1200px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(130, 81, 223, 0.22), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(91, 76, 245, 0.12), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
}
main { flex: 1; outline: none; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: #c6b3ff; text-underline-offset: 3px; }
a:hover { color: #fff; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.6em; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--brand); color: #fff; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section--alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,0.025), transparent); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head--center { text-align: center; margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.lead { font-size: 1.15rem; color: var(--muted); }
.muted { color: var(--muted); }
.text-gradient {
  background: linear-gradient(90deg, #b597ff, var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s;
  box-shadow: 0 10px 30px -10px rgba(130, 81, 223, 0.8);
}
.btn:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 14px 34px -10px rgba(130, 81, 223, 1); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn--ghost { background: transparent; border-color: var(--border-strong); box-shadow: none; }
.btn--ghost:hover { background: rgba(255,255,255,0.06); box-shadow: none; }
.btn--sm { padding: 8px 14px; font-size: 0.9rem; }
.btn--lg { padding: 15px 28px; font-size: 1.05rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.linklike { background: none; border: 0; color: #c6b3ff; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 10, 24, 0.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header::before { content: ""; display: block; height: 4px; background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--accent)); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand img { border-radius: 8px; background: #fff; padding: 3px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-size: 1rem; }
.brand__text small { color: var(--muted); font-size: 0.75rem; }

.site-nav > ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a, .site-nav__menu-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px; color: var(--text); text-decoration: none;
  font-size: 0.95rem; background: none; border: 0; cursor: pointer; white-space: nowrap;
}
.site-nav a:hover, .site-nav__menu-btn:hover { background: rgba(255,255,255,0.07); color: #fff; }
.site-nav [aria-current="page"] { background: var(--brand-soft); color: #fff; box-shadow: inset 0 0 0 1px rgba(130,81,223,.5); }
.site-nav .nav-cta { background: linear-gradient(135deg, var(--brand), var(--brand-2)); font-weight: 600; margin-left: 6px; }
.site-nav .nav-cta:hover { filter: brightness(1.1); }
.has-menu { position: relative; }
.site-nav__menu-btn svg { transition: transform .2s; }
.site-nav__menu-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.site-nav__menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  min-width: 250px; padding: 8px; margin: 0; list-style: none;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 14px; box-shadow: var(--shadow);
  display: none;
}
.site-nav__menu.open { display: block; }
.site-nav__menu a { display: flex; width: 100%; border-radius: 10px; padding: 10px 12px; }
.ico { width: 1.4em; text-align: center; }

.nav-toggle { display: none; width: 44px; height: 44px; background: none; border: 1px solid var(--border-strong); border-radius: 12px; cursor: pointer; padding: 0; }
.nav-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--text); transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1060px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 72px 0 0 0; background: var(--bg);
    padding: 16px; overflow-y: auto; display: none;
  }
  .site-nav.open { display: block; }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .site-nav a, .site-nav__menu-btn { width: 100%; padding: 14px 16px; font-size: 1.05rem; border-radius: 12px; }
  .site-nav__menu { position: static; transform: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 0 12px; }
  .site-nav .nav-cta { margin: 8px 0 0; justify-content: center; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Footer ---------- */
.site-footer { margin-top: 64px; border-top: 1px solid var(--border); background: var(--bg-2); color: var(--muted); font-size: 0.95rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding: 56px 0 32px; }
.site-footer h2 { font-size: 0.85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer address { font-style: normal; margin-bottom: 16px; }
.kren-logo { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.kren-logo img { background: #fff; border-radius: 10px; padding: 4px; }
.kren-logo span { display: flex; flex-direction: column; line-height: 1.2; }
.kren-logo strong { color: var(--text); font-size: 1.4rem; letter-spacing: .04em; }
.kren-logo small { font-size: .72rem; }
.socials { display: flex; gap: 8px; flex-wrap: wrap; }
.socials a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--border-strong); }
.socials a:hover { background: var(--brand); border-color: var(--brand); text-decoration: none; }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 0 28px; border-top: 1px solid var(--border); font-size: 0.85rem; }
.site-footer__bottom p { margin: 0; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Consent banner ---------- */
.consent {
  position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin-left: auto;
  display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow);
  font-size: 0.9rem;
}
.consent p { margin: 0 0 4px; }
.consent > div:first-child { flex: 1 1 280px; }
.consent__actions { display: flex; gap: 8px; }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
  color: var(--text); text-decoration: none; overflow: hidden;
  transition: transform .2s ease, border-color .2s, box-shadow .2s;
}
a.card:hover { transform: translateY(-4px); border-color: rgba(130,81,223,.6); box-shadow: var(--shadow); color: var(--text); }
.card p { color: var(--muted); margin-bottom: 0; }
.card__media { margin: -24px -24px 20px; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
a.card:hover .card__media img { transform: scale(1.05); }
.card__icon { width: 52px; height: 52px; display: grid; place-items: center; font-size: 1.6rem; border-radius: 14px; background: var(--brand-soft); margin-bottom: 16px; }
.card__link { margin-top: auto; padding-top: 16px; color: #c6b3ff; font-weight: 600; font-size: .95rem; }
.badge { position: absolute; top: 14px; right: 14px; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: #062a24; z-index: 1; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); }
.hero__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { max-width: 540px; margin-bottom: 28px; }
.hero__media { position: relative; border-radius: 24px; overflow: hidden; border: 1px solid var(--border-strong); box-shadow: 0 30px 80px -30px rgba(130,81,223,.6); background: #000; }
.hero__media video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hero__trust { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 28px; color: var(--muted); font-size: .9rem; }
.hero__trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust span::before { content: "✓"; color: var(--accent); font-weight: 700; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--surface); padding: 24px; text-align: center; }
.stat strong { display: block; font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .9rem; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Tips ---------- */
.tips { counter-reset: tip; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.tips li { counter-increment: tip; display: flex; gap: 16px; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.tips li::before { content: counter(tip, decimal-leading-zero); font-weight: 800; font-size: 1.3rem; color: var(--brand); min-width: 2ch; }
.tips strong { display: block; margin-bottom: 2px; }
.tips p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- CTA banner ---------- */
.cta {
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  padding: clamp(28px, 5vw, 48px); border-radius: 24px;
  background: radial-gradient(600px 300px at 100% 0%, rgba(62,224,196,.18), transparent 60%), linear-gradient(135deg, #3b2378, #1f1647);
  border: 1px solid rgba(130,81,223,.5);
}
.cta h2 { margin-bottom: 8px; }
.cta p { margin: 0; color: #dcd3ff; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } }

/* ---------- Page header ---------- */
.page-head { padding: clamp(40px, 6vw, 72px) 0 24px; }
.page-head .lead { max-width: 760px; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.breadcrumb a { color: var(--muted); }

/* ---------- Panels / prose ---------- */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(20px, 4vw, 36px); }
.prose { max-width: 780px; }
.prose h2 { margin-top: 1.6em; font-size: 1.6rem; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.callout { border-left: 4px solid var(--accent); background: rgba(62,224,196,.08); padding: 16px 20px; border-radius: 0 12px 12px 0; margin: 24px 0; }
.callout--danger { border-color: var(--danger); background: rgba(255,93,115,.08); }
.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--brand-soft); color: #d9ccff; font-size: .85rem; margin: 0 6px 6px 0; }

/* ---------- Progress ---------- */
.progress { height: 10px; background: rgba(255,255,255,.08); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--accent)); border-radius: inherit; transition: width .4s ease; }

/* ---------- Quiz ---------- */
.quiz { max-width: 820px; margin-inline: auto; }
.levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.level { text-align: left; cursor: pointer; font: inherit; }
.level .card__icon { font-size: 1.4rem; }
.level--easy .card__icon { background: rgba(52,211,153,.15); }
.level--medium .card__icon { background: rgba(255,200,87,.15); }
.level--hard .card__icon { background: rgba(255,93,115,.15); }
.quiz__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 12px; color: var(--muted); font-size: .9rem; }
.quiz__question { font-size: clamp(1.2rem, 2.6vw, 1.5rem); font-weight: 700; margin: 24px 0; }
.options { display: grid; gap: 12px; }
.option {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 16px 18px; border-radius: 14px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); cursor: pointer; transition: border-color .15s, background .15s, transform .1s;
}
.option:hover:not(:disabled) { border-color: var(--brand); background: var(--surface-2); }
.option:disabled { cursor: default; }
.option__key { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: rgba(255,255,255,.07); font-weight: 700; font-size: .9rem; }
.option.is-correct { border-color: var(--success); background: rgba(52,211,153,.12); }
.option.is-correct .option__key { background: var(--success); color: #04261a; }
.option.is-wrong { border-color: var(--danger); background: rgba(255,93,115,.12); }
.option.is-wrong .option__key { background: var(--danger); color: #fff; }
.explain { margin-top: 20px; padding: 16px 20px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--border); }
.explain strong { display: block; margin-bottom: 4px; }
.explain.ok strong { color: var(--success); }
.explain.bad strong { color: var(--danger); }
.quiz__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.result { text-align: center; }
.result__score { font-size: clamp(3rem, 10vw, 5rem); font-weight: 800; line-height: 1; margin: 12px 0; }
.result__badge { font-size: 4rem; }
.review { text-align: left; margin-top: 32px; display: grid; gap: 10px; }
.review details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; }
.review summary { cursor: pointer; }
.review .ok { color: var(--success); }
.review .bad { color: var(--danger); }

/* ---------- Memory game ---------- */
.game-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.game-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.game-stats span { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: .9rem; }
.game-stats b { color: #fff; }
.memory { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; perspective: 1000px; max-width: 760px; margin-inline: auto; }
@media (max-width: 640px) { .memory { grid-template-columns: repeat(4, 1fr); gap: 8px; } }
.mcard { position: relative; aspect-ratio: 1; border: 0; padding: 0; background: none; cursor: pointer; transform-style: preserve-3d; transition: transform .45s ease; border-radius: 14px; }
.mcard.is-flipped, .mcard.is-matched { transform: rotateY(180deg); }
.mcard img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 14px; backface-visibility: hidden; -webkit-backface-visibility: hidden; object-fit: cover; }
.mcard .front { transform: rotateY(180deg); }
.mcard.is-matched { cursor: default; }
.mcard.is-matched .front { box-shadow: 0 0 0 3px var(--success); }
.mcard.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: rotateY(180deg) translateX(-4px); } 75% { transform: rotateY(180deg) translateX(4px); } }

/* ---------- Modal ---------- */
.modal { border: 0; padding: 0; background: transparent; color: var(--text); max-width: min(520px, calc(100% - 32px)); }
.modal::backdrop { background: rgba(5, 3, 12, .75); backdrop-filter: blur(4px); }
.modal__box { background: var(--surface); border: 1px solid var(--border-strong); border-radius: 22px; padding: 32px; text-align: center; box-shadow: var(--shadow); }

/* ---------- Handbook viewer ---------- */
.viewer { display: grid; grid-template-columns: 1fr; gap: 16px; justify-items: center; }
.viewer__stage { position: relative; width: min(100%, 620px); }
.viewer__page { width: 100%; aspect-ratio: 1166 / 1654; border-radius: 12px; box-shadow: 0 30px 70px -20px rgba(0,0,0,.8); background: #fff; object-fit: contain; transition: opacity .2s; }
.viewer__btn { position: absolute; top: 50%; translate: 0 -50%; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border-strong); background: rgba(13,10,24,.85); color: #fff; font-size: 1.4rem; cursor: pointer; display: grid; place-items: center; }
.viewer__btn:hover:not(:disabled) { background: var(--brand); }
.viewer__btn:disabled { opacity: .3; cursor: default; }
.viewer__btn--prev { left: -64px; }
.viewer__btn--next { right: -64px; }
@media (max-width: 780px) { .viewer__btn--prev { left: 8px; } .viewer__btn--next { right: 8px; } }
.viewer__bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 8px 4px 12px; max-width: 100%; scroll-snap-type: x mandatory; }
.thumbs button { flex: none; padding: 0; border: 2px solid transparent; border-radius: 6px; background: none; cursor: pointer; scroll-snap-align: center; opacity: .6; }
.thumbs button[aria-current="true"] { border-color: var(--accent); opacity: 1; }
.thumbs img { width: 64px; height: 91px; object-fit: cover; border-radius: 4px; }
.print-pages { display: none; }

/* ---------- Gallery ---------- */
.gallery { columns: 3 280px; column-gap: 14px; }
.gallery button { display: block; width: 100%; margin: 0 0 14px; padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: zoom-in; background: var(--surface); break-inside: avoid; }
.gallery img { width: 100%; transition: transform .4s ease, opacity .3s; }
.gallery button:hover img { transform: scale(1.04); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(0,0,0,.92); }
.lightbox__inner { position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: 56px 16px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 112px); border-radius: 8px; }
.lightbox__close, .lightbox__nav { position: absolute; border: 0; background: rgba(255,255,255,.1); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--brand); }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__nav--prev { left: 12px; top: 50%; translate: 0 -50%; }
.lightbox__nav--next { right: 12px; top: 50%; translate: 0 -50%; }
.lightbox__count { position: absolute; bottom: 16px; left: 50%; translate: -50% 0; color: #ccc; font-size: .9rem; }

/* ---------- Forms / inputs ---------- */
.field { display: grid; gap: 8px; }
.input {
  width: 100%; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--border-strong);
  background: var(--bg-2); color: var(--text); font: inherit; font-size: 1.1rem;
}
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 110px; }
.input-wrap button { position: absolute; right: 8px; top: 50%; translate: 0 -50%; }
.search { margin-bottom: 24px; }

/* ---------- Password checker ---------- */
.meter { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 16px 0 8px; }
.meter span { height: 8px; border-radius: 999px; background: rgba(255,255,255,.1); transition: background .3s; }
.strength-label { font-weight: 700; font-size: 1.2rem; }
.checks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); }
.checks li::before { content: "○"; color: var(--muted); }
.checks li.ok { color: var(--text); }
.checks li.ok::before { content: "✓"; color: var(--success); font-weight: 700; }
.checks li.bad { color: var(--text); }
.checks li.bad::before { content: "!"; color: var(--danger); font-weight: 800; }
.crack-time { font-size: 1.6rem; font-weight: 800; }
.generated { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 1.2rem; word-break: break-all; padding: 16px; background: var(--bg-2); border-radius: 12px; border: 1px dashed var(--border-strong); margin: 12px 0; }
.two-col { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- Phishing game ---------- */
.message {
  background: #fff; color: #1d1d1f; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: .97rem; line-height: 1.55;
}
.message__head { padding: 14px 18px; background: #f2f2f7; border-bottom: 1px solid #e3e3ea; display: grid; gap: 2px; font-size: .88rem; color: #555; }
.message__head b { color: #111; }
.message__body { padding: 18px; }
.message__body a { color: #0a58ca; text-decoration: underline; cursor: not-allowed; }
.message--sms { max-width: 420px; margin-inline: auto; background: #f2f2f7; padding: 16px; }
.message--sms .bubble { background: #e5e5ea; padding: 12px 14px; border-radius: 18px 18px 18px 4px; max-width: 90%; }
.message--sms .sender { text-align: center; font-size: .8rem; color: #777; margin-bottom: 10px; }
.verdict { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.verdict .btn--safe { background: linear-gradient(135deg, #16a37a, #34d399); box-shadow: none; }
.verdict .btn--phish { background: linear-gradient(135deg, #d6334c, #ff5d73); box-shadow: none; }
.flags { margin: 12px 0 0; padding-left: 1.2em; }

/* ---------- Checklist ---------- */
.checklist { display: grid; gap: 28px; }
.checklist h2 { font-size: 1.25rem; display: flex; align-items: center; gap: 10px; }
.check-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); cursor: pointer; margin-bottom: 8px; transition: border-color .15s, background .15s; }
.check-item:hover { border-color: var(--border-strong); }
.check-item input { width: 22px; height: 22px; accent-color: var(--success); margin-top: 2px; flex: none; cursor: pointer; }
.check-item small { display: block; color: var(--muted); }
.check-item:has(input:checked) { border-color: rgba(52,211,153,.5); background: rgba(52,211,153,.06); }
.check-item:has(input:checked) strong { text-decoration: line-through; text-decoration-color: rgba(255,255,255,.4); }
.sticky-progress { position: sticky; top: 84px; z-index: 5; }

/* ---------- Glossary ---------- */
.glossary { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.term { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.term h3 { margin-bottom: 6px; color: #d9ccff; }
.term p { margin: 0; color: var(--muted); font-size: .95rem; }
.letters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.letters button { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
.letters button.active { background: var(--brand); border-color: var(--brand); }
.empty { text-align: center; color: var(--muted); padding: 40px; }

/* ---------- Help page ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: step; position: relative; padding: 4px 0 4px 48px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); font-weight: 700; }
.contact-card h3 { display: flex; gap: 10px; align-items: center; }
.big-number { font-size: 2rem; font-weight: 800; color: #fff; text-decoration: none; }
.accordion details { border-bottom: 1px solid var(--border); padding: 18px 0; }
.accordion summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--brand); }
.accordion details[open] summary::after { content: "–"; }
.accordion details > div { padding-top: 12px; color: var(--muted); }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 96px 0; }
.notfound .code { font-size: clamp(5rem, 18vw, 10rem); font-weight: 800; line-height: 1; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Print (doracaku → PDF) ---------- */
@media print {
  @page { margin: 0; size: A4; }
  body { background: #fff; }
  .site-header, .site-footer, .consent, .page-head, .viewer, .no-print { display: none !important; }
  .print-pages { display: block; }
  .print-pages img { width: 100%; height: 100vh; object-fit: contain; break-after: page; }
}

/* Printimi i listës së kontrollit dhe faqeve të tjera me tekst */
@media print {
  body { color: #000; }
  .panel, .check-item, .term, .tips li { background: #fff !important; color: #000 !important; border-color: #bbb !important; }
  .check-item small, .muted { color: #444 !important; }
  .sticky-progress { position: static; }
  .btn, .cta { display: none !important; }
}

/* ---------- Video (YouTube, ngarkohet vetëm pas klikimit) ---------- */
.video-embed { position: relative; aspect-ratio: 16 / 9; }
.video-embed > img { width: 100%; height: 100%; object-fit: cover; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed__soon {
  position: absolute; left: 16px; bottom: 16px; padding: 8px 14px; border-radius: 999px;
  background: rgba(13, 10, 24, 0.85); border: 1px solid var(--border-strong); font-size: .9rem; font-weight: 600;
}
.video-embed__play {
  position: absolute; inset: 0; display: grid; place-items: center; border: 0; cursor: pointer;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.55));
}
.video-embed__play span {
  width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-size: 1.8rem; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 10px 40px -8px rgba(130,81,223,.9);
  transition: transform .2s;
}
.video-embed__play:hover span { transform: scale(1.08); }
