/* ============================================================
   cyb3r.help - Design System v3 · Neon Cyber Theme
   Inspirācija: cyber/NFT estētika (neon glow, grid, scanlines)
   ============================================================ */

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

:root {
  /* Cyber melns - gandrīz pilns melns ar viegli indigo zemtoni virskārtām.
     Iepriekš #050309, bet lietotājs vēlējās vēl tumšāku - tagad fona pamats
     ir tik tuvu melnam, cik var saglabājot mīkstas surface kontrastu. */
  --bg:          #000005;   /* praktiski melns, mikroskopisks indigo */
  --bg-2:        #060410;   /* surfaces - nedaudz pamanāms kontrasts pret bg */
  --bg-3:        #0d0a1c;   /* cards/popovers - gaišākais ar indigo nokrāsu */
  --surface:     rgba(15, 10, 25, 0.78);
  --border:      rgba(129, 140, 248, 0.20);
  --border-h:    rgba(129, 140, 248, 0.55);

  --accent:      #818cf8;   /* Indigo blue - primary */
  --accent-h:    #a5b4fc;   /* Indigo hover */
  --accent-dim:  rgba(129, 140, 248, 0.14);
  --accent-2:    #a855f7;   /* Cyber violet - secondary */
  --accent-3:    #8F00FF;   /* Electric violet - sharp accents */
  --cyan:        #22d3ee;
  --magenta:     #ec4899;

  --green:       #10b981;
  --amber:       #f59e0b;
  --red:         #ef4444;

  --text:        #f1f5f9;
  --text-2:      #94a3b8;
  --text-3:      #64748b;
  --muted:       #94a3b8;

  --font-body:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-head:   'Space Grotesk', -apple-system, sans-serif;
  --font-mono:   'JetBrains Mono', 'Courier New', monospace;

  --radius:      0.75rem;
  --radius-sm:   0.5rem;
  --shadow:      0 4px 32px rgba(0, 0, 0, 0.5);
  --shadow-accent: 0 0 28px rgba(129, 140, 248, 0.25);
  --shadow-glow: 0 0 40px rgba(129, 140, 248, 0.4), 0 0 80px rgba(34, 211, 238, 0.18);
  --transition:  0.2s ease;

  --grid-color:  rgba(129, 140, 248, 0.06);
  --grid-size:   56px;

  /* Honeycomb (heksagonāls cyber raksts) - aizstāj globālo kvadrātu režģi */
  --honeycomb: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34.641' height='60' viewBox='0 0 34.641 60'%3E%3Cpath d='M-34.6,-40.0 -52.0,-50.0 -52.0,-70.0 -34.6,-80.0 -17.3,-70.0 -17.3,-50.0Z M-34.6,20.0 -52.0,10.0 -52.0,-10.0 -34.6,-20.0 -17.3,-10.0 -17.3,10.0Z M-34.6,80.0 -52.0,70.0 -52.0,50.0 -34.6,40.0 -17.3,50.0 -17.3,70.0Z M0.0,-40.0 -17.3,-50.0 -17.3,-70.0 -0.0,-80.0 17.3,-70.0 17.3,-50.0Z M0.0,20.0 -17.3,10.0 -17.3,-10.0 -0.0,-20.0 17.3,-10.0 17.3,10.0Z M0.0,80.0 -17.3,70.0 -17.3,50.0 -0.0,40.0 17.3,50.0 17.3,70.0Z M34.6,-40.0 17.3,-50.0 17.3,-70.0 34.6,-80.0 52.0,-70.0 52.0,-50.0Z M34.6,20.0 17.3,10.0 17.3,-10.0 34.6,-20.0 52.0,-10.0 52.0,10.0Z M34.6,80.0 17.3,70.0 17.3,50.0 34.6,40.0 52.0,50.0 52.0,70.0Z M-17.3,-10.0 -34.6,-20.0 -34.6,-40.0 -17.3,-50.0 -0.0,-40.0 0.0,-20.0Z M-17.3,50.0 -34.6,40.0 -34.6,20.0 -17.3,10.0 -0.0,20.0 0.0,40.0Z M-17.3,110.0 -34.6,100.0 -34.6,80.0 -17.3,70.0 -0.0,80.0 0.0,100.0Z M17.3,-10.0 -0.0,-20.0 0.0,-40.0 17.3,-50.0 34.6,-40.0 34.6,-20.0Z M17.3,50.0 -0.0,40.0 0.0,20.0 17.3,10.0 34.6,20.0 34.6,40.0Z M17.3,110.0 -0.0,100.0 0.0,80.0 17.3,70.0 34.6,80.0 34.6,100.0Z M52.0,-10.0 34.6,-20.0 34.6,-40.0 52.0,-50.0 69.3,-40.0 69.3,-20.0Z M52.0,50.0 34.6,40.0 34.6,20.0 52.0,10.0 69.3,20.0 69.3,40.0Z M52.0,110.0 34.6,100.0 34.6,80.0 52.0,70.0 69.3,80.0 69.3,100.0Z' fill='none' stroke='%23818cf8' stroke-opacity='0.08' stroke-width='1'/%3E%3C/svg%3E");
  --honeycomb-size: 64px 111px;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  /* Cyber melns: tumšāks pamats, glows klusāki - fokuss uz tumsumu, nevis halo. */
  background-image:
    var(--honeycomb),
    radial-gradient(ellipse 55% 35% at 50% -15%, rgba(129, 140, 248, 0.13), transparent 65%),
    radial-gradient(ellipse 60% 45% at 100% 100%, rgba(143, 0, 255, 0.04), transparent 75%);
  background-size: var(--honeycomb-size), 100% 100%, 100% 100%;
  background-repeat: repeat, no-repeat, no-repeat;
  background-attachment: fixed, fixed, fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
/* Slāņa scanlines (subtle) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    transparent 0,
    transparent 2px,
    rgba(255, 255, 255, 0.012) 2px,
    rgba(255, 255, 255, 0.012) 3px
  );
  pointer-events: none;
  z-index: 1;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

::selection { background: rgba(129, 140, 248, 0.35); color: #fff; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: rgba(129, 140, 248, 0.3); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: rgba(129, 140, 248, 0.5); }

/* ── Tipogrāfija ─────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  color: #ffffff;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { color: var(--text-2); }
code, kbd, pre { font-family: var(--font-mono); }

.text-gradient {
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-glow {
  text-shadow: 0 0 18px rgba(129, 140, 248, 0.7), 0 0 40px rgba(129, 140, 248, 0.3);
}
.text-white { color: #ffffff !important; }
.text-mono { font-family: var(--font-mono); }

/* ── Layout ──────────────────────────────────────────────── */
.container { max-width: 1440px; margin: 0 auto; padding: 0 1.5rem; position: relative; z-index: 2; }
main { position: relative; z-index: 2; }
.section { padding-block: 5rem; }
.section-sm { padding-block: 3rem; }

/* ── Navbar ──────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 8, 17, 0.78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
  padding-block: 0.875rem;
}
.navbar-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.navbar-logo {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.navbar-logo span { color: var(--accent); }
.navbar-logo:hover { filter: drop-shadow(0 0 12px rgba(129, 140, 248, 0.6)); }
.navbar-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.navbar-links > a, .nav-dropdown-toggle {
  color: var(--text-2);
  font-size: 0.9375rem;
  padding: 0.5rem 0;
  position: relative;
}
.navbar-links > a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  transition: width var(--transition);
}
.navbar-links > a:hover, .navbar-links > a.active { color: var(--text); }
.navbar-links > a:hover::after, .navbar-links > a.active::after { width: 100%; }
.navbar-auth { display: flex; align-items: center; gap: 0.75rem; margin-left: auto; }

/* Search */
.navbar-search { margin-left: auto; }
.navbar-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(11, 15, 26, 0.6);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.875rem;
  gap: 0.5rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.navbar-search-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.15);
}
.navbar-search-wrap svg { color: var(--text-3); }
.navbar-search-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 0.875rem;
  width: 200px;
}
.navbar-search-input::placeholder { color: var(--text-3); }

/* ── Navbar dropdown ──────────────────────────────────────── */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  background: none;
  color: var(--text-2);
  cursor: pointer;
  font: inherit;
  font-size: 0.9375rem;
  transition: color var(--transition);
}
.nav-dropdown-toggle:hover, .nav-dropdown-toggle.active { color: var(--text); }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 280px;
  max-height: 70vh;
  overflow-y: auto;
  background: rgba(11, 15, 26, 0.95);
  border: 1px solid var(--border-h);
  border-radius: 12px;
  box-shadow: var(--shadow-glow);
  padding: 0.5rem;
  display: none;
  z-index: 1000;
  backdrop-filter: blur(16px);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { display: block; }
.nav-dropdown-header {
  display: block;
  padding: 0.625rem 0.875rem;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.375rem;
}
.nav-dropdown-header:hover { background: rgba(129, 140, 248, 0.1); border-radius: 6px 6px 0 0; }
.nav-dropdown-group-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cyan);
  padding: 0.65rem 0.875rem 0.25rem;
  font-weight: 600;
  font-family: var(--font-mono);
}
.nav-dropdown-item {
  display: block;
  padding: 0.5rem 0.875rem;
  color: var(--text-2);
  font-size: 0.875rem;
  border-radius: 6px;
  transition: background 0.12s, color 0.12s;
}
.nav-dropdown-item:hover { background: rgba(129, 140, 248, 0.12); color: var(--text); }

/* Kompakts dropdown - mazāks padding, mazāks fonts piezīmju virsrakstos */
.nav-dropdown-menu-compact { min-width: 320px; padding: 0.375rem; }
.nav-dropdown-menu-compact .nav-dropdown-header {
  padding: 0.45rem 0.75rem;
  font-size: 0.78125rem;
  margin-bottom: 0.25rem;
}
.nav-dropdown-menu-compact .nav-dropdown-group-label {
  padding: 0.45rem 0.75rem 0.15rem;
  font-size: 0.625rem;
}
.nav-dropdown-menu-compact .nav-dropdown-item {
  padding: 0.3rem 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.3;
}

.nav-dropdown-item-external {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-2);
}
.nav-dropdown-item-external:hover {
  background: rgba(34, 211, 238, 0.10);
  color: var(--cyan);
}
.nav-dropdown-item-icon {
  font-size: 0.875rem;
  flex-shrink: 0;
  width: 1rem;
  display: inline-flex;
  justify-content: center;
}
.nav-dropdown-item-title {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-dropdown-item-external-icon {
  opacity: 0.4;
  flex-shrink: 0;
  transition: opacity 0.12s;
}
.nav-dropdown-item-external:hover .nav-dropdown-item-external-icon { opacity: 0.9; }

.nav-dropdown-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.35), transparent);
  margin: 0.4rem 0.25rem 0.25rem;
}
.nav-dropdown-section-title {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan);
  padding: 0.3rem 0.75rem;
  font-weight: 700;
  font-family: var(--font-mono);
}
.nav-dropdown-empty { padding: 1rem 0.875rem; color: var(--text-3); font-size: 0.8125rem; font-style: italic; }

/* Mobile nav - hamburger pieprasība */
.navbar-hamburger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  background: rgba(11, 15, 26, 0.6);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}
.navbar-hamburger:hover { background: rgba(34, 211, 238, 0.10); border-color: var(--cyan); }
.navbar-hamburger:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.navbar-hamburger span {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s, top 0.2s;
}
.navbar-hamburger span:nth-child(1) { top: 14px; }
.navbar-hamburger span:nth-child(2) { top: 21px; }
.navbar-hamburger span:nth-child(3) { top: 28px; }
.navbar-hamburger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.navbar-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navbar-hamburger[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.5rem 1.5rem;
  background: rgba(5, 8, 17, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  position: sticky;
  top: 64px;
  z-index: 99;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: var(--text-2);
  padding: 0.65rem 0.5rem;
  border-radius: 6px;
  font-size: 0.95rem;
}
.mobile-nav a:hover, .mobile-nav a:focus-visible { background: rgba(34, 211, 238, 0.10); color: var(--text); }
.mobile-nav .mobile-nav-section {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan);
  font-family: var(--font-mono);
  padding: 0.75rem 0.5rem 0.25rem;
  font-weight: 700;
}
.mobile-nav .divider { height: 1px; background: var(--border); margin: 0.5rem 0; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(129, 140, 248, 0.3);
}
.btn-primary:hover {
  box-shadow: 0 0 30px rgba(129, 140, 248, 0.6), 0 4px 16px rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}
.btn-primary:hover::before { left: 100%; }
.btn-ghost {
  background: rgba(129, 140, 248, 0.06);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(129, 140, 248, 0.14); border-color: var(--border-h); }
.btn-cyan {
  background: linear-gradient(135deg, var(--cyan), #0ea5e9);
  color: #fff;
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.3);
}
.btn-cyan:hover { box-shadow: 0 0 30px rgba(34, 211, 238, 0.6); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  backdrop-filter: blur(8px);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
}
.card:hover {
  border-color: var(--border-h);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 24px rgba(129, 140, 248, 0.15);
}
.card-glow {
  position: relative;
}
.card-glow::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, var(--accent), var(--cyan), var(--magenta));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition);
}
.card-glow:hover::before { opacity: 1; }

/* ── Forms ────────────────────────────────────────────────── */
input, textarea, select {
  background: rgba(11, 15, 26, 0.6);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.625rem 0.875rem;
  border-radius: var(--radius-sm);
  outline: none;
  width: 100%;
  font-size: 0.9375rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.18);
}
input::placeholder, textarea::placeholder { color: var(--text-3); }
label {
  display: block;
  font-size: 0.875rem;
  color: var(--text-2);
  margin-bottom: 0.375rem;
  font-weight: 500;
}
.form-group { margin-bottom: 1.25rem; }
.form-help { font-size: 0.8125rem; color: var(--text-3); margin-top: 0.375rem; }
.form-error { color: var(--red); font-size: 0.8125rem; margin-top: 0.375rem; }

/* ── Konta pārvaldības lapas (MFA, e-pasts, sesijas) ──────── */
/* Centrēts konteiners konta pārvaldības lapām. */
body.auth-managed #main-content {
  max-width: 580px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}
body.auth-managed #main-content > h1 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}
.auth-panel { padding: 1.5rem 1.75rem; margin-bottom: 1.25rem; }
.auth-panel-title { font-size: 1.0625rem; margin-bottom: 0.6rem; }
.auth-panel-body { color: var(--text-2); font-size: 0.9rem; line-height: 1.55; }
.auth-panel-actions {
  display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.1rem;
}
.btn-danger-soft {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}
.btn-danger-soft:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.6);
}

/* ── Badges ───────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(129, 140, 248, 0.3);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.badge-green  { background: rgba(16, 185, 129, 0.12); color: var(--green); border-color: rgba(16, 185, 129, 0.3); }
.badge-amber  { background: rgba(245, 158, 11, 0.12); color: var(--amber); border-color: rgba(245, 158, 11, 0.3); }
.badge-red    { background: rgba(239, 68, 68, 0.12); color: var(--red); border-color: rgba(239, 68, 68, 0.3); }
.badge-cyan   { background: rgba(34, 211, 238, 0.12); color: var(--cyan); border-color: rgba(34, 211, 238, 0.3); }
.badge-accent { background: rgba(168, 85, 247, 0.12); color: var(--accent-2); border-color: rgba(168, 85, 247, 0.3); }
.badge-indigo { background: rgba(129, 140, 248, 0.12); color: var(--accent); border-color: rgba(129, 140, 248, 0.3); }

.klix-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  background: rgba(129, 140, 248, 0.1);
  border: 1px solid rgba(129, 140, 248, 0.3);
  border-radius: 6px;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 500;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  padding-block: 6rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(129, 140, 248, 0.18) 0%, transparent 60%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: blur(60px);
  z-index: -1;
}
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.05;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}
.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-2);
  max-width: 640px;
  margin: 0 auto 2.5rem;
}
.hero-cta { display: inline-flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: 4rem;
  flex-wrap: wrap;
}
.hero-stat-value {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  font-feature-settings: 'tnum';
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-stat-label {
  font-size: 0.8125rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-mono);
  margin-top: 0.25rem;
}

/* ── Cyber decoratīvie elementi ──────────────────────────── */
/* Termināla "prompt" sajūta */
.terminal-prefix::before {
  content: '> ';
  color: var(--cyan);
  font-family: var(--font-mono);
  text-shadow: 0 0 8px rgba(34, 211, 238, 0.6);
}
/* Mirgojošs cursor */
.cursor-blink::after {
  content: '_';
  display: inline-block;
  margin-left: 2px;
  animation: cursor-blink 1s steps(2) infinite;
  color: var(--cyan);
}
@keyframes cursor-blink { 50% { opacity: 0; } }

/* Glitch hover efekts virsrakstam */
.glitch:hover {
  animation: glitch 0.3s linear infinite;
}
@keyframes glitch {
  0% { text-shadow: 1px 0 0 var(--magenta), -1px 0 0 var(--cyan); }
  25% { text-shadow: -1px 0 0 var(--magenta), 1px 0 0 var(--cyan); transform: translate(-1px, 0); }
  50% { text-shadow: 1px 0 0 var(--cyan), -1px 0 0 var(--magenta); transform: translate(1px, 0); }
  100% { text-shadow: -1px 0 0 var(--cyan), 1px 0 0 var(--magenta); transform: translate(0, 0); }
}

/* Animācijas */
.animate-float { animation: float 5s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.animate-pulse-glow { animation: pulse-glow 3s ease-in-out infinite; }
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(129, 140, 248, 0.3); }
  50% { box-shadow: 0 0 40px rgba(129, 140, 248, 0.6), 0 0 60px rgba(34, 211, 238, 0.3); }
}
.animate-fade-in { animation: fade-in 0.5s ease-out; }
@keyframes fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Sludinājumi (listings) ──────────────────────────────── */
.listings-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  margin-top: 2rem;
}
.listings-sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.listing-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.listing-card:hover {
  border-color: var(--border-h);
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(129, 140, 248, 0.15);
}
.listing-card-title {
  font-size: 1.0625rem;
  color: var(--text);
  font-family: var(--font-head);
  margin: 0;
}
.listing-card-meta {
  font-size: 0.8125rem;
  color: var(--text-3);
  font-family: var(--font-mono);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.listing-card-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-head);
}

/* ── Section header (Pakalpojumu kategorijas, Mūsu priekšrocības u.c.) ── */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}
.section-header .label {
  display: inline-block;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.875rem;
  padding: 0.3rem 0.875rem;
  background: rgba(129, 140, 248, 0.08);
  border: 1px solid rgba(129, 140, 248, 0.25);
  border-radius: 999px;
}
.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: #ffffff;
  margin-bottom: 1rem;
  letter-spacing: -0.015em;
}
.section-header p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 580px;
  margin: 0 auto;
}

/* ── Grid layouts ─────────────────────────────────────────── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}
@media (min-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ── Card ikona apvads ───────────────────────────────────── */
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}
.card-icon svg { width: 24px; height: 24px; }

/* ── Pakalpojumu kategoriju karte (3 hero cards) ─────────── */
.cat-card {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding: 1.5rem 1.4rem 1.4rem;
  background: linear-gradient(180deg, rgba(15, 19, 32, 0.7) 0%, rgba(10, 14, 26, 0.85) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  isolation: isolate;
}
/* Augšējais akcenta gradients */
.cat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}
/* Mirgojošais gradients (hover) */
.cat-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%),
    rgba(129, 140, 248, 0.15), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
  pointer-events: none;
}
.cat-card:hover {
  border-color: var(--border-h);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(129, 140, 248, 0.2);
}
.cat-card:hover::before { opacity: 1; }
.cat-card:hover::after { opacity: 1; }
.cat-card h3 {
  font-size: 1.25rem;
  color: #ffffff;
  font-family: var(--font-head);
  margin: 0;
}
.cat-card p {
  color: var(--text-2);
  line-height: 1.55;
  margin: 0;
}

/* ── "Kāpēc cyb3r.help" priekšrocību karte ──────────────── */
.feature-card {
  padding: 1.5rem 1.5rem 1.625rem;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.5), rgba(10, 14, 26, 0.7));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity 0.25s;
}
.feature-card:hover {
  border-color: var(--border-h);
  transform: translateY(-3px);
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.7), rgba(10, 14, 26, 0.9));
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}
.feature-card:hover::before { opacity: 1; }
.feature-card h3 {
  color: #ffffff;
  font-family: var(--font-head);
  margin: 0 0 0.5rem;
}
.feature-card p {
  color: var(--text-2);
  font-size: 0.875rem;
  line-height: 1.55;
  margin: 0;
}

/* ── Kategoriju tagi (cat-badge) ─────────────────────────── */
.cat-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.625rem;
  background: rgba(11, 15, 26, 0.6);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-2);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  transition: border-color var(--transition), color var(--transition);
}
.cat-card:hover .cat-badge {
  border-color: rgba(129, 140, 248, 0.3);
  color: var(--text);
}

/* Navbar uzkrītošās pogas: Mani sludinājumi + lietotāja chip */
.btn-my-listings {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  background: linear-gradient(135deg, rgba(34,211,238,0.18), rgba(168,85,247,0.18));
  border: 1px solid rgba(34,211,238,0.45);
  color: var(--cyan);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.82rem;
  text-decoration: none;
  transition: all .15s;
}
.btn-my-listings:hover {
  background: linear-gradient(135deg, rgba(34,211,238,0.30), rgba(168,85,247,0.30));
  border-color: var(--cyan);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(34,211,238,0.25);
}
.btn-my-listings .btn-label-short { white-space: nowrap; }
.btn-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.75rem 0.3rem 0.3rem;
  background: rgba(168,85,247,0.10);
  border: 1px solid rgba(168,85,247,0.35);
  color: var(--text);
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: all .15s;
}
.btn-user-chip:hover {
  background: rgba(168,85,247,0.20);
  border-color: var(--accent);
}
.btn-user-chip .user-avatar {
  width: 22px; height: 22px;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  color: #07111f;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  flex-shrink: 0;
}
.btn-user-chip .user-name { white-space: nowrap; }

@media (max-width: 980px) {
  .btn-my-listings .btn-label-short { display: none; }
}

/* Uzkrītoša Apmaksāt poga "Mani sludinājumi" lapā */
.btn-pay-prominent {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.55rem 1rem;
  background: linear-gradient(135deg, #22d3ee, #818cf8);
  border: none;
  color: #07111f;
  font-weight: 700; font-size: 0.875rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all .15s;
  box-shadow: 0 4px 12px rgba(34, 211, 238, 0.25);
  white-space: nowrap;
}
.btn-pay-prominent:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(34, 211, 238, 0.45);
  background: linear-gradient(135deg, #06b6d4, #6366f1);
}

/* ─── Plāna izvēles kartes ─────────────────────────────────── */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.plan-card { cursor: pointer; display: block; position: relative; }
.plan-radio-hidden {
  position: absolute; opacity: 0; pointer-events: none;
  width: 0; height: 0;
}
.plan-card-inner {
  position: relative;
  padding: 1.5rem 1.25rem;
  background: rgba(11, 15, 26, 0.5);
  border: 2px solid var(--border);
  border-radius: 12px;
  text-align: center;
  transition: all .18s;
  height: 100%;
}
.plan-card:hover .plan-card-inner {
  border-color: rgba(34, 211, 238, 0.5);
  background: rgba(34, 211, 238, 0.04);
  transform: translateY(-2px);
}
.plan-card .plan-radio-hidden:checked + .plan-card-inner {
  border-color: var(--cyan);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.10), rgba(168, 85, 247, 0.08));
  box-shadow: 0 8px 24px rgba(34, 211, 238, 0.20);
}
.plan-card .plan-radio-hidden:checked + .plan-card-inner::after {
  content: '✓';
  position: absolute;
  top: 0.6rem; right: 0.7rem;
  width: 22px; height: 22px;
  background: var(--cyan);
  color: #07111f;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700;
}
.plan-popular-badge {
  position: absolute;
  top: -10px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  color: #07111f;
  font-size: 0.65rem; font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.7rem;
  border-radius: 99px;
  white-space: nowrap;
}
.plan-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.plan-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.15rem;
  margin: 0.75rem 0;
}
.plan-price-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--cyan);
  line-height: 1;
  font-family: var(--font-mono);
}
.plan-price-cur {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-2);
}
.plan-per-day {
  font-size: 0.75rem;
  color: var(--text-3);
  font-family: var(--font-mono);
  margin-top: 0.5rem;
}

/* Aktīvo sludinājumu skaits per kategorija */
.cat-count {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  padding: 0.15rem 0.5rem;
  background: rgba(34, 211, 238, 0.10);
  border: 1px solid rgba(34, 211, 238, 0.25);
  color: var(--cyan);
  border-radius: 99px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ── Threat Map Hero ──────────────────────────────────────── */
.threat-hero {
  position: relative;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(129, 140, 248, 0.12), transparent 70%),
              linear-gradient(135deg, var(--bg-2), var(--bg) 60%);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
  overflow: hidden;
}
.threat-hero-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
  margin-bottom: 1.5rem;
}
.threat-hero-header h1 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: #fff;
  margin: 0.5rem 0 0.5rem;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.threat-hero-header p {
  color: var(--text-2);
  max-width: 580px;
  margin: 0;
  font-size: 0.9375rem;
}
.threat-hero-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Live badge ar pulsējošu punktu */
.threat-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  color: var(--cyan);
  padding: 0.35rem 0.75rem;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 999px;
  text-transform: uppercase;
}
.threat-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.6);
  animation: tm-pulse 1.5s infinite;
}
@keyframes tm-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(34, 211, 238, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}

/* Kanvanss - plata (full-bleed) variants */
.threat-map-canvas {
  position: relative;
  background: #050811;
  border: 1px solid var(--border-h);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 2 / 1;
  max-height: 720px;
  width: 100%;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4),
              0 0 32px rgba(129, 140, 248, 0.12);
}
.threat-map-canvas svg {
  display: block;
  width: 100%;
  height: 100%;
}
@media (min-width: 1200px) {
  .threat-map-canvas { max-height: 800px; }
}

/* Check Point stila top bar */
.threat-top-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0.65rem 1.25rem;
  background: linear-gradient(180deg, rgba(5,8,17,0.95), rgba(5,8,17,0.7));
  border-bottom: 1px solid rgba(34,211,238,0.15);
  font-family: var(--font-mono);
  z-index: 5;
  flex-wrap: wrap;
}
.threat-top-counter {
  display: flex; align-items: baseline; gap: 0.35rem;
}
.ttc-label {
  font-size: 0.68rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.ttc-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.ttc-value.ttc-live {
  color: #22d3ee;
  animation: ttc-live-pulse 1s ease-in-out infinite;
}
@keyframes ttc-live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
.ttc-suffix {
  font-size: 0.68rem;
  color: var(--text-3);
}
.threat-top-legend {
  margin-left: auto;
  display: flex; gap: 0.85rem; flex-wrap: wrap;
  font-size: 0.7rem;
  color: var(--text-2);
}
.legend-item { display: inline-flex; align-items: center; gap: 0.3rem; }
.legend-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  box-shadow: 0 0 6px currentColor;
}

/* Statistikas overlay */
.threat-stats {
  position: absolute;
  top: 4rem;
  left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: rgba(5, 8, 17, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  min-width: 180px;
  font-family: var(--font-mono);
}
.threat-stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.threat-stat-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  color: var(--text-3);
  letter-spacing: 0.05em;
}
.threat-stat-value {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--cyan);
}

/* Feed (uzbrukumu plūsma) */
.threat-feed {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  width: 280px;
  max-width: 40%;
}
.threat-feed-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(5, 8, 17, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.4rem 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  animation: tm-feed-in 0.3s ease-out;
}
@keyframes tm-feed-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.tf-type {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.6875rem;
  padding: 0.1rem 0.375rem;
  background: rgba(129, 140, 248, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.3);
  border-radius: 3px;
  flex-shrink: 0;
}
.tf-route {
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

/* Disclaimer */
.threat-disclaimer {
  font-size: 0.75rem;
  color: var(--text-3);
  margin: 0.875rem 0 0;
  text-align: center;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 720px) {
  .threat-hero-header { grid-template-columns: 1fr; gap: 1rem; }
  .threat-hero-actions { justify-content: flex-start; }
  .threat-feed { width: calc(100% - 2rem); max-width: none; left: 1rem; right: 1rem; }
  .threat-stats { padding: 0.5rem 0.75rem; min-width: 0; }
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  margin-top: 6rem;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 14, 26, 0.6) 30%, rgba(10, 14, 26, 0.95) 100%);
  border-top: 1px solid var(--border);
  padding: 4rem 0 1.5rem;
  position: relative;
}
/* Augšējais akcenta gradients */
.footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 30%, var(--accent-2) 50%, var(--cyan) 70%, transparent 100%);
  opacity: 0.6;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 4rem;
  max-width: 1440px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
}

/* ── Brand sadaļa ────────────────────────────────────────── */
.footer-brand { display: flex; flex-direction: column; gap: 1rem; max-width: 360px; }
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--text);
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: filter var(--transition);
}
.footer-logo:hover { filter: drop-shadow(0 0 12px rgba(129, 140, 248, 0.5)); }
.footer-logo-text strong { color: var(--accent); font-weight: 700; }
.footer-tagline {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-2);
  margin: 0;
}

/* ── Sociālie tīkli - apaļās ikonu pogas ─────────────────── */
.footer-social {
  display: flex;
  gap: 0.625rem;
  margin-top: 0.5rem;
}
.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(11, 15, 26, 0.6);
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: all var(--transition);
}
.footer-social-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(129, 140, 248, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(129, 140, 248, 0.25);
}

/* ── Navigācija 4 kolonnas ───────────────────────────────── */
.footer-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.footer-col h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 1rem;
  font-family: var(--font-head);
  font-weight: 600;
  position: relative;
  padding-bottom: 0.5rem;
}
/* Akcenta līnija zem heading */
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 1px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.625rem; }
.footer-col a {
  color: var(--text-2);
  font-size: 0.875rem;
  transition: color var(--transition), padding-left var(--transition);
  display: inline-block;
  position: relative;
}
.footer-col a:hover {
  color: var(--accent);
  padding-left: 0.375rem;
}
.footer-col a:hover::before {
  content: '›';
  position: absolute;
  left: -0.5rem;
  color: var(--accent);
}

/* ── Apakšējā josla ──────────────────────────────────────── */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-3);
  gap: 1.5rem;
}
.footer-copyright { margin: 0; color: var(--text-3); }
.footer-copyright strong { color: var(--text-2); font-weight: 600; }
.footer-meta { display: flex; align-items: center; gap: 1rem; }
.footer-payment {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.875rem;
  background: rgba(11, 15, 26, 0.6);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 0.75rem;
}
.footer-payment svg { color: var(--cyan); }
.footer-payment strong { color: var(--text); font-weight: 600; }

/* ── Responsive (mobile) ─────────────────────────────────── */
@media (max-width: 980px) {
  .footer-nav { grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
}
@media (max-width: 860px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-nav {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}
@media (max-width: 560px) {
  .footer { padding: 3rem 0 1.5rem; margin-top: 4rem; }
  .footer-nav { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 1rem; padding-top: 1.25rem; }
  .footer-meta { width: 100%; }
}

/* ── Cookie consent banner ───────────────────────────────── */
.cookie-consent {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  max-width: 720px;
  margin: 0 auto;
  background: rgba(11, 15, 26, 0.95);
  border: 1px solid var(--accent);
  border-radius: 12px;
  box-shadow: var(--shadow-glow);
  padding: 1.25rem 1.5rem;
  z-index: 9999;
  backdrop-filter: blur(16px);
  animation: cookie-slide-up 0.3s ease-out;
}
@keyframes cookie-slide-up {
  from { transform: translateY(120%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-consent-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cookie-consent-text { flex: 1 1 320px; }
.cookie-consent-text strong { display: block; color: var(--text); font-size: 0.9375rem; margin-bottom: 0.375rem; }
.cookie-consent-text p { color: var(--text-2); font-size: 0.8125rem; margin: 0; line-height: 1.5; }
.cookie-consent-text a { color: var(--accent); text-decoration: underline; }

/* ── Auth lapas (login/signup) ───────────────────────────── */
.auth-layout { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-brand {
  padding: 4rem 3rem;
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.08), rgba(34, 211, 238, 0.05));
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-form-side { padding: 4rem 3rem; display: flex; align-items: center; justify-content: center; }
.auth-form { width: 100%; max-width: 400px; }

/* ── Utility ──────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-h), transparent);
  margin-block: 2rem;
  border: none;
}
.prose h2 { color: var(--text); font-size: 1.5rem; margin-top: 2rem; margin-bottom: 1rem; }
.prose h3 { color: var(--text); font-size: 1.125rem; margin-top: 1.5rem; margin-bottom: 0.75rem; }
.prose p { margin-bottom: 1rem; }
.prose ul, .prose ol { margin: 1rem 0 1rem 1.5rem; color: var(--text-2); }
.prose li { margin-bottom: 0.375rem; }
.prose a { color: var(--accent); text-decoration: underline; }
.prose a:hover { color: var(--accent-h); }
.prose code { background: rgba(129, 140, 248, 0.12); padding: 0.125rem 0.375rem; border-radius: 4px; font-size: 0.875em; color: var(--cyan); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.prose th, .prose td { padding: 0.625rem 0.875rem; text-align: left; border-bottom: 1px solid var(--border); }
.prose th { color: var(--text); font-weight: 600; }

/* ── Listings sidebar - desktop heading + mobile collapsible ── */
.listings-sidebar-heading {
  font-size: 0.9375rem;
  margin: 0 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.listings-sidebar-toggle { display: none; }

.listing-card-link:hover { transform: translateY(-2px); }

/* ── Sludinājumu saraksts - 1 kolonnas list view ──────────── */
.listings-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.listing-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 1.5rem;
  padding: 1.1rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s, background 0.15s;
  color: inherit;
}
.listing-row:hover {
  border-color: var(--accent);
  background: rgba(11, 15, 26, 0.75);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(129, 140, 248, 0.12);
}
.listing-row-main {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}
.listing-row-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
}
.listing-row-cat-badge { font-size: 0.6875rem; }
.listing-row-cat {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 500;
  margin-left: 0.15rem;
}
.listing-row-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
  color: var(--text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.listing-row-desc {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.listing-row-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.15rem;
}
.listing-row-tag {
  font-size: 0.6875rem;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}
.listing-row-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
  padding-left: 1.25rem;
  border-left: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
  white-space: nowrap;
  justify-content: flex-start;
}
.listing-row-meta-date {
  color: var(--text-2);
  font-weight: 600;
}
.listing-row-meta-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.listing-row-meta-stat svg { color: var(--text-3); }
.listing-row-meta-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #fbbf24;
  font-size: 0.875rem;
  font-weight: 700;
}
.listing-row-meta-rating-star {
  font-size: 1.15rem;
  line-height: 1;
  text-shadow: 0 0 6px rgba(251, 191, 36, 0.45);
}
.listing-row-meta-days { color: var(--text-3); }
.listing-row-meta-days-warning { color: #f59e0b; font-weight: 600; }

@media (max-width: 720px) {
  .listing-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1rem;
  }
  .listing-row-meta {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    border-left: 0;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 0.75rem;
    gap: 1rem;
  }
}

/* ── Sludinājuma detaļlapa ───────────────────────────────── */
.listing-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
  align-items: start;
}
.listing-detail-main { min-width: 0; }
.listing-detail-card { padding: 2rem; margin-bottom: 1.5rem; }
.listing-detail-sidebar { display: flex; flex-direction: column; gap: 1rem; }
.listing-detail-contact {
  padding: 1.5rem;
  position: sticky;
  top: 5rem;
}
.listing-detail-category { padding: 1.25rem; }
.listing-detail-ratings { padding: 1.5rem; margin-top: 2rem; }
.listing-detail-comments { padding: 1.5rem; margin-top: 1.5rem; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 960px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-form-side { padding: 2.5rem 1.5rem; }

  /* Listings: 1-col layout, sidebar pārvēršas par collapsible button */
  .listings-layout { grid-template-columns: 1fr; gap: 1rem; }
  .listings-sidebar {
    position: static;
    max-height: none;
    padding: 0;
    background: transparent;
    border: 0;
    overflow: visible;
  }
  .listings-sidebar-heading { display: none; }
  .listings-sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
  }
  .listings-sidebar-toggle:hover { border-color: var(--cyan); background: rgba(34,211,238,0.06); }
  .listings-sidebar-toggle:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
  .listings-sidebar-toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
  }
  .listings-sidebar-toggle .filter-count {
    display: inline-block;
    background: var(--accent);
    color: #07111f;
    padding: 0.05rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 0.25rem;
    min-width: 1.4rem;
    text-align: center;
  }
  .listings-sidebar-toggle .toggle-chevron {
    transition: transform 0.2s;
    opacity: 0.65;
  }
  .listings-sidebar-toggle[aria-expanded="true"] .toggle-chevron {
    transform: rotate(180deg);
  }
  .listings-sidebar-content {
    display: none;
    padding: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-top: 0.5rem;
  }
  .listings-sidebar.open .listings-sidebar-content { display: block; }

  /* Cards uz mobile - kompaktāki */
  .listing-card { padding: 1.1rem 1rem; gap: 0.5rem; }

  /* Sludinājuma detaļlapas mobile layout - viena kolonna */
  .listing-detail-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .listing-detail-contact {
    position: static;
  }
}
@media (max-width: 960px) {
  /* Tablešos un landscape telefonos navbar pārplūst - slēpt desktop linkus,
     rādīt hamburger. Pirms tam breakpoint bija 640px, kas atstāja desktop layout
     uz iPad/tablešiem un tas izskatījās salauzts vai pārklājās. */
  .navbar-links, .navbar-auth, .navbar-search { display: none; }
  .navbar-hamburger { display: inline-flex; }
}
@media (max-width: 640px) {
  .hero { padding-block: 4rem 3rem; }
  .hero-stats { gap: 2rem; }
  /* Footer mobile responsive - definēts augstāk virs galvenā footer bloka */
  .section { padding-block: 3.5rem; }
  .cookie-consent { bottom: 0.5rem; left: 0.5rem; right: 0.5rem; padding: 1rem; }
  .cookie-consent-actions { width: 100%; }
  .cookie-consent-actions .btn { width: 100%; }

  /* Detaļlapas kartīnu padding samazinājums uz mazākiem telefoniem */
  .listing-detail-card { padding: 1.25rem; margin-bottom: 1rem; }
  .listing-detail-contact { padding: 1.25rem; }
  .listing-detail-category { padding: 1rem; }
  .listing-detail-ratings { padding: 1.25rem; margin-top: 1.25rem; }
  .listing-detail-comments { padding: 1.25rem; margin-top: 1rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ════════════════════════════════════════════════════════════════
   PROFESIONĀLO KOMPONENŠU LAPAS DAĻA
   Spacing scale, page header, toolbar, breadcrumbs, table, empty
   ════════════════════════════════════════════════════════════════ */

/* Spacing tokens (8px grid) */
:root {
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
}

/* Container ar variantiem */
.container-sm { max-width: 720px; margin: 0 auto; padding: 0 1.5rem; }
.container-md { max-width: 960px; margin: 0 auto; padding: 0 1.5rem; }
.container-lg { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-xl { max-width: 1440px; margin: 0 auto; padding: 0 1.5rem; }

/* Page header - vienots galvenes formāts */
.page-header {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}
.page-header-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.page-header h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.5rem;
  line-height: 1.15;
}
.page-header .subtitle {
  color: var(--text-2);
  font-size: 0.9375rem;
  margin: 0;
}
.page-header-actions { display: flex; gap: 0.75rem; flex-shrink: 0; }

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-3);
  margin-bottom: 1rem;
  font-family: var(--font-mono);
}
.breadcrumbs a { color: var(--accent); }
.breadcrumbs a:hover { color: var(--accent-h); }
.breadcrumbs .sep { color: var(--text-3); opacity: 0.5; }
.breadcrumbs .current { color: var(--text-2); }

/* Toolbar - filtru un sort josla virs satura */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 1.25rem;
  background: rgba(11, 15, 26, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.toolbar-info {
  font-size: 0.875rem;
  color: var(--text-2);
}
.toolbar-info strong { color: var(--text); font-weight: 600; }
.toolbar-controls { display: flex; gap: 0.5rem; align-items: center; }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 5rem 2rem;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}
.empty-state-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  color: rgba(129, 140, 248, 0.3);
}
.empty-state h3 {
  font-size: 1.125rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.empty-state p {
  color: var(--text-2);
  margin-bottom: 1.5rem;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* Stat cards (lielajām metrikām) */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  opacity: 0.6;
}
.stat-card-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  font-family: var(--font-mono);
  margin-bottom: 0.75rem;
}
.stat-card-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  font-family: var(--font-head);
  line-height: 1;
}
.stat-card-meta {
  font-size: 0.8125rem;
  color: var(--text-3);
  margin-top: 0.5rem;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 1.5rem 0;
}
.pagination a, .pagination .pagination-current {
  padding: 0.5rem 0.875rem;
  border-radius: 8px;
  font-size: 0.875rem;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--text-2);
  font-family: var(--font-mono);
  transition: all var(--transition);
}
.pagination a:hover {
  border-color: var(--border-h);
  color: var(--text);
  background: rgba(129, 140, 248, 0.06);
}
.pagination .pagination-current {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Auth - split-screen (login, signup) */
.auth-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 60px);
}
.auth-left {
  padding: 4rem 3rem;
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.08), rgba(34, 211, 238, 0.04));
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.auth-left::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.15), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}
.auth-left-content { position: relative; z-index: 1; max-width: 480px; }
.auth-left h1 {
  font-size: 2.25rem;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.auth-left p {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.6;
}
.auth-features {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.auth-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-2);
  font-size: 0.9375rem;
}
.auth-features li svg {
  color: var(--cyan);
  flex-shrink: 0;
  margin-top: 0.125rem;
}
.auth-right {
  padding: 4rem 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-card {
  width: 100%;
  max-width: 420px;
}
.auth-card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.auth-card .auth-subtitle {
  color: var(--text-2);
  font-size: 0.9375rem;
  margin-bottom: 2rem;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-3);
  font-size: 0.8125rem;
  margin: 1.5rem 0;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-footer-text {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--text-2);
}
.auth-footer-text a {
  color: var(--accent);
  font-weight: 500;
}

/* Notifikācijas (sistēmas paziņojumi) */
.alert {
  padding: 0.875rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  border: 1px solid;
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
}
.alert-success { background: rgba(16, 185, 129, 0.08); color: var(--green); border-color: rgba(16, 185, 129, 0.3); }
.alert-error,
.alert-danger { background: rgba(239, 68, 68, 0.08); color: var(--red); border-color: rgba(239, 68, 68, 0.3); }
.alert-warning { background: rgba(245, 158, 11, 0.08); color: var(--amber); border-color: rgba(245, 158, 11, 0.3); }
.alert-info { background: rgba(34, 211, 238, 0.08); color: var(--cyan); border-color: rgba(34, 211, 238, 0.3); }

/* Tooltip */
[data-tooltip] {
  position: relative;
}
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(11, 15, 26, 0.95);
  color: var(--text);
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  font-size: 0.75rem;
  white-space: nowrap;
  border: 1px solid var(--border);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  z-index: 100;
}
[data-tooltip]:hover::after { opacity: 1; }

/* Sticky CTA pie sludinājuma izveides */
.sticky-cta {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  box-shadow: var(--shadow-glow);
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
}

/* Atrišanas grupas - vienots radio button group */
.button-group {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.25rem;
  gap: 0.125rem;
}
.button-group button, .button-group a {
  padding: 0.4rem 0.875rem;
  border-radius: 6px;
  font-size: 0.8125rem;
  color: var(--text-2);
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
}
.button-group button.active,
.button-group a.active {
  background: var(--accent);
  color: #fff;
}
.button-group button:hover:not(.active),
.button-group a:hover:not(.active) {
  background: rgba(129, 140, 248, 0.1);
  color: var(--text);
}

/* w-full helper */
.w-full { width: 100%; }
.flex-1 { flex: 1; }

/* ─── Valodu pārslēgs ─────────────────────────────────────── */
.lang-switcher {
  display: inline-flex;
  background: rgba(11, 15, 26, 0.5);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2px;
  gap: 1px;
}
.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text-3);
  transition: all var(--transition);
  letter-spacing: 0.04em;
  text-decoration: none;
  display: inline-block;
}
.lang-btn:hover { color: var(--text); background: rgba(129, 140, 248, 0.08); }
.lang-btn.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 8px rgba(129, 140, 248, 0.4);
}

/* ─── Skip to main content (WCAG 2.4.1 Bypass Blocks, Level A) ──── */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 9999;
  text-decoration: none;
  font-weight: 600;
  border-radius: 0 0 8px 0;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* ─── Listing filter chips & sort bar ───────────────────────────── */
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3rem 0.625rem;
  background: var(--accent-dim);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.75rem;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition);
  cursor: pointer;
}
.filter-chip:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: var(--accent);
}
.filter-chip-label {
  color: var(--text-3);
  font-weight: 500;
}
.filter-chip-value {
  color: var(--text);
  font-weight: 600;
}
.filter-chip-clear {
  background: transparent;
  border-color: var(--border);
  color: var(--text-2);
}
.filter-chip-clear:hover {
  background: var(--bg-3);
  color: var(--text);
  border-color: var(--border-h);
}
.sort-form select {
  padding: 0.375rem 0.625rem;
  font-size: 0.8125rem;
  min-width: 160px;
}
.sort-bar {
  padding: 0.625rem 0.875rem;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

/* ─── Sidebar: top hashtags + category counts ───────────────────── */
.hashtag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.55rem 0.2rem 0.5rem;
  background: var(--accent-dim);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.hashtag-pill:hover {
  background: rgba(139, 92, 246, 0.22);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.hashtag-pill-count {
  font-size: 0.6875rem;
  color: var(--text-3);
  background: rgba(7, 17, 31, 0.4);
  padding: 0 0.35rem;
  border-radius: 999px;
  font-weight: 600;
}
.cat-quick-count {
  font-size: 0.6875rem;
  color: var(--text-3);
  background: var(--bg-3);
  border: 1px solid var(--border);
  padding: 0 0.4rem;
  border-radius: 999px;
  font-weight: 500;
  min-width: 1.5rem;
  text-align: center;
}
/* Sānjoslas kategoriju filtrs — galvenā kategorija (root) */
.category-root-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.category-root-link:hover { background: var(--accent-dim); }
.category-root-link.is-active {
  background: var(--accent-dim);
  color: var(--accent-h);
}
/* Apakškategorijas saite */
.category-quick-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-2);
  padding: 0.2rem 0.5rem 0.2rem 1rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.category-quick-link:hover { color: var(--text); background: var(--bg-3); }
.category-quick-link.is-active {
  color: var(--text);
  background: var(--bg-3);
  font-weight: 600;
}

/* ============================================================
   Vulnerability feed (NVD CVE) - /jaunumi zem threat map
   ============================================================ */
.vuln-feed {
  background: linear-gradient(180deg, rgba(7, 17, 31, 0.4) 0%, transparent 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.vuln-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 0.875rem;
}
.vuln-item {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 1rem 1.125rem;
  background: rgba(7, 17, 31, 0.55);
  border: 1px solid var(--border);
  border-radius: 0.625rem;
  text-decoration: none;
  color: var(--text-1);
  transition: border-color 0.15s, transform 0.15s, background 0.15s;
}
.vuln-item:hover,
.vuln-item:focus-visible {
  border-color: var(--cyan);
  background: rgba(7, 17, 31, 0.75);
  transform: translateY(-1px);
  outline: none;
}
.vuln-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.vuln-cve {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--cyan);
  letter-spacing: 0.02em;
}
.vuln-severity {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.18rem 0.5rem;
  border: 1px solid;
  border-radius: 999px;
  white-space: nowrap;
}
.vuln-summary {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text-2);
  margin: 0;
}
.vuln-item-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-3);
  border-top: 1px dashed var(--border);
  padding-top: 0.5rem;
}
.vuln-cwe {
  color: var(--accent);
}

/* ============================================================
   Hacker News feed - /jaunumi zem CVE
   ============================================================ */
.hn-feed {
  background: linear-gradient(180deg, rgba(255, 102, 0, 0.04) 0%, transparent 100%);
  border-top: 1px solid var(--border);
}
.hn-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.hn-item {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: rgba(7, 17, 31, 0.55);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  align-items: start;
  transition: border-color 0.15s, background 0.15s;
}
.hn-item:hover {
  border-color: #ff6600;
  background: rgba(255, 102, 0, 0.06);
}
.hn-rank {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: #ff6600;
  font-weight: 600;
  text-align: right;
  padding-top: 0.15rem;
}
.hn-body {
  min-width: 0;
}
.hn-title {
  display: block;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--text-1);
  text-decoration: none;
  margin-bottom: 0.375rem;
  word-wrap: break-word;
}
.hn-title:hover {
  color: #ff6600;
}
.hn-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.875rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-3);
}
.hn-score {
  color: #ff6600;
  font-weight: 600;
}
.hn-author {
  color: var(--cyan);
}
.hn-comments {
  color: var(--text-2);
  text-decoration: none;
}
.hn-comments:hover {
  color: #ff6600;
}

/* ============================================================
   Zvaigžņu vērtējums - listing detail
   ============================================================ */
.rating-stars-display { display: inline-flex; gap: 0.125rem; font-size: 1.25rem; line-height: 1; }
.rating-stars-display .rating-star { color: var(--border); transition: color .15s; }
.rating-stars-display .rating-star.filled { color: #fbbf24; text-shadow: 0 0 6px rgba(251,191,36,0.4); }

.rating-stars-input {
  display: inline-flex;
  gap: 0.25rem;
  /* DOM kārtība 1→5 (intuitīvi tab navigācijai un value atbilstībai).
     Hover/fokuss kontienierī iedegas VISAS zvaigznes; tās, kas DOM seko pēc
     hover/fokusētās, atgriežas pelēkas. Tā rezultātā vizuāli izceltas zvaigznes
     no 1 līdz klikšķa pozīcijai - un button value=zvaigžņu skaits. */
}
.rating-star-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  padding: 0.25rem;
  color: var(--border);
  transition: color .12s, transform .12s, text-shadow .12s;
  font-family: inherit;
}
.rating-star-btn.filled { color: #fbbf24; text-shadow: 0 0 8px rgba(251,191,36,0.4); }
.rating-stars-input:hover .rating-star-btn,
.rating-stars-input:focus-within .rating-star-btn {
  color: #fbbf24;
  text-shadow: 0 0 10px rgba(251,191,36,0.5);
  transform: scale(1.12);
}
.rating-star-btn:hover ~ .rating-star-btn,
.rating-star-btn:focus-visible ~ .rating-star-btn {
  color: var(--border);
  text-shadow: none;
  transform: none;
}
.rating-star-btn:focus-visible { outline: none; }

/* ── Form check (checkbox + label) ───────────────────────────
   Pareiza izvietošana: checkbox kreisajā pusē, label labajā, vairāku rindu
   teksts iekārtojas zem checkbox, nevis izlēc pa labi. */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.625rem;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
  cursor: pointer;
}
.form-check:hover {
  background: rgba(129, 140, 248, 0.05);
}
.form-check input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  cursor: pointer;
  accent-color: var(--accent);
}
.form-check label {
  flex: 1;
  cursor: pointer;
  line-height: 1.5;
  user-select: none;
}
.form-check-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.04), transparent 60%), var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
}
.form-check-group-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-head);
  color: var(--text-3);
  font-weight: 600;
  padding: 0.25rem 0.625rem 0.5rem;
}
.form-check-required {
  color: var(--accent);
  font-weight: 600;
  margin-left: 0.25rem;
}
.form-check-hint {
  font-size: 0.75rem;
  color: var(--text-3);
  margin-top: 0.25rem;
  padding-left: 2rem; /* atkāpes lai atbilst label tekstam */
}

/* ── Paroles stiprums (signup + password reset) ─────────────
   Sarkans (vājš) → oranžs → dzeltens → zaļš (stiprs).
   Politika: minimums 12 simboli + dažādības klases. */
.pwd-strength {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.pwd-strength-bars {
  display: flex;
  gap: 3px;
}
.pwd-strength-bars .pwd-bar {
  height: 4px;
  flex: 1;
  border-radius: 2px;
  background: var(--border);
  transition: background 0.25s;
}
.pwd-strength-label {
  font-size: 0.75rem;
  color: var(--text-3);
  font-weight: 500;
  letter-spacing: 0.02em;
}

